Microscale
DS3231 RTC Module (I2C, CR2032 backup)
DS3231 RTC Module (I2C, CR2032 backup)
Regular price
₦5,000.00 NGN
Regular price
Sale price
₦5,000.00 NGN
Unit price
per
Shipping calculated at checkout.
Couldn't load pickup availability
The DS3231 RTC module provides accurate real-time clock and calendar functions with a CR2032 battery backup. It connects via I2C and is widely used in data logging, timekeeping, and alarm applications.
Specifications
| I2C interface | 400 kHz |
|---|---|
| Operating voltage | 2.3 V to 5.5 V |
| Backup battery | CR2032 (included on board) |
| Battery life | 2 to 3 years |
| Temperature sensor | ±3°C accuracy |
| Alarms | Two time-of-day alarms |
| NV SRAM | 56 bytes |
| I2C address | 0x68 (RTC), 0x57 (EEPROM on ZS-042 style boards) |
| Accuracy | +2ppm to -2ppm for 0ºC to +40ºC, +3.5ppm to -3.5ppm for -40ºC to +85ºC |
| Programmable square wave output | Yes |
| Register for aging trim | Yes |
| Automatic power failure battery switch circuitry | Yes |
| Portable size | Yes |
Pinout
| Pin | Function |
|---|---|
| 32K | Fixed 32.768 kHz square-wave output |
| SQW | Programmable alarm/square wave output (interrupt) |
| SCL | I2C clock |
| SDA | I2C data |
| VCC | Power input (2.3-5.5V) |
| GND | Ground |
Using it
- Connect VCC to 3.3V or 5V, GND to ground, SDA and SCL to the microcontroller's I2C pins (A4/A5 on Arduino Uno).
- Use the RTClib library in Arduino IDE for easy time setting and reading.
- For low-power wake-up, connect the SQW pin to an interrupt-capable pin and configure the alarm.
- If the board includes an AT24C32 EEPROM, you can store additional data at I2C address 0x57.
- The clock/calendar provides seconds, minutes, hours, day, date, month, and year information.
- The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year.
- The clock operates in either the 24-hour or 12-hour format with AM/PM indicator.
- The DS3231 has a built-in power-sense circuit that detects power failures and automatically switches to the backup supply.
- Timekeeping operation continues while the part operates from the backup supply.
Good to know
- Some cheap clones have a charging circuit for a rechargeable battery; if using a non-rechargeable CR2032, remove the resistor R5 to prevent damage.
- The module keeps time for years on a CR2032 when main power is off.
- For higher accuracy, the DS3231 includes temperature compensation.
