SlideShare a Scribd company logo
Intro to TinyML
Technical, implementation with Arduino
Arduino Day 2020 Online Event

Bandung, Indonesia

Mar 21, 2020
Andri Yadi
CEO, DycodeX

Microsoft MVP, Azure
Andri Yadi
Co-founder & CEO of DycodeX
Vice Chairman, Indonesia IoT Association (ASIOTI)
Microsoft MVP, Azure
a (at) dycodex.com | andriyadi.com | github.com/andriyadi
Physicist, Developer, Maker, Community Guy, Entrepreneur
About Me
MicrosoJ Most Valuable Professional (MVP) for 12 years

Code for food & passion for 20 years

Break & make electronic stuOs for 22 years

Trying to change the world through entrepreneurship, 15 years now
I’VE BEEN PROMOTING
AIOT & TINYML
20+ TALKS LAST YEAR
Communication

Networks
IoT High Level Architecture
Gateways /

Base Station
Things
(lots of them)
Internet
Apps
Cloud User
Internet
Ingestion
Infrastructure
Logics
API
GNSS
176
Gyroscope
130
Accelerometer
21
Bluetooth
100
Radio
800
Display
400
in mW
Clearly Radio consumes
almost 50% of power.
65% if no display!
Typical IoT Device’s Energy Consumption
GNSS
176
Gyroscope
130
Accelerometer
21
Bluetooth
100
Radio
800
Display
400
in mW
Clearly Radio consumes
almost 50% of power.
65% if no display!
Typical IoT Device’s Energy Consumption
LPWA for IoT wireless
connectivity is the option
LPWA = Low Power Wide Area Network
You oKen see…
about LPWA connectivity
You oKen see…
10 years baOery life is
GIMMICK!
about LPWA connectivity
You oKen see…
Achievable by 2-3 of these combinations:

Using big capacity ba_ery (e.g. 19Ah)

Transmi_ing data few times a day

Payload size 10s-100s bytes ➙ shob tx
10 years baOery life is
GIMMICK!
Notes:

NB-IoT (or other LPWA connectivities) does consume
much lower power than WiFi or 4G/LTE, due to its low
data rate. Only tens to hundreds mA per-tx
about LPWA connectivity
So, if you have…
Sensors:
GPS / GNSS
Accelerometer, Gyroscope
Body Temperature
Ambient Temperature & Humidity
Barometric Pressure
Ambient Light
MEMS Microphone
Device Removal Detector
SMARTernak electronics board
So, if you have…
Sensors:
GPS / GNSS
Accelerometer, Gyroscope
Body Temperature
Ambient Temperature & Humidity
Barometric Pressure
Ambient Light
MEMS Microphone
Device Removal Detector
You may only transmit:
Current lat, long, speed, direction
Current values or average motion
Current, peak, or lowest body temperature
Current, peak, or avg. temperature & humidity
Current, peak, or avg. Barometric Pressure
Current, peak, or lowest ambient Light
Current, peak, or lowest sound level in db
Detached or not
SMARTernak electronics board
99% of sensor data has to be discarded due to
connectivity’s bandwidth or power constraints
Motor failure detection
Dashboard
For that, usually we collect raw data from vibration sensor and transmit to the Cloud.
In the cloud, raw data are processed to classify whether motor is working normal or fault.
On the other hand, consider a use case…
MicrocontrollerMotor
Motor failure detection
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
Dashboard
For that, usually we collect raw data from vibration sensor and transmit to the Cloud.
In the cloud, raw data are processed to classify whether motor is working normal or fault.
On the other hand, consider a use case…
MicrocontrollerMotor
Motor failure detection
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
Dashboard
For that, usually we collect raw data from vibration sensor and transmit to the Cloud.
In the cloud, raw data are processed to classify whether motor is working normal or fault.
On the other hand, consider a use case…
MicrocontrollerMotor
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
Motor failure detection
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
Fault

detected
Dashboard
For that, usually we collect raw data from vibration sensor and transmit to the Cloud.
In the cloud, raw data are processed to classify whether motor is working normal or fault.
On the other hand, consider a use case…
MicrocontrollerMotor
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
Motor failure detection
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
Fault

detected
Dashboard
If we try to send 1KB of raw data over LPWA (e.g. LoRa),
it may take “forever”, and consume more power
For that, usually we collect raw data from vibration sensor and transmit to the Cloud.
In the cloud, raw data are processed to classify whether motor is working normal or fault.
On the other hand, consider a use case…
MicrocontrollerMotor
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
…it will beat the purpose of low power connectivity
LPWA
Motor failure detection
Dashboard
Due to bandwidth and power constraints, we only send sampled and calculated data
So, what we may do, instead
MicrocontrollerMotor
Peak
Peak value
FFT
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
Sampled/Calculated
LPWA
Motor failure detection
Dashboard
Due to bandwidth and power constraints, we only send sampled and calculated data
So, what we may do, instead
MicrocontrollerMotor
But we may miss lot of interesting events!
Peak
Peak value
FFT
Fault

detected
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
Sampled/Calculated
LPWA
Motor failure detection
Dashboard
There’s on-device “intelligence” to do complete analysis, right on the device.
Then, only transmit the conclusion (just few bytes of data) to the cloud.
Somehow…
MicrocontrollerMotor
On-device
processing
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
LPWA
Motor failure detection
Dashboard
There’s on-device “intelligence” to do complete analysis, right on the device.
Then, only transmit the conclusion (just few bytes of data) to the cloud.
Somehow…
MicrocontrollerMotor
Processed data

0A 0B 01 (➙ Normal)

0A 0B 02 (➙ Fault)
On-device
processing
Fault

detected
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
LPWA
Motor failure detection
Dashboard
There’s on-device “intelligence” to do complete analysis, right on the device.
Then, only transmit the conclusion (just few bytes of data) to the cloud.
Somehow…
MicrocontrollerMotor
That may save power, bandwidth,
and deliver more complete analysis
Processed data

