Time functions

I was wondering if some one could help me in a time function that i would like to do.

I want to stop a motor between 2 set time. For example lets say between 6am and 5pm. How would I do this.

Thanks for any help.

Wade :slight_smile:

Do you have some way to know what time it is? Without external input, the Arduino does not know what time it is.

Build a clock, and then use an "if" statement.

well, but remember that the clock could be not exact.
without correction your clock could shift few minutes a day !
As example I had to calculate that one real minute is made with 60100 millis.

Use timer interrupts.