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

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 https://github.com/abelectronicsuk/ABElectronics_Arduino_Libraries

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)


Was this article helpful? Yes No

Please tell us how we can improve this article:

Submit
Created 02/10/2015 | Last Updated: 25/10/2023

Related Expansion Boards

Order a RTC Pi Photo of RTC Pi
RTC Pi

Real-time clock for the Raspberry Pi

£11.39 Ex VAT: £9.49
Add to Basket

Related Articles

RTC Pi setup on Raspberry Pi OS
A tutorial showing how to use the RTC Pi on a Raspberry Pi
RTC Pi with Raspberry Pi Pico
Using the RTC Pi with Raspberry Pi Pico and MicroPython
RTC Pi storing integers in RTC memory
A tutorial showing how to use the internal memory for storing integers on the RTC Pi
RTC Pi storing double values in RTC memory
A tutorial showing how to use the internal memory for storing double values on the RTC Pi
RTC Pi and Arduino
Adding a Real Time clock to an Arduino