0A 0B 01 (➙ Normal)

0A 0B 02 (➙ Fault)
On-device
processing
Fault

detected
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
LPWA
Motor failure detection
Dashboard
There’s on-device “intelligence” to do complete analysis, right on the device.
Then, only transmit the conclusion (just few bytes of data) to the cloud.
Back to…
MicrocontrollerMotor
Processed data

0A 0B 01 (➙ Normal)

0A 0B 02 (➙ Fault)
On-device
processing
What is this? Machine Learning?
Fault

detected
That may save power, bandwidth,
and deliver more complete analysis
Vibration
raw data

5D 1B 16
56 01 41 …
(1K Bytes)
LPWA
Machine Learning is oKen associated with…
Machine Learning
ClassiYcation 

What’s happening right now?

Anomaly Detection

Is it “normal”?

Forecasting 

What will happen in the future?
Some ML problems
Credit: h_ps://www.slideshare.net/janjongboom/adding-intelligence-to-lorawan-devices-the-things-conference-2020
Machine Learning
ClassiYcation 

What’s happening right now?

Anomaly Detection

Is it “normal”?

Forecasting 

What will happen in the future?
Some ML problems
For those problems,
ML Inference is possible on
ultra-low power, low cost,
tiny Microcontroller
High pelormance: 

Less latency as no raw data need to go to cloud/backend

Still works omine: 

Machine Learning inference happens right on-device. 

No internet connectivity needed to get inference result from cloud.

Encient power and bandwidth consumption: 

Only transmit necessary inference result, which are small in data size. 

Possible to use Low Power Wide Area (LPWA) connectivity, e.g: LoRa or
NB-IoT

Using optimised Edge hardware, even possible to be powered by ba_ery
AI at the Edge
Why the hassle?
So, how can we achieve
TinyML?
ML-accelerated
processor
a class of microprocessor
designed as hardware
acceleration for AI
applications, e.g. for
neural networks, machine
vision and machine
learning

Example:
GPU

FPGA

ASIC

DSP
Development
Board /Accessories
a standalone computing
system with ML-
accelerated processor
(main or co-) as a main or
additional development
unit

Example:
Coral DevBoard or USB
Accelerator

Intel Neural Compute Stick

Sipeed Maix

Arduino Nano 33 BLE Sense

ESPectro32
SoKware Tools
ML compilers

ML Model design tool

ML Model conveber

SDK & libraries

OS

Example:
TensorFlow & TensorFlow
Lite (TFLite)

TFLite for Microcontroller

OpenVino

Kendryte’s nncase

EdgeImpulse
Suppos
Documentation 

Model Zoo

Examples

Datasheets

Hardware SoKware
What do we need?
Optimize &
Conve

(compress, remove,
replace, conve)
Train ML Model

(on your awesome
machine or Cloud)
.h5 

.pb

.cabemodel

ONNX
ML Model
Intermediate
Representation

(IR) File
Transfer IR qle 

to Edge device
Inference

(Edge-optimized
Inference library)
Inference 

Result
AI at the Edge General Pipeline
Optimize

(TOCO)
Train ML Model

(on your awesome
machine or Cloud)
.h5 

.pb
TinyML Pipeline
TFLite
Flat

Buber
Conve

(xxd)
Integrate
into MCU
Firmware
C Byte
Array
Optimize

(TOCO)
Train ML Model

(on your awesome
machine or Cloud)
.h5 

.pb
TinyML Pipeline
TFLite
Flat

Buber
Conve

(xxd)
Integrate
into MCU
Firmware
C Byte
Array
Custom 

Logics
ML Model
Microcontroller (MCU) Firmware
TensorFlow Lite

for Microcontroller
TinyML Pipeline
e.g. leveraging Azure Machine Learning
Azure Machine Learning Pipeline
TensorFlow model Yle
Compress

(toco)TFLite
Flat

Buber
Conve
(xxd)
C Byte
ArrayIntegrate
into MCU
Firmware
TinyML Pipeline
Typical TinyML Model Training
Labelled 

Raw Data
Label1
Label2
Label3
Signal
Processing

(Low/High Pass Filter,

FFT)
Neural 

Network
Output 

Features
Credit: EdgeImpulse.com. Check it out!
Processing Blocks

To extract features
Learning Blocks

To classify new data. 

NN size can be signiqcantly small
due to the extracted features from
previous blocks
AKer Filter
Frequency Domain
using Arduino framework, TFLite, PlahormIO,
ESPectro32 board
Gesture Recognition
DEMO
NB-IoT + GPS/GNSS Kit LoRa/LoRaWAN +
GNSS Kit
Sensors & Actuators Kit
(20+ Peripherals)
3G + GNSS + Sensors
ESPectro32 v2
Optimized for learning STEM,
coding & electronics, also for fast
prototyping.

An AIoT Development Board:

Low-power, dual-core 240 MHz
Microcontroller 

Built-in WiFi & Bluetooth connectivity

7x7 LED matrix for user intelace

Sensors:
Accelerometer & Gyro using LSM6DS3,
Digital temperature sensor, phototransistor

microSD card slot

Extensible via:
40 RPi-compatible pins, Grove connectors,
Micro:bit connector

Extensible with Backpacks: 

