hu9867
February 22, 2016, 9:43am
1
Hi,
I am using a 5'' lcd display, arduino Mega and
this shield. I have attached a 2GB FAT SD card into this shield
The libraries i am using are <tinyFAT.h> <UTFT.h> <UTFT_tinyFAT.h> and i use the Demo_Landscape example to test my 5" lcd display
However, the screen just show "File not found..."
I would be glad if anyone could help in this matter
Thanks and regards
hu9867
February 24, 2016, 7:05am
3
i tried using the UTFT_SdRaw library
the serial monitor shows the following :
Initialising SD card...
Card failed, or not present
Retrying....
but the SD card was put in the SD slot
Does any specification restrictions for the SD card?
Thanks!
c0rsa1r
February 24, 2016, 7:41am
4
Did you set the right pin of the sd card reader?
hu9867
February 24, 2016, 9:04am
5
My arduino shield datasheet said that "SD Card Chip Select Signal, Arduino Board Digital IO 47"
So i changed the #define SD_CHIP_SELECT 53 to #define SD_CHIP_SELECT 47
but it still not working
Hi hu,
If you are sure you have the correct SD_CHIP_SELECT pin, the only other likely problem is SPI speed.
Find this line if (!sd.begin(SD_CHIP_SELECT, SPI_FULL_SPEED)) {
.
Where it says SPI_FULL_SPEED, you can try SPI_HALF_SPEED, SPI_QUARTER_SPEED or SPI_EIGHTH_SPEED.
Clearly you want the fastest that works reliably as the slower the SPI speed, the slower your images will be drawn.
Hope this helps.
Regards,
Graham
hu9867
February 25, 2016, 8:01am
7
I tried SPI_HALF_SPEED, SPI_QUARTER_SPEED and SPI_EIGHTH_SPEED
But still said
Initialising SD card...
Card failed, or not present
Retrying....
Is my SD card's problem?
How are you connecting your display to the Arduino? Either there is a 'jumper' somewhere that needs enabling, you have something wrong with your wiring, or something is faulty. That is the only conclusion I can make at this point.
Regards,
Graham