

Rpi rtc
Maxim DS3231 Based RTC Module for Raspberry Pi
- Size
- 32.5 × 24 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 7
- Nets
- 11
- Pads
- 32
- Tracks, vias
- 102, 4
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 4
- Created
- 28 Jan 2018
- Updated
- 19 Feb 2025
Overview
Rpi rtc is an open-source printed circuit board by skiselev, from the skiselev/rpi_rtc_ds3231 repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 32.5 × 24 mm with 7 parts on 11 nets, routed with 102 tracks and 4 vias.
It is built around the DS3231S# and CR2032. Its parts include 1 capacitor, 1 resistor, 1 IC and 1 connector.
Main components
2README
README.mdRPi DS3231 RTC
Maxim DS3231 Based RTC Module for Raspberry Pi
Introduction
This is a real-time clock (RTC) module for Raspberry Pi and Raspberry Pi Zero. The module is similar to Adafruit PiRTC, but uses the highly accurate Maxim Integrated DS3231 RTC IC with an integrated temperature-compensated crystal oscillator, and more common CR2032 battery.

Hardware Documentation
Schematic and PCB Layout

Bill of Materials
RPi DS3231 RTC project on Mouser.com - View and order all components except of the PCB.
RPi DS3231 RTC on OSH Park - View and order the PCB.
| Component type | Reference | Description | Quantity | Possible sources and notes |
|---|---|---|---|---|
| PCB | RPi DS3231 RTC PCB - Version 1.0 | 1 | Order from OSH Park | |
| Integrated Circuit | U1 | Maxim DS3231 | 1 | Mouser 700-DS3231S#T&R- |
| Capactior | C1 | 0.1uF, 0603 | 6 | Mouser 77-VJ0603Y104JXJPBC |
| Resistor | R1 | 10 kohm, 0603 | 1 | Mouser 71-CRCW060310K0FKEB |
| Connector | P1 | 3x2, 2.54 mm, socket | 1 | Mouser 517-929852-01-03-RA |
| Battery Holder | BT1 | CR2032 Battery Holder | 1 | Mouser 712-BAT-HLD-001-THM |
| Battery | BT1 | CR2032 | 1 | Mouser 658-CR2032 |
Software Documentation
Raspbian Configuration
The following steps assume that you have a fairly new Rapbian distribution installed and running on your Rapsberry Pi, and that RPi DS3231 RTC module is plugged into the Raspberry Pi.
Enable I2C Support
Run raspi-config:
$ sudo raspi-configNavigate to the Interfacing Options menu. If this menu is missing (on older Raspbian versions), try the Advanced Options menu instead. Next, select the I2C menu, and answer Yes to Would you like the ARM I2C interface to be enabled? and Would you like the I2C kernel modules to be loaded by default? questions.
Reboot the system
Verify that RTC Module Is Detected
Install i2c-tools package:
$ sudo apt-get install i2c-toolsRun i2cdetect -y 1 command and verify that the I2C device is detected at address 0x68:
$ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --Enable Kernel Support for DS3231 RTC
Open /boot/firmware/config.txt in your favorite editor (nano, vi) as root. For example:
$ sudo nano /boot/firmware/config.txtAdd the following lines at the end of the file:
# Enable DS3231 RTC
dtoverlay=i2c-rtc,ds3231Remove fake-hwclock package:
$ sudo apt-get -y remove fake-hwclock
$ sudo update-rc.d -f fake-hwclock removeEnable setting up system time to the RTC time at boot. Open /lib/udev/hwclock-set in your favorite editor:
$ sudo nano /lib/udev/hwclock-setAnd comment out the following lines:
#if [ -e /run/systemd/system ] ; then
# exit 0
#fiAlso comment the following line(s):
#/sbin/hwclock --rtc=$dev --systz --badyear
#/sbin/hwclock --rtc=$dev --systzSave the file, and reboot the system
Setting and Reading the RTC time from Command Line
- Use
hwclock -wcommand to set the RTC time to the system time. You can usedatecommand to set and verify the system time prior to writing it to the RTC. - Use
hwclock --set --date=<date_string>command to set the RTC time to the time given by <date_string> - Use
hwclock -rcommand to read the time from the RTC
Parts
7| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | 0.1uF | Capacitors_SMD:C_0603_HandSoldering | C1 |
| 1 | 10k | Resistors_SMD:R_0603_HandSoldering | R1 |
| 1 | CR2032 | my_components:Battery_Holder_CR2032_THM | BT1 |
| 1 | DS3231 | my_components:IC_SOIC16_Wide | U1 |
| 1 | HOLE | my_components:Hole_2.75mm | HOLE1 |
| 1 | OSHW-logo_silkscreen-front_4mm | OSHW-logo:OSHW-logo_silkscreen-front_4mm | G*** |
| 1 | RPi_Header | my_components:Conn_Pin_Header_2x3_2.54mm | P1 |
Similar boards
- 2 layers200 × 66 mm

- 2 layers127 × 114.3 mm

- 4 layers98 × 130 mm

- 2 layers68.6 × 53.3 mm

- 2 layers29.2 × 19.1 mm

- 2 layers398.2 × 398.2 mm

LargeWordClock LargeKickstarter
PCBench/PCBench
resolution = [0.5, 0.5] pcbfolder = '../PCBs/' pcbnames = ["1Bitsy1bitsy"] iters = 30 env = PCBRoutingEnv(resolution=resolution, pcbfolder=pcbfolder, pcbnames=pcbnames) obs, info = env.reset() for in range(iters): act =…
1,591 parts21MIT - 2 layers147.3 × 95.3 mm

Nixie proj conflict-20171112-163801
dm2lct/tlnixie
PCB files for the Turmlabor nixie clock 2.0
117 parts11GPL-3.0 - 2 layers167 × 52 mm

In-2-nixie
mistic100/Nixie-Clock-IN2
Check out my other projects: - Nixie Clock IN14 - Nixie Clock IN12 - IV-27 VFD Clock
34 parts10
Questions
How big is the Rpi rtc PCB?
It measures 32.5 × 24 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Rpi rtc use?
7 parts, built around the DS3231S# and CR2032. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Rpi rtc KiCad files?
From the skiselev/rpi_rtc_ds3231 repository on GitHub, at the commit this page was made from: the board is KiCad/rpi_rtc.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Rpi rtc design in my own project?
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).