0

I have a ds3231 and Arduino UNO and I need to get an interrupt from ds3231 once a week for example every Fridays. I've searched a lot in the internet and forums but did not find any library or code that have weekly alarm or some of them that had, they didn't work well. I also read the data sheet of ds3231 but didn't understand how to set the registers of it. can anyone help?

  • 1
    check the DS3231 libraries in IDE in "Manage Libraries" – Juraj Jul 9 at 14:55
  • I never really like using the "alarm" function of the DS3231. I'd just check the data and time every loop (, or every few seconds). See if the day-of-week is different from the previous time I check. If so, and the day-of-week is Friday, run the code. This way you can have as many "alarms" as you want instead of using the (I think) two alarms in the DS3231. – Gerben Jul 9 at 15:20
  • Are you using the /INT/SQW pin of DS3231 to trigger the alarm? – smajli Jul 10 at 22:59
  • @smajli Yes Im using that. – sepehr Jul 12 at 10:55

Your Answer

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

Browse other questions tagged or ask your own question.