Hi,
I have an Arduino Pro Micro 3.3v/8MHz connected to Sparkfun’s Breakout Board for microSD Transflash. The connections go like this:
Pro Micro microSD Breakout
VCC -----------> VCC
GND -----------> GND
10 ------------> CS
16 ------------> DI
14 ------------> DO
15 ------------> SCK
The CD pin is not connected.
I’m following Ladyada’s excellent MicroSD tutorial: http://www.ladyada.net/products/microsd/
Using the Ladyada SD library in Arduino 1.0.1, I opened the CardInfo example sketch. I changed the chipSelect pin variable to 10.
After a successful upload and starting the Serial Monitor, I get the error that “initialization failed” and no card was found. Meh.
This forum post in the Sparkfun forums (viewtopic.php?f=32&t=32037) led me to believe this is a problem with the Slave/Chip Select pin configuration. Since the CS/SS pin on the Arduino Pro Micro is not broken out to the pins, I have to use another pin.
I tried to use another SD card library (the solution at the bottom of the forum post), but to no avail. Still no happiness.
What can I do to interface with my microSD card over SPI with the Arduino Pro Micro?
Thanks for the help in advance.