Go Down

Topic: Sensor controlled switch with delay timer? (Read 642 times) previous topic - next topic

Aviator1

It will be hard enough for me not knowing any code at all to try and get something simple working  :smiley-red: But I will try... I dont even know what wrap around means...

PaulS

Quote
I dont even know what wrap around means...

Sure you do. You have a watch or clock, right? What comes after 12:59:59? (or 23:59:59, if its a 24 hour watch/clock)?

That's wraparound. The Arduino is perfectly capable of dealing with wraparound, if subtraction is used, and the interval between events is less than the time it takes for wraparound to occur (49+ days for millis()).

If your intervals are 49+ days, using the Arduino as a clock is the wrong approach, anyway.

Go Up