I am trying to create a special datalogger for reading tiny amounts o voltage diff,
however i have 2-3 questions about the datalogging problem.
first: i want to create several logs in the form of
//Open the Data CSV File
File dataFile = SD.open("test.txt", FILE_WRITE);
test1,
test2,
etc
i have tried
File dataFile = SD.open("test"+String(k)+".txt", FILE_WRITE);
but it's
not working
Couldn't you just go
myFile = SD.open(filename, FILE_WRITE);
myFile.print(test1);
myFile.print(",");
myFile.print(test2);
myFile.print(",");
etc
second:
The dates on my output
all the text file on the Sd card are dated 1/1/2000
[img][file:///C:/Users/nerito/Pictures/arduino.jpg/img]
Your Arduino has no idea what the date is and I guess the 1/1/2000 is just windows putting a name to nothing.
Your best bet is to get a real time clock and use that to name your files according to date and time. I record the time in the data and just use the date for the filename - 20130218.csv
third :
any ideas how to uses floats on sd?
Just declare your variable as a float and myfile.print them to SD.