SPRING SALE up to 20% OFF! (excludes trade customers)   •   FREE Standard Delivery for orders over £35 (ex VAT)
Knowledge Base

The AB Electronics UK Knowledge Base provides support solutions, tutorials and troubleshooting guides.

Knowledge Base

RTC Pi and Arduino

Adding a Real Time clock to an Arduino

Created 02/10/2015 | Last Updated: 25/06/2025

YOU WILL NEED THIS BOARD

110 available
Order a RTC Pi Photo of RTC Pi

RTC Pi

Real time clock for the Raspberry Pi and Single-Board Computers

£7.59 ex VAT

The RTC Pi can be used with Arduino boards using the easy-to-use RTCLib library written by JeeLab.

The library can be downloaded from the Arduino Libaries website.

To use the library with the Arduino IDE

  1. Download the project files in ZIP or TAR format
  2. Unpack the archive and rename the resulting folder to "RTClib".
  3. Move it to the "libraries" folder in your Arduino sketches area.
  4. Restart the Arduino IDE to make sure it sees the new files.

The examples/ds1307 folder contains a demo that will run with the RTC Pi board.

RTC Pi connected to an Arduino Uno


(images created with Fritzing)

Also useful for your Raspberry Pi project

Temperature & Sensing

1 Wire Pi Plus

Connect dozens of 1-Wire sensors - temperature, iButtons, EEPROMs - via a single GPIO pin. Stacks directly on the 40-pin header.

£9.59 ex VAT

Analogue I/O

ADC Pi

Read up to 8 analogue inputs - perfect for pairing with your temperature sensors or other analogue-output devices.

£14.39 ex VAT

All-in-one

Expander Pi

Combines ADC, DAC, 32 GPIO ports and a real-time clock on one board. The most versatile board for complex Raspberry Pi projects.

£15.99 ex VAT

Order these Boards

All boards are designed & manufactured in the UK with RoHS-compliant components.