SlideShare a Scribd company logo
Get your hands dirty with Arduino 
Savio Dimatteo 
Heidelberg Web Enthusiasts Meetup - 10 Dec 2014
Arduino
Arduino 
from http://arduino.cc 
“Arduino is an open-source electronics 
platform based on easy-to-use hardware and 
software. It's intended for anyone making 
interactive projects.” 
IDE 
+ 
Board
Making a project 
1. wire components on a breadboard and 
connect them to arduino I/O pins
Making a project 
2. write code into the IDE to read/write from/to 
Arduino pins
Making a project 
3. compile & upload code into a chip on the 
board machine code
Many Models
Many Models
Many Specs 
Parameters 
● Input voltage 
● CPU Speed 
● # Analog I/O pins 
● # Digital I/O pins 
● FLASH capacity 
● EEPROM capacity 
● SRAM capacity 
● USB interface 
● UART
Many Specs 
Parameters 
● Input voltage 
Cost: ~4€ 
● USB interface 
● UART
Arduino UNO 
Cost: ~25€
Arduino shields
Arduino IDE
Arduino code 
● language is an implementation of Wiring 
● syntax looks like a mix of Java/C/C++ 
● feels almost like a scripting language... 
● code preprocessed into C++ 
● compiled and linked against Arduino libraries 
● machine code into a file ready for upload
Typical workflow 
● write code 
● compile 
● connect Arduino via USB 
● upload 
● see if it works
Debugging 
● write code using Serial.print(...) 
● compile 
● connect Arduino via USB 
● upload 
● open serial monitor 
● see if it works, check serial monitor output
Get started 
http://www.google.com http://www.instructables.com/ 
http://playground.arduino.cc
Starter kit (~100€) 
● Arduino Projects Book 
● Arduino UNO 
● USB cable 
● Breadboard 
● Wooden Base 
● 9v battery snap 
● Wires 
● Photoresistors, potentiometers, pushbuttons, 
sensors, LCD display, LEDs, Transistors, 
Optocouplers, Piezo, Small Motors, Diodes, 
Resistors...
Blink
Uploading blink
Blink uploaded
Hello, World!
Hello, World!
Projects book 
● 01 GET TO KNOW YOUR TOOLS an introduction to the concepts you'll need to use this kit 
● 02 SPACESHIP INTERFACE design the control panel for your starship 
● 03 LOVE-O-METER measure how hot-blooded you are 
● 04 COLOR MIXING LAMP produce any color with a lamp that uses light as an input 
● 05 MOOD CUE clue people in to how you're doing 
● 06 LIGHT THEREMIN create a musical instrument you play by waving your hands 
● 07 KEYBOARD INSTRUMENT play music and make some noise with this keyboard 
● 08 DIGITAL HOURGLASS a light-up hourglass that can stop you from working too much 
● 09 MOTORIZED PINWHEEL a colored wheel that will make your head spin 
● 10 ZOETROPE create a mechanical animation you can play forward or reverse 
● 11 CRYSTAL BALL a mystical tour to answer all your tough questions 
● 12 KNOCK LOCK tap out the secret code to open the door 
● 13 TOUCHY-FEEL LAMP a lamp that responds to your touch 
● 14 TWEAK THE ARDUINO LOGO control your personal computer from your Arduino 
● 15 HACKING BUTTONS create a master control for all your devices!
What did I do with Arduino
Got rid of IDE 
● mkdir blink && cd blink && ino init 
● vim src/sketch.ino 
● … edit … save ... 
● :!ino build 
● :!ino upload 
● :!ino serial (optional)
My first project
Trampolino 
● hardest hardware part: 
insert a straw at the base of a bottle
Trampolino 
● hardest hardware part: 
insert a straw at the base of a bottle 
● hardest software part: 
try to be precise when pouring the same 
amount of water...
Problem 
● water doesn’t flow at a constant rate!
Problem 
How many seconds to 
pour for, to get the same 
unit of water out of the 
straw?
Possible Solution 
I. measure flow rate 
II. estimate pressure
Detecting water 
void setup() { 
pinMode(9, INPUT); 
} 
void loop() { 
if (digitalRead(9) == LOW) { 
// water detected! 
} 
}
“Time through straw”
Curve fitting
Get your hands dirty with Arduino
Get your hands dirty with Arduino
On Facebook...
Conclusions 
● very easy to get started 
● time consuming 
● exciting 
● expensive 
● generally not dangerous
Get your hands dirty with Arduino 
Thank You 
● My Website: http://www.savio.dimatteo.it 
● GitHub: https://github.com/darksmo 
● Twitter: @darksmo 
● E-mail: darksmo@gmail.com 
● Trampolino: http://darksmo.github.io/arduino-trampolino/ 
● Arduino playground: http://playground.arduino.cc

