Reading SD card with Arduino Mega via the Data logging shield V1.0 (Deek-Robot)

I tried a lot of stuff to make it work, but i keep getting this message:

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?

I formatted the sd card to 32FAT (8GB storage)
And read that i needed to use pin 10, 11, 12 and 13 as chipselect
And tried 10 and 53 for the SS pin

CardInfo.ino (3.62 KB)

Have you tried to see if it works with card below 4GB?

Did you format the card in the kosher manner? see sticky at the head of the forum.

Also, SD uses the SPI bus which is not pins 10,11,12 on a Mega. If your shield uses the ICSP cluster, this is taken care of. If not, you need to to do so, or contrive to use the Mega SPI bus pins 50>53.