β οΈ Affiliate Disclosure: This post contains Amazon affiliate links. If you purchase through our links, we may earn a small commission at no extra cost to you. Every product below was checked against its live Amazon listing before publishing. Prices change often, so we don’t list them here. Tap any Buy Here button to see the current price on Amazon.
ESP32 Timekeeping Guide
β° Best RTC Modules for ESP32
Keep accurate time through power cuts, deep sleep and Wi-Fi outages. We compare 9 real time clock boards, from the factory-calibrated RV-8803 and DS3231 to PCF8523 breakouts and data-logging FeatherWings.
β
9 RTC Boards Compared
β
Verified Amazon ASINs
β
Accuracy in ppm Explained
β
Deep Sleep Tips
The ESP32 can keep time on its own, and with Wi-Fi it can pull the exact time from an NTP server in seconds. The trouble starts when there is no network, or when the board loses power. The internal clock resets on every power cycle, and during deep sleep it runs from an on-chip oscillator that can drift by many seconds a day. For data loggers, irrigation timers, door schedules and anything that must timestamp readings offline, a dedicated real time clock (RTC) with a coin cell or supercapacitor is the simple fix.
This guide compares 9 RTC boards that work well with the ESP32 over I2C: temperature-compensated chips like the RV-8803 and DS3231, low-cost PCF8523 breakouts, an ultra-low-power RV-1805 with a supercap, Feather add-ons with microSD, and the classic DS1307. For each one we list accuracy, supply voltage, backup power and connectors, so you can match the clock to your project.
π‘ Before you buy: Accuracy is quoted in ppm (parts per million). 1 ppm is about 0.09 seconds a day, or roughly 2.6 seconds a month. Temperature-compensated chips (RV-8803, DS3231) hold a few ppm across temperature, while plain-crystal chips (PCF8523, DS1307) can drift up to about 2 seconds a day. Also check the I2C address: the DS3231, PCF8523 and DS1307 all use 0x68, the same default as the MPU-6050 IMU, so plan your bus if you combine them.
β‘ Quick Comparison: All 9 RTC Modules
| Module | Chip | Accuracy | Backup | Best For | Buy |
|---|
| π₯ SparkFun RV-8803 Qwiic | RV-8803 | Β±1.5 ppm (0 to 50 Β°C) | CR1225 included | Best Overall | Buy Here β |
| π Adafruit PCF8523 STEMMA QT | PCF8523 | Up to Β±2 s/day | CR1220 (not included) | Best Plug-and-Play Budget | Buy Here β |
| π SparkFun RV-1805 Qwiic | RV-1805 | Β±2 ppm | Supercapacitor | Best Ultra-Low Power | Buy Here β |
| πͺΆ Adafruit DS3231 FeatherWing | DS3231 | TCXO, about Β±2 ppm | CR1220 (not included) | Best for Feather ESP32 | Buy Here β |
| πΎ Adafruit Adalogger FeatherWing | PCF8523 + microSD | Up to Β±2 s/day | CR1220 (not included) | Best for Data Logging | Buy Here β |
| π Adafruit DS1307 Breakout | DS1307 | Up to Β±2 s/day | CR1220 (not included) | Best for Legacy 5 V Code | Buy Here β |
| π° HiLetgo DS3231 AT24C32 (5 pack) | DS3231 + EEPROM | TCXO, about Β±2 ppm | Coin cell holder, no battery | Best Value DS3231 | Buy Here β |
| π§© HiLetgo DS3231 Mini (5 pack) | DS3231 | TCXO, about Β±2 ppm | See listing | Best Compact DS3231 | Buy Here β |
| π¦ AITRIP DS3231 AT24C32 (3 pack) | DS3231 + EEPROM | TCXO, about Β±2 ppm | Coin cell holder, no battery | Best Small Multi-Pack | Buy Here β |
Specs come from the manufacturers, the chip datasheets and the live Amazon listings. DS3231 accuracy is the datasheet figure for 0 to 40 Β°C. Star scores below are our ratings.
π What Matters in an ESP32 RTC Module
π―
Accuracy and Temperature
Temperature-compensated clocks (RV-8803, DS3231) stay within a few ppm in a hot enclosure or a cold shed. Plain crystals drift more as temperature changes.
π
Backup Power
A coin cell keeps time for years. A supercapacitor needs no battery changes but only bridges days or weeks without main power.
β‘
3.3 V Operation
The ESP32 is a 3.3 V chip. Most modern RTCs run happily at 3.3 V, but the DS1307 needs a 5 V supply.
π
Connectors
Qwiic and STEMMA QT boards plug into many ESP32 boards with one cable. FeatherWings stack directly onto Feather ESP32 boards.
β²οΈ
Alarms and Interrupts
An alarm or interrupt pin can pull an ESP32 GPIO to wake it from deep sleep at an exact time of day, which saves battery on long-running loggers.
π Detailed Reviews: The Top Two
π₯ BEST OVERALL RTC FOR ESP32
SparkFun Real Time Clock Module RV-8803 (Qwiic)
β 4.8/5 Β· Our Rating Β· Factory Calibrated
Buy on Amazon β