More Related Content

PPTX
An Hour of Arduino and Ardublock
PDF
T21Con 2013 SparkFun Presentation - Arduino and ArduBlock with Protosnap ProMini
ODP
Introduction to Arduino
PDF
Arduino Development For Beginners
PPTX
Introduction to arduino
PPTX
Arduino workshop - hello real world
PPT
Arduino Basics
PPTX
Introduction to Arduino
An Hour of Arduino and Ardublock
T21Con 2013 SparkFun Presentation - Arduino and ArduBlock with Protosnap ProMini
Introduction to Arduino
Arduino Development For Beginners
Introduction to arduino
Arduino workshop - hello real world
Arduino Basics
Introduction to Arduino

What's hot (18)

PPT
Introduction to Arduino
PPT
Multi Sensory Communication 1/2
PDF
Arduino Workshop @ MSA University
PDF
Advanced view arduino projects list use arduino for projects (4)
PPTX
Designers, please mind the gap! Let's get started with Arduino
PDF
#startathon2.0 - Arduino
PDF
Research presentations
PDF
Advanced view arduino projects list part 4 use arduino for projects
PPTX
Introduction Arduino
PPTX
Using arduino and raspberry pi for internet of things
PDF
Small Electronics for Your Makerspace (CLC Trendspotting - September 2014)
KEY
Hello Arduino.
PPTX
My contribution 2
PPTX
Lets make robots
PPTX
Robotics lego
ODP
Rockbox at FSCONS 2009
PPTX
Arduino
PPTX
Genuino and codebender
Introduction to Arduino
Multi Sensory Communication 1/2
Arduino Workshop @ MSA University
Advanced view arduino projects list use arduino for projects (4)
Designers, please mind the gap! Let's get started with Arduino
#startathon2.0 - Arduino
Research presentations
Advanced view arduino projects list part 4 use arduino for projects
Introduction Arduino
Using arduino and raspberry pi for internet of things
Small Electronics for Your Makerspace (CLC Trendspotting - September 2014)
Hello Arduino.
My contribution 2
Lets make robots
Robotics lego
Rockbox at FSCONS 2009
Arduino
Genuino and codebender
Ad

Similar to Get your hands dirty with Arduino (20)

PPTX
Overview of Arduino by Bamidele Samuel Office.pptx
PPTX
Arduino intro.pptx
PDF
An introduction to Arduino
PPS
What is Arduino ?
PPTX
arduino_int ppt.pptx
PPTX
Getting Started with Raspberry Pi and Arduino
PDF
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pdf
PPTX
Introduction to Arduino
PPTX
Arduino Project Presentation Slides.pptx
PPTX
1.Arduino Ecosystem.pptx
PDF
Arduino spooky projects_class1
PPT
Arduino
ODP
Arduino mario y jimena
PDF
Arduino Hands-on Workshop
PPTX
arduino introduction by Engr. Kennedy V. Rodriguez.pptx
PPTX
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pptx
PPT
arduino
PDF
VERY NICE FOR CSE 3RD YEAR AND IOT STUDENTS
PDF
Introducing... Arduino
PPTX
Arduino day
Overview of Arduino by Bamidele Samuel Office.pptx
Arduino intro.pptx
An introduction to Arduino
What is Arduino ?
arduino_int ppt.pptx
Getting Started with Raspberry Pi and Arduino
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pdf
Introduction to Arduino
Arduino Project Presentation Slides.pptx
1.Arduino Ecosystem.pptx
Arduino spooky projects_class1
Arduino
Arduino mario y jimena
Arduino Hands-on Workshop
arduino introduction by Engr. Kennedy V. Rodriguez.pptx
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pptx
arduino
VERY NICE FOR CSE 3RD YEAR AND IOT STUDENTS
Introducing... Arduino
Arduino day
Ad

