program running time start and stop


hello sir want know how possible execute programme in cicle of every 10 minutes in device .suppose run programme @ 10:00 re- run after 10:10 automatically

thanks.
ram kumar

multiple ways.

you use delay of 10000 600000. block else in sketch running during time.

you use millis(). not block other parts of sketch running. @ blink without delay example in ide. there tutorials linked @ top of forum.

you use rtc (real time clock) , check if 10 minutes have passed.

or pay stand there , hit reset button every 10 minutes. might expensive though.

i'm sure there other ways well. millis() option start. of course, if there no other code needs run, delay easiest.


Arduino Forum > Using Arduino > Project Guidance > program running time start and stop


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???