The RV-8803 from Micro Crystal is a modern, temperature-compensated RTC that is calibrated at the factory. SparkFun rates it at about Β±1.5 ppm from 0 to 50 Β°C and Β±3 ppm from -40 to 85 Β°C, which is roughly a second every week or so at room temperature. It runs from 1.5 to 5.5 V, so it is happy on the ESP32’s 3.3 V rail, and it sits at I2C address 0x32, away from the crowded 0x68 used by most other RTCs and IMUs. Two Qwiic ports make it a one-cable add-on, a CR1225 coin cell is included, and the interrupt output can wake the ESP32 from deep sleep. It is the clock we would put in a long-running outdoor logger.
β
Pros- Excellent accuracy over temperature
- Coin cell included
- No 0x68 address clash
- Qwiic plus 0.1 inch pins
β Cons- Costs more than DS3231 clones
- CR1225 is a less common cell size
- Fewer code examples than DS3231
π― Verdict: The most accurate, least fussy RTC for ESP32 projects that must keep time offline.
π Check Price on Amazon β
π BEST PLUG-AND-PLAY BUDGET RTC
Adafruit PCF8523 Real Time Clock (STEMMA QT / Qwiic)
β 4.6/5 Β· Our Rating Β· Easy First RTC
3.3 or 5 V
POWER AND LOGIC
Buy on Amazon β

If you want a quality, well documented RTC without paying for top-tier accuracy, Adafruit’s PCF8523 board is the easy choice. It works with 3.3 V or 5 V power and logic, has a STEMMA QT / Qwiic connector plus a header strip, and a CR1220 coin cell (sold separately) keeps it running for more than five years. Adafruit is upfront that it can gain or lose up to about 2 seconds a day, so it is best when the ESP32 can correct it from NTP now and then, or when a few seconds a week of drift does not matter. The RTClib and CircuitPython libraries support it, and it uses address 0x68.
β
Pros- One-cable STEMMA QT hookup
- 3.3 V and 5 V friendly
- Long coin cell life
- Great libraries and guides
β Cons- Not temperature compensated
- Coin cell not included
- Shares 0x68 with MPU-6050
π― Verdict: The best low-cost RTC for Wi-Fi connected projects that occasionally sync to NTP.
π Check Price on Amazon β
π§ Detailed Reviews: More RTC Boards
π BEST ULTRA-LOW POWER Β· β 4.6/53. SparkFun Real Time Clock Module RV-1805 (Qwiic)
RV-1805 Β· Β±2 ppm Β· about 22 nA Β· supercapacitor backup (about 35 days) Β· 1.5 to 3.6 V Β· 2x Qwiic
Buy Here β

The RV-1805 is built for projects that care about every microamp. SparkFun quotes about 22 nA of current and Β±2 ppm accuracy, and instead of a coin cell it carries a supercapacitor that keeps time for roughly 35 days without main power, then recharges when power returns. That means no batteries to replace in a sealed enclosure, as long as the device is never unpowered for more than a few weeks. It runs from 1.5 to 3.6 V, which suits the ESP32 but not 5 V boards, and pads let you add an external battery if you need longer backup.
β
Pros: Tiny current draw; no battery to replace; Qwiic ports.
β Cons: Backup only lasts weeks; 3.6 V maximum.
π― Verdict: The best maintenance-free clock for always-powered or solar ESP32 nodes.
πͺΆ BEST FOR FEATHER ESP32 Β· β 4.7/54. Adafruit DS3231 Precision RTC FeatherWing
DS3231 with TCXO Β· stacks on Feather boards Β· CR1220 backup (not included) Β· 4.8 g
Buy Here β