NB-IoT/Cellular + GPS/GNSS, LoRa, Sensor
Kits, Motor Driver, and more
ESPectro32
Backpacks
hOps://shop.makestro.com/product/espectro32-v2/
Demo
git clone hOps://github.com/andriyadi/MagicWand-TFLite-ESP32
Train Model
If necessary. Then compress and conveb the model…. Or use pre-trained model, instead
Reference: h_ps://github.com/tensollow/tensollow/tree/master/tensollow/lite/micro/examples/magic_wand/train
Enjoy!
Open Serial Monitor to see the inference result
Recognised gestured also displayed on LED matrix*
* On latest source code, display is already rotated :)
Other Demo
Similar demo, but using Arduino Nano 33 BLE Sense board
hOps://www.youtube.com/watch?v=Lfv3WJnYhX0 hOps://github.com/andriyadi/MagicWand-TFLite-Arduino
TinyML:
TensorFlow Lite for Microcontrollers: h_ps://www.tensollow.org/lite/
microcontrollers

Great book: TinyML, by Daniel Situnayake, Pete Warden

Azure:
Azure Machine Learning: h_ps://azure.microsoJ.com/en-in/services/
machine-learning-service/

DycodeX:
ESPectro32 dev board: h_ps://shop.makestro.com/product/espectro32-
v2/ 

SMARTernak: h_ps://smabernak.com 

Other IoT + AI products & solutions: h_ps://dycodex.com 

Contact me:
andri (at) dycodex.com 

h_p://github.com/andriyadi | hOps://slideshare.net/andri_yadi/
Call to Action
Want to put “AI” in “BrAIns”?
… a.k.a. adopting AI + IoT -> AIoT?
AI + IoT enabler
Keep in touch
hi (at) dycodex.com | https://dycodex.com
Bandung, Indonesia

More Related Content

What's hot

Protocols for IoT
Protocols for IoTProtocols for IoT
Protocols for IoT
Amit Dev
 
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete DeckAI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
SlideTeam
 
Introduction to Internet of Things Hardware
Introduction to Internet of Things HardwareIntroduction to Internet of Things Hardware
Introduction to Internet of Things Hardware
Daniel Eichhorn
 
Deep learning - A Visual Introduction
Deep learning - A Visual IntroductionDeep learning - A Visual Introduction
Deep learning - A Visual Introduction
Lukas Masuch
 
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
Simplilearn
 
An introduction to AI (artificial intelligence)
An introduction to AI (artificial intelligence)An introduction to AI (artificial intelligence)
An introduction to AI (artificial intelligence)
Bellaj Badr
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
Junaid Bhat
 
Top 5 IoT Use Cases
Top 5 IoT Use CasesTop 5 IoT Use Cases
Top 5 IoT Use Cases
Cloudera, Inc.
 
IoT Introduction Architecture and Applications
IoT Introduction Architecture and ApplicationsIoT Introduction Architecture and Applications
IoT Introduction Architecture and Applications
The IOT Academy
 
Introduction to IoT Architectures and Protocols
Introduction to IoT Architectures and ProtocolsIntroduction to IoT Architectures and Protocols
Introduction to IoT Architectures and Protocols
Abdullah Alfadhly
 
General introduction to AI ML DL DS
General introduction to AI ML DL DSGeneral introduction to AI ML DL DS
General introduction to AI ML DL DS
Roopesh Kohad
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
Sajitha Burvin
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
Gaurav Mittal
 
WiFi SoC ESP8266
WiFi SoC ESP8266WiFi SoC ESP8266
WiFi SoC ESP8266
Devesh Samaiya
 
“Accelerating Newer ML Models Using the Qualcomm AI Stack,” a Presentation fr...
“Accelerating Newer ML Models Using the Qualcomm AI Stack,” a Presentation fr...“Accelerating Newer ML Models Using the Qualcomm AI Stack,” a Presentation fr...
“Accelerating Newer ML Models Using the Qualcomm AI Stack,” a Presentation fr...
Edge AI and Vision Alliance
 
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
Universitat Politècnica de Catalunya
 
Intro to Deep Learning for Computer Vision
Intro to Deep Learning for Computer VisionIntro to Deep Learning for Computer Vision
Intro to Deep Learning for Computer Vision
Christoph Körner
 
Cloud, Fog & Edge Computing
Cloud, Fog & Edge ComputingCloud, Fog & Edge Computing
Cloud, Fog & Edge Computing
EUBrasilCloudFORUM .
 
Neuromorphic computing
Neuromorphic computingNeuromorphic computing
Neuromorphic computing
SreekuttanJayakumar
 
Introduction to Neural Networks
Introduction to Neural NetworksIntroduction to Neural Networks
Introduction to Neural Networks
Databricks
 

What's hot (20)

Protocols for IoT
Protocols for IoTProtocols for IoT
Protocols for IoT
 
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete DeckAI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
 
Introduction to Internet of Things Hardware
Introduction to Internet of Things HardwareIntroduction to Internet of Things Hardware
Introduction to Internet of Things Hardware
 
Deep learning - A Visual Introduction
Deep learning - A Visual IntroductionDeep learning - A Visual Introduction
Deep learning - A Visual Introduction
 
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
 
An introduction to AI (artificial intelligence)
An introduction to AI (artificial intelligence)An introduction to AI (artificial intelligence)
An introduction to AI (artificial intelligence)
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
 
Top 5 IoT Use Cases
Top 5 IoT Use CasesTop 5 IoT Use Cases
Top 5 IoT Use Cases
 
IoT Introduction Architecture and Applications
IoT Introduction Architecture and ApplicationsIoT Introduction Architecture and Applications
IoT Introduction Architecture and Applications
 
Introduction to IoT Architectures and Protocols
Introduction to IoT Architectures and ProtocolsIntroduction to IoT Architectures and Protocols
Introduction to IoT Architectures and Protocols
 
General introduction to AI ML DL DS
General introduction to AI ML DL DSGeneral introduction to AI ML DL DS
General introduction to AI ML DL DS
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
 
WiFi SoC ESP8266
WiFi SoC ESP8266WiFi SoC ESP8266
WiFi SoC ESP8266
 
“Accelerating Newer ML Models Using the Qualcomm AI Stack,” a Presentation fr...
“Accelerating Newer ML Models Using the Qualcomm AI Stack,” a Presentation fr...“Accelerating Newer ML Models Using the Qualcomm AI Stack,” a Presentation fr...
“Accelerating Newer ML Models Using the Qualcomm AI Stack,” a Presentation fr...
 
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
Image classification on Imagenet (D1L4 2017 UPC Deep Learning for Computer Vi...
 
Intro to Deep Learning for Computer Vision
Intro to Deep Learning for Computer VisionIntro to Deep Learning for Computer Vision
Intro to Deep Learning for Computer Vision
 
Cloud, Fog & Edge Computing
Cloud, Fog & Edge ComputingCloud, Fog & Edge Computing
Cloud, Fog & Edge Computing
 
Neuromorphic computing
Neuromorphic computingNeuromorphic computing
Neuromorphic computing
 
Introduction to Neural Networks
Introduction to Neural NetworksIntroduction to Neural Networks
Introduction to Neural Networks
 

Similar to Introduction to AIoT & TinyML - with Arduino

Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)
Future Insights
 
IT Solution through IoT Development
IT Solution through IoT DevelopmentIT Solution through IoT Development
IT Solution through IoT Development
Andri Yadi
 
AIoT: Intelligence on Microcontroller
AIoT: Intelligence on MicrocontrollerAIoT: Intelligence on Microcontroller
AIoT: Intelligence on Microcontroller
Andri Yadi
 
SIGFOX Makers Tour - Porto
SIGFOX Makers Tour - PortoSIGFOX Makers Tour - Porto
SIGFOX Makers Tour - Porto
Nicolas Lesconnec
 
Energy Efficient Computing - 26mar13
Energy Efficient Computing - 26mar13Energy Efficient Computing - 26mar13
Energy Efficient Computing - 26mar13
Ian Phillips
 
NSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and ArduinoNSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and Arduino
Brian Huang
 
Physical Computing and IoT
Physical Computing and IoTPhysical Computing and IoT
Physical Computing and IoT
Eduardo Oliveira
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
udhayakumarc1
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
udhayakumarc1
 
Embedded systems unit3
Embedded systems unit3Embedded systems unit3
Embedded systems unit3
baskaransece
 
IoThings you don't even need to hack
IoThings you don't even need to hackIoThings you don't even need to hack
IoThings you don't even need to hack
Slawomir Jasek
 
SIGFOX Makers Tour - Dublin
SIGFOX Makers Tour - DublinSIGFOX Makers Tour - Dublin
SIGFOX Makers Tour - Dublin
Nicolas Lesconnec
 
Sudhir tms 320 f 2812
Sudhir tms 320 f 2812 Sudhir tms 320 f 2812
Sudhir tms 320 f 2812 vijaydeepakg
 
The (Io)Things you don't even need to hack. Should we worry?
The (Io)Things you don't even need to hack. Should we worry?The (Io)Things you don't even need to hack. Should we worry?
The (Io)Things you don't even need to hack. Should we worry?
SecuRing
 
Iot for smart agriculture
Iot for smart agricultureIot for smart agriculture
Iot for smart agriculture
Atit Patumvan
 
Design & Implementation Of Fault Identification In Underground Cables Using IOT
Design & Implementation Of Fault Identification In Underground Cables Using IOTDesign & Implementation Of Fault Identification In Underground Cables Using IOT
Design & Implementation Of Fault Identification In Underground Cables Using IOT
IRJET Journal
 
An_Introduction_to_Microcontrollers.pptx
An_Introduction_to_Microcontrollers.pptxAn_Introduction_to_Microcontrollers.pptx
An_Introduction_to_Microcontrollers.pptx
Stefan Oprea
 
Prototyping Embedded Devices_Internet of Things
Prototyping Embedded Devices_Internet of ThingsPrototyping Embedded Devices_Internet of Things
Prototyping Embedded Devices_Internet of Things
alengadan
 
Proposal Report on Auto Meter Reading
Proposal Report on Auto Meter ReadingProposal Report on Auto Meter Reading
Proposal Report on Auto Meter Reading
RebekahSamuel2
 

Similar to Introduction to AIoT & TinyML - with Arduino (20)

Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)
 
IT Solution through IoT Development
IT Solution through IoT DevelopmentIT Solution through IoT Development
IT Solution through IoT Development
 
AIoT: Intelligence on Microcontroller
AIoT: Intelligence on MicrocontrollerAIoT: Intelligence on Microcontroller
AIoT: Intelligence on Microcontroller
 
SIGFOX Makers Tour - Porto
SIGFOX Makers Tour - PortoSIGFOX Makers Tour - Porto
SIGFOX Makers Tour - Porto
 
Energy Efficient Computing - 26mar13
Energy Efficient Computing - 26mar13Energy Efficient Computing - 26mar13
Energy Efficient Computing - 26mar13
 
NSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and ArduinoNSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and Arduino
 
Physical Computing and IoT
Physical Computing and IoTPhysical Computing and IoT
Physical Computing and IoT
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
Embedded systems unit3
Embedded systems unit3Embedded systems unit3
Embedded systems unit3
 
IoThings you don't even need to hack
IoThings you don't even need to hackIoThings you don't even need to hack
IoThings you don't even need to hack
 
Microprocessor Systems
Microprocessor Systems Microprocessor Systems
Microprocessor Systems
 
SIGFOX Makers Tour - Dublin
SIGFOX Makers Tour - DublinSIGFOX Makers Tour - Dublin
SIGFOX Makers Tour - Dublin
 
Sudhir tms 320 f 2812
Sudhir tms 320 f 2812 Sudhir tms 320 f 2812
Sudhir tms 320 f 2812
 
