SD card

Hi everybody

I would like read a file on SD card, but it’s not working

I’m using a new SDHC card 30Mb/s Sandisk (it work on my computer)

I’m using Due or Uno

I’m using Sparkfun Board for SD-MMC :

I tried with librairy on Arduino software (the exemple : Cardinfo) and SdFat, nothing work

I formated my card in FAT32

Still nothing

Can you help me, Rootage on picture for Uno and Due i use ISCP port for MISO, MOSI, and Clock (port 4 for Chip Select)


Sorry i’m French, Bleu = Blue
Vert = Green

Hello Minicarpet.
Do you still having SD card issues?
SDHC cards should work OK and without problems on UNO or DUE. Most of the time is a software issue.
AN easy way to know this is to backup your current Arduino IDEs (UNO and DUE) and install fresh ones again.


I got the lastet update of Arduino software,

My Due and Uno work.

I didn't try with SD card, but i bought it to test this.
Thank you for your answer :wink:

Hello Minicarpet I am sending you a chunk of comments from a program that I am adapting from a Uno to the Due.
The part of interest to you is how I moved four SD card reader wires from the Uno to the DUE.
I am using an Adafruit SD Card reader that contains a real time clock. An Adafruit #1141 I think.

I had to do trials and use a voltmeter to ensure I got 3.3 volts from the Due to the SD Card reader.
Second, the SD card reader is a shield and that means a pin on the Arduino UNO maps directly to a physical pin on the DUE.
That means I do not plug the SD card reader shield into the DUE.
Instead, I use 4 wires from shield pins 10 to 13 to corresponding pins on the 6 pin SPI header on the Due.

The comments also go through how I connected the real time clock RTC.
I am having software bug problem reading the RTC. I keep getting a Unixtime value of 2313941504.
I am still researching Forums for the workaround for that bug at this time.

4-17-2014 Figure out SD card connections for use with the Due
The RTC real time clock connection is documented on the main program I am
developing "barometer_...due". Making the SD card reader work required
first provide power and ground then map the four SPI bus signals between the Due and the SD card reader.
The SPI bus signals on the SD_card reader are on the same pins as the Arduino Uno R3 shield.

Leftover comments from the Adafruit utility ...
SD card test

This example shows how use the utility libraries on which the'
SD library is based in order to get info about your SD card.
Very useful for testing a card when you're not sure whether its working or not.

The circuit:

  • SD card attached to SPI bus as follows:
    ** UNO: MOSI - pin 11, MISO - pin 12, CLK - pin 13, CS - pin 4 (CS pin can be changed)
    and pin #10 (SS) must be an output
    ** Mega: MOSI - pin 51, MISO - pin 50, CLK - pin 52, CS - pin 4 (CS pin can be changed)
    and pin #52 (SS) must be an output
    ** Leonardo: Connect to hardware SPI via the ICSP header
    Pin 4 used here for consistency with other Arduino examples
    My comments start here....
    ** Due: Connect to hardware SPI via the SPI header.
    Connect 3.3 volts and ground between Due and SD card reader.
    Due 3.3 volts connected to SD Card reader "5v"
    Due gnd connected to SD Card reader gnd
    On the Due, SPI header numbering is pin 1 is top left pin 2 is top right.
    SPI header on Due SD_shield pin number wire color
    Miso=1 12 brown
    VCC=2 nc must provide elsewhere
    SCK=3 13 purple
    MOSI=4 11 gray
    Reset=5 nc white
    Gnd=6 nc must provide elsewhere

Connection of SD shield Real Time Clock RTC
On the Due SD_shield pin label
Due SCL1 SCL (Due pin 21 used by barometer)
Due SDA1 SDA (Due pin 20 used by Bmp180)

SD card shields like the Ethernet board usually hook the SD card up to the ICSP header for SPI. You might try using those pins instead. They're the six male pins in the middle of the board.