# Adafruit RV-8803 High Accuracy Real Time Clock

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/147/184/medium800/adafruit_products_6538-06.jpg?1793020872)

For excellent, accurate time-keeping - when your everyday RTC (Real Time Clock) won't do - the **Adafruit RV-8803 Precision Real Time Clock Breakout Board** is a tick-tock above the rest with excellent ±1.5 ppm (at 0~50°C) accuracy. Thanks to the built-in crystal with temperature compensation management, classic RTC drift is minimized, so you don't have to do any time correction with WiFi or GPS to keep current. Compare it to the popular [<u>DS3231</u>](https://www.adafruit.com/search?q=ds3231), with ±2 ppm (0~40°C), you get even tighter spec'd performance, at a better price!

Warning: Note: This product does not come with a CR1220 coin cell battery. [We recommend you purchase a coin cell battery to use with this product.](https://www.adafruit.com/product/380)

![](https://cdn-learn.adafruit.com/assets/assets/000/147/185/medium800/adafruit_products_6538-02.jpg?1793020924)

This is a great battery-backed real-time clock (RTC) that allows your microcontroller project to keep track of time, even if it is reprogrammed, or if the power is lost. Perfect for data-logging, clock-building, time stamping, timers, and alarms, etc. Equipped with **RV-8803** RTC - it can run from 3.3V _or_ 5V power & logic - and keep excellent time with under 50 seconds of drift over a whole year.

There's also some nifty extras like square-wave out, timer alarm, event timestamping (you can use the built-in button to activate an event, or use the breakout pads).

![](https://cdn-learn.adafruit.com/assets/assets/000/147/186/medium800/adafruit_products_6538-01.jpg?1793020956)

This board works great with an [<u>Arduino using our RTC library</u>](https://github.com/adafruit/?q=rv8803&type=all&language=&sort=), with [<u>CircuitPython</u>](https://github.com/adafruit/?q=rv8803&type=all&language=&sort=), or with a Raspberry Pi (or similar single board Linux computer), thanks to built-in kernel support.

**Note: This product does not come with a CR1220 coin cell battery.** [<u>We recommend you purchase a coin cell battery to use with this product.</u>](https://www.adafruit.com/product/380) The battery is required in order to keep time when power is lost, and will last at least 5 years before needing to be changed.

![](https://cdn-learn.adafruit.com/assets/assets/000/147/187/medium800/adafruit_products_6538-03.jpg?1793021086)

We've taken the RTC and put it onto a breakout PCB along with support circuitry to let you use it with 3.3V (Feather/Raspberry Pi) or 5V (Arduino/ Metro328) logic levels. Additionally, since it speaks I2C, you can easily connect it up with two wires (plus power and ground!). We've even included [<u>SparkFun qwiic</u>](https://www.sparkfun.com/qwiic) compatible [**<u>STEMMA QT</u>**](https://learn.adafruit.com/introducing-adafruit-stemma-qt) connectors for the I2C bus so **you don't even need to solder!** [**<u>QT Cable is not included</u>** <u>, but we have a variety in the shop</u>](https://www.adafruit.com/?q=stemma+qt+cable&sort=BestMatch). Just wire up to your favorite micro and you can use our CircuitPython/Python or [<u>Arduino drivers</u>](https://github.com/adafruit/RTClib) to easily interface with the RV-8803.

This comes as a fully assembled and tested breakout plus a small piece of header. You can solder header in to plug it into a breadboard, or solder wires directly.

# Adafruit RV-8803 High Accuracy Real Time Clock

## Pinouts

![](https://cdn-learn.adafruit.com/assets/assets/000/147/287/medium800/adafruit_products_double.jpg?1793308309)

The default I2C address is **0x32**.

## Power Pins

- **VIN** - this is the power pin. Since the RTC can be powered from 1.5V to 5.5V power, you do not need a regulator or level shifter for 3.3V or 5V logic/power. To power the board, give it the same power as the logic level of your microcontroller - e.g. for a 5V micro like Arduino, use 5V
- **GND** - common ground for power and logic

Warning: Note: This product does not come with a CR1220 coin cell battery. [We recommend you purchase a coin cell battery to use with this product.](https://www.adafruit.com/product/380)

## I2C Logic Pins

- **SCL** - I2C clock pin, connect to your microcontroller's I2C clock line. This pin can use 3-5V logic, and there's a **10K pullup** on this pin.
- **SDA** - I2C data pin, connect to your microcontroller's I2C data line. This pin can use 3-5V logic, and there's a **10K pullup** on this pin.
- [**STEMMA QT**](https://learn.adafruit.com/introducing-adafruit-stemma-qt) **-** These connectors allow you to connectors to dev boards with **STEMMA QT** connectors or to other things with [various associated accessories](https://www.adafruit.com/?q=JST%20SH%204).

## Event Input Pin and Button

- **EVI** - This is the event input pin. This pin is broken out along the edge of the board. The button in the center of the board is also connected to the pin. Both are labeled **EVI** on the board silk. You can press the button or toggle the pin to **GND** to trigger an event interrupt or time stamp.

## Clock Pins

- **CLOE** - This is the clock enable pin. When this pin is high, the clock output pin ( **SQW** ) is in output mode. When it is low, the clock output is stopped and is high impedance/tri-state.
- **SQW** - This is the clock output pin. When the clock enable pin ( **CLOE** ) is high, **SQW** drives a square wave of 32.768 kHz, 1.024 kHz or 1 Hz (32.768 kHz is the default). When **CLOE** is low, the square wave is stopped and the pin is high impedance/tri-state.

## Interrupt Pin

- **INT** - This is the interrupt pin. It is an open-drain output. It is used to output alarm, periodic countdown timer, periodic time update and external event interrupt signals.

## Power LED and LED Jumper

- **Power LED -** In the upper left corner, above the STEMMA connector, on the front of the board, is the power LED, labeled **on**. It is a green LED.
- **LED jumper&nbsp;** - This jumper is located on the front of the board, to the right of the power LED. Cut the trace on this jumper to cut power to the "on" LED.

# Adafruit RV-8803 High Accuracy Real Time Clock

## CircuitPython and Python

It's easy to use the&nbsp; **RV-8803** with Python or CircuitPython, and the [Adafruit\_CircuitPython\_RV8803](https://github.com/adafruit/Adafruit_CircuitPython_RV8803) module. This module allows you to easily write Python code to read data from the sensor.

You can use this driver with any CircuitPython microcontroller board or with a computer that has GPIO and Python [thanks to Adafruit\_Blinka, our CircuitPython-for-Python compatibility library](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux).

## CircuitPython Microcontroller Wiring

First wire up a RV-8803 to your board exactly as shown below. Here's an example of wiring a Feather RP2040 to the RTC with I2C using one of the handy [**STEMMA QT**](https://learn.adafruit.com/introducing-adafruit-stemma-qt) connectors:

https://circuit.adafruit-playground.com/c/fabmm7kkvx

- **Board STEMMA 3V** to&nbsp;**RTC VIN (red wire)**  
- **Board STEMMA GND** to&nbsp;**RTC GND (black wire)**  
- **Board STEMMA SCL** to&nbsp;**RTC SCL (yellow wire)**  
- **Board STEMMA SDA** to **RTC SDA (blue wire)**

The following is the RV-8803 wired to a Feather RP2040 using a solderless breadboard:

https://circuit.adafruit-playground.com/c/0f79ga5bz9

- **Board 3V** to&nbsp;**RTC VIN (red wire)**  
- **Board GND** to&nbsp;**RTC GND (black wire)**  
- **Board SCL** to&nbsp;**RTC SCL (yellow wire)**  
- **Board SDA** to&nbsp;**RTC SDA (blue wire)**

## Python Computer Wiring

Since there are _dozens_ of Linux computers/boards you can use, we will show wiring for Raspberry Pi. For other platforms, [please visit the guide for CircuitPython on Linux to see whether your platform is supported](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux).

Here's the Raspberry Pi wired with I2C using the STEMMA connector:

- **Pi 3V** to **RTC VIN (red wire)**  
- **Pi GND** to&nbsp;**RTC GND (black wire)**  
- **Pi SCL** to&nbsp;**RTC SCL (yellow wire)**  
- **Pi SDA** to&nbsp;**RTC SDA (blue wire)**

![](https://cdn-learn.adafruit.com/assets/assets/000/147/310/medium640/adafruit_products_piStemma_bb.jpg?1793373818)

Here's the Raspberry Pi wired with I2C using a solderless breadboard:

- **Pi 3V** to **RTC VIN (red wire)**  
- **Pi GND** to&nbsp;**RTC GND (black wire)**  
- **Pi SCL** to&nbsp;**RTC SCL (yellow wire)**  
- **Pi SDA** to&nbsp;**RTC SDA (blue wire)**

![](https://cdn-learn.adafruit.com/assets/assets/000/147/311/medium640/adafruit_products_piBB_bb.jpg?1793373969)

## Python Installation of the RV-8803 Library

You'll need to install the **Adafruit\_Blinka** library that provides the CircuitPython support in Python. This may also require enabling I2C on your platform and verifying you are running Python 3. [Since each platform is a little different, and Linux changes often, please visit the CircuitPython on Linux guide to get your computer ready](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux)!

Once that's done, from your command line run the following command:

- `pip3 install adafruit-circuitpython-rv8803`

If your default Python is version 3 you may need to run 'pip' instead. Just make sure you aren't trying to use CircuitPython on Python 2.x, it isn't supported!

## CircuitPython Usage

To use with CircuitPython, you need to first install the **Adafruit\_CircuitPython\_RV8803** library, and its dependencies, into the **lib** folder on your **CIRCUITPY** drive. Then you need to update **code.py** with the example script.

Thankfully, we can do this in one go. In the example below, click the **Download Project Bundle** button below to download the necessary libraries and the **code.py** file in a zip file. Extract the contents of the zip file, and copy the **entire lib**  **folder** and the **code.py** file to your **CIRCUITPY** drive.

Your **CIRCUITPY/lib** folder should contain the following folders and file:

- **adafruit\_bus\_device/**
- **adafruit\_register/**
- **adafruit\_rv8803.mpy**

![CIRCUITPY drive](https://adafruit.github.io/Adafruit_CircuitPython_Bundle/rv8803_rv8803_simpletest.py.png )

## Python Usage

Once you have the library `pip3` installed on your computer, copy or download the following example to your computer, and run the following, replacing **code.py** with whatever you named the file:

`python3 code.py`

## Example Code

**If running CircuitPython:** Once everything is saved to the **CIRCUITPY** drive, [connect to the serial console](https://learn.adafruit.com/welcome-to-circuitpython/kattni-connecting-to-the-serial-console) to see the data printed out!

**If running Python:** The console output will appear wherever you are running Python.

https://github.com/adafruit/Adafruit_CircuitPython_RV8803/blob/main/examples/rv8803_simpletest.py

In the main loop the date and time from the RTC are printed to the serial monitor every second.

![](https://cdn-learn.adafruit.com/assets/assets/000/147/288/medium800/adafruit_products_Screenshot_2026-10-29_172723.png?1793309251)

### Set the Clock

Before the loop, you can change `if False:` to `if True:` to reset the date and time stored on the RTC. After running it once, set it back to `False` so that the RTC won't continually reset itself.

```python
if False:  # change to True if you want to set the time!
    #                     year, mon, date, hour, min, sec, wday, yday, isdst
    t = time.struct_time((2026, 10, 29, 11, 27, 0, 3, -1, -1))
    # you must set year, mon, date, hour, min, sec and weekday
    # yearday is not supported, isdst can be set but we don't do anything with it at this time
    print("Setting time to:", t)  # uncomment for debugging
    rtc.datetime = t
    print()
```

# Adafruit RV-8803 High Accuracy Real Time Clock

## Python Docs

# Adafruit RV-8803 High Accuracy Real Time Clock

## Arduino

Using the RV-8803 breakout with Arduino involves wiring up the breakout to your Arduino-compatible microcontroller, installing the [Adafruit\_RV8803](https://github.com/adafruit/Adafruit_RV8803) library, and running the provided example code.

## Wiring

Wire as shown for a&nbsp; **5V** board like an Uno. If you are using a **3V** board, like an Adafruit Feather, wire the board's 3V pin to the sensor **VIN**.

Here is an Adafruit Metro wired up to the RTC using the STEMMA QT connector:

https://circuit.adafruit-playground.com/c/kx31pz0umd

- **Board 5V** to **breakout VIN (red wire)**  
- **Board GND** to **breakout** &nbsp;**GND (black wire)**  
- **Board SCL** to **breakout** &nbsp;**SCL (yellow wire)**  
- **Board SDA** to **breakout** &nbsp;**SDA (blue wire)**

Here is an Adafruit Metro wired up using a solderless breadboard:

https://circuit.adafruit-playground.com/c/lrieb3qg7n

- **Board 5V** to **breakout VIN (red wire)**  
- **Board GND** to **breakout** &nbsp;**GND (black wire)**  
- **Board SCL** to **breakout** &nbsp;**SCL (yellow wire)**  
- **Board SDA** to **breakout** &nbsp;**SDA (blue wire)**

## Library Installation

You can install the **Adafruit\_RV8803** library for Arduino using the Library Manager in the Arduino IDE.

![](https://cdn-learn.adafruit.com/assets/assets/000/147/285/medium800/adafruit_products_Arduino_Open_Library_Manager.png?1793284433)

Click the **Manage Libraries ...** menu item, search for **Adafruit RV8803** , and select the **Adafruit RV8803** library:

![](https://cdn-learn.adafruit.com/assets/assets/000/147/312/medium800/adafruit_products_Screenshot_2026-10-30_112901.png?1793374151)

If asked about dependencies, click "Install all".

![](https://cdn-learn.adafruit.com/assets/assets/000/147/313/medium800/adafruit_products_Screenshot_2026-10-30_112923.png?1793374171)

If the "Dependencies" window does not come up, then you already have the dependencies installed.

Warning: If the dependencies are already installed, you must make sure you update them through the Arduino Library Manager before loading the example!

## Example Code
https://github.com/adafruit/Adafruit_RV8803/blob/main/examples/simpletest/simpletest.ino

Upload the sketch to your board and open up the Serial Monitor ( **Tools -\> Serial Monitor** ) at 115200 baud. You'll see the RV-8803 recognized over I2C. Then, it will list if any flags were cleared. In the loop, the timestamp is printed every second.

![](https://cdn-learn.adafruit.com/assets/assets/000/147/314/medium800/adafruit_products_Screenshot_2026-10-30_113303.png?1793374393)

# Adafruit RV-8803 High Accuracy Real Time Clock

## Arduino Docs

# Adafruit RV-8803 High Accuracy Real Time Clock

## Downloads

## Files

- [RV-8803 Datasheet](https://cdn-learn.adafruit.com/assets/assets/000/147/189/original/P6538_RV-8803-C7.pdf?1793021484)
- [RV-8803 Application Manual](https://cdn-learn.adafruit.com/assets/assets/000/147/188/original/rv-8803-c7-mn01.pdf?1793021452)
- [EagleCAD PCB files on GitHub](https://github.com/adafruit/Adafruit-RV-8803-High-Accuracy-Real-Time-Clock-PCB)
- [Fritzing object in the Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20RV-8803%20High%20Accuracy%20Real%20Time%20Clock%20Breakout%20Board.fzpz)
- [3D models on GitHub](https://github.com/adafruit/Adafruit_CAD_Parts/tree/main/6538%20RV-8803%20RTC%20Breakout)

## Schematic and Fab Print
![](https://cdn-learn.adafruit.com/assets/assets/000/147/196/medium800/adafruit_products_schem.png?1793023575)

![](https://cdn-learn.adafruit.com/assets/assets/000/147/197/medium800/adafruit_products_fab.png?1793023588 dimensions are in inches)

![](https://cdn-learn.adafruit.com/assets/assets/000/147/324/medium800/adafruit_products_6538_RV-8803_RTC_Breakout.jpg?1793387606 )


## Primary Products

### Adafruit RV-8803 High Accuracy Real Time Clock Breakout Board

[Adafruit RV-8803 High Accuracy Real Time Clock Breakout Board](https://www.adafruit.com/product/6538)
For excellent accuracy time-keeping - when your everyday RTC (Real Time Clock) won't do -&nbsp;the **Adafruit&nbsp;RV-8803 Precision Real Time Clock Breakout Board** &nbsp;is a tick-tock above the rest with excellent ±1.5 ppm (at 0~50°C) accuracy. Thanks to the...

In Stock
[Buy Now](https://www.adafruit.com/product/6538)
[Related Guides to the Product](https://learn.adafruit.com/products/6538/guides)

## Related Guides

- [Adafruit Proximity Trinkey](https://learn.adafruit.com/adafruit-proximity-trinkey.md)
- [Adafruit 1-Wire Thermocouple Amplifier - MAX31850K](https://learn.adafruit.com/adafruit-1-wire-thermocouple-amplifier-max31850k.md)
- [Adafruit MOSFET Driver](https://learn.adafruit.com/adafruit-mosfet-driver.md)
- [Adafruit Pi Stemma QT Breakout](https://learn.adafruit.com/adafruit-pi-stemma-qt-breakout.md)
- [NextBus Transit Predictions for Adafruit MagTag](https://learn.adafruit.com/nextbus-transit-predictions-for-adafruit-magtag.md)
- [CircuitPython MIDI to CV Skull](https://learn.adafruit.com/circuitpython-midi-to-cv-skull.md)
- [Fruit Jam Video Music](https://learn.adafruit.com/fruit-jam-video-music.md)
- [Adafruit TCS3430 / TCS34303 Ambient Tri-Stimulus Color Sensor](https://learn.adafruit.com/adafruit-tcs3430-tcs34303-ambient-tri-stimulus-color-sensor.md)
- [Using the Adafruit Library with Fritzing](https://learn.adafruit.com/using-the-adafruit-library-with-fritzing.md)
- [Busy Box Interruption Sign](https://learn.adafruit.com/busy-box-interruption-sign.md)
- [Adafruit SPI FLASH Breakouts](https://learn.adafruit.com/adafruit-spi-flash-breakouts.md)
- [Optical Sensor Drum Track Sequencer](https://learn.adafruit.com/drum-track-sequencer.md)
- [Controlling a Classic Nintendo R.O.B. Robot Using Circuit Playground Express](https://learn.adafruit.com/controlling-a-classic-nintendo-r-o-b-robot-using-circuit-playground-express.md)
- [Neocontroller Color Grading Input Box](https://learn.adafruit.com/neocontroller-color-grading-input-box.md)
- [Adafruit MiniPOV3 Kit](https://learn.adafruit.com/minipov3.md)
