We had a little space and thought a real time clock would be a nice pairing for this HAT so we tossed on a DS1307 real time clock (RTC). This clock uses a 32.768KHz crystal and backup battery to let the HAT & Pi keep track of time even when power is lost and there's no network access. This makes it great for time displays!

A 12mm 3V Lithium Coin Cell (CR1220) is REQUIRED to use the RTC! It will not work without one!

The rgb-matrix.sh script already installed the necessary software to use the realtime clock…but you’ll need to set the initial time once. This is explained in the Sync time from Pi to RTC” section of this DS1307 tutorial (just that one section…you can ignore the rest).

This guide was first published on Jan 16, 2015. It was last updated on Apr 04, 2024.

This page (Using the RTC) was last updated on Mar 08, 2024.

Text editor powered by tinymce.