Hardware Reference
In-Depth Information
SparkFun MicroSD shield ( www.exploringarduino.com/parts/spark-
fun-microSD-shield ) : This shield is, like the Cooking Hacks shield, is a
minimalist shield that only has an SD card slot. However, it also has a
prototyping area to allow you to solder on additional components. It con-
nects the SD card's CS pin to pin 8 on the Arduino, so you must specify
this when using the SD card library with this shield (see Figure 13-12).
Figure 13-12: SparkFun MicroSD shield
SDCardSPIInterface
As mentioned earlier, your Arduino communicates with the SD card over an
SPI interface. This necessitates the use of a MOSI (master output, slave input),
MISO (master input, slave output), SCLK (serial clock), and CS (chip select) pin.
You use the SD card Arduino library to complete the following examples. It
assumes that you are using the hardware SPI pins on your Arduino and either
a default or custom CS pin. The SD card library must have the default CS pin
set as an output to function correctly, even if you are using a different CS pin.
In the case of the Uno, this is pin 10; in the case of the Mega, this is pin 53. The
following examples use the Uno with the default CS pin 10.
Search WWH ::




Custom Search