Hello all, I've had problems using the SD part of my LCD attachment. My setup is a Mega 2560, a TFT LCD Mega Shield v1.2, and a 3.2" Touch Screen LCD. I already had a thread about it here: TFT LCD Works, SD doesn't - Displays - Arduino Forum I decided to take time off of it to work on another project, and now decided to pickup where I left off. (sorry for the long post)
Just trying to use the SD Card Info sketch (modified for the mega, and my shield)
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?
Through some research I discovered that apparently alot of the TFT LCD Mega Shield's were incorrectly designed. So after following the instructions here SainSmart | Desktop CNC, 3D Printing & DIY Tools | Power to the Makers – SainSmart.com Now it will at least initialize the card but then it says:
Initializing SD card...Wiring is correct and a card is present.
Card type: SD2
Could not find FAT16/FAT32 partition.
Make sure you've formatted the card
If I remove the LCD Breakout board (not the shield, just the breakout) and attach a separate SD breakout board (The one mentioned in the previous thread) using jumper wires, with the same SD card, formatted the same way it works fine:
Initializing SD card...Wiring is correct and a card is present.
Card type: SD2
Volume type is FAT32
Volume size (bytes): 1971351552
Volume size (Kbytes): 1925148
Volume size (Mbytes): 1880
Files found on the card (name, date and size in bytes):
PIC302.RAW 2011-01-29 02:40:18 153600
PIC303.RAW 2011-01-29 02:40:28 153600
PIC304.RAW 2011-01-29 02:40:38 153600
PIC305.RAW 2011-01-29 02:40:50 153600
PIC306.RAW 2011-01-29 02:41:00 153600
PIC307.RAW 2011-01-29 02:41:10 153600
PIC308.RAW 2011-01-29 02:41:20 153600
PIC309.RAW 2011-01-29 02:41:30 153600
PIC310.RAW 2011-01-29 02:41:38 153600
TEST1.BMP 2012-10-17 09:36:12 77878
TEST2.BMP 2012-10-17 09:36:26 77878
TEST3.BMP 2012-10-17 09:36:38 77878
TEST4.BMP 2012-10-17 09:36:48 77878
TEST5.BMP 2012-10-17 09:37:04 77878
TEST6.BMP 2012-10-17 09:37:16 77878
TEST7.BMP 2012-10-17 09:37:26 77878
TEST8.BMP 2012-10-17 09:37:38 77878
TEST9.BMP 2012-10-17 09:37:54 77878
FILE.DAT 2012-10-17 11:27:58 49
PIC301.RAW 2011-01-29 02:40:08 153600
Does anybody know what the issue may be?
The LCD breakout is connected as shown below(all resistors are 10k) the numbers are (Shield Pin Number - Arduino Pin number)
Thanks -Brad