If your project is built on an Adafruit Feather ESP32 or Feather ESP32-S3, this wing adds the popular DS3231 with its built-in temperature-compensated crystal (TCXO) without any wiring. The DS3231 datasheet rates it at about Β±2 ppm from 0 to 40 Β°C, so it is far steadier than plain-crystal RTCs, and it has two alarms and a square-wave output. A CR1220 coin cell (sold separately) keeps time when the Feather is off. You lose the ability to use a second FeatherWing on top unless you add a doubler.
β
Pros: No wiring on Feathers; TCXO accuracy; huge DS3231 library support.
β Cons: Feather form factor only; coin cell extra.
π― Verdict: The cleanest way to add precise time to a Feather ESP32 build.
πΎ BEST FOR DATA LOGGING Β· β 4.6/55. Adafruit Adalogger FeatherWing (RTC + SD)
PCF8523 RTC Β· microSD socket on SPI Β· CR1220 backup (not included) Β· 50.8 x 22.9 mm
Buy Here β

A data logger needs two things: somewhere to store readings and a clock to stamp them. The Adalogger FeatherWing gives you both on one board, a PCF8523 RTC with battery backup and a microSD socket wired to the SPI pins with its own chip-select pin. Stack it on a Feather ESP32, add a CR1220 cell and a card, and you have a weather or energy logger that keeps writing timestamped CSV files even when Wi-Fi is down. Accuracy is the same as any PCF8523, so sync it from NTP when you can.
β
Pros: RTC and microSD in one wing; compact; well documented.
β Cons: Plain-crystal accuracy; card and cell sold separately.
π― Verdict: The quickest route to a timestamped microSD logger on a Feather ESP32.
π BEST FOR LEGACY 5 V CODE Β· β 4.1/56. Adafruit DS1307 Real Time Clock Breakout
DS1307 Β· needs 5 V power Β· up to Β±2 s/day Β· CR1220 backup (not included) Β· I2C 0x68
Buy Here β

