Main Content

An easy way to set a DS3231 RTC module connected to a device with BLE (esp32 perhaps) using an app on an Android phone.

Story
It can be difficult to set the time and date on a DS3231 RTC there’s so many variables that need to be set at the precise time. This project is designed to use the system time and date of an android phone and by using an app connected to an esp32 over BLE, it will simplify the setup.

It is not important to have a computer connected to the ESP32/DS3231 when setting the code. The serial monitor will merely show what’s happening (be sure to have it open before flashing). This code can be added to any project you do that periodically require time setting. It runs on boot”

Link to article