If you are looking for the Chapter 14 content for the 1st Edition of Exploring Arduino, please click here.
Data Logging with SD Cards
Parts List
- Arduino Uno or Adafruit METRO 328
- USB cable (Type A to B for Uno, Type A to Micro-B for METRO)
- Assorted jumper wires
- Sharp GP2Y0A21YK0F IR distance sensor with JST cable
- Adafruit Arduino data logging shield with header pins
- CR1220 12mm 3V coin cell battery
- SD/MicroSD Memory Card (8 GB SDHC recommended)
- 5V 1A USB port wall power supply
- Computer with SD card reader (or USB SD card reader)
- Painter’s tape and/or 3M Command Strips
Code
Download Code (2nd Edition, Chapter 14)
(Also available on GitHub)
Useful Links
- CSV File Type description on Wikipedia
- Adafruit Data Logging Shield – Soldering the Headers
- Arduino SD Library Reference
- RTCLib Real-Time Clock Library Code
- Sharp IR Distance Sensor Datasheet (PDF)
- Pre-formatted Google Spreadsheet for Graphing Logged Data
Videos
Watch a tutorial video that covers some of the datalogging concepts discussed in this chapter:
Watch a tutorial video about logging GPS data: