The SD card is not being initialized after uploading the CardInfo sketch.
The following error is produced:
"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?"
The card is inserted and has been formatted by a microSD adapter.
Furthermore, the wiring is correct because I can take a picture.
As for the code, I've assigned the value of 4 to the chipSelect variable, and (as other forum members have done) added 'digitalWrite(10, HIGH)' after the line 'pinMode(10, OUTPUT)'.
I've had this code to work before, but now it isn't. Can anybody find out why? Any comments will be appreciated.
SD card failing to Initialize
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 564
- Joined: Wed Jun 19, 2013 3:35 am
Re: SD card failing to Initialize
At least you can take photos! ....just no saving them, eh?
Here's some good info about using SD cards w/ Arduino -
http://arduino.cc/en/Reference/SDCardNotes
How did you format the SD card? On Windows or Mac? Did you use 'official' format tool?
https://www.sdcard.org/downloads/formatter_4/
Can choose Windows or Mac download from menu on left of screen.
If none of that helps, could you share a little more information with us?
I think I remember seeing that you were using an Arduino Mega, Ethernet Shield (w/ SD), and the TTL camera from an earlier post. Is that correct? That's a lot of possible connections, variables, and code changes in play.
Could you please post the version of the CardInfo sketch you are having trouble with?
You can click the "Code" icon, then just paste between the tags that appear.
And maybe either a clear photo or good description of which pins are connected to what?
Thanks!
Here's some good info about using SD cards w/ Arduino -
http://arduino.cc/en/Reference/SDCardNotes
How did you format the SD card? On Windows or Mac? Did you use 'official' format tool?
https://www.sdcard.org/downloads/formatter_4/
Can choose Windows or Mac download from menu on left of screen.
If none of that helps, could you share a little more information with us?
I think I remember seeing that you were using an Arduino Mega, Ethernet Shield (w/ SD), and the TTL camera from an earlier post. Is that correct? That's a lot of possible connections, variables, and code changes in play.
Could you please post the version of the CardInfo sketch you are having trouble with?
You can click the "Code" icon, then just paste between the tags that appear.
And maybe either a clear photo or good description of which pins are connected to what?
Thanks!
- arduinonewb13
- Posts: 60
- Joined: Sat Nov 16, 2013 8:48 pm
Re: SD card failing to Initialize
1chicagodave wrote:At least you can take photos! ....just no saving them, eh?
Here's some good info about using SD cards w/ Arduino -
http://arduino.cc/en/Reference/SDCardNotes
How did you format the SD card? On Windows or Mac? Did you use 'official' format tool?
https://www.sdcard.org/downloads/formatter_4/
Can choose Windows or Mac download from menu on left of screen.
If none of that helps, could you share a little more information with us?
I think I remember seeing that you were using an Arduino Mega, Ethernet Shield (w/ SD), and the TTL camera from an earlier post. Is that correct? That's a lot of possible connections, variables, and code changes in play.
Could you please post the version of the CardInfo sketch you are having trouble with?
You can click the "Code" icon, then just paste between the tags that appear.
Ok, thanks for responding!!!!! It works again. I re-downloaded the Arduino IDE. I will most definitely message you if any other errors occur, and yes, that list of equipment that you mentioned is correct.
THANKS AGAIN!!!
And maybe either a clear photo or good description of which pins are connected to what?
Thanks!
- arduinonewb13
- Posts: 60
- Joined: Sat Nov 16, 2013 8:48 pm
Re: SD card failing to Initialize
I didn't mean to add your quote I'm still new to this!
Please be positive and constructive with your questions and comments.