Arduino YL-30 SD Card

I’ve bought two Arduino SD Cards modules from DX.com and didn’t found any info for them – So I decided to try by my self.

Reading a bit about Arduino SD cards i found out that Arduino SD card uses SPI (Serial Peripheral Interface) to communicate with the SD Cards and with Arduino UNO (along with others – except Mega) those PINs are 11, 12 and 13.

SPI connections always have a master (usually a microcontroler) and a slave device.  Typically there are three lines common to all devices (and this SD card reader to):

MISO (Master In Slave Out) The slave line for sending data to the master
MOSI (Master Out Slave In) The master line for sending data to the peripherals
SCK (Serial Clock) The clock pulses synchronize data transmissions generated by the master

More info on the SPI, you can check the Arduino Documentation.

About the SD Card, must be FAT16 or FAT32 formated.

The YL-30 SD Card Reader

YL-30

 

This SD Card reader – Arduino Compatible – has some perks.  All the PINS must be connected, even the 3.3V and +5V.

The wiring will be as follows:

YL-30 SD PINs Arduino PINs
GND GND
MISO 12
SCK 13
MOSI 11
CS 4 (It’s custom to be PIN 4)
3.3V 3.3V
GND GND
+5V 5V

20140502_181343

 

Now, just insert a SD card a let’s start Arduino IDE and write the code from Arduino tutorials about SD Cards – The Code is for a Ethernet Shield with a onboard SD Card – but it works perfectly here.

After compiling and uploading the code to the Arduino, here’s the result (I have no files in the card):

cardInfo

 

And here’s the finished contraption:

20140502_181328

 

4 thoughts on “Arduino YL-30 SD Card

  1. I have the same SD card!
    the step you describe works also in my case.
    But have you tried to create, read and write files?
    Does it work?

    1. Hi !

      I made it work with the examples of Arduino, but I can’t read the SD Card… Don’t know if that’s an SD card problem..

      Using the same examples from Arduino, I can read and write a file, but in my computer I get an error… I’ll find out if is the SD card breakout or the SD Card…

  2. I’ve got the same board. Haven’t connected it yet. Don’t you have to level shift the Arduno’s 5 volt output to 3.3 volts first?

    1. Hi Bill.

      I guess you don’t have to. The SD Card breakout is expecting 5v in the last PIN, so I’ve connected to 5v from Arduino and It read the SD Card and displayed the details.
      I haven’t worked again withe the breakout board since last year, but you can try to connect it only to 3.3v and see if it works.

      Share your thoughts.

      Cheers

Leave a Reply to Bill Sherman Cancel reply

Your email address will not be published. Required fields are marked *