You are here

Simple SD Card Read/Write Setup

Read and Write Data to a micro SD card from your arduino. 

This is a rudimentary micro SD data logger built with a 74LVC245 buffer, a LD33V voltage regulator (both available in the lab), and a cheap microSD card and adapter (available at Fry's or online). The underlying code reading and writing to the library is from here code.google.com/p/sdfatlib/, and my design builds from designs here www.ladyada.net/make/logshield/ and here store.gravitech.us/sdcaad.html. (gravitech uses the 74LVC245 as a level-shifting buffer, ladyada uses a 74AHC125.

The sdfatlib communicates with the sdcard using SPI communication. The dedicated pins for this on the Atmega328 are:

SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK).

These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language. (see http://www.arduino.cc/en/Main/ArduinoBoardDiecimila)

dataLoggerTest.pde