The (Io)Things you don't even need to hack. Should we worry?
The (Io)Things you don't even need to hack. Should we worry?The (Io)Things you don't even need to hack. Should we worry?
The (Io)Things you don't even need to hack. Should we worry?
 
Iot for smart agriculture
Iot for smart agricultureIot for smart agriculture
Iot for smart agriculture
 
Design & Implementation Of Fault Identification In Underground Cables Using IOT
Design & Implementation Of Fault Identification In Underground Cables Using IOTDesign & Implementation Of Fault Identification In Underground Cables Using IOT
Design & Implementation Of Fault Identification In Underground Cables Using IOT
 
An_Introduction_to_Microcontrollers.pptx
An_Introduction_to_Microcontrollers.pptxAn_Introduction_to_Microcontrollers.pptx
An_Introduction_to_Microcontrollers.pptx
 
Prototyping Embedded Devices_Internet of Things
Prototyping Embedded Devices_Internet of ThingsPrototyping Embedded Devices_Internet of Things
Prototyping Embedded Devices_Internet of Things
 
Proposal Report on Auto Meter Reading
Proposal Report on Auto Meter ReadingProposal Report on Auto Meter Reading
Proposal Report on Auto Meter Reading
 

More from Andri Yadi

TechInAsia PDC 2019 - Unlocking The Potential of IoT with AI
TechInAsia PDC 2019 - Unlocking The Potential of IoT with AITechInAsia PDC 2019 - Unlocking The Potential of IoT with AI
TechInAsia PDC 2019 - Unlocking The Potential of IoT with AI
Andri Yadi
 
Global Azure Bootcamp 2019 - AIoT powered by Azure
Global Azure Bootcamp 2019 - AIoT powered by AzureGlobal Azure Bootcamp 2019 - AIoT powered by Azure
Global Azure Bootcamp 2019 - AIoT powered by Azure
Andri Yadi
 
Opportunities & Challenges in IoT - Future of IoT industry in Indonesia 2019 ...
Opportunities & Challenges in IoT - Future of IoT industry in Indonesia 2019 ...Opportunities & Challenges in IoT - Future of IoT industry in Indonesia 2019 ...
Opportunities & Challenges in IoT - Future of IoT industry in Indonesia 2019 ...
Andri Yadi
 
Microsoft Azure-powered IoT & AI Solution To Help Farmer
Microsoft Azure-powered IoT & AI Solution To Help FarmerMicrosoft Azure-powered IoT & AI Solution To Help Farmer
Microsoft Azure-powered IoT & AI Solution To Help Farmer
Andri Yadi
 
IoT Connectivity with LoRa
IoT Connectivity with LoRaIoT Connectivity with LoRa
IoT Connectivity with LoRa
Andri Yadi
 
Ask the Expert: Internet of Things
Ask the Expert: Internet of ThingsAsk the Expert: Internet of Things
Ask the Expert: Internet of Things
Andri Yadi
 
Global Azure Bootcamp 2018 - Azure IoT Central
Global Azure Bootcamp 2018 - Azure IoT CentralGlobal Azure Bootcamp 2018 - Azure IoT Central
Global Azure Bootcamp 2018 - Azure IoT Central
Andri Yadi
 
Maker Movement toward IoT Ecosystem in Indonesia
Maker Movement toward IoT Ecosystem in IndonesiaMaker Movement toward IoT Ecosystem in Indonesia
Maker Movement toward IoT Ecosystem in Indonesia
Andri Yadi
 
IoT for Agriculture in a Nutshell: Technical Perspective
IoT for Agriculture in a Nutshell: Technical PerspectiveIoT for Agriculture in a Nutshell: Technical Perspective
IoT for Agriculture in a Nutshell: Technical Perspective
Andri Yadi
 
Road to Republic of IoT - IoT Technologies & Machine Learning
Road to Republic of IoT - IoT Technologies & Machine LearningRoad to Republic of IoT - IoT Technologies & Machine Learning
Road to Republic of IoT - IoT Technologies & Machine Learning
Andri Yadi
 
IoT Connectivity: The Technical & Potential
IoT Connectivity: The Technical & PotentialIoT Connectivity: The Technical & Potential
IoT Connectivity: The Technical & Potential
Andri Yadi
 
Internet of Things - Technicals
Internet of Things - TechnicalsInternet of Things - Technicals
Internet of Things - Technicals
Andri Yadi
 
Global Azure Bootcamp 2017 - Azure IoT Hub with LoRa Connectivity
Global Azure Bootcamp 2017 - Azure IoT Hub with LoRa ConnectivityGlobal Azure Bootcamp 2017 - Azure IoT Hub with LoRa Connectivity
Global Azure Bootcamp 2017 - Azure IoT Hub with LoRa Connectivity
Andri Yadi
 
The state of NB-IoT in Indonesia
The state of NB-IoT in IndonesiaThe state of NB-IoT in Indonesia
The state of NB-IoT in Indonesia
Andri Yadi
 
Industrial IoT in a Nutshell
Industrial IoT in a NutshellIndustrial IoT in a Nutshell
Industrial IoT in a Nutshell
Andri Yadi
 
The Rise of Maker Movement in Indonesia
The Rise of Maker Movement in IndonesiaThe Rise of Maker Movement in Indonesia
The Rise of Maker Movement in Indonesia
Andri Yadi
 
Road to Republic of IoT - ESP32 Programming and LoRa
Road to Republic of IoT - ESP32 Programming and LoRaRoad to Republic of IoT - ESP32 Programming and LoRa
Road to Republic of IoT - ESP32 Programming and LoRa
Andri Yadi
 
Talking with Things: What's Hot in Low-Power Long-Range IoT Connectivity
Talking with Things: What's Hot in Low-Power Long-Range IoT ConnectivityTalking with Things: What's Hot in Low-Power Long-Range IoT Connectivity
Talking with Things: What's Hot in Low-Power Long-Range IoT Connectivity
Andri Yadi
 
