My ESPHome Workshop

GitHub

DS3231 Real Time Clock Module

✅ Active 🚫 Unsupported
sensor Dallas/Maxim Model: DS3231 📅 Acquired: 2016

RTC module with battery backup for timekeeping

Connection Types

spi

Overview

The DS3231 is a real-time clock module that maintains accurate timekeeping even when main power is lost. Module includes AT24C32 EEPROM (storage capacity 32K)

The module features:

  • High-precision I²C real-time clock with temperature-compensated crystal oscillator (TCXO)
  • Accuracy: ±2ppm (±1 minute per year) from -40°C to +85°C
  • Battery backup (CR2032) for continuous timekeeping
  • Operating voltage: 2.3V-5.5V
  • Two programmable time-of-day alarms
  • Programmable square-wave output
  • Automatic leap year compensation (valid through 2100)
  • The device integrates a digital temperature sensor: accuracy ±3°C
  • I2C default address 0x68 (like DS1307)
  • AT24C32 - default address is 0x57. Addresses can be shorted A0/A1/A2 to modify address

Pinout

  • 32K - 32kHz TCXO frequency output
  • SQW - ~INT/SQW - provides either an interrupt signal due to alarm conditions or a square wave output
  • SCL
  • SDA
  • VCC
  • GND

Remarks

It is possible that DS1307 can be used to certain extent.

← Back to all devices