I am a very novice Arduino user who needs some help with my current project. I'm using a load cell and saving the data to an SD card. The only vital piece I'm missing is a timestamp. I just need the simplest way to record the time the measurements were taken. It does not have to be the real time, it can be the time from when the Arduino began to record.
Attached is the code I wrote that successfully records the data. All I need is the time.
millis() returns the number of milliseconds the Arduino has been on for. It is a unsigned 32 bit number (unsigned long) and will overflow after about 49+ days.
kellyneedshelp:
It does not have to be the real time, it can be the time from when the Arduino began to record.
Since you are saving data to SD at regular intervals, why do you want to use a timer - of any sort? You already know what the time interval is, and you can be pretty sure that the second event happened immediately after the first. You may want to send a count for reference purposes, but that would be about all, wouldn't it?