SlideShare a Scribd company logo
Getting Started With Arduino: How to build a Twitter-monitoring Alertuino Adrian McEwen - www.mcqn.com
What is Arduino? Embedded computing platform Open Source Hardware Open Source Software Easy-to-use A way to build the “Internet of Things” Adrian McEwen - www.mcqn.com
Common Features Assortment of Arduinos, but most share the same common features: 16KB flash 1KB RAM 14 digital I/O pins 6 analogue I/O pins Adrian McEwen - www.mcqn.com
Easy to Learn Integrated IDE Upload code via USB with a single click Lots of examples to learn from Active community sharing how they made their projects Adrian McEwen - www.mcqn.com
Easy to Extend Adrian McEwen - www.mcqn.com
The Anatomy of a Sketch The code that runs on the Arduino is called a sketch. Two main parts: setup() loop() This is the Arduino “Hello World” - Blink Adrian McEwen - www.mcqn.com
The Anatomy of a Sketch: setup() Runs once, on startup. Adrian McEwen - www.mcqn.com
The Anatomy of a Sketch: loop() Runs continually, after startup. Adrian McEwen - www.mcqn.com
Seeing Blink in Action Load Blink example in the IDE: File -> Sketchbook -> Examples -> Digital -> Blink Click the upload button:  Watch the LED blink* *on boards other than the Diecimila and Duemilanove you might need to connect an LED between digital pin 13 and GND Adrian McEwen - www.mcqn.com
Now the real fun starts… Adrian McEwen - www.mcqn.com
Some (Very) Basic Electronic Concepts You can think of electronics in a similar way to how you’d think of plumbing Voltage [V]: a bit like water pressure Current [I]: a bit like the amount of water flowing through something Resistance [R]: a bit like the (inverse of the) diameter of a water pipe Adrian McEwen - www.mcqn.com
Ohm’s Law The only equation you’ll need to begin tinkering Voltage = Current x Resistance Current = Voltage / Resistance Resistance = Voltage / Current Learn more as you want to do more… Adrian McEwen - www.mcqn.com
Tinkering With Toys Hacking a toy ray gun to notify me when someone twitters about #barcampliverpool Adrian McEwen - www.mcqn.com
Take 1 Cheap Toy Ray Gun Battery-operated electronic toys are ideal Takes 3 AAA batteries, so near enough to the Arduino’s 5V Adrian McEwen - www.mcqn.com
Open It Up Find the connections to bypass the switch and turn the toy on Use 5V and GND connections on Arduino with some wires to test where the connections should go Adrian McEwen - www.mcqn.com
Make New Connections Solder the connections ideally But you could cut the wires and connect new ones with connecting block Adrian McEwen - www.mcqn.com
Parts We’ll Use Resistor – 1K ohm (brown-black-red) Adrian McEwen - www.mcqn.com
Parts We’ll Use Transistor – basically an electronically operated switch (we’re using a 2N2222) Adrian McEwen - www.mcqn.com
Parts We’ll Use Breadboard – easy, solderless prototyping board Adrian McEwen - www.mcqn.com
Transistors in (a Bit) More Detail Wire emitter to –ve/GND side of circuit Wire collector to +ve side of circuit Current will flow from collector to emitter when a voltage is applied to base Adrian McEwen - www.mcqn.com
Our Circuit Adrian McEwen - www.mcqn.com
Software Computer will fetch the data from Twitter for us Then send the number of alerts over serial to the Arduino The Arduino will listen for the number of alerts over serial Then turn on the toy for 2 seconds for each alert Adrian McEwen - www.mcqn.com
Alertuino Software: setup() Runs once, on startup. Adrian McEwen - www.mcqn.com
Alertuino Software: loop() Adrian McEwen - www.mcqn.com
Lets Try It Upload the Alertuino sketch Start the serial monitor  Send it a command Enjoy* *fingers crossed ;-) Adrian McEwen - www.mcqn.com
Find out more My Blog:  http://www.mcqn.net/mcfilter/ Or email adrian@mcqn.net Buy a beginners kit:  http://tinker.it/ukstore/product_info.php?cPath=29&products_id=51 Download the software:  http://www.arduino.cc/ Learn more:  http://arduino.cc/en/Tutorial/HomePage Adrian McEwen - www.mcqn.com

More Related Content

What's hot (20)

Arduino Robotics workshop day2
Arduino Robotics workshop day2
Sudar Muthu
 
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Eoin Brazil
 
Fun with arduino
Fun with arduino
Ravikumar Tiwari
 
Arduino Development For Beginners
Arduino Development For Beginners
FTS seminar
 
Arduino slides
Arduino slides
sdcharle
 
Arduino Intro Guide 2
Arduino Intro Guide 2
elketeaches
 
Arduino Introduction by coopermaa
Arduino Introduction by coopermaa
馬 萬圳
 
2015-10-21 - Arduino workshop
2015-10-21 - Arduino workshop
trygvis
 
Ardui no
Ardui no
Amol Sakhalkar
 
Arduino Full Tutorial
Arduino Full Tutorial
Akshay Sharma
 
Lab2ppt
Lab2ppt
Zhentao Xu
 
Arduino tutorial
Arduino tutorial
HarikaReddy115
 
Arduino: Tutorial de Arduino
Arduino: Tutorial de Arduino
SANTIAGO PABLO ALBERTO
 
Getting Started With Arduino_Tutorial
Getting Started With Arduino_Tutorial
NYCCTfab
 
Introduction to Arduino
Introduction to Arduino
Luki B. Subekti
 
Arduino: Arduino lcd
Arduino: Arduino lcd
SANTIAGO PABLO ALBERTO
 
Presentation S4A
Presentation S4A
Pedro González Romero
 
NSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and Arduino
Brian Huang
 
Introduction to Arduino
Introduction to Arduino
baabtra.com - No. 1 supplier of quality freshers
 
Arduino for Beginners
Arduino for Beginners
Sarwan Singh
 
Arduino Robotics workshop day2
Arduino Robotics workshop day2
Sudar Muthu
 
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Eoin Brazil
 
Arduino Development For Beginners
Arduino Development For Beginners
FTS seminar
 
Arduino slides
Arduino slides
sdcharle
 
Arduino Intro Guide 2
Arduino Intro Guide 2
elketeaches
 
Arduino Introduction by coopermaa
Arduino Introduction by coopermaa
馬 萬圳
 
2015-10-21 - Arduino workshop
2015-10-21 - Arduino workshop
trygvis
 
Arduino Full Tutorial
Arduino Full Tutorial
Akshay Sharma
 
Getting Started With Arduino_Tutorial
Getting Started With Arduino_Tutorial
NYCCTfab
 
NSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and Arduino
Brian Huang
 
Arduino for Beginners
Arduino for Beginners
Sarwan Singh
 

Viewers also liked (15)

Insegnare a progettare il proprio apprendimento con il coding - Lezione 2
Insegnare a progettare il proprio apprendimento con il coding - Lezione 2
Michele Maffucci
 
Alfabeto di Arduino - lezione 2
Alfabeto di Arduino - lezione 2
Michele Maffucci
 
Alfabeto di arduino - lezione 4
Alfabeto di arduino - lezione 4
Michele Maffucci
 
Alfabeto di Arduino - lezione 3
Alfabeto di Arduino - lezione 3
Michele Maffucci
 
Alfabeto di Arduino - lezione 1
Alfabeto di Arduino - lezione 1
Michele Maffucci
 
Alfabeto di Arduino - lezione 5
Alfabeto di Arduino - lezione 5
Michele Maffucci
 
Alfabeto di Arduino - lezione 6
Alfabeto di Arduino - lezione 6
Michele Maffucci
 
Arduino lezione 01 - a.s 2010-2011
Arduino lezione 01 - a.s 2010-2011
Michele Maffucci
 
Starter kit del docente hi tech - v03
Starter kit del docente hi tech - v03
Michele Maffucci
 
Insegnare a progettare il proprio apprendimento con il coding - Lezione 1
Insegnare a progettare il proprio apprendimento con il coding - Lezione 1
Michele Maffucci
 
Il social learning con edmodo - versione 3
Il social learning con edmodo - versione 3
Michele Maffucci
 
Home automation & security system
Home automation & security system
Aniket Maithani
 
Intro to Arduino
Intro to Arduino
avikdhupar
 
Introduction to arduino
Introduction to arduino
Ahmed Sakr
 
Home automation using android mobiles
Home automation using android mobiles
Durairaja
 
Insegnare a progettare il proprio apprendimento con il coding - Lezione 2
Insegnare a progettare il proprio apprendimento con il coding - Lezione 2
Michele Maffucci
 
Alfabeto di Arduino - lezione 2
Alfabeto di Arduino - lezione 2
Michele Maffucci
 
Alfabeto di arduino - lezione 4
Alfabeto di arduino - lezione 4
Michele Maffucci
 
Alfabeto di Arduino - lezione 3
Alfabeto di Arduino - lezione 3
Michele Maffucci
 
Alfabeto di Arduino - lezione 1
Alfabeto di Arduino - lezione 1
Michele Maffucci
 
