Módulo de tarjeta SD y arduino UNO

Estoy tratando de escribir en un archivo txt desde la arduino... pero me escribe cosas raras en vez de lo que yo quiero.

Me escribió esto:

La SD está en formato FAT32.

Sketch:

#include <SD.h>
const int chipSelect = 4;
void setup(){
  Serial.begin(9600);
  Serial.print("Initializing SD card...");
  pinMode(10, OUTPUT);
  if (!SD.begin(chipSelect)){
    Serial.println("Card failed, or not present");
    return;
  }
  Serial.println("card initialized.");
  File dataFile = SD.open("datalog.txt", FILE_WRITE);
  dataFile.println("j3333333333333333j0x");
  dataFile.close();
  Serial.write("done");
}
void loop(){
}

Creo que la libreria sd.h no soporta fat32... Formateala en fat y prueba...

Puedes usar las siguientes librerías que están más actualizadas:

http://code.google.com/p/sdfatlib/downloads/list

Ola

Queria fazer un datalogger com arduino uno, vi esta tarjeta en ebay

http://www.ebay.com/itm/SD-Card-Module-Slot-Socket-Reader-For-Arduino-UNO-MEGA-R3-DUE-NANO-as-MP3-loader-/221265694726?pt=UK_Computing_Other_Computing_Networking&hash=item3384769006

puedo conectar-la directamente en arduino uno?

Hi People i need to build a datalogger with arduino uno and a sd card, can i use this on ebay

http://www.ebay.com/itm/SD-Card-Module-Slot-Socket-Reader-For-Arduino-UNO-MEGA-R3-DUE-NANO-as-MP3-loader-/221265694726?pt=UK_Computing_Other_Computing_Networking&hash=item3384769006

this connects directly in the arduino uno, or need more other board (shield??)

best

cpalha

en principio debería de funcionar sin problemas...
si no , siempre te puedes hacer un lector de tarjetas SD por muy pocos céntimos....

cpalha:
Ola

Queria fazer un datalogger com arduino uno, vi esta tarjeta en ebay

http://www.ebay.com/itm/SD-Card-Module-Slot-Socket-Reader-For-Arduino-UNO-MEGA-R3-DUE-NANO-as-MP3-loader-/221265694726?pt=UK_Computing_Other_Computing_Networking&hash=item3384769006

puedo conectar-la directamente en arduino uno?

Hi People i need to build a datalogger with arduino uno and a sd card, can i use this on ebay

http://www.ebay.com/itm/SD-Card-Module-Slot-Socket-Reader-For-Arduino-UNO-MEGA-R3-DUE-NANO-as-MP3-loader-/221265694726?pt=UK_Computing_Other_Computing_Networking&hash=item3384769006

this connects directly in the arduino uno, or need more other board (shield??)

best

cpalha

Funciona muy bien y se puede conectar directamente.
Probada en un Arduino Duemilanove y funcionando durante mas de un año con un Arduino Mini Pro.

Saludos!