DS3231 RTC Module
I designed this module to use with some of my upcoming clock projects.
The DS3231 RTC chip has very good for timekeeping as it has a temperature compensated oscillator which can also be finely adjusted by clock firmware to allow for manufacturing tolerances and aging.
Supplies
This project uses SMD components.
- DS3231SN RTC SMD IC U1
- 4.7K SMD (1206) resistor (472) X 3 R1 - R3
- 1K SMD (1206) resistor (102) R4
- 0.1uF SMD 50v (1206) Ceramic Capacitor C1
- SMD Red LED (1206) D1
- CR1220 SMD Coin cell holder
- CR1220 Coin cell
- 5 way 2.54mm pin header
- Custom PCB
Schematic
Here is the schematic. It is just has the necessary components, pull-up resistors for the I2C ports plus the SQW output is available (which can be used for more precise timing). An LED is provided which can either be controlled by a clock's firmware or just show that the RTC is powered on.
PCB
Here is the small double-sided PCB. I had it manufactured by JLCPCB. All the Gerber files for it can be downloaded from my website.
Construction
- Solder the DS3231 IC first.
- Then the SMD resistors, Capacitor and LED.
- Turn over the PCB and fit the LED (with the green dot nearest the corner of the board - as shown in photo).
- Clean the PCB with flux cleaner and check all solder joints.
- Fit the coin-cell holder.
- Fit the 5 way header strip, ensure it is vertical.
- Use flux cleaner to remove flux residue from the header pins and coin-cell holder.
Testing
If a 5V regulated power is connected, the LED should light.
This module is intended to be used with some of my upcoming clock projects.
(When connected to one of my clock projects, it will display an error message if the module is not working.)