Alfabeto di Arduino - lezione 5
Alfabeto di Arduino - lezione 5
Michele Maffucci
 
Alfabeto di Arduino - lezione 6
Alfabeto di Arduino - lezione 6
Michele Maffucci
 
Arduino lezione 01 - a.s 2010-2011
Arduino lezione 01 - a.s 2010-2011
Michele Maffucci
 
Starter kit del docente hi tech - v03
Starter kit del docente hi tech - v03
Michele Maffucci
 
Insegnare a progettare il proprio apprendimento con il coding - Lezione 1
Insegnare a progettare il proprio apprendimento con il coding - Lezione 1
Michele Maffucci
 
Il social learning con edmodo - versione 3
Il social learning con edmodo - versione 3
Michele Maffucci
 
Home automation & security system
Home automation & security system
Aniket Maithani
 
Intro to Arduino
Intro to Arduino
avikdhupar
 
Introduction to arduino
Introduction to arduino
Ahmed Sakr
 
Home automation using android mobiles
Home automation using android mobiles
Durairaja
 
Ad

Similar to Getting Started With Arduino How To Build A Twitter Monitoring Alertuino (20)

arduino
arduino
jhcid
 
Arduino comic v0004
Arduino comic v0004
DO!MAKERS
 
Arduino Comic-Jody Culkin-2011
Arduino Comic-Jody Culkin-2011
ΚΔΑΠ Δήμου Θέρμης
 
arduino
arduino
murbz
 
Arduino - Learning.pdf
Arduino - Learning.pdf
KhalilSedki1
 
02 Sensors and Actuators Understand .pdf
02 Sensors and Actuators Understand .pdf
engsharaf2025
 
Introduction to Arduino Version 3 Zero to Prototyping
Introduction to Arduino Version 3 Zero to Prototyping
versatilealligator
 
Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10
stemplar
 
Arduino workshop - hello real world
Arduino workshop - hello real world
Tom Luyten
 
Intro_to_Arduino_Full_ppt_with_examples_and_excersices
Intro_to_Arduino_Full_ppt_with_examples_and_excersices
GeorgeTsak
 
Arduino experimenters guide ARDX
Arduino experimenters guide ARDX
Johnny Parrales
 
Ardx experimenters-guide-web
Ardx experimenters-guide-web
Jhonny Wladimir Peñaloza Cabello
 
IntrotoArduino.ppt
IntrotoArduino.ppt
RohanBorgalli
 
Arduino Introduction.ppt
Arduino Introduction.ppt
ssuser631ea0
 
Intro_to_Arduino_v31_a_workshop_for_beginners
Intro_to_Arduino_v31_a_workshop_for_beginners
Yazan M. Allawi, Ph.D.
 
IntrotoArduino.ppt
IntrotoArduino.ppt
TalhaShahid49
 
Introductory level to Arduino programming
Introductory level to Arduino programming
ssuser5feb2c1
 
Intro_to_Arduino_-_v30.ppt
Intro_to_Arduino_-_v30.ppt
xdarlord
 
Intro_to_Arduino_-_v30dadasdadadadaasda.ppt
Intro_to_Arduino_-_v30dadasdadadadaasda.ppt
CarloCimacio
 
Intro_to_Arduino_-_v30 (3).ppt
Intro_to_Arduino_-_v30 (3).ppt
HebaEng
 
arduino
arduino
jhcid
 
Arduino comic v0004
Arduino comic v0004
DO!MAKERS
 
arduino
arduino
murbz
 
Arduino - Learning.pdf
Arduino - Learning.pdf
KhalilSedki1
 
02 Sensors and Actuators Understand .pdf
02 Sensors and Actuators Understand .pdf
engsharaf2025
 
Introduction to Arduino Version 3 Zero to Prototyping
Introduction to Arduino Version 3 Zero to Prototyping
versatilealligator
 
Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10
stemplar
 
Arduino workshop - hello real world
Arduino workshop - hello real world
Tom Luyten
 
Intro_to_Arduino_Full_ppt_with_examples_and_excersices
Intro_to_Arduino_Full_ppt_with_examples_and_excersices
GeorgeTsak
 
Arduino experimenters guide ARDX
Arduino experimenters guide ARDX
Johnny Parrales
 
Arduino Introduction.ppt
Arduino Introduction.ppt
ssuser631ea0
 
Intro_to_Arduino_v31_a_workshop_for_beginners
Intro_to_Arduino_v31_a_workshop_for_beginners
Yazan M. Allawi, Ph.D.
 
