SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Introduction to Arduino




    Kids & Technology Meetup
           April 6, 2013
         Washington, DC
What is the Arduino?
 • A microcontroller
 • Hardware + software
 • You can program it, make projects with it
                                   Inputs/Sensors
                                   • Light
                                   • Motion
                                   • GPS
                    Arduino
                                    Outputs: Make things happen
                                    • Light up LEDs
Your program                        • Move wheels
   (sketch)                         • Tweet

                                                         2
The Arduino’s Parts
                          Digital Pins (0 – 13) inputs & outputs




USB
- sketch
- power



                                                          Micro-
                                                          processor


  External
  Power                                                     Analog
  (battery)                                                 Inputs
                Power                                       (0-5)
                                                              3
                Sockets
Some Components



LEDs – light emitting
diodes




     Resistors
                            Breadboard   4
Programming
    3 main
    sketch
     areas
                             A Processing “Sketch”


Variables


Setup
– runs once


Loop
– main
program that
repeats



                                               5
Basic Processing Structure
// this is a comment - make notes to yourself and to others

int led = 13;   // we will connect an LED to pin # 13 – and 13 is an integer
                // end lines with semicolons

void setup () // place things here that need to be set up at the beginning
{             // curly braces { } define blocks of code

    pinMode(led, OUTPUT); // digital pin 13 will be an output – OUTPUT is a key word
}

void loop()      // main sketch code goes here. It will repeat until the board is turned off.
{
   digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) – HIGH = key word
   delay(1000);               // wait for one second
   digitalWrite(led, LOW); // turn the LED off by making the voltage LOW – LOW = key word
   delay(1000);              // wait for one second
}
                                                                                         6
Processing Language Basic
             Interactive Functions
pinMode(pin, mode): set a digital pin to input or output mode (INPUT or OUTPUT).

digitalRead(pin): returns the value of a digital pin, either LOW or HIGH

digitalWrite(pin, value): writes LOW or HIGH to a digital pin.

analogRead(pin): returns the value of an analog input (from 0 to 1023).

analogWrite(pin, value): writes an analog value (PWM wave) to a digital pin that
supports it (pins 3, 5, 6, 9, 10, and 11); value should be from 0 (always off) to 255
(always on).

delay(time in milliseconds): pauses the code for the amount of time in milliseconds
(1 second = 1000 milliseconds)

More terms, syntax, functions: http://arduino.cc/en/Reference/HomePage
                                                                                        7
ArduBlocks
• It is a tool to use block programming with
  Arduino
It is similar to Scratch
The classic blink script
Project Demonstrations
• We will demonstrate several projects
  – Interactive game (Simon Says)
  – ArduBlocks
  – Light sensor input
  – Arduino + Scratch
  – Drawbot – a drawing robot




                                         11
Videos of Other Projects for Inspiration
• LED cube:
  – http://www.youtube.com/watch?v=GUcX41pokZY

• Turn signal cycling jacket:
  – http://www.youtube.com/watch?v=ZtNEPkwCfxA

• Robot controlled by iPhone:
  – http://www.youtube.com/watch?v=ZgMHxu6gS40

• Quadcopter:
  – https://www.youtube.com/watch?v=eKWboJ0RJtQ




                          Search for other ideas!

                                                    12
Links
• Start here: http://arduino.cc/
• We have compiled links for:
   –   Project ideas – lists and videos
   –   How to program
   –   The videos of the demos projects
   –   Places to learn
        • HacDC http://www.meetup.com/hac-dc/
        • Nova Labs http://www.meetup.com/NOVA-Makers/
   – Places to buy Arduinos and components