Recently uploaded (20)

PPTX
material for studying about lift elevators escalation
PPT
Hypersensitivity Namisha1111111111-WPS.ppt
PPTX
"Fundamentals of Digital Image Processing: A Visual Approach"
PDF
Dozuki_Solution-hardware minimalization.
PPTX
Sem-8 project ppt fortvfvmat uyyjhuj.pptx
PPTX
5. MEASURE OF INTERIOR AND EXTERIOR- MATATAG CURRICULUM.pptx
PPTX
Embeded System for Artificial intelligence 2.pptx
PPTX
Wireless and Mobile Backhaul Market.pptx
PPTX
Entre CHtzyshshshshshshshzhhzzhhz 4MSt.pptx
PPT
chapter_1_a.ppthduushshwhwbshshshsbbsbsbsbsh
PPTX
Lecture 3b C Library _ ESP32.pptxjfjfjffkkfkfk
PDF
-DIGITAL-INDIA.pdf one of the most prominent
PPTX
unit1d-communitypharmacy-240815170017-d032dce8.pptx
PDF
How NGOs Save Costs with Affordable IT Rentals
PPTX
1.pptxsadafqefeqfeqfeffeqfqeqfeqefqfeqfqeffqe
PDF
PPT Determiners.pdf.......................
PPTX
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
PPTX
sdn_based_controller_for_mobile_network_traffic_management1.pptx
PPTX
Prograce_Present.....ggation_Simple.pptx
PPTX
Presentacion compuuuuuuuuuuuuuuuuuuuuuuu
material for studying about lift elevators escalation
Hypersensitivity Namisha1111111111-WPS.ppt
"Fundamentals of Digital Image Processing: A Visual Approach"
Dozuki_Solution-hardware minimalization.
Sem-8 project ppt fortvfvmat uyyjhuj.pptx
5. MEASURE OF INTERIOR AND EXTERIOR- MATATAG CURRICULUM.pptx
Embeded System for Artificial intelligence 2.pptx
Wireless and Mobile Backhaul Market.pptx
Entre CHtzyshshshshshshshzhhzzhhz 4MSt.pptx
chapter_1_a.ppthduushshwhwbshshshsbbsbsbsbsh
Lecture 3b C Library _ ESP32.pptxjfjfjffkkfkfk
-DIGITAL-INDIA.pdf one of the most prominent
unit1d-communitypharmacy-240815170017-d032dce8.pptx
How NGOs Save Costs with Affordable IT Rentals
1.pptxsadafqefeqfeqfeffeqfqeqfeqefqfeqfqeffqe
PPT Determiners.pdf.......................
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
sdn_based_controller_for_mobile_network_traffic_management1.pptx
Prograce_Present.....ggation_Simple.pptx
Presentacion compuuuuuuuuuuuuuuuuuuuuuuu

