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
DS3231 Alarm 1 or 2 Interrupt Not Working Correctly
-
Matrixv8
- Posts: 18
- http://meble-kuchenne.info.pl
- Joined: Mon Jun 03, 2024 2:51 am
- Been thanked: 4 times
DS3231 Alarm 1 or 2 Interrupt Not Working Correctly
- Attachments
-
- RTC Alarm Test.fcfx
- (18.16 KiB) Downloaded 11 times
-
Steve-Matrix
- Matrix Staff
- Posts: 1644
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 229 times
- Been thanked: 390 times
Re: DS3231 Alarm 1 or 2 Interrupt Not Working Correctly
Could it be the watchdog timer is resetting the chip?
Re: DS3231 Alarm 1 or 2 Interrupt Not Working Correctly
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
Pierre
Re: DS3231 Alarm 1 or 2 Interrupt Not Working Correctly
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.
Thank you.
Re: DS3231 Alarm 1 or 2 Interrupt Not Working Correctly
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
Pierre