The DS1307 is the RTC that countless Arduino tutorials were written around, and Adafruit’s assembled breakout is a well made version of it. Its main drawback for ESP32 work is that it needs 5 V power; Adafruit’s guide shows it running from 5 V while talking to 3.3 V logic, so power it from the ESP32 board’s 5 V or VIN pin. It is not temperature compensated and can drift up to about 2 seconds a day. Choose it if you are porting existing DS1307 code; for new designs the PCF8523 or DS3231 are better fits.
β
Pros: Well known chip; quality Adafruit board; mounting holes.
β Cons: Needs 5 V; least accurate pick here.
π― Verdict: Only worth it for existing DS1307 projects; otherwise pick a 3.3 V native RTC.
β Also Worth Considering: Low-Cost DS3231 Multi-Packs
π° BEST VALUE DS3231 Β· β 4.5/5
7. HiLetgo DS3231 AT24C32 Clock Module (5 Pack)
The familiar blue DS3231 board with an AT24C32 EEPROM (32 Kbit) for storing settings or a small log, I2C pins on both ends for daisy-chaining, and a coin cell holder. You get five modules without batteries, enough for several ESP32 builds. Note that these boards include a simple charging circuit meant for rechargeable LIR2032 cells; many makers remove the charging resistor or diode before fitting a standard CR2032.
Buy Here βπ§© BEST COMPACT DS3231 Β· β 4.4/5
8. HiLetgo DS3231 Mini RTC Module (5 Pack)
A tiny DS3231 board sold for Raspberry Pi and Arduino that runs from 3.3 V or 5 V. Its small footprint fits inside cramped enclosures and onto perfboard next to an ESP32 module, and you still get the DS3231’s temperature-compensated accuracy. There is no EEPROM, and the header layout is aimed at the Pi’s GPIO pins, so plan on jumper wires for the ESP32.
Buy Here βπ¦ BEST SMALL MULTI-PACK Β· β 4.4/5
9. AITRIP DS3231 AT24C32 RTC Module (3 Pack)
The same DS3231 plus AT24C32 design in a three pack, with timer and two alarm functions for scheduling ESP32 wake-ups. Batteries are not included. It is a good pick if you only need a couple of spares; the same CR2032 charging-circuit note applies.
Buy Here βπ§ Which RTC for Which ESP32 Project?
| ESP32 Project | What It Needs | Best Pick |
|---|
| Offline outdoor sensor logger | Accuracy across temperature, long backup | SparkFun RV-8803 |
| Wi-Fi clock or display that syncs NTP | Keeps time through outages, low cost | Adafruit PCF8523 STEMMA QT |
| Solar or always-powered node in a sealed box | No battery changes | SparkFun RV-1805 |
| Feather ESP32 scheduler or alarm clock | Stackable, precise, alarms | Adafruit DS3231 FeatherWing |
| Weather or energy logger to microSD | RTC plus SD storage | Adafruit Adalogger FeatherWing |
| Irrigation timers and many identical nodes | Good accuracy at low cost per unit | HiLetgo DS3231 AT24C32 5 pack |
| Porting an old Arduino DS1307 sketch | Same chip and registers | Adafruit DS1307 |
π Which RTC Module Should You Buy?
π―
You need the best accuracy
Get the SparkFun RV-8803, or a DS3231 board if you prefer the most common library.
π
You want a no-solder first RTC
The Adafruit PCF8523 STEMMA QT plugs straight into Qwiic-equipped ESP32 boards.
π
You never want to change a battery
The supercap-backed SparkFun RV-1805.
π°
You are building several nodes
The HiLetgo DS3231 AT24C32 five pack keeps cost per node low.
β Frequently Asked Questions
Do I need an RTC if my ESP32 uses NTP over Wi-Fi?
Not always. If the board is always on Wi-Fi and a short wait for NTP after boot is fine, the ESP32 can manage on its own. Add an RTC when the device must know the time right after power-up, during network outages, or in places with no Wi-Fi at all.
Isn’t the ESP32’s built-in RTC good enough?
The ESP32 keeps time in deep sleep, but by default it runs from an internal RC oscillator that drifts far more than a crystal, and the time is lost when power is removed. An external RTC with a coin cell survives power cuts and is much more accurate.
Can an RTC wake the ESP32 from deep sleep?
Yes. Connect the RTC’s interrupt or alarm pin (usually open-drain and active low) to an RTC-capable ESP32 GPIO with a pull-up, and enable ext0 or ext1 wake-up. Set an alarm, go to sleep, and the RTC wakes the chip at the exact time.
Can I use a DS1307 at 3.3 V?
The DS1307 needs a 5 V supply to keep time properly. Power it from 5 V and keep the I2C logic at 3.3 V, or simply choose a PCF8523, DS3231 or RV-8803, which all run natively at 3.3 V.
My RTC and IMU both use address 0x68. What now?
The DS3231, PCF8523 and DS1307 are fixed at 0x68. Move the IMU to its alternate address (an MPU-6050 can use 0x69 by pulling AD0 high), put the devices on the ESP32’s second I2C bus, or use an RTC at a different address such as the RV-8803 at 0x32.
π Final Verdict: Best RTC Modules for ESP32
The right clock for each job:
π Best Plug-and-Play Budget: Adafruit PCF8523 STEMMA QT
Buy Here βπ Best Ultra-Low Power: SparkFun RV-1805 (Qwiic)
Buy Here βπͺΆ Best for Feather ESP32: Adafruit DS3231 FeatherWing
Buy Here βπΎ Best for Data Logging: Adafruit Adalogger FeatherWing
Buy Here βπ° Best Value DS3231: HiLetgo DS3231 AT24C32 (5 Pack)
Buy Here βFor most ESP32 projects that must keep time offline, the SparkFun RV-8803 is the clock to get: factory calibrated, 3.3 V native and plug-in Qwiic. If your board syncs to NTP regularly, the Adafruit PCF8523 is a cheaper and perfectly good backup clock, and a DS3231 multi-pack is the value pick for many identical nodes. Ready to wire one up? Follow our ESP32 ESP-IDF DS3231 RTC tutorial, pair your clock with a card from our microSD cards for ESP32 guide, add sensors from our temperature and humidity sensors guide, and grab wires and boards from our prototyping supplies guide.
π¬ Which RTC are you using with your ESP32, and how much does it drift? Share your results in the comments below.
All Amazon links above use our affiliate tag (esp32tutorials-20). Purchasing through them supports esp32tutorials.com at no extra cost to you. Prices and availability change frequently, so always confirm the current price on Amazon before buying.
We are a team of experienced Embedded Software Developers with skills in developing Embedded Linux, RTOS, and IoT products from scratch to deployment with a demonstrated history of working in the embedded software industry. Contact us for your projects: admin@esp32tutorials.com