Get your hands dirty with Arduino

  • 1. Get your hands dirty with Arduino Savio Dimatteo Heidelberg Web Enthusiasts Meetup - 10 Dec 2014
  • 3. Arduino from http://arduino.cc “Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects.” IDE + Board
  • 4. Making a project 1. wire components on a breadboard and connect them to arduino I/O pins
  • 5. Making a project 2. write code into the IDE to read/write from/to Arduino pins
  • 6. Making a project 3. compile & upload code into a chip on the board machine code
  • 9. Many Specs Parameters ● Input voltage ● CPU Speed ● # Analog I/O pins ● # Digital I/O pins ● FLASH capacity ● EEPROM capacity ● SRAM capacity ● USB interface ● UART
  • 10. Many Specs Parameters ● Input voltage Cost: ~4€ ● USB interface ● UART
  • 14. Arduino code ● language is an implementation of Wiring ● syntax looks like a mix of Java/C/C++ ● feels almost like a scripting language... ● code preprocessed into C++ ● compiled and linked against Arduino libraries ● machine code into a file ready for upload
  • 15. Typical workflow ● write code ● compile ● connect Arduino via USB ● upload ● see if it works
  • 16. Debugging ● write code using Serial.print(...) ● compile ● connect Arduino via USB ● upload ● open serial monitor ● see if it works, check serial monitor output
  • 17. Get started http://www.google.com http://www.instructables.com/ http://playground.arduino.cc
  • 18. Starter kit (~100€) ● Arduino Projects Book ● Arduino UNO ● USB cable ● Breadboard ● Wooden Base ● 9v battery snap ● Wires ● Photoresistors, potentiometers, pushbuttons, sensors, LCD display, LEDs, Transistors, Optocouplers, Piezo, Small Motors, Diodes, Resistors...
  • 19. Blink
  • 24. Projects book ● 01 GET TO KNOW YOUR TOOLS an introduction to the concepts you'll need to use this kit ● 02 SPACESHIP INTERFACE design the control panel for your starship ● 03 LOVE-O-METER measure how hot-blooded you are ● 04 COLOR MIXING LAMP produce any color with a lamp that uses light as an input ● 05 MOOD CUE clue people in to how you're doing ● 06 LIGHT THEREMIN create a musical instrument you play by waving your hands ● 07 KEYBOARD INSTRUMENT play music and make some noise with this keyboard ● 08 DIGITAL HOURGLASS a light-up hourglass that can stop you from working too much ● 09 MOTORIZED PINWHEEL a colored wheel that will make your head spin ● 10 ZOETROPE create a mechanical animation you can play forward or reverse ● 11 CRYSTAL BALL a mystical tour to answer all your tough questions ● 12 KNOCK LOCK tap out the secret code to open the door ● 13 TOUCHY-FEEL LAMP a lamp that responds to your touch ● 14 TWEAK THE ARDUINO LOGO control your personal computer from your Arduino ● 15 HACKING BUTTONS create a master control for all your devices!
  • 25. What did I do with Arduino
  • 26. Got rid of IDE ● mkdir blink && cd blink && ino init ● vim src/sketch.ino ● … edit … save ... ● :!ino build ● :!ino upload ● :!ino serial (optional)
  • 28. Trampolino ● hardest hardware part: insert a straw at the base of a bottle
  • 29. Trampolino ● hardest hardware part: insert a straw at the base of a bottle ● hardest software part: try to be precise when pouring the same amount of water...
  • 30. Problem ● water doesn’t flow at a constant rate!
  • 31. Problem How many seconds to pour for, to get the same unit of water out of the straw?
  • 32. Possible Solution I. measure flow rate II. estimate pressure
  • 33. Detecting water void setup() { pinMode(9, INPUT); } void loop() { if (digitalRead(9) == LOW) { // water detected! } }
  • 39. Conclusions ● very easy to get started ● time consuming ● exciting ● expensive ● generally not dangerous
  • 40. Get your hands dirty with Arduino Thank You ● My Website: http://www.savio.dimatteo.it ● GitHub: https://github.com/darksmo ● Twitter: @darksmo ● E-mail: [email protected] ● Trampolino: http://darksmo.github.io/arduino-trampolino/ ● Arduino playground: http://playground.arduino.cc