Best RTC Modules for ESP32: 9 SparkFun RV-8803, PCF8523, DS3231, Adalogger and DS1307 Picks Compared (Buying Guide)

⚠️ 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

ModuleChipAccuracyBackupBest ForBuy
πŸ₯‡ SparkFun RV-8803 QwiicRV-8803Β±1.5 ppm (0 to 50 Β°C)CR1225 includedBest OverallBuy Here β†’
πŸ”Œ Adafruit PCF8523 STEMMA QTPCF8523Up to Β±2 s/dayCR1220 (not included)Best Plug-and-Play BudgetBuy Here β†’
πŸ”‹ SparkFun RV-1805 QwiicRV-1805Β±2 ppmSupercapacitorBest Ultra-Low PowerBuy Here β†’
πŸͺΆ Adafruit DS3231 FeatherWingDS3231TCXO, about Β±2 ppmCR1220 (not included)Best for Feather ESP32Buy Here β†’
πŸ’Ύ Adafruit Adalogger FeatherWingPCF8523 + microSDUp to Β±2 s/dayCR1220 (not included)Best for Data LoggingBuy Here β†’
πŸ“Ÿ Adafruit DS1307 BreakoutDS1307Up to Β±2 s/dayCR1220 (not included)Best for Legacy 5 V CodeBuy Here β†’
πŸ’° HiLetgo DS3231 AT24C32 (5 pack)DS3231 + EEPROMTCXO, about Β±2 ppmCoin cell holder, no batteryBest Value DS3231Buy Here β†’
🧩 HiLetgo DS3231 Mini (5 pack)DS3231TCXO, about Β±2 ppmSee listingBest Compact DS3231Buy Here β†’
πŸ“¦ AITRIP DS3231 AT24C32 (3 pack)DS3231 + EEPROMTCXO, about Β±2 ppmCoin cell holder, no batteryBest Small Multi-PackBuy 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
Β±1.5 ppm
0 TO 50 Β°C
1.5 to 5.5 V
SUPPLY
CR1225
CELL INCLUDED
2x Qwiic
I2C 0x32
Buy on Amazon β†’
SparkFun RV-8803 Qwiic real time clock module for ESP32

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
Β±2 s/day
MAX DRIFT
3.3 or 5 V
POWER AND LOGIC
CR1220
5+ YEARS BACKUP
STEMMA QT
I2C 0x68
Buy on Amazon β†’
Adafruit PCF8523 real time clock breakout with STEMMA QT for ESP32

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/5

3. 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 β†’
SparkFun RV-1805 Qwiic real time clock module with supercapacitor

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/5

4. Adafruit DS3231 Precision RTC FeatherWing

DS3231 with TCXO Β· stacks on Feather boards Β· CR1220 backup (not included) Β· 4.8 g
Buy Here β†’
Adafruit DS3231 Precision RTC FeatherWing for ESP32 Feather boards

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/5

5. Adafruit Adalogger FeatherWing (RTC + SD)

PCF8523 RTC Β· microSD socket on SPI Β· CR1220 backup (not included) Β· 50.8 x 22.9 mm
Buy Here β†’
Adafruit Adalogger FeatherWing with PCF8523 RTC and microSD slot

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/5

6. Adafruit DS1307 Real Time Clock Breakout

DS1307 Β· needs 5 V power Β· up to Β±2 s/day Β· CR1220 backup (not included) Β· I2C 0x68
Buy Here β†’
Adafruit DS1307 real time clock breakout board

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 ProjectWhat It NeedsBest Pick
Offline outdoor sensor loggerAccuracy across temperature, long backupSparkFun RV-8803
Wi-Fi clock or display that syncs NTPKeeps time through outages, low costAdafruit PCF8523 STEMMA QT
Solar or always-powered node in a sealed boxNo battery changesSparkFun RV-1805
Feather ESP32 scheduler or alarm clockStackable, precise, alarmsAdafruit DS3231 FeatherWing
Weather or energy logger to microSDRTC plus SD storageAdafruit Adalogger FeatherWing
Irrigation timers and many identical nodesGood accuracy at low cost per unitHiLetgo DS3231 AT24C32 5 pack
Porting an old Arduino DS1307 sketchSame chip and registersAdafruit 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 Overall: SparkFun RV-8803 (Qwiic)
Buy Here β†’
πŸ”Œ 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.

Leave a Comment