r/ArduinoProjects • u/BilboSwaggins1992 • Sep 07 '23
Timer
Putting together a home automation project but am a beginner, I need to set a positional servo to make one positional change about twice a day. Is there a way to set my arduino on a timer?
Any advice is greatly appreciated.
0
Upvotes
1
u/xebzbz Sep 08 '23
If it doesn't need to be very precise, an RTC clock adapter would work.
If you need it with 1-minute precision, you can utilize an esp32 which would take the time from the internet, then sleep for a minute, in a loop.
2
u/So-I-Had-This-Idea Sep 08 '23
Yes, that's very doable. What you want to do is add a "Real Time Clock" or RTC to your Arduino. Here's an RTC from Adafruit that includes a bit of a tutorial. I hope this helps.
https://learn.adafruit.com/adafruit-ds3231-precision-rtc-breakout/arduino-usage