If you are looking for the Chapter 6 content for the 2nd Edition of Exploring Arduino, please click here.
USB and Serial Communication
Parts List
- Arduino Uno
- Arduino Leonardo
- USB A-B Cable
- USB A-Micro B Cable
- Red LED
- Common Cathode RGB LED
- 150Ω Resistor
- 220Ω Resistor (x3)
- 10kΩ Resistors (x2)
- Pushbutton
- Photoresistor
- TMP36 Temperature Sensor
- Two-Axis Joystick
- Jumper Wires
- Breadboard
- Potentiometer
Code
Download Code (1st Edition, Chapter 6)
(Also available on GitHub)
Useful Links
- FTDI Driver Downloads
- Arduino Serial Library Reference
- PuTTY Serial Terminal Download
- Arduino parseInt() Function Reference
- Processing Download Page
- SudoGlove Processing Debugger Application
- Installing Leonardo Drivers
- Arduino millis() Function Reference
- Arduino Modulo Operator Reference
- Arduino Leonardo Mouse and Keyboard Library References
- List of Arduino Special Keys (for the Keyboard Library)
- TMP36 Datasheet (PDF)
Errata
Code errata listed below are corrected in the code downloads available from this page, and from github.
- In code listing 6-9, the pinMode comment in setup() incorrectly stated that the LED was blue when it should actually be red.
Color Wiring Diagrams
Videos
Follow along with this video for a visual tutorial on serial communication and processing:
Watch a demo of the live temperature and light logger created in the chapter:
Watch a demo of the light-activated computer lock created in the chapter:
Watch a demo of the joystick mouse created in the chapter: