Initializing SD card...initialization failed error

Been trying to work with, a micro sd card module, no luck. I keep getting the above error I'm using the cardInfo example of the sd library. I've changed sdcard modules twice now, same for the sd cards

Read the forum guidelines.
Post your test code.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Post a schematic of your wiring.

Also, what SD cards are you trying?

This is my circuit schematic, I was actually trying to build a datalogger but couldn't get the sd card module to work. I then tried the cardinfo example but to no avail, I am also using a 2GB sd card

Can you post a SCHEMATIC, no that daft fritzing thing!

The cardinfo sketch uses pin 4 for chip select, did you change that to pin 10?

Yes I already did that

I had a lot of SD card trouble.
Things to do i) format the sd card, I used SD Formatter: Restore Full Capacity on SDHC/SDXC Cards
ii) I added a 100uF capacitor to the supply near the SD card, BUT your sd board should already have its supply sorted out.

Finally I found that once the SD card failed to start, I could only recover by power cycling the SD board (or the whole system)

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.