How to have Arduino uno time while logging to an SD card

hi,

I am trying to read values from a load cell then log the values to an SD card with that I want to have the Arduino to log the time between the changes in the value.

Thanks

If you want ‘time-of-day’, you’ll need a real time clock chip, or network connection.

But if it’s simply the interval between events, you can use the millis() function to determine interval down to a few milliseconds.

@lastchancename how do you do that?

What usually happens here, is you get the clues, go off and see what you can do after reading and experimenting, then come back and ask specific questions.

Post your existing code here (in code tags), and there are many helpers to push you along, or if you’re under pressure - there is a specific forum section for paid assistance projects.

millis() returns the # of milliseconds that have elapsed since the start of the program. it is a 4 byte value.

you can write both the load cell value and msec timestamp
the timestamp (msec) could be divided by 1000 to give secs or some other value so only 2 bytes, for example are needed and provides sufficient resolution