Skip to content
Michael Miller edited this page Jul 5, 2023 · 6 revisions

You can find these examples in the Arduino IDE examples menu under "Rtc by Makuna".

Alarm Manager

This demonstrates how to use the AlarmManager to setup alarm for specific date and time and set how they repeat. Support for single fire, hourly, daily, weekly, monthly, yearly, and custom repeating periods with a minimum of 60 seconds.
Does not require a RTC module but does require some trusted accurate source to initialize it and for long term time keeping. As it uses the CPU timing keep a software "RTC" running, the timing is usually not very accurate over periods of more than a few hours so Sync'ing regularly from a trusted source is recommended.

DS1302 Simple

This demonstrates how to set and get the date and time from the device.

DS1302 Memory

This demonstrates how to write and read data from the extended memory of the device. This memory is retained even after the device has lost power.

DS1307 Simple

This demonstrates how to set and get the date and time from the device.

DS1307 Memory

This demonstrates how to write and read data from the extended memory of the device. This memory is retained even after the device has lost power.

DS3231 Simple

This demonstrates how to set and get the date and time from the device.

DS3231 StoreIt

This demonstrates how to turn off the Rtc clock so that the onboard battery will last longer.

DS3231 Alarms

This demonstrates how to set the alarms and check when the alarms are triggered. This includes using the squarewave output to trigger an interrupt.

DS3231 Memory

This demonstrates how to write and read data from the At24cXX eeprom that is often included on the DS3231 modules. This memory is retained even after the device has lost power.

DS3234 Simple

This demonstrates how to set and get the date and time from the device.

DS3234 Alarms

This demonstrates how to set the alarms and check when the alarms are triggered. This includes using the squarewave output to trigger an interrupt.

DS3234 Memory

This demonstrates how to write and read data from memory on the DS3234 modules. This memory is retained even after the device has lost power.

Clone this wiki locally