I bought an SD card adapter on ebay but could not get it to communicate with my Arduino Mega2560 using the Arduino IDE 1.0.1 "CardInfo" sketch. The adapter has "http://www.lcsoft.net
" and "LC STUDIO" printed on the back.
I made an accidental breakthrough. To make a long story short, there is apparently something wrong with the labeling and/or wiring of the voltage supply pins on the adapter. The pin labeled "+3.3v" on the adapter must be jumpered to Arduino pin "+5v".From top to bottom on the adapter:
|adapter pin||<-->||Arduino pin|
|CS|| ||pin 53|
|MOSI|| ||pin 51|
|SCK|| ||pin 52|
|MISO|| ||pin 50|
So far, I have only tried two older SD cards (no SDHC cards) and both work. One is a 512MB SanDisk card, the other is a 512MB SanDisk Ultra II card.
I get one of the following outputs in the Serial window with the three other supply voltage combinations (+3.3v <--> +3.3v, +5v <--> +3.3v, +5v <--> +5v):
Initializing SD card...Wiring is correct and a card is present.
Card type: SD1
Could not find FAT16/FAT32 partition.
Make sure you've formatted the card
Initializing SD card...initialization failed. Things to check:
* is a card is inserted?
* Is your wiring correct?
* did you change the chipSelect pin to match your shield or module?