https://github.com/marcinsaj/RTC_RX8025T
The MIT License
Marcin Saj 25 Oct 2022
RTC_RX8025T is an Arduino library that supports the Seiko Epson RX8025T Real Time Clock. This library is intended to be used with the Arduino Time library. RTC_RX8025T implements functions to support the Date and Time functions, interrupt output, frequency output, alarm and timer functions.
The RTC_RX8025T library is based on the Paul Stoffregen library DS3232RTC.
- RX8025T Datasheet
- Project website - Datasheet
- Availability - How to get
- Arduino Library - How to use
The accuracy depends on the version of the RTC module used and the operating temperature, more in the summary.
-
RTC RX8025T-UA
- ± 1.9 x 10-6 / 0 ºC to +40 ºC (Equivalent to 5 seconds of month deviation)
- ± 3.4 x 10-6 / -40 ºC to +85 ºC (Equivalent to 9 seconds of month deviation)
-
RTC RX8025T-UB
- ± 3.8 x 10-6 / 0 ºC to +50 ºC (Equivalent to 10 seconds of month deviation)
- ± 5.0 x 10-6 / -40 ºC to +85 ºC (Equivalent to 13 seconds of month deviation)
To use the RTC_RX8025T library:
- First method
- Open Library Manager in Arduino IDE.
- Type library name "RTC_RX8025T" and install it.
- Second method
- Go to https://github.com/marcinsaj/RTC_RX8025T, click the Download ZIP button and save the ZIP file to a convenient location on your PC.
- Uncompress the downloaded file. This will result in a folder containing all the files for the library, that has a name that includes the branch name, usually RTC_RX8025T-master or RTC_RX8025T-main.
- Rename the folder to just RTC_RX8025T.
- Copy the renamed folder to the Arduino sketchbook\libraries folder.
The following example sketches are included with the RTC_RX8025T library:
- SetDateTimeRTC_1 - Set and display the RTC date and time.
- SetDateTimeRTC_2 - Set and display the RTC date and time with the names of days of the week and months.
- InterruptRTC - Generate an interrupt by the RTC (INT output) every second or every minute and handle the interrupt.
- FrequencyRTC - Generate square wave by the RTC (FOUT output) with preset frequencies: 32.768 kHz, 1024 Hz, 1Hz.
To do:
- Alarm - not yet implemented in the library
- Timer - not yet implemented in the library
When using the RTC_RX8025T library, the user is responsible for ensuring that reads and writes do not exceed the device's address space (0x00-0x0F), no bounds checking is done by the library.
To use the RTC_RX8025T library, the Time and Wire libraries must also be included:
#include <RTC_RX8025T.h> //https://github.com/marcinsaj/RTC_RX8025T
#include <TimeLib.h> //https://github.com/PaulStoffregen/Time
#include <Wire.h> //https://arduino.cc/en/Reference/Wire (included with Arduino IDE)