Hi guys,
i'm using the data logger shield from firewing.info on an arduino Due, unfortunately they are not very compatible for their pin layout, but with some tweaking i got it going.
however, when using the "card info" sketch, i have the normal behaviour, it recognizes the card if there is one inserted.
the issue is that i'm unable to create directories or files as via the datalogger sketch
for instance:
if (!SD.exists("HV")) {
SD.mkdir("HV");
if (!SD.exists("HV")) {
Serial.println("unable to create directory /HV");
}
else {
Serial.println("directory /HV created");
}
}
else {
Serial.println("directory /HV already exists");
}
}
gives me as output
Initializing SD card...card initialized.
directory /HV already exists
Wiring is correct and a card is present.
Card type: SDHC
Volume type is FAT32
Volume size (bytes): 3650224128
Volume size (Kbytes): 3564672
Volume size (Mbytes): 3481
Files found on the card (name, date and size in bytes):
LOST.DIR/ 2014-06-29 22:42:22
ANDROI~1/ 2014-06-29 22:42:22
ANDROID/ 2014-06-29 22:42:24
DATA/ 2014-06-29 22:42:46
NOMEDI~1 2014-06-29 22:42:24 0
COMGOO~1.MUS/ 2014-06-29 22:42:24
FILES/ 2014-06-29 22:42:26
_PLAYM~1 2014-06-29 22:42:24 36
COMSEC~1.MED/ 2014-06-29 22:42:46
FILES/ 2014-06-29 22:42:46
--> output from the sdcard libary
any idea on how to start writing files on the SD?
the chipselect is pin10
thx!
Herman