3

I want my solar array sun tracker to shut down at night then move full east in the morning to catch the first rays.

I know the DS3231 can set alarms but it is not clear from its documentation how to do it with the normal library.

Delay statements are the way I have it periodically check for when to take readings, but I really want it to be able to respond to radio-remote control commands, which don't work during delays.

Q: Is there an easier way?

2

Here it is:

https://github.com/sleemanj/DS3231_Simple

Example: https://github.com/sleemanj/DS3231_Simple/blob/master/examples/z2_Alarms/Alarm/Alarm.ino

This is what I was looking for.

My system needs to be able to respond to radio remote commands while asleep, and the long delay() statements were preventing that.

These alarms solve the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.