By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot Intro to Arduino By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot (c) Rick Darby 2013. All rights reserved. (c) 2013 Rick Darby. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Geekspace Gwinnett Makerspace One year old 150+ meetup members http://www.meetup.com/Geekspace-Gwinnett/ (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Course Main Objective Add Arduino maker skills to your repertoire (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. In other words: Make a maker out of you! (c) Rick Darby 2013. All rights reserved.
Specific Objective: Use an Arduino to … Sense switch input temperature input light input Control lights various devices (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. The Process Learn Build Do (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Arduino Uno (c) Rick Darby 2013. All rights reserved.
Not just a computer – a platform Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists and anyone interested in creating interactive objects or environments. (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Key Components CPU RAM NV Memory Standardized HW Interface Bootloader USB programming interface (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Getting Started Arduino Family Arduino Uno Setup SW Power Options Interfacing (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Arduino Family Arduino Uno Arduino BT Arduino Due Arduino Fio Arduino Leonardo and Micro Arduino Esplora LilyPad Arduino USB LilyPad Arduino Arduino Mini Arduino Nano Arduino Pro Arduino Pro Mini Arduino Robot Arduino Yún (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Arduino Uno Specs ATmega328 running at 16 MHz Auto-reset Using the optiboot bootloader At 115200 baud, 0.5 KB (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Tools (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Software Arduino Development Environment Specific to Arduino http://arduino.cc/en/Guide/HomePage Arduino Libraries “Sketches” C/C++ language (c) Rick Darby 2013. All rights reserved.
Arduino Development Environment Text Editor - to write and modify sketches Verify – checks for errors Upload – loads code into Arduino board New – creates a new sketch Open – get sketches from sketchbook Save – saves your sketch Serial Monitor – opens up a realtime communications port to your Arduino board (c) Rick Darby 2013. All rights reserved.
Closer Look at the Board Adpated from arduino.cc (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Do’s & Don’ts (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Well mostly don’ts! (c) Rick Darby 2013. All rights reserved.
10 |Ways to Kill an Arduino* Quick Links: Method #1: Shorting I/O Pins to Ground Method #2: Shorting I/O Pins to Each Other Method #3: Apply Overvoltage to I/O Pins Method #4: Apply External Vin Power Backwards Method #5: Apply >5V to the 5V Connector Pin Method #6: Apply >3.3V to the 3.3V Connector Pin Method #7: Short Vin to GND Method #8: Apply 5V External Power with Vin Load Method #9: Apply >13V to Reset Pin Method #10: Exceed Total Microcontroller Current * From Ruggedcircuits.com (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Let’s Do Something! Get connected up USB cable Power source Run arduino.exe Configure board (Uno) Serial Port (usually COM4 for USB) Load “blink” Upload blink Modify blink Run again (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Using a breadboard Adapted from learning.codasign.com (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Workstations Digital output Digital Input - switches Sound Reading Analog Signals Using an LCD (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Digital Inputs http://www.arduinobook.com Input: Sketch 6_02 and 3 wires Wire D5 to your finger Wire D5 to +5V Wire D5 to GND Debouncing: Sketch 6_04 (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Digital Outputs Upload Sketch 6_01 Modify int outPin = 4; to int outPin = 13; Run Open Serial monitor Enter 1 and then 0 from laptop (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Sound http://www.arduino.cc/en/Tutorial/PlayMelody Example 2. Connect red lead of piezo to D9 Connect black lead of piezo to GND Copy code into Arduino editor Save and Upload (If no piezo, use 1K resistor in series for 8 ohm speaker) (c) Rick Darby 2013. All rights reserved.
Reading Analog Signals Output: Sketch 6_09 and 1 wire Wire A0 to +5V, ck Serial Monitor, then disconnect Wire A0 to GND, ck Serial Monitor, then disconnect Wire A0 to 3.3V, ck Serial Monitor, then disconnect http://arduino.cc/en/Tutorial/AnalogReadSerial 3 Wires and potentiometer (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. Using a Serial LCD Do NOT run this on USB power only: connect 9V power! Attach pot as in http://arduino.cc/en/Tutorial/AnalogReadSerial Test that pot is being read correctly Download AnalogSerPrtQS.ino from http://Stalkingthemuse.com/introarduino uploads section Use breadboard and jumpers LCD red lead is +5V LCD black lead is GND LCD yellow is D2 (c) Rick Darby 2013. All rights reserved.
(c) Rick Darby 2013. All rights reserved. References http://www.Arduino.cc Programming with Arduino Getting Started with Sketches by Simon Monk http://www.arduinobook.com http://www.doctormonk.com http://www.Adafruit.com http://www.Ruggedcircuits.com http://Learning.codasign.com (c) Rick Darby 2013. All rights reserved.