Multiple timer problem


i have facility designing "dead man" timer 4 separate areas running 1 uno. 

basically, timer runs 15 minutes, , if there no motion detected (a motion detector in area), output goes high.  anytime motion detected, timer needs set zero.

i'm setting timers in manner:
code: [select]

timer1 = (millis()/1000);
timer2 = (millis()/1000);
timer3 = (millis()/1000);
timer4 = (millis()/1000);


the problem is, there 4 timers running in 4 areas, resetting uno result in areas resetting, prevent other areas working properly.  in fact, uno might not ever reset, in point i'm worried what's going happen when timers overflow.

any way bring timers 0 without resetting board?

quote
in fact, uno might not ever reset, in point i'm worried what's going happen when timers overflow.

have @ blink without delay.


Arduino Forum > Using Arduino > Project Guidance > Multiple timer problem


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support