Quote
zonalimitatore
Ok i do all.
Same things.I ve notice if i inserit the sd in the reader instantly return with "Initializing SD card...initialization failed!"
But if the sd is not inserit,it's like a "Initializing SD card...pause--pause--pause--- initialization failed!"
hmm.. it is indeed strange. It seems like with card installed, there is quickly some kind of response, or connection, but it is very quickly realized that the response can not be used. Unlike when the card is not inserted, then there is not response to the program, and it tries several times, and then only stops, because too much time has passed.
Well, we are back to doing basic fault-finding, and this means eliminating one thing at a time, or only introducing one new step at a time. And testing every link of interface in the chain.
So, can you try with a different card?
I am also thinking if there is something else that uses SPI for communication, so it can be tested that the SPI pins on your arduino works.
I wonder if someone already has made a test sketch, where they use SPI to communicate between two Arduino. As this way fault on one of the arduino pins can be eliminated, and this leaves the wires and connectors, and the SD-card.
Do you happen to have an sd-card holder, so you could solder it to another Arduino, and run the test sketch on this other Arduino?
Depending on this result, it is possible to establish if the card is the faulty part or not.
The computer reads the SD-card through a different method than the Arduino does, so just because the card can be read by a computer, does not test the elements that the Arduino uses.
The easiest thing toi fix, would however be, if it was because of something being wrong with the wires or the connectors to the wires.
I suppose a multimeter could be used for this test. Or a 3V battery and a white LED, or a 1,5V battery and a red LED, because red LEDs use less than 3V to light up.
This way, it would be possible to test if there is actually electric contact through the connectors and wires.