Internet of Things: Intro and Demo
Internet of Things: Intro and DemoInternet of Things: Intro and Demo
Internet of Things: Intro and Demo
Andri Yadi
 
Entrepreneurship through Making
Entrepreneurship through MakingEntrepreneurship through Making
Entrepreneurship through Making
Andri Yadi
 

More from Andri Yadi (20)

TechInAsia PDC 2019 - Unlocking The Potential of IoT with AI
TechInAsia PDC 2019 - Unlocking The Potential of IoT with AITechInAsia PDC 2019 - Unlocking The Potential of IoT with AI
TechInAsia PDC 2019 - Unlocking The Potential of IoT with AI
 
Global Azure Bootcamp 2019 - AIoT powered by Azure
Global Azure Bootcamp 2019 - AIoT powered by AzureGlobal Azure Bootcamp 2019 - AIoT powered by Azure
Global Azure Bootcamp 2019 - AIoT powered by Azure
 
Opportunities & Challenges in IoT - Future of IoT industry in Indonesia 2019 ...
Opportunities & Challenges in IoT - Future of IoT industry in Indonesia 2019 ...Opportunities & Challenges in IoT - Future of IoT industry in Indonesia 2019 ...
Opportunities & Challenges in IoT - Future of IoT industry in Indonesia 2019 ...
 
Microsoft Azure-powered IoT & AI Solution To Help Farmer
Microsoft Azure-powered IoT & AI Solution To Help FarmerMicrosoft Azure-powered IoT & AI Solution To Help Farmer
Microsoft Azure-powered IoT & AI Solution To Help Farmer
 
IoT Connectivity with LoRa
IoT Connectivity with LoRaIoT Connectivity with LoRa
IoT Connectivity with LoRa
 
Ask the Expert: Internet of Things
Ask the Expert: Internet of ThingsAsk the Expert: Internet of Things
Ask the Expert: Internet of Things
 
Global Azure Bootcamp 2018 - Azure IoT Central
Global Azure Bootcamp 2018 - Azure IoT CentralGlobal Azure Bootcamp 2018 - Azure IoT Central
Global Azure Bootcamp 2018 - Azure IoT Central
 
Maker Movement toward IoT Ecosystem in Indonesia
Maker Movement toward IoT Ecosystem in IndonesiaMaker Movement toward IoT Ecosystem in Indonesia
Maker Movement toward IoT Ecosystem in Indonesia
 
IoT for Agriculture in a Nutshell: Technical Perspective
IoT for Agriculture in a Nutshell: Technical PerspectiveIoT for Agriculture in a Nutshell: Technical Perspective
IoT for Agriculture in a Nutshell: Technical Perspective
 
Road to Republic of IoT - IoT Technologies & Machine Learning
Road to Republic of IoT - IoT Technologies & Machine LearningRoad to Republic of IoT - IoT Technologies & Machine Learning
Road to Republic of IoT - IoT Technologies & Machine Learning
 
IoT Connectivity: The Technical & Potential
IoT Connectivity: The Technical & PotentialIoT Connectivity: The Technical & Potential
IoT Connectivity: The Technical & Potential
 
Internet of Things - Technicals
Internet of Things - TechnicalsInternet of Things - Technicals
Internet of Things - Technicals
 
Global Azure Bootcamp 2017 - Azure IoT Hub with LoRa Connectivity
Global Azure Bootcamp 2017 - Azure IoT Hub with LoRa ConnectivityGlobal Azure Bootcamp 2017 - Azure IoT Hub with LoRa Connectivity
Global Azure Bootcamp 2017 - Azure IoT Hub with LoRa Connectivity
 
The state of NB-IoT in Indonesia
The state of NB-IoT in IndonesiaThe state of NB-IoT in Indonesia
The state of NB-IoT in Indonesia
 
Industrial IoT in a Nutshell
Industrial IoT in a NutshellIndustrial IoT in a Nutshell
Industrial IoT in a Nutshell
 
The Rise of Maker Movement in Indonesia
The Rise of Maker Movement in IndonesiaThe Rise of Maker Movement in Indonesia
The Rise of Maker Movement in Indonesia
 
Road to Republic of IoT - ESP32 Programming and LoRa
Road to Republic of IoT - ESP32 Programming and LoRaRoad to Republic of IoT - ESP32 Programming and LoRa
Road to Republic of IoT - ESP32 Programming and LoRa
 
Talking with Things: What's Hot in Low-Power Long-Range IoT Connectivity
Talking with Things: What's Hot in Low-Power Long-Range IoT ConnectivityTalking with Things: What's Hot in Low-Power Long-Range IoT Connectivity
Talking with Things: What's Hot in Low-Power Long-Range IoT Connectivity
 
Internet of Things: Intro and Demo
Internet of Things: Intro and DemoInternet of Things: Intro and Demo
Internet of Things: Intro and Demo
 
Entrepreneurship through Making
Entrepreneurship through MakingEntrepreneurship through Making
Entrepreneurship through Making
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 