• All of these links will be posted at the Kids Tech Meetup
  site (http://www.meetup.com/Kids-and-Technology/) and this public
  EverNote notebook: https://www.evernote.com/pub/greenmoonart/arduino
                                                                         13
Raffle
• We have a few prizes to give away
  – Arduinos
  – Breadboards
  – Patches




                                      14
Questions?
• Feel free to contact us
  – John Dukovich – twitter: @JohnDukovich
  – Hugo Estrada – Google+
  – Phil Shapiro – twitter: @PhilShapiro


• Stay in touch with the MeetUp:
  – http://www.meetup.com/Kids-and-Technology/


                                                 15

Weitere ähnliche Inhalte

Was ist angesagt?

Arduino presentation by_warishusain
Arduino presentation by_warishusainArduino presentation by_warishusain
Arduino presentation by_warishusainstudent
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYVishnu
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the ArduinoWingston
 
arduino
 arduino arduino
arduinojhcid
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoYong Heui Cho
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt maineddy royappa
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshopatuline
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoRichard Rixham
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the ArduinoCharles A B Jr
 
Lesson sample introduction to arduino
Lesson sample   introduction to arduinoLesson sample   introduction to arduino
Lesson sample introduction to arduinoBetsy Eng
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduinoyeokm1
 

Was ist angesagt? (20)

Arduino presentation by_warishusain
Arduino presentation by_warishusainArduino presentation by_warishusain
Arduino presentation by_warishusain
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIY
 
Ardui no
Ardui no Ardui no
Ardui no
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 
Fun with arduino
Fun with arduinoFun with arduino
Fun with arduino
 
arduino
 arduino arduino
arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino course
Arduino courseArduino course
Arduino course
 
Different Arduino Boards
Different Arduino BoardsDifferent Arduino Boards
Different Arduino Boards
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt main
 
Introduction to Raspberry PI
Introduction to Raspberry PIIntroduction to Raspberry PI
Introduction to Raspberry PI
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
 
Arduino presentation
Arduino presentationArduino presentation
Arduino presentation
 
Lesson sample introduction to arduino
Lesson sample   introduction to arduinoLesson sample   introduction to arduino
Lesson sample introduction to arduino
 
Tinker cad intro
Tinker cad introTinker cad intro
Tinker cad intro
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
IoT with Arduino
IoT with ArduinoIoT with Arduino
IoT with Arduino
 

Andere mochten auch

Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduinoAhmed Sakr
 
Arduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoArduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoEoin Brazil
 
T21Con 2013 SparkFun Presentation - Arduino and ArduBlock with Protosnap ProMini
T21Con 2013 SparkFun Presentation - Arduino and ArduBlock with Protosnap ProMiniT21Con 2013 SparkFun Presentation - Arduino and ArduBlock with Protosnap ProMini
T21Con 2013 SparkFun Presentation - Arduino and ArduBlock with Protosnap ProMiniBrian Huang
 
Scratch Eguna: From Scratch Day to Scratch every day
Scratch Eguna: From Scratch Day to Scratch every dayScratch Eguna: From Scratch Day to Scratch every day
Scratch Eguna: From Scratch Day to Scratch every dayPablo Garaizar
 
SHARED GEOMETRY TANGIBLE DIGITAL ENVIRONMENT
SHARED GEOMETRY TANGIBLE DIGITAL ENVIRONMENTSHARED GEOMETRY TANGIBLE DIGITAL ENVIRONMENT
SHARED GEOMETRY TANGIBLE DIGITAL ENVIRONMENTJoan Terres
 
Connecting Arduino and Android
Connecting Arduino and AndroidConnecting Arduino and Android
Connecting Arduino and AndroidMichał Tuszyński
 
Workshop Arduino + Scratch
Workshop Arduino + ScratchWorkshop Arduino + Scratch
Workshop Arduino + ScratchAna Carneirinho
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerMujahid Hussain
 
Arduino Full Tutorial
Arduino Full TutorialArduino Full Tutorial
Arduino Full TutorialAkshay Sharma
 

Andere mochten auch (11)

Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Arduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoArduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the Arduino
 
T21Con 2013 SparkFun Presentation - Arduino and ArduBlock with Protosnap ProMini
T21Con 2013 SparkFun Presentation - Arduino and ArduBlock with Protosnap ProMiniT21Con 2013 SparkFun Presentation - Arduino and ArduBlock with Protosnap ProMini
T21Con 2013 SparkFun Presentation - Arduino and ArduBlock with Protosnap ProMini
 
Scratch Eguna: From Scratch Day to Scratch every day
Scratch Eguna: From Scratch Day to Scratch every dayScratch Eguna: From Scratch Day to Scratch every day
Scratch Eguna: From Scratch Day to Scratch every day
 
SHARED GEOMETRY TANGIBLE DIGITAL ENVIRONMENT
SHARED GEOMETRY TANGIBLE DIGITAL ENVIRONMENTSHARED GEOMETRY TANGIBLE DIGITAL ENVIRONMENT
SHARED GEOMETRY TANGIBLE DIGITAL ENVIRONMENT
 
Introduction to Processing
Introduction to ProcessingIntroduction to Processing
Introduction to Processing
 
Connecting Arduino and Android
Connecting Arduino and AndroidConnecting Arduino and Android
Connecting Arduino and Android
 
Arduino + Android
Arduino + AndroidArduino + Android
Arduino + Android
 
Workshop Arduino + Scratch
Workshop Arduino + ScratchWorkshop Arduino + Scratch
Workshop Arduino + Scratch
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
 
Arduino Full Tutorial
Arduino Full TutorialArduino Full Tutorial
Arduino Full Tutorial
 

Ähnlich wie Introduction to Arduino

IOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdfIOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdfMayuRana1
 
Arduino spooky projects_class1
Arduino spooky projects_class1Arduino spooky projects_class1
Arduino spooky projects_class1Felipe Belarmino
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshopmayur1432
 
NSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and ArduinoNSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and ArduinoBrian Huang
 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino PlatformEoin Brazil
 
Building Connected IoT Gadgets with Particle.io & Azure
Building Connected IoT Gadgets with Particle.io & AzureBuilding Connected IoT Gadgets with Particle.io & Azure
Building Connected IoT Gadgets with Particle.io & AzureNick Landry
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.pptZainIslam20
 
Getting Started with Raspberry Pi and Arduino
Getting Started with Raspberry Pi and ArduinoGetting Started with Raspberry Pi and Arduino
Getting Started with Raspberry Pi and ArduinoChad Mairn
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxethannguyen1618
 
Multi Sensory Communication 1/2
Multi Sensory Communication 1/2Multi Sensory Communication 1/2
Multi Sensory Communication 1/2Satoru Tokuhisa
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixelssdcharle
 
Build cool stuff with arduino for sci camp 16 dec13
Build cool stuff with arduino for sci camp 16 dec13Build cool stuff with arduino for sci camp 16 dec13
Build cool stuff with arduino for sci camp 16 dec13Singapore Makers Association
 
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...Jayanthi Kannan MK
 
Introduction to Arduino
Introduction to Arduino Introduction to Arduino
Introduction to Arduino Dennis Espiritu
 
SKAD Electronics Training Manual.pdf
SKAD Electronics Training Manual.pdfSKAD Electronics Training Manual.pdf
SKAD Electronics Training Manual.pdfKadiriIbrahim2
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptansariparveen06
 

Ähnlich wie Introduction to Arduino (20)

IOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdfIOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdf
 
Arduino spooky projects_class1
Arduino spooky projects_class1Arduino spooky projects_class1
Arduino spooky projects_class1
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
 
NSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and ArduinoNSTA 2013 Denver - ArduBlock and Arduino
NSTA 2013 Denver - ArduBlock and Arduino
 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino Platform
 
Building Connected IoT Gadgets with Particle.io & Azure
Building Connected IoT Gadgets with Particle.io & AzureBuilding Connected IoT Gadgets with Particle.io & Azure
Building Connected IoT Gadgets with Particle.io & Azure
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
 
Getting Started with Raspberry Pi and Arduino
Getting Started with Raspberry Pi and ArduinoGetting Started with Raspberry Pi and Arduino
Getting Started with Raspberry Pi and Arduino
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
 
Multi Sensory Communication 1/2
Multi Sensory Communication 1/2Multi Sensory Communication 1/2
Multi Sensory Communication 1/2
 
arduinoedit.pptx
arduinoedit.pptxarduinoedit.pptx
arduinoedit.pptx
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
 
Build cool stuff with arduino for sci camp 16 dec13
Build cool stuff with arduino for sci camp 16 dec13Build cool stuff with arduino for sci camp 16 dec13
Build cool stuff with arduino for sci camp 16 dec13
 
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...
 
Introduction to Arduino
Introduction to Arduino Introduction to Arduino
Introduction to Arduino
 
SKAD Electronics Training Manual.pdf
SKAD Electronics Training Manual.pdfSKAD Electronics Training Manual.pdf
SKAD Electronics Training Manual.pdf
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.ppt
 
Arduino wk2
Arduino wk2Arduino wk2
Arduino wk2
 

Kürzlich hochgeladen

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Kürzlich hochgeladen (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Introduction to Arduino

  • 1. Introduction to Arduino Kids & Technology Meetup April 6, 2013 Washington, DC
  • 2. What is the Arduino? • A microcontroller • Hardware + software • You can program it, make projects with it Inputs/Sensors • Light • Motion • GPS Arduino Outputs: Make things happen • Light up LEDs Your program • Move wheels (sketch) • Tweet 2
  • 3. The Arduino’s Parts Digital Pins (0 – 13) inputs & outputs USB - sketch - power Micro- processor External Power Analog (battery) Inputs Power (0-5) 3 Sockets
  • 4. Some Components LEDs – light emitting diodes Resistors Breadboard 4
  • 5. Programming 3 main sketch areas A Processing “Sketch” Variables Setup – runs once Loop – main program that repeats 5
  • 6. Basic Processing Structure // this is a comment - make notes to yourself and to others int led = 13; // we will connect an LED to pin # 13 – and 13 is an integer // end lines with semicolons void setup () // place things here that need to be set up at the beginning { // curly braces { } define blocks of code pinMode(led, OUTPUT); // digital pin 13 will be an output – OUTPUT is a key word } void loop() // main sketch code goes here. It will repeat until the board is turned off. { digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) – HIGH = key word delay(1000); // wait for one second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW – LOW = key word delay(1000); // wait for one second } 6
  • 7. Processing Language Basic Interactive Functions pinMode(pin, mode): set a digital pin to input or output mode (INPUT or OUTPUT). digitalRead(pin): returns the value of a digital pin, either LOW or HIGH digitalWrite(pin, value): writes LOW or HIGH to a digital pin. analogRead(pin): returns the value of an analog input (from 0 to 1023). analogWrite(pin, value): writes an analog value (PWM wave) to a digital pin that supports it (pins 3, 5, 6, 9, 10, and 11); value should be from 0 (always off) to 255 (always on). delay(time in milliseconds): pauses the code for the amount of time in milliseconds (1 second = 1000 milliseconds) More terms, syntax, functions: http://arduino.cc/en/Reference/HomePage 7
  • 8. ArduBlocks • It is a tool to use block programming with Arduino
  • 9. It is similar to Scratch
  • 11. Project Demonstrations • We will demonstrate several projects – Interactive game (Simon Says) – ArduBlocks – Light sensor input – Arduino + Scratch – Drawbot – a drawing robot 11
  • 12. Videos of Other Projects for Inspiration • LED cube: – http://www.youtube.com/watch?v=GUcX41pokZY • Turn signal cycling jacket: – http://www.youtube.com/watch?v=ZtNEPkwCfxA • Robot controlled by iPhone: – http://www.youtube.com/watch?v=ZgMHxu6gS40 • Quadcopter: – https://www.youtube.com/watch?v=eKWboJ0RJtQ Search for other ideas! 12
  • 13. Links • Start here: http://arduino.cc/ • We have compiled links for: – Project ideas – lists and videos – How to program – The videos of the demos projects – Places to learn • HacDC http://www.meetup.com/hac-dc/ • Nova Labs http://www.meetup.com/NOVA-Makers/ – Places to buy Arduinos and components • All of these links will be posted at the Kids Tech Meetup site (http://www.meetup.com/Kids-and-Technology/) and this public EverNote notebook: https://www.evernote.com/pub/greenmoonart/arduino 13
  • 14. Raffle • We have a few prizes to give away – Arduinos – Breadboards – Patches 14
  • 15. Questions? • Feel free to contact us – John Dukovich – twitter: @JohnDukovich – Hugo Estrada – Google+ – Phil Shapiro – twitter: @PhilShapiro • Stay in touch with the MeetUp: – http://www.meetup.com/Kids-and-Technology/ 15