Hi,
How can I START and RESET a timer based on the condition ?
can't use millis() becuse its starts as soon as I switch on the arduino.
Regards,
Sandeep.
Hi,
How can I START and RESET a timer based on the condition ?
can't use millis() becuse its starts as soon as I switch on the arduino.
Regards,
Sandeep.
Why not use millis(), and the subtract operator?
I tried that, but when I start that based on a particular condition I'm not getting the same time interval every time i execute that statement.
My requirement is if the condition is met then output should be ON for 10 seconds and should be OFF after 10 seconds. I don't want to use delay() because in that time i want to check other conditions also...
Please give me an example sketch, if you have an idea regarding this.
Regards,
Sandeep
You already have an example sketch in the IDE - it's called "blink without delay"