Introductory level to Arduino programming
Introductory level to Arduino programming
ssuser5feb2c1
 
Intro_to_Arduino_-_v30.ppt
Intro_to_Arduino_-_v30.ppt
xdarlord
 
Intro_to_Arduino_-_v30dadasdadadadaasda.ppt
Intro_to_Arduino_-_v30dadasdadadadaasda.ppt
CarloCimacio
 
Intro_to_Arduino_-_v30 (3).ppt
Intro_to_Arduino_-_v30 (3).ppt
HebaEng
 
Ad

More from Adrian McEwen (15)

Makers Guild: Making More Making in Liverpool - DoES Liverpool
Makers Guild: Making More Making in Liverpool - DoES Liverpool
Adrian McEwen
 
Lessons Learnt from Building Bubblino (a Thing on the Internet)
Lessons Learnt from Building Bubblino (a Thing on the Internet)
Adrian McEwen
 
Maker Night Arduino Intro
Maker Night Arduino Intro
Adrian McEwen
 
Maker Night Fabbing Intro
Maker Night Fabbing Intro
Adrian McEwen
 
City as Operating System
City as Operating System
Adrian McEwen
 
Arduino, Hardware Hacking and Physical Computing - Some Examples
Arduino, Hardware Hacking and Physical Computing - Some Examples
Adrian McEwen
 
Ignite Liverpool - Event Hosting For Beginners
Ignite Liverpool - Event Hosting For Beginners
Adrian McEwen
 
Art Of Digital Digital Velcro
Art Of Digital Digital Velcro
Adrian McEwen
 
Exploring The Internet Of Things Through Examples
Exploring The Internet Of Things Through Examples
Adrian McEwen
 
Be2 Camp North - Exploring The Internet Of Things Through Examples
Be2 Camp North - Exploring The Internet Of Things Through Examples
Adrian McEwen
 
New Ways Of Working
New Ways Of Working
Adrian McEwen
 
Dont Just Change The World Improve It!
Dont Just Change The World Improve It!
Adrian McEwen
 
Adventures in Energy Monitoring
Adventures in Energy Monitoring
Adrian McEwen
 
The Internet Of Things Pecha Kucha Slides
The Internet Of Things Pecha Kucha Slides
Adrian McEwen
 
The Mazzini Project
The Mazzini Project
Adrian McEwen
 
Makers Guild: Making More Making in Liverpool - DoES Liverpool
Makers Guild: Making More Making in Liverpool - DoES Liverpool
Adrian McEwen
 
Lessons Learnt from Building Bubblino (a Thing on the Internet)
Lessons Learnt from Building Bubblino (a Thing on the Internet)
Adrian McEwen
 
Maker Night Arduino Intro
Maker Night Arduino Intro
Adrian McEwen
 
Maker Night Fabbing Intro
Maker Night Fabbing Intro
Adrian McEwen
 
City as Operating System
City as Operating System
Adrian McEwen
 
Arduino, Hardware Hacking and Physical Computing - Some Examples
Arduino, Hardware Hacking and Physical Computing - Some Examples
Adrian McEwen
 
Ignite Liverpool - Event Hosting For Beginners
Ignite Liverpool - Event Hosting For Beginners
Adrian McEwen
 
Art Of Digital Digital Velcro
Art Of Digital Digital Velcro
Adrian McEwen
 
Exploring The Internet Of Things Through Examples
Exploring The Internet Of Things Through Examples
Adrian McEwen
 
Be2 Camp North - Exploring The Internet Of Things Through Examples
Be2 Camp North - Exploring The Internet Of Things Through Examples
Adrian McEwen
 
Dont Just Change The World Improve It!
Dont Just Change The World Improve It!
Adrian McEwen
 
Adventures in Energy Monitoring
Adventures in Energy Monitoring
Adrian McEwen
 
The Internet Of Things Pecha Kucha Slides
The Internet Of Things Pecha Kucha Slides
Adrian McEwen
 

Recently uploaded (20)

Introduction to Typescript - GDG On Campus EUE
Introduction to Typescript - GDG On Campus EUE
Google Developer Group On Campus European Universities in Egypt
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
Kubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too Late
Michael Furman
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
Murdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementary
JorgeSemperteguiMont
 
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Safe Software
 
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
Safe Software
 
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
Edge AI and Vision Alliance
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
Kubernetes Security Act Now Before It’s Too Late
Kubernetes Security Act Now Before It’s Too Late
Michael Furman
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
Murdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementary
JorgeSemperteguiMont
 
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Safe Software
 
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
Safe Software
 
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
Edge AI and Vision Alliance
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 