Introduction to AIoT & TinyML - with Arduino

  • 1. Intro to TinyML Technical, implementation with Arduino Arduino Day 2020 Online Event Bandung, Indonesia Mar 21, 2020 Andri Yadi CEO, DycodeX Microsoft MVP, Azure
  • 2.
  • 3. Andri Yadi Co-founder & CEO of DycodeX Vice Chairman, Indonesia IoT Association (ASIOTI) Microsoft MVP, Azure a (at) dycodex.com | andriyadi.com | github.com/andriyadi Physicist, Developer, Maker, Community Guy, Entrepreneur About Me MicrosoJ Most Valuable Professional (MVP) for 12 years Code for food & passion for 20 years Break & make electronic stuOs for 22 years Trying to change the world through entrepreneurship, 15 years now
  • 4. I’VE BEEN PROMOTING AIOT & TINYML 20+ TALKS LAST YEAR
  • 5. Communication Networks IoT High Level Architecture Gateways / Base Station Things (lots of them) Internet Apps Cloud User Internet Ingestion Infrastructure Logics API
  • 6. GNSS 176 Gyroscope 130 Accelerometer 21 Bluetooth 100 Radio 800 Display 400 in mW Clearly Radio consumes almost 50% of power. 65% if no display! Typical IoT Device’s Energy Consumption
  • 7. GNSS 176 Gyroscope 130 Accelerometer 21 Bluetooth 100 Radio 800 Display 400 in mW Clearly Radio consumes almost 50% of power. 65% if no display! Typical IoT Device’s Energy Consumption LPWA for IoT wireless connectivity is the option LPWA = Low Power Wide Area Network
  • 8. You oKen see… about LPWA connectivity
  • 9. You oKen see… 10 years baOery life is GIMMICK! about LPWA connectivity
  • 10. You oKen see… Achievable by 2-3 of these combinations: Using big capacity ba_ery (e.g. 19Ah) Transmi_ing data few times a day Payload size 10s-100s bytes ➙ shob tx 10 years baOery life is GIMMICK! Notes: NB-IoT (or other LPWA connectivities) does consume much lower power than WiFi or 4G/LTE, due to its low data rate. Only tens to hundreds mA per-tx about LPWA connectivity
  • 11. So, if you have… Sensors: GPS / GNSS Accelerometer, Gyroscope Body Temperature Ambient Temperature & Humidity Barometric Pressure Ambient Light MEMS Microphone Device Removal Detector SMARTernak electronics board
  • 12. So, if you have… Sensors: GPS / GNSS Accelerometer, Gyroscope Body Temperature Ambient Temperature & Humidity Barometric Pressure Ambient Light MEMS Microphone Device Removal Detector You may only transmit: Current lat, long, speed, direction Current values or average motion Current, peak, or lowest body temperature Current, peak, or avg. temperature & humidity Current, peak, or avg. Barometric Pressure Current, peak, or lowest ambient Light Current, peak, or lowest sound level in db Detached or not SMARTernak electronics board 99% of sensor data has to be discarded due to connectivity’s bandwidth or power constraints
  • 13. Motor failure detection Dashboard For that, usually we collect raw data from vibration sensor and transmit to the Cloud. In the cloud, raw data are processed to classify whether motor is working normal or fault. On the other hand, consider a use case… MicrocontrollerMotor
  • 14. Motor failure detection Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes) Dashboard For that, usually we collect raw data from vibration sensor and transmit to the Cloud. In the cloud, raw data are processed to classify whether motor is working normal or fault. On the other hand, consider a use case… MicrocontrollerMotor
  • 15. Motor failure detection Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes) Dashboard For that, usually we collect raw data from vibration sensor and transmit to the Cloud. In the cloud, raw data are processed to classify whether motor is working normal or fault. On the other hand, consider a use case… MicrocontrollerMotor Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes)
  • 16. Motor failure detection Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes) Fault detected Dashboard For that, usually we collect raw data from vibration sensor and transmit to the Cloud. In the cloud, raw data are processed to classify whether motor is working normal or fault. On the other hand, consider a use case… MicrocontrollerMotor Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes)
  • 17. Motor failure detection Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes) Fault detected Dashboard If we try to send 1KB of raw data over LPWA (e.g. LoRa), it may take “forever”, and consume more power For that, usually we collect raw data from vibration sensor and transmit to the Cloud. In the cloud, raw data are processed to classify whether motor is working normal or fault. On the other hand, consider a use case… MicrocontrollerMotor Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes) …it will beat the purpose of low power connectivity LPWA
  • 18. Motor failure detection Dashboard Due to bandwidth and power constraints, we only send sampled and calculated data So, what we may do, instead MicrocontrollerMotor Peak Peak value FFT Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes) Sampled/Calculated LPWA
  • 19. Motor failure detection Dashboard Due to bandwidth and power constraints, we only send sampled and calculated data So, what we may do, instead MicrocontrollerMotor But we may miss lot of interesting events! Peak Peak value FFT Fault detected Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes) Sampled/Calculated LPWA
  • 20. Motor failure detection Dashboard There’s on-device “intelligence” to do complete analysis, right on the device. Then, only transmit the conclusion (just few bytes of data) to the cloud. Somehow… MicrocontrollerMotor On-device processing Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes) LPWA
  • 21. Motor failure detection Dashboard There’s on-device “intelligence” to do complete analysis, right on the device. Then, only transmit the conclusion (just few bytes of data) to the cloud. Somehow… MicrocontrollerMotor Processed data 0A 0B 01 (➙ Normal) 0A 0B 02 (➙ Fault) On-device processing Fault detected Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes) LPWA
  • 22. Motor failure detection Dashboard There’s on-device “intelligence” to do complete analysis, right on the device. Then, only transmit the conclusion (just few bytes of data) to the cloud. Somehow… MicrocontrollerMotor That may save power, bandwidth, and deliver more complete analysis Processed data 0A 0B 01 (➙ Normal) 0A 0B 02 (➙ Fault) On-device processing Fault detected Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes) LPWA
  • 23. Motor failure detection Dashboard There’s on-device “intelligence” to do complete analysis, right on the device. Then, only transmit the conclusion (just few bytes of data) to the cloud. Back to… MicrocontrollerMotor Processed data 0A 0B 01 (➙ Normal) 0A 0B 02 (➙ Fault) On-device processing What is this? Machine Learning? Fault detected That may save power, bandwidth, and deliver more complete analysis Vibration raw data 5D 1B 16 56 01 41 … (1K Bytes) LPWA
  • 24. Machine Learning is oKen associated with…
  • 25. Machine Learning ClassiYcation What’s happening right now? Anomaly Detection Is it “normal”? Forecasting What will happen in the future? Some ML problems Credit: h_ps://www.slideshare.net/janjongboom/adding-intelligence-to-lorawan-devices-the-things-conference-2020
  • 26. Machine Learning ClassiYcation What’s happening right now? Anomaly Detection Is it “normal”? Forecasting What will happen in the future? Some ML problems For those problems, ML Inference is possible on ultra-low power, low cost, tiny Microcontroller
  • 27. High pelormance: Less latency as no raw data need to go to cloud/backend Still works omine: Machine Learning inference happens right on-device. No internet connectivity needed to get inference result from cloud. Encient power and bandwidth consumption: Only transmit necessary inference result, which are small in data size. Possible to use Low Power Wide Area (LPWA) connectivity, e.g: LoRa or NB-IoT Using optimised Edge hardware, even possible to be powered by ba_ery AI at the Edge Why the hassle?
  • 28.
  • 29. So, how can we achieve TinyML?
  • 30. ML-accelerated processor a class of microprocessor designed as hardware acceleration for AI applications, e.g. for neural networks, machine vision and machine learning Example: GPU FPGA ASIC DSP Development Board /Accessories a standalone computing system with ML- accelerated processor (main or co-) as a main or additional development unit Example: Coral DevBoard or USB Accelerator Intel Neural Compute Stick Sipeed Maix Arduino Nano 33 BLE Sense ESPectro32 SoKware Tools ML compilers ML Model design tool ML Model conveber SDK & libraries OS Example: TensorFlow & TensorFlow Lite (TFLite) TFLite for Microcontroller OpenVino Kendryte’s nncase EdgeImpulse Suppos Documentation Model Zoo Examples Datasheets Hardware SoKware What do we need?
  • 31. Optimize & Conve (compress, remove, replace, conve) Train ML Model (on your awesome machine or Cloud) .h5 .pb .cabemodel ONNX ML Model Intermediate Representation (IR) File Transfer IR qle to Edge device Inference (Edge-optimized Inference library) Inference Result AI at the Edge General Pipeline
  • 32. Optimize (TOCO) Train ML Model (on your awesome machine or Cloud) .h5 .pb TinyML Pipeline TFLite Flat Buber Conve (xxd) Integrate into MCU Firmware C Byte Array
  • 33. Optimize (TOCO) Train ML Model (on your awesome machine or Cloud) .h5 .pb TinyML Pipeline TFLite Flat Buber Conve (xxd) Integrate into MCU Firmware C Byte Array Custom Logics ML Model Microcontroller (MCU) Firmware TensorFlow Lite for Microcontroller
  • 34. TinyML Pipeline e.g. leveraging Azure Machine Learning Azure Machine Learning Pipeline TensorFlow model Yle Compress (toco)TFLite Flat Buber Conve (xxd) C Byte ArrayIntegrate into MCU Firmware TinyML Pipeline
  • 35. Typical TinyML Model Training Labelled Raw Data Label1 Label2 Label3 Signal Processing (Low/High Pass Filter, FFT) Neural Network Output Features Credit: EdgeImpulse.com. Check it out! Processing Blocks To extract features Learning Blocks To classify new data. NN size can be signiqcantly small due to the extracted features from previous blocks AKer Filter Frequency Domain
  • 36. using Arduino framework, TFLite, PlahormIO, ESPectro32 board Gesture Recognition DEMO
  • 37. NB-IoT + GPS/GNSS Kit LoRa/LoRaWAN + GNSS Kit Sensors & Actuators Kit (20+ Peripherals) 3G + GNSS + Sensors ESPectro32 v2 Optimized for learning STEM, coding & electronics, also for fast prototyping. An AIoT Development Board: Low-power, dual-core 240 MHz Microcontroller Built-in WiFi & Bluetooth connectivity 7x7 LED matrix for user intelace Sensors: Accelerometer & Gyro using LSM6DS3, Digital temperature sensor, phototransistor microSD card slot Extensible via: 40 RPi-compatible pins, Grove connectors, Micro:bit connector Extensible with Backpacks: NB-IoT/Cellular + GPS/GNSS, LoRa, Sensor Kits, Motor Driver, and more ESPectro32 Backpacks hOps://shop.makestro.com/product/espectro32-v2/
  • 38. Demo
  • 40. Train Model If necessary. Then compress and conveb the model…. Or use pre-trained model, instead Reference: h_ps://github.com/tensollow/tensollow/tree/master/tensollow/lite/micro/examples/magic_wand/train
  • 41. Enjoy! Open Serial Monitor to see the inference result Recognised gestured also displayed on LED matrix* * On latest source code, display is already rotated :)
  • 42. Other Demo Similar demo, but using Arduino Nano 33 BLE Sense board hOps://www.youtube.com/watch?v=Lfv3WJnYhX0 hOps://github.com/andriyadi/MagicWand-TFLite-Arduino
  • 43. TinyML: TensorFlow Lite for Microcontrollers: h_ps://www.tensollow.org/lite/ microcontrollers Great book: TinyML, by Daniel Situnayake, Pete Warden Azure: Azure Machine Learning: h_ps://azure.microsoJ.com/en-in/services/ machine-learning-service/ DycodeX: ESPectro32 dev board: h_ps://shop.makestro.com/product/espectro32- v2/ SMARTernak: h_ps://smabernak.com Other IoT + AI products & solutions: h_ps://dycodex.com Contact me: andri (at) dycodex.com h_p://github.com/andriyadi | hOps://slideshare.net/andri_yadi/ Call to Action
  • 44. Want to put “AI” in “BrAIns”? … a.k.a. adopting AI + IoT -> AIoT?
  • 45. AI + IoT enabler Keep in touch hi (at) dycodex.com | https://dycodex.com Bandung, Indonesia