Hi, what I want is rotate the servo motor every certain time like if passed 5 minutes rotate again or that servo motor rotate in a certain time of tha day like at 8:00 am and then until 1:00 pm.
But I don't know how to do it.
Hi, what I want is rotate the servo motor every certain time like if passed 5 minutes rotate again or that servo motor rotate in a certain time of tha day like at 8:00 am and then until 1:00 pm.
But I don't know how to do it.
(deleted)
Look up RTC (Real Time Clock). That's what you need for telling the time. There are plenty of examples that will show you how to move a servo.
Steve
The demo Several Things at a Time illustrates the use of millis() to manage timing without blocking. It may help with understanding the technique.
Have a look at Using millis() for timing. A beginners guide if you need more explanation.
millis() can be used for short term timing but you will need an RTC for time-of-day timing.
...R