Presentation is loading. Please wait.

Presentation is loading. Please wait.

By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot

Similar presentations


Presentation on theme: "By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot"— Presentation transcript:

1 By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Intro to Arduino By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot (c) Rick Darby All rights reserved. (c) 2013 Rick Darby. All rights reserved.

2 (c) Rick Darby 2013. All rights reserved.
Geekspace Gwinnett Makerspace One year old 150+ meetup members (c) Rick Darby All rights reserved.

3 (c) Rick Darby 2013. All rights reserved.
Course Main Objective Add Arduino maker skills to your repertoire (c) Rick Darby All rights reserved.

4 (c) Rick Darby 2013. All rights reserved.
In other words: Make a maker out of you! (c) Rick Darby All rights reserved.

5 Specific Objective: Use an Arduino to …
Sense switch input temperature input light input Control lights various devices  (c) Rick Darby All rights reserved.

6 (c) Rick Darby 2013. All rights reserved.
The Process Learn Build Do (c) Rick Darby All rights reserved.

7 (c) Rick Darby 2013. All rights reserved.
Arduino Uno (c) Rick Darby All rights reserved.

8 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 All rights reserved.

9 (c) Rick Darby 2013. All rights reserved.
Key Components CPU RAM NV Memory Standardized HW Interface Bootloader USB programming interface (c) Rick Darby All rights reserved.

10 (c) Rick Darby 2013. All rights reserved.
Getting Started Arduino Family Arduino Uno Setup SW Power Options Interfacing (c) Rick Darby All rights reserved.

11 (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 All rights reserved.

12 (c) Rick Darby 2013. All rights reserved.
Arduino Uno Specs ATmega328 running at 16 MHz Auto-reset Using the optiboot bootloader At baud, 0.5 KB (c) Rick Darby All rights reserved.

13 (c) Rick Darby 2013. All rights reserved.
Tools (c) Rick Darby All rights reserved.

14 (c) Rick Darby 2013. All rights reserved.
Software Arduino Development Environment Specific to Arduino Arduino Libraries “Sketches” C/C++ language (c) Rick Darby All rights reserved.

15 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 All rights reserved.

16 Closer Look at the Board
Adpated from arduino.cc (c) Rick Darby All rights reserved.

17 (c) Rick Darby 2013. All rights reserved.
Do’s & Don’ts (c) Rick Darby All rights reserved.

18 (c) Rick Darby 2013. All rights reserved.
Well mostly don’ts! (c) Rick Darby All rights reserved.

19 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 All rights reserved.

20 (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 All rights reserved.

21 (c) Rick Darby 2013. All rights reserved.
Using a breadboard Adapted from learning.codasign.com (c) Rick Darby All rights reserved.

22 (c) Rick Darby 2013. All rights reserved.
Workstations Digital output Digital Input - switches Sound Reading Analog Signals Using an LCD (c) Rick Darby All rights reserved.

23 (c) Rick Darby 2013. All rights reserved.
Digital Inputs 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 All rights reserved.

24 (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 All rights reserved.

25 (c) Rick Darby 2013. All rights reserved.
Sound 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 All rights reserved.

26 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 3 Wires and potentiometer (c) Rick Darby All rights reserved.

27 (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 Test that pot is being read correctly Download AnalogSerPrtQS.ino from uploads section Use breadboard and jumpers LCD red lead is +5V LCD black lead is GND LCD yellow is D2 (c) Rick Darby All rights reserved.

28 (c) Rick Darby 2013. All rights reserved.
References Programming with Arduino Getting Started with Sketches by Simon Monk (c) Rick Darby All rights reserved.


Download ppt "By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot"

Similar presentations


Ads by Google