Hi,
I want to use the Adafruit Dataloging Shield RevB with an adruino Mega R3 to store some sensor values.
Both are new and never used before.
I tried a few example sketch for the RTC, they worked all fine. But I could not get any sketch working with the SD card.
I tried to get some more infos with the sdInfo.ino form the this repository -https://github.com/greiman/SdFat/blob/m ... SdInfo.ino
which gave me the following serial output:
09:25:41.163 ->
09:25:41.163 -> Disabling SPI device on pin 10
09:25:41.196 ->
09:25:41.196 -> Assuming the SD chip select pin is: 53
09:25:41.261 -> Edit SD_CS_PIN to change the SD chip select pin.
09:25:41.294 ->
09:25:41.294 -> type any character to start
09:25:44.696 ->
09:25:44.696 -> SD initialization failed.
09:25:44.727 -> Do not reformat the card!
09:25:44.759 -> Is the card correctly inserted?
09:25:44.792 -> Is there a wiring/soldering problem?
09:25:44.857 -> Is SD_CS_PIN set to the correct value?
09:25:44.891 -> Does another SPI device need to be disabled?
09:25:44.923 -> SD errorCode: SD_CARD_ERROR_CMD0 = 0x1
09:25:44.989 -> SD errorData = 0xff
I tried several aproaches from this forum and other sources but without succes. Any help is apreciated.
Regards,
Philipp
Adafruit Dataloging Shield RevB - Arduino Mego R3 - SD Card not working
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- PhilippHuettlin
- Posts: 4
- Joined: Fri Feb 03, 2023 4:23 am
Adafruit Dataloging Shield RevB - Arduino Mego R3 - SD Card not working
- Attachments
-
- CompressJPEG.online_800x600_image_1.jpg (93.19 KiB) Viewed 505 times
-
- CompressJPEG.online_800x600_image _2.jpg (94.48 KiB) Viewed 505 times
-
- CompressJPEG.online_800x600_imag_3.jpg (108.42 KiB) Viewed 505 times
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit Dataloging Shield RevB - Arduino Mego R3 - SD Card not working
When running the test sketch, do you see any activity on the SD LED? (at the edge of the board between the SD card holder and the battery)
- PhilippHuettlin
- Posts: 4
- Joined: Fri Feb 03, 2023 4:23 am
Re: Adafruit Dataloging Shield RevB - Arduino Mego R3 - SD Card not working
thanks for reaching out,
when running the test sketch the led blinks once everytime the sketch is executet. When an SD card is inserted.
Wihtout a SD-card the led is on for 1-2 seconds eveytime the sketch is executed.
regards,
Philipp
when running the test sketch the led blinks once everytime the sketch is executet. When an SD card is inserted.
Wihtout a SD-card the led is on for 1-2 seconds eveytime the sketch is executed.
regards,
Philipp
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit Dataloging Shield RevB - Arduino Mego R3 - SD Card not working
Do you have another SD card to test with? The two most common issues with these boards are soldering problems (yours looks fine) and card compatibility.
SPI is an 'alternative' interface on SD cards and sometimes we encounter timing issues with the implementation
on some cards.
SPI is an 'alternative' interface on SD cards and sometimes we encounter timing issues with the implementation
on some cards.
- PhilippHuettlin
- Posts: 4
- Joined: Fri Feb 03, 2023 4:23 am
Re: Adafruit Dataloging Shield RevB - Arduino Mego R3 - SD Card not working
I don't have one on hand right now but I will look for an alternative SD card to use and keep you updated.
- PhilippHuettlin
- Posts: 4
- Joined: Fri Feb 03, 2023 4:23 am
Re: Adafruit Dataloging Shield RevB - Arduino Mego R3 - SD Card not working
Hi,
I tested it with another, smaller SD card and it looks like it is working for now.
For testing it is fine but for final use I would like to use a bigger one.
Do you have recommendations for SD card specifications that will ensure the board works reliably with it?
I tested it with another, smaller SD card and it looks like it is working for now.
For testing it is fine but for final use I would like to use a bigger one.
Do you have recommendations for SD card specifications that will ensure the board works reliably with it?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit Dataloging Shield RevB - Arduino Mego R3 - SD Card not working
Not sure how much capacity you need. But the 16G SanDisk Ultra works.
https://www.adafruit.com/product/2693
https://www.adafruit.com/product/2693
Please be positive and constructive with your questions and comments.