dmarvs:
I am reading multiple sensors with the arduino and logging that data to an SD card. I do not have a real time clock, so to set the time on startup I send a message over the serial port from the unix terminal. However, I do not want the main loop to start reading the sensors until the start of the next minute once the time value is received by the arduino (i.e., if the time sent over serial port is 11:41:25, delay the start of the loop until 11:42:00).I've looked around the forum for a while to find an answer to this, but cannot seem to get a solution; it's entirely possible I am just not searching with the correct terminology. Any ideas or directions would be appreciated. Thank you.
-Dave
Really easy........
Sloppy way to do it...
-
Read minutes. (1)
-
Read minutes (2)
-
if minutes1 = minutes2 goto 2.
-
dropdown into main loop