Go Down

Topic: Arduino DUE + SD Card (Read 626 times) previous topic - next topic

rafo

Hello everyone!

Can anyone explain me how I can connect sd card to arduino due and work with it?


spycatcher2k

Yes

You connect it with wires and write code.

Have you tried GOOGLE? I did and found hundreds of tutorials.
-=-
http://www.uk-pcb.co.uk - UK Based PCB Fab & Assembly Company
Design & Assembly work undertaken - Arduino repairs & testing - PM for details. Arduino & C# PC programming.

rafo

http://forum.arduino.cc/index.php/topic,135439.msg1018776.html#msg1018776

I used SDFat but nothing I don't thing that code is wrong I connected SD with wires to arduino due

Here is arduino connections
http://prntscr.com/bqbym0
http://prntscr.com/bqbysy

Palliser

Hello rafo.

My Due works OK using this library:
https://github.com/adafruit/SD

You can try the following example:

Code: [Select]
#include <SPI.h>
#include <SD.h>
Sd2Card card;
SdVolume volume;
SdFile root;
const int chipSelect = 4;

void setup()
{
  Serial.begin(9600);
  Serial.println("\nInitializing SD card...");
  if (!card.init(SPI_HALF_SPEED, chipSelect)) {
    Serial.println("initialization failed.");}
  volume.init(card);
  root.openRoot(volume);
  root.ls(LS_R | LS_DATE | LS_SIZE);
}

void loop(void) {
}


-p

Go Up