Go Down

Topic: Is there a SD Tutorial? (Read 2588 times) previous topic - next topic


Jun 29, 2012, 03:38 pm Last Edit: Jun 29, 2012, 03:57 pm by lax123 Reason: 1
is there something like a complete tutorial for an SD Module like this:

If i need external power supply and all the other things?

I saw a tutorial where the author would use a digi IO pin to power up the SD module. But then i read somewhere writing to sd might use 100mA, isnt that way above the max specs?
I dont want to use a faulty tutorial ending up burning my ardu :-(

is using external 9V power via jack and ardu attached to usb at the same time ok?



You don't need external power.  Looks like it has a built-in 3.3V regulator so you can power it from the +5V pin which can supply about 400 mA.

It's not clear if they support both 3.3V and 5V logic.  Doesn't look like enough resistors to do that and they don't provide a schematic.  The Arduino inputs will work with 3.3V logic and the SD-card inputs will probably work if you put a voltage divider on each.  Two 1k resistors in series between the Arduino output pin and Ground.  The signal between the two resistors (2.5V) should be safe for the SD-card inputs.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


Jun 30, 2012, 01:32 pm Last Edit: Jun 30, 2012, 04:42 pm by lax123 Reason: 1
thx for the reply,

i found a schematic. Do i still need those extra resistors for a voltage divider, can u see that?

If i wouldnt use a divider if needed, what would happen? Destroying the SD card?

You say "supply about 400mA", would that not overload usb? i think i read somewhere it would shut down at 300mA by fuse in the ardu.


The USB fuse in the Arduino is 500mA.  The Arduino itself uses less than 100 mA leaving 400 mA for various peripherals.

I don't know if SD card inputs are supposed to be 5V-tolearant or not.  If not, using a 5V signal on them might well destroy them.  Most shields with SD sockets provide some sort of level shifter.

You could power your Arduino on 3.3V but then you would have the problem of 16 MHz be out-of-spec for 3.3V power. :(

Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


so you would strongly advise me to use the divider?
i only have 1k resistors, would that be sufficient? i also have somewhere 100k i think, that would be better, right?

Im just wondering why there r like 30 sellers on ebay for exactly this sd module without anyone mentioning that u d need some external things like resistors to make it properly work. so i guess like 90% would just connect it to ardu like every other sd module with lvl shifters...


The specification for SD cards is

Supply voltage, Vdd, in the range 2.7 - 3.6 volts.

Voltage on all signal lines from -0.3 V to Vdd + 0.3 V.

Logic levels on input lines:

Input high voltage 0.625*Vdd to Vdd + 0.3.

Input low voltage -0.3 to 0.25*Vdd.

You need level converters to convert the Arduino outputs Chip Select, SCK, and MOSI to this range.

Resistor voltage dividers do not perform well on many cards since they have long rise/fall times.  IC level converters are preferred since they work better with cards that use edge detectors.

No level converter is needed for the Arduino input MISO.



does that mean i can try with dividers, and if it doesnt work i can put the whole module into the garbage?


Without anything additional its working with 5V, but i dont want to risk damaging the sd card.

I tried voltage dividers for the lines CS, MOSI and SCK -1,8K and 3,3K. For the first 2 lines its ok, but as soon as SCK gets its divider it stops working.

What could i try to make it work?


Jul 04, 2012, 12:10 pm Last Edit: Jul 04, 2012, 12:30 pm by lax123 Reason: 1
using 1k and 2,2k for SCK 3,44V divider and its working like a charm :-)

btw how freaking awesome r fat16libs expample progs :-)

using 5V or 3,3V dividers except for SCK line: Quickstart: everyting is great
Eventlog ( guess cause its trying to write to SD ): error, error and garbage files


i altered a schematic.

It shows how this sd module started to work perfectly for me.

I hope this can help someone else in future, that is facing the same issue.
Please notify me if i made a mistake.


Jul 25, 2012, 12:19 am Last Edit: Jul 25, 2012, 12:21 am by Checkers1811 Reason: 1
I would not recommend the use of resistor dividers for the SD card. You can read about this kind of design and the instances of burned up SD memory on the LadyAda site.

The right way to do this is toe use four MOS-FETs as a level shifter for SS, MISO, MOSI and SCK lines.
There are also ICs that will suffice.



Looking to make my sdcard to work with ADPmicroSD from www.propox.com with any library i found.
What is strange he use 4 line level shifter and looking at http://www.ladyada.net/make/logshield/ they dont use lvl shifter for all 4 line just 3 and let MISO w/o lvl shifter as long the line is IN for my Ardruino Mini Pro 5v 16mhz and as long the sdcard is powered by 3.3v the in will not go over the capability of Amtel328p.
I dont know if this make my board to dont recognize any micro sdcard i have around me (2x2G, 1x8, 1x16) all give me same answer.
I will wait to get my cheap SDcard breackboard with resistor divder (for 2usd it worth to try) and 3.3 regulator.

Go Up