Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Spark: An introduction to Arduino

Spark: An introduction to Arduino

A brief description of the world of Arduino, and some basic examples of Arduino code.

Presented at the Cantina Spark session, July 15, 2015.

George White

July 15, 2015
Tweet

More Decks by George White

Other Decks in Technology

Transcript

  1. An introduction to Arduino

    View Slide

  2. Arduino is hardware

    View Slide

  3. Arduino is software

    View Slide

  4. Arduino is a family

    View Slide

  5. Arduino is an ecosystem

    View Slide

  6. Arduino is a platform

    View Slide

  7. Arduino anatomy
    Finding your way around the UNO R3

    View Slide

  8. Digital Pins (some with PWM)
    Analog Pins
    ICSP Programming Pins
    ATMega328P
    microcontroller
    Reset Button
    USB port
    Power jack
    Power Pins

    View Slide

  9. Digital pins

    View Slide

  10. Pulse-width Modulation

    View Slide

  11. Analog pins

    View Slide

  12. Programming Arduino
    Stuff you’ll need

    View Slide

  13. To get started, you need—
    ● An Arduino
    ○ Start with an UNO R3
    ● A USB A-to-B cable
    ● The Arduino IDE
    ○ http://ardunio.cc/downloads
    ○ Get the latest version (right now, that’s 1.6.5)

    View Slide

  14. The bare bones sketch
    The simplest, most do-nothing program

    View Slide

  15. View Slide

  16. Blinking an LED
    Hardware “Hello World”

    View Slide

  17. View Slide

  18. A simple sensor
    Using a button

    View Slide

  19. View Slide

  20. Reading an analog sensor
    Use the force, Luke

    View Slide

  21. View Slide

  22. Learning more about Arduino
    ● http://arduino.cc
    ● Getting Started with Arduino
    ● http://learn.adafruit.com
    ● http://codebender.cc
    ● Many, many resources on the web!

    View Slide

  23. https://gist.github.com/stonehippo/73c9a4cd84f575a3e128
    Code from this deck

    View Slide

  24. That’s it!
    Go hack some hardware!

    View Slide