Go Down

Topic: Arduino DUE + SD Card (Read 161 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.
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design & Assembly work undertaken - Arduino repairs & testing - PM for details.

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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy