I installed the CardInfo sketch and got this result:
Initializing SD card...Wiring is correct and a card is present.
Card type: SD1
Volume type is FAT12
Volume size (bytes): 14860288
Volume size (Kbytes): 14512
Volume size (Mbytes): 14
Files found on the card (name, date and size in bytes):
The files on the card are not displayed.
My other SD card was not regognized (initialization failed).
I tried the standard SD library and the one from adafruit. Although, I didnt get to run this one.
The problem is: No other sketch (Datalogger, etc) works. I always get something like initialization failed. SD.begin() always returns false.
With only power and ground connected, I measure 3.3V between GND and the signal pins of the SD module.
Do I need to do some kind of logic level converting? Can I use a 74HC244 for that?
Does the CardInfo sketch prove that the SD module is working? I read in another thread that it works.
What is the easiest way to get this to run? Should I rather buy a new SD module or a 74HC244?
hi,
the lib shows at least something, so basically I´d assume that hardware wiring is ok, i only read that you need level shifters when connecting a 5v based arduino to the Sd, which requires 3.3V. I wonder that you connected CS to pin 3, often the libraries expect this on pin 10 .
Is the size of 14mb correct?
Usually fat16 is recommended and filenames with 8.3 format (other files are not shown). Depending on the library u r using, no subfolders will be shown.
try with a fresh fat16 formatted SD card (look for a valid formatter in this forum) and put a simple text file on it like test.txt containing only some words.
post your sketch, maybe we see sthg in the code
Based on what I see on the pictures you have provided there is none level translator for a 5V operation on the sdcard board visible. I can see a few 10k resistors (pullups probably) and 100ohm resistors (?).
With 5V Uno you need a level translator, a resistive divider would be ok. A schematics of the sdcard board may help, if available..
you need level shifters when connecting a 5v based arduino to the Sd
Thats just what Im trying to do. So, do I need a level shifter?
The CS pin is connected to pin 4 on the Arduino, because it said so in the code. I get the same results with pin 10.
Is the size of 14mb correct?
The SD card is a 16MB card. I formatted it with Windows Explorer. What is the best way to format it or to check how it is formatted? What exactly do I have to select when formatting the SD card? Is FAT the same as FAT16?
A schematics of the sdcard board may help, if available..
Unfortunately, I couldnt find any schematics or other information about the SD board.
With 5V Uno you need a level translator, a resistive divider would be ok.
How will I do this? With a 74HC244 or other hardware? How do I have to wire it?
filenames with 8.3 format (other files are not shown)
So "test.txt" in the root directory should be shown, right?
can you send a pic of the other side of your SD module ? As there are pins reading '3.3v' I assume that there´s a level switcher onboard. On the module I´m using there´s a selector on the other side of hte board. But as you got at least the SD size correctly displayed, I´d still assume that hardware is fine.
Formatting in windows worked for me, choose Fat or Fat16. Sometimes folks recommend this formatter: Redirect Notice
So "test.txt" in the root directory should be shown, right?
absolutely
can you send a pic of the other side of your SD module ? As there are pins reading '3.3v' I assume that there´s a level switcher onboard. On the module I´m using, there´s a selector on the other side of the board. But as you got at least the SD size correctly displayed, I´d still assume that hardware is fine.
Formatting in windows worked for me, choose Fat or Fat16. Sometimes folks recommend this formatter: Redirect Notice
So "test.txt" in the root directory should be shown, right?
absolutely
ams1117 is at least a 3.3V regulator (google for AMS1117 3.3V 1A Voltage Regulator)
Did you already try any other SD card?
Did you use exactly the cardinfo example from the lib or a modification thereof ? If you do lots of additional things in your script you just may get memory overruns.
Does any of the other standard examples work, did you try that already ?
[quote author=Robert Getzner link=topic=160269.msg1199694#msg1199694 date=1365875506]
Did you already try any other SD card? [/quote]
Yes, I have tried a 2 GB one. With this one, not even the CardInfo sketch works.
Did you use exactly the cardinfo example from the lib?
Yes.
If you do lots of additional things in your script you just may get memory overruns.
Does any of the other standard examples work, did you try that already ?
Uno (MISO)<------------------------ sdcard's output (DO)
I'm getting a different output with the CardInfo sketch:
Initializing SD card...Wiring is correct and a card is present.
Card type: SD1
Could not find FAT16/FAT32 partition.
Make sure you've formatted the card
hm. I think wiring is ok, or you would get no feasible output from cardinfo at all.
Did you already try the SD formatter https://www.sdcard.org/downloads/formatter_3/ and with both cards ?
Another potential issue could be the power source, if you are powering through USB potentially power consumption of the SD could be too high. Try an extra power source for the arduino (just came across this hint @ Micro SD card Tutorial - using SD cards with an Arduino!)
In setup() of the sketch you coud add a Serial output that arduino is still running; if it 'crashed' somehow this could give some other hints.
P.S: this remote analysis is difficult, we could use a google hangout and have a look
Yes, I tried SD formatter.
I used both pin 4 and 10 for CS. Removing the CS wire makes the CardInfo sketch not work.
I tried with an external power source.
This might be an issue with the SD card.
I just tried the one from my phone with this result:
I'm not sure if the size is detected correctly. It's a 16 GB card.
Initializing SD card...Wiring is correct and a card is present.
Card type: SDHC
Volume type is FAT32
Volume size (bytes): 3028811776
Volume size (Kbytes): 2957824
Volume size (Mbytes): 2888
Files found on the card (name, date and size in bytes):
LOST.DIR/ 2013-02-06 17:26:10
INGRESS2.ZIP 2013-02-06 21:19:40 27689027
AURA/ 2012-10-05 23:49:22
DATABASE.XML 2012-10-05 23:33:22 430968
ANDROID/ 2013-02-10 15:34:40
SETTINGS.DAT 2013-02-10 15:34:40 9540
KEYMAP.INI 2012-10-05 23:33:32 267
CORE3D.INI 2012-10-05 23:33:32 2376
SETTINGS.INI 2012-10-05 23:33:32 2064
SOFTWARE.INI 2012-10-05 23:33:32 240
M@PS/ 2013-02-10 15:32:30
CGEO~1/ 2012-10-08 18:13:34
(................)
I will try and find more SD cards and do further investiagtion with the other sketches and report the results.
UPDATE:
Datalogging works as well. \o/
I'm still wondering why it doesnt work with the other SD cards.
I can read and write them with my PC without any problems. I tried all kinds of formatting programms.
Any idea?
Please confirm that this is correct (Windows file formatting dialog):
File system: FAT
Allocation unit size: 32K
Quick format: disabled
And: I assume that this will also work without all the resistors (6 resistors, as proposed above, and I didnt have the right ones so I need to use more).
Can the card be damaged if I remove the resistors?
Puh, I'm glad it worked - I was running out of ideas
Interesting that it works with a 16GB sd Card, the limits are usually told to be 2GB.
Maybe it's not reliable as cardinfo also shows the wrong size.