Go Down

Topic: SD card initialization failed. (Read 967 times) previous topic - next topic

Ranking

Like described in the subject my Arduino tells me that it couldn't open the SD card. My SD card is formatet with Fat16 and it has only 256 MB.
The Code I'm trying to run is the example "CardInfo" from the Arduino IDE 1.0 compiled with the IDE 1.0.

I connected the Arduino and the SD card like here:http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1206874649/8
I changed the cs pin in the exaple to pin 10 because of the wiring above.

And YES the SD card is NOT locked^^.

The whole thing is just for a simple data logger running with 3 3v batteries connected to the VIN. Because of this I have to power the SD card (it uses 3.3V for its logic level) over two more 3,3k and 1,8k resistors for dropping the supply voltage to something arround 3.3V.

Oh, and sorry for my bad english skills.

terryking228

Hi,

SD Cards work only at 3.3V and both the power and I/O levels must be accommodated.   The only thing that worked on every card that ever worked on an Arduino for me was the QuickStart sketch in the SdFAT library. It runs at half of maximum speed: 4Mhz (unless you set it to 8MHz or 2 Mhz) and it runs cards that fail at 8 MHz. I would suggest you always start there.  How-to on that on the Wiki page here: http://arduino-info.wikispaces.com/SD-Cards
Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

markuman


Like described in the subject my Arduino tells me that it couldn't open the SD card. My SD card is formatet with Fat16 and it has only 256 MB.
The Code I'm trying to run is the example "CardInfo" from the Arduino IDE 1.0 compiled with the IDE 1.0.

I connected the Arduino and the SD card like here:http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1206874649/8

Works fine for me. But just with SD Card, MMC failed. Mini/Micro SD never tested.


I changed the cs pin in the exaple to pin 10 because of the wiring above.


So you've edit the example code like that?:  const int chipSelect = 10;   
And CS Pin SD is realy connected to arduino Pin 10 ?



The whole thing is just for a simple data logger running with 3 3v batteries connected to the VIN. Because of this I have to power the SD card (it uses 3.3V for its logic level) over two more 3,3k and 1,8k resistors for dropping the supply voltage to something arround 3.3V.

Can't follow...
why don't you just use 3.3V output from your arduino? more specifically, you don't need external power supply for using sd card with arduino. just arduino is still enough.

Go Up