SlideShare a Scribd company logo
Tomáš Jukin
@Inza
Arduino
and Neural Nets
Arduino Neural Networks
16 MHz
2 KB RAM 16 MHz
:-(
:’-(
Arduino Neural Networks
? ? ?
7 + 8 + 4 = 19!
7 + 8 + 4 = 19
7 + 8 + 4 = 19
Input
Hidden
Output
7 + 8 + 4 = 19
7 Segment Display to Binary
Tomáš Jukin
@Inza
www.juicymo.cz
@JuicymoCZ
Tomáš Jukin
@Inza
academy.juicymo.cz
@JuicymoAcademy
Arduino Neural Networks
Dendrite
Nucleus
Axon
Input
Activation Function
Output
Dendrite 2
Nucleus
Axon
Dendrite 1
Input 2
Activation Function
Output
Input 1
Input 2
Activation Function
Output
Input 1
0,2
0,8
0,43
0,18
0,37
Arduino Neural Networks
Input
Hidden
Output
Feed Forward ANN
Input Hidden Output
Input Hidden Output
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
Input Hidden Output
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
Flow
Input Hidden Output
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º 	

= 20/180 = 0,111…
Input Hidden Output
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º 	

= 20/180 = 0,111…
Input Hidden Output
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º 	

= 20/180 = 0,111…
Input Hidden Output
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º 	

= 20/180 = 0,111…
0,345 	

= 34% power
Input Hidden Output
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º 	

= 20/180 = 0,111…
0,345 	

= 34% power
0,4 	

= 40% power
Input Hidden Output
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º 	

= 20/180 = 0,111…
0,345 	

= 34% power
0,4 	

= 40% power
0,4 - 0,345 = 0,055
Input Hidden Output
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º 	

= 20/180 = 0,111…
0,345 	

= 34% power
0,4 	

= 40% power
0,4 - 0,345 = 0,055
Input Hidden Output
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º
= 20/180 = 0,111…
0,345 	

= 34% power
0,4 	

= 40% power
0,4 - 0,345 = 0,055
W11 = 0,14
W12 = 0,65
W14 = 0,42
W13 = 0,26
W21 = 0,21
W22 = 0,37
W24 = 0,19
W23 = 0,46
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º
= 20/180 = 0,111…
0,345 	

= 34% power
0,4 	

= 40% power
0,4 - 0,345 = 0,055
W11 = 0,14
W12 = 0,65
W14 = 0,42
W13 = 0,26
W21 = 0,21
W22 = 0,37
W24 = 0,19
W23 = 0,46
Backpropagation
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º
= 20/180 = 0,111…
0,345 	

= 34% power
0,4 	

= 40% power
0,4 - 0,345 = 0,055
W11 = 0,14
W12 = 0,65
W14 = 0,42
W13 = 0,26
W21 = 0,21
W22 = 0,37
W24 = 0,19
W23 = 0,46
Backpropagation
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º
= 20/180 = 0,111…
0,345 	

= 34% power
0,4 	

= 40% power
0,4 - 0,345 = 0,055
W11 = 0,14
W12 = 0,65
W14 = 0,42
W13 = 0,26
W21 = 0,21
W22 = 0,37
W24 = 0,19
W23 = 0,46
Backpropagation
Ultrasonic
Sensor
Gyroscope
Wheel
Encoder
Left	

Motor
Right	

Motor
20º
= 20/180 = 0,111…
0,345 	

= 34% power
0,4 	

= 40% power
0,4 - 0,345 = 0,055
W11 = 0,14
W12 = 0,65
W14 = 0,42
W13 = 0,26
W21 = 0,21
W22 = 0,37
W24 = 0,19
W23 = 0,46
Backpropagation
When to use ANNs?
It can learn	

and detect patterns
When to use ANNs?
But beware local
optimum!
When to use ANNs?
To much training is bad!
When to use ANNs?
To much training is bad!	

To few training is bad too!
And what about hardware?
How ANN stores data?
FF ANN needs just 	

a two dimensional array
How ANN stores data?
FF ANN needs just 	

a
Feed-Forward Artificial Neural Net
Nice!
So I can run it 	

everywhere then, can I?
Arduino Neural Networks
ANN on UNO?
NOPE :-(
ANN on UNO?
2 KB RAM => 	

19 neurons effectively
ANN on UNO?
Average ANN has 	

>100 neurons
ANN on UNO?
Interesting ANN has 	

>2000 neurons
ANN on UNO?
=> No go on UNO …
Arduino Neural Networks
ANN on Raspi?
Yop, that is a start…
ANN on Raspi?
Yop, that is a start…	

and I2C or UART 	

will connect it with UNO…
ANN on Raspi?
Yop, that is a start…	

and I2C or UART 	

will connect it with UNO…	

but BEWARE theVOLTAGE!
Case Study
#Probee Robot
#Probee Robot
3x UltraSonic Sensor (Forward / Backward / Turret)
4x DC Motor
1x Motor Controller (Left / Right)
1x Arduino UNO (= brain)
1x Bluetooth Module
1x 2x16 I2C LCD (= status display)
#Probee Robot UNO ANN
Hours to learn movement…
#Probee Robot UNO ANN
Hours to learn movement…
15 minutes battery
#Probee Robot UNO ANN
Hours to learn movement…
15 minutes battery
Needs better HW 	

preparation …
=>
Interested?
Build or Implement

start today!
You can start right now…
…with any language…
…or on Arduino!
Inspiration
http://goo.gl/sKTfsd
Blog post about ANN on UNO
http://goo.gl/cuIUiH
ANN controlling robot in video
Questions?
Tomáš Jukin
@Inza
www.juicymo.cz
@JuicymoCZ
Photo Credits
All photos used are CC from Flickr

!

More Related Content

PPT
DOC
Blow time current function(Device Modeling of Fuse)
PPTX
Obstacle Avoidance Robot (Powered by Arduino)
PPTX
Arduino Interface LM35 MQTT Using UART
PPT
Line Following Robot
PPTX
Line follower Robot with Arduino
PPTX
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Blow time current function(Device Modeling of Fuse)
Obstacle Avoidance Robot (Powered by Arduino)
Arduino Interface LM35 MQTT Using UART
Line Following Robot
Line follower Robot with Arduino
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO

What's hot (7)

DOCX
obstacle avoiding robot
DOCX
Obstacle_Avoidance_Robot_Coruse_Project_ECET402_Mechatronics_FinalCopy
PPTX
Line follower robot 5th semster
PPTX
Line Following Robot
DOCX
CHART FOR PROJECT
PPTX
Line Following Robot Presentation
PPTX
Line Following Robot Using Arduino
obstacle avoiding robot
Obstacle_Avoidance_Robot_Coruse_Project_ECET402_Mechatronics_FinalCopy
Line follower robot 5th semster
Line Following Robot
CHART FOR PROJECT
Line Following Robot Presentation
Line Following Robot Using Arduino
Ad

Viewers also liked (6)

PDF
Multi-Agent Systems on Arduino & iOS
PPTX
MachineLearning_QLearningCircuit
PDF
Inteligencia computacional en el control y operación de drones
ODT
Ficha bon jovi
PPTX
Open source hardware for academic projects
PDF
Design and Implementation of DC Motor Speed Control using Fuzzy Logic
Multi-Agent Systems on Arduino & iOS
MachineLearning_QLearningCircuit
Inteligencia computacional en el control y operación de drones
Ficha bon jovi
Open source hardware for academic projects
Design and Implementation of DC Motor Speed Control using Fuzzy Logic
Ad

Similar to Arduino Neural Networks (20)

PPTX
Line following robot
PPTX
batch 7.pptx
PPTX
Line Following Robot using Arduino UNO
PPT
line following robot
PPTX
the Line Following Robot with full efficiency pptx
PPTX
371275588.pptx
PPTX
Obstacle avoiding Robot
PPTX
Smart Blind stick by using arduino uno and sensor
PPTX
obstacle divider robot stm32 using obligance engg
PPTX
Arduino Blind Aid
PPTX
Line maze solver robot
PDF
Arduino based Applications-part 5
PPTX
Arduino with brief description of sensorsppt.pptx
PDF
Automatic Door Opener using PIR Sensor
PDF
Prestentation
PPTX
Smart walking Stick for blinds
DOCX
pdf-obstacle-avoiding-robot.docx
PPTX
Line Following Robot
PDF
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
PDF
DSL Junior Makers - electronics workshop
Line following robot
batch 7.pptx
Line Following Robot using Arduino UNO
line following robot
the Line Following Robot with full efficiency pptx
371275588.pptx
Obstacle avoiding Robot
Smart Blind stick by using arduino uno and sensor
obstacle divider robot stm32 using obligance engg
Arduino Blind Aid
Line maze solver robot
Arduino based Applications-part 5
Arduino with brief description of sensorsppt.pptx
Automatic Door Opener using PIR Sensor
Prestentation
Smart walking Stick for blinds
pdf-obstacle-avoiding-robot.docx
Line Following Robot
Color Recognition with Matlab Image Processing and Matlab Interfacing with Ar...
DSL Junior Makers - electronics workshop

More from Tomáš Jukin (13)

PDF
How you can build a robot Dr. Strangelove would approve
PDF
When a robot is smart enough?
PDF
How to build Open Hardware self-navigating car robot
PDF
MQTT is your best friend
PDF
Internet of Things & Open HW for Web Developers
PDF
CoreData - there is an ORM you can like!
PDF
Few tips for great presentations
PDF
Bezpečnost platformy iOS
PDF
ONscreen vs. OFFscreen rendering v iOS - For-Mobile 3/2013
PDF
MVC na iOS - For-Mobile 2/2013
PDF
iOS6 & CocoaPods - For-Mobile 9/2012
PDF
Make the code work for you with #git
PDF
Tools beyond ruby on rails
How you can build a robot Dr. Strangelove would approve
When a robot is smart enough?
How to build Open Hardware self-navigating car robot
MQTT is your best friend
Internet of Things & Open HW for Web Developers
CoreData - there is an ORM you can like!
Few tips for great presentations
Bezpečnost platformy iOS
ONscreen vs. OFFscreen rendering v iOS - For-Mobile 3/2013
MVC na iOS - For-Mobile 2/2013
iOS6 & CocoaPods - For-Mobile 9/2012
Make the code work for you with #git
Tools beyond ruby on rails

Recently uploaded (20)

PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Spectroscopy.pptx food analysis technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
MYSQL Presentation for SQL database connectivity
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Cloud computing and distributed systems.
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectroscopy.pptx food analysis technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Approach and Philosophy of On baking technology
MYSQL Presentation for SQL database connectivity
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Programs and apps: productivity, graphics, security and other tools
Cloud computing and distributed systems.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Big Data Technologies - Introduction.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Unlocking AI with Model Context Protocol (MCP)
Dropbox Q2 2025 Financial Results & Investor Presentation
Per capita expenditure prediction using model stacking based on satellite ima...
Spectral efficient network and resource selection model in 5G networks
A comparative analysis of optical character recognition models for extracting...
Assigned Numbers - 2025 - Bluetooth® Document

Arduino Neural Networks