Getting Started With Arduino How To Build A Twitter Monitoring Alertuino

  • 1. Getting Started With Arduino: How to build a Twitter-monitoring Alertuino Adrian McEwen - www.mcqn.com
  • 2. What is Arduino? Embedded computing platform Open Source Hardware Open Source Software Easy-to-use A way to build the “Internet of Things” Adrian McEwen - www.mcqn.com
  • 3. Common Features Assortment of Arduinos, but most share the same common features: 16KB flash 1KB RAM 14 digital I/O pins 6 analogue I/O pins Adrian McEwen - www.mcqn.com
  • 4. Easy to Learn Integrated IDE Upload code via USB with a single click Lots of examples to learn from Active community sharing how they made their projects Adrian McEwen - www.mcqn.com
  • 5. Easy to Extend Adrian McEwen - www.mcqn.com
  • 6. The Anatomy of a Sketch The code that runs on the Arduino is called a sketch. Two main parts: setup() loop() This is the Arduino “Hello World” - Blink Adrian McEwen - www.mcqn.com
  • 7. The Anatomy of a Sketch: setup() Runs once, on startup. Adrian McEwen - www.mcqn.com
  • 8. The Anatomy of a Sketch: loop() Runs continually, after startup. Adrian McEwen - www.mcqn.com
  • 9. Seeing Blink in Action Load Blink example in the IDE: File -> Sketchbook -> Examples -> Digital -> Blink Click the upload button: Watch the LED blink* *on boards other than the Diecimila and Duemilanove you might need to connect an LED between digital pin 13 and GND Adrian McEwen - www.mcqn.com
  • 10. Now the real fun starts… Adrian McEwen - www.mcqn.com
  • 11. Some (Very) Basic Electronic Concepts You can think of electronics in a similar way to how you’d think of plumbing Voltage [V]: a bit like water pressure Current [I]: a bit like the amount of water flowing through something Resistance [R]: a bit like the (inverse of the) diameter of a water pipe Adrian McEwen - www.mcqn.com
  • 12. Ohm’s Law The only equation you’ll need to begin tinkering Voltage = Current x Resistance Current = Voltage / Resistance Resistance = Voltage / Current Learn more as you want to do more… Adrian McEwen - www.mcqn.com
  • 13. Tinkering With Toys Hacking a toy ray gun to notify me when someone twitters about #barcampliverpool Adrian McEwen - www.mcqn.com
  • 14. Take 1 Cheap Toy Ray Gun Battery-operated electronic toys are ideal Takes 3 AAA batteries, so near enough to the Arduino’s 5V Adrian McEwen - www.mcqn.com
  • 15. Open It Up Find the connections to bypass the switch and turn the toy on Use 5V and GND connections on Arduino with some wires to test where the connections should go Adrian McEwen - www.mcqn.com
  • 16. Make New Connections Solder the connections ideally But you could cut the wires and connect new ones with connecting block Adrian McEwen - www.mcqn.com
  • 17. Parts We’ll Use Resistor – 1K ohm (brown-black-red) Adrian McEwen - www.mcqn.com
  • 18. Parts We’ll Use Transistor – basically an electronically operated switch (we’re using a 2N2222) Adrian McEwen - www.mcqn.com
  • 19. Parts We’ll Use Breadboard – easy, solderless prototyping board Adrian McEwen - www.mcqn.com
  • 20. Transistors in (a Bit) More Detail Wire emitter to –ve/GND side of circuit Wire collector to +ve side of circuit Current will flow from collector to emitter when a voltage is applied to base Adrian McEwen - www.mcqn.com
  • 21. Our Circuit Adrian McEwen - www.mcqn.com
  • 22. Software Computer will fetch the data from Twitter for us Then send the number of alerts over serial to the Arduino The Arduino will listen for the number of alerts over serial Then turn on the toy for 2 seconds for each alert Adrian McEwen - www.mcqn.com
  • 23. Alertuino Software: setup() Runs once, on startup. Adrian McEwen - www.mcqn.com
  • 24. Alertuino Software: loop() Adrian McEwen - www.mcqn.com
  • 25. Lets Try It Upload the Alertuino sketch Start the serial monitor Send it a command Enjoy* *fingers crossed ;-) Adrian McEwen - www.mcqn.com
  • 26. Find out more My Blog: http://www.mcqn.net/mcfilter/ Or email [email protected] Buy a beginners kit: http://tinker.it/ukstore/product_info.php?cPath=29&products_id=51 Download the software: http://www.arduino.cc/ Learn more: http://arduino.cc/en/Tutorial/HomePage Adrian McEwen - www.mcqn.com