DS3231 precision real-time clock
A clock chip that keeps the exact time even when the project is unplugged.
Temperature-compensated RTC (about ±2 ppm, a minute a year) that keeps time on a CR1220 coin cell when power is off. Alarms and a square-wave output. I2C at 0x68 (same as the MPU-6050). 2.3-5.5 V.
Electrical
- Supply voltage
- 2.3 to 5.5 V
- Current
- 0.2 mA typical, 0.65 mA max
- Talks over
- i2c
- I2C address
- 0x68
Pins
| Pin | Can do | Max V | Max mA |
|---|---|---|---|
| VIN | 3.3 V, 5 V | ||
| GND | ground | ||
| SCL | I2C clock | ||
| SDA | I2C data | ||
| SQW | digitalAlarm / square-wave output, open drain. | ||
| 32K | digital32 kHz output, open drain. | ||
| RST | digitalReset, open drain. | ||
| BAT | not connectedCoin-cell voltage. Leave unconnected. |
Size and material
- Size
- 23 × 7 × 18 mm
- Weight
- 2.1 g
- Material
- pcb
- Sold by the
- piece
Works with
- Arduino Uno R3
- Arduino Nano
- Arduino Mega 2560 Rev3
- Arduino UNO R4 WiFi
- Arduino UNO R4 Minima
- Arduino Nano ESP32
- ESP32 DevKitC (ESP32-WROOM-32, 38-pin)
- ESP32-S3-DevKitC-1 (N8R8)
- Adafruit ESP32-S3 Feather (4 MB flash, 2 MB PSRAM)
- Seeed XIAO ESP32S3 Sense (camera + mic)
- Seeed XIAO ESP32C3
- Seeed XIAO ESP32C6
- Raspberry Pi Pico (RP2040)
- Raspberry Pi Pico W (RP2040, Wi-Fi)
- Raspberry Pi Pico 2 (RP2350)
- Raspberry Pi Pico 2 W (RP2350, Wi-Fi)
- Seeed XIAO RP2040
- Seeed XIAO nRF52840 (Bluetooth LE)
- Raspberry Pi 5 (4 GB)
- Raspberry Pi 4 Model B (4 GB)
- Raspberry Pi Zero 2 W
Projects using it
No public project uses it yet. Design one that does.