lomanas123:
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
second:
The dates on my output
all the text file on the Sd card are dated 1/1/2000
[file:///C:/Users/nerito/Pictures/arduino.jpg/img]
[/quote]
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.
a) DS1307: communication= I2C-bus, cheap, probably the right way to go, Nick's l
link is to one of these.
b) DS3234: communication = SP-bus, more accurate, more money...
There are Arduino libraries for both, maybe I2C is more easy?
Today I got one of these - Search Results for 'ads1115' on Adafruit Industries -
not tested, not even read the datasheet, but it is capable of a few 100 samples @16 bit per second.
at 16 bits I expect low(er) noise
thanks but since i am in europe i can't order from adafruit and the ADC you suggested is the smallest i have ever seen. I will never be cable of soldering it
Hi,
for filedate/time google for something like this,I think it´s somewhere in the Fat16 Libs examples
/*
* User provided date time callback function.
* See Fat16::dateTimeCallback() for usage.
*/
void dateTime(uint16_t* date, uint16_t* time) {
// User gets date and time from GPS or real-time
// clock in real callback function
// return date using FAT_DATE macro to format fields
*date = FAT_DATE(year, month, day);
// return time using FAT_TIME macro to format fields
*time = FAT_TIME(hour, minute, second);
}
Just in case you have your arduino connected to a PC, you can set the date/time via serial. Of course not possible, if your arduino is not connectd.
Best, Robert