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: 10/04/2022

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

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 which will run with the RTC Pi board.

RTC Pi with Arduino

(images created with Fritzing)

Was this article helpful? Yes / No