If you are looking for the Chapter 13 content for the 2nd Edition of Exploring Arduino, please click here.
Data Logging with SD Cards
Parts List
- Arduino Uno
- A-B USB Cable
- Power Supply (9V/holder, USB Power Adapter, or AC/DC Adapter)
- Sharp GP2Y0A41SK0F IR Distance Sensor with Cable
- Real-Time Clock Breakout (or self-assembled RTC circuit) (Not needed if using Adafruit Data-Logging Shield)
- SD card Shield & SD Card (Cooking-Hacks MicroSD Shield, Adafruit MicroSD Breakout, Arduino Ethernet Shield, Adafruit Data-Logging Shield, Seeed Studio SD Card Shield V4, or SparkFun MicroSD Shield)
- Jumper Wires
- Breadboard
- Computer with SD Card Reader
Code
Download Code (1st Edition, Chapter 13)
(Also available on GitHub)
Useful Links
- Arduino SD Library Reference
- RTCLib Real-Time Clock Library Download
- Sharp IR Distance Sensor Datasheet (PDF)
- Pre-formatted Google Spreadsheet for Graphing Logged Data
Color Wiring Diagrams
Videos
Follow along with this video tutorial about data logging:
Follow along with this more advanced video tutorial about logging GPS data: