Motivation to write this program is that setting exact time to RTC clock is nearly impossible due to resets when serial connection is initiated.
UTC time is used because few of my Arduinos are going to serve as data logger and I don't want to care about daylight saving time.
It clears RTC alarms and resets interrupt as well.
Anyways, don't expect that 1$ RTC from China are real DS323X, at least they are far from this datasheet specifications:
- Accuracy ±2ppm from 0°C to +40°C
- Accuracy ±3.5ppm from -40°C to +85°C
Program needs Python with PySerial library installed. Installing PySerial is easy.
c:
cd \python34
scripts\pip.exe install pyserial
- Open rtc_set.ino in Arduino IDE and upload it
- Close serial monitor in Arduino IDE
- Change serial port in rtc_set.py if needed
- Run the script