Page 1 of 1

DS3231 Alarm 1 or 2 Interrupt Not Working Correctly

Posted: Mon Nov 17, 2025 12:47 am
by Matrixv8
Hi everyone, I have tried everything to get the alarm Interrupt working on the RTC DS3231. I am using an Arduino Uno R3 using I2C communication on C4 and C5. Everything works except the Alarm if I set the Alarm 1 on the seconds. IE: every minute on 20 seconds. I tried minutes as well and no interrupt. If I set the Alarm for every second, it works just fine. I am attaching an example of my program. If someone could help that would be great.

Note: I use a scope to monitor the Interrupt pin.

Than you,
Pierre

Re: DS3231 Alarm 1 or 2 Interrupt Not Working Correctly

Posted: Mon Nov 17, 2025 9:49 am
by Steve-Matrix
Could it be the watchdog timer is resetting the chip?

Re: DS3231 Alarm 1 or 2 Interrupt Not Working Correctly

Posted: Mon Nov 17, 2025 7:54 pm
by Matrixv8
Thank you for the responce. The Arduino does not reset. I can programm all the function on the DS3231 chip including the date and time on the LCD display except the alarm 1 or 2 with the SQW/Int componet settings 1, 2 or 3. The 0 setting for the Int works fine at one trigger per second but not the other settings.

Pierre

Re: DS3231 Alarm 1 or 2 Interrupt Not Working Correctly

Posted: Tue Nov 18, 2025 7:39 pm
by Matrixv8
After doing many tests and programming with the DS3231 with the Arduino IDE it looks like my problem is that the alarm does not clear. I cannot find a reset alarm in the Flowcode V11 componet DS3231 . Can some one help?

Thank you.

Re: DS3231 Alarm 1 or 2 Interrupt Not Working Correctly

Posted: Tue Nov 18, 2025 10:08 pm
by Matrixv8
Okay I was able to use an I2C component to write to the DS3231 address location and register to set the alarm flag so the alarm resets. So I can use it in the flowcode I created. It works great.

Pierre