Skip to the content
PCBKitNew board
2 layers65 × 56 mmRpi simplex clock hat, the printed circuit board in 3D

Rpi simplex clock hat

hharte/rpi-simplex-clock-hat1

Raspberry Pi Hat to control a Simplex synchronous clock.

Size
65 × 56 mm
Copper layers
2
Thickness
1.6 mm
Parts
26
Nets
47
Pads
107
Tracks, vias
204, 0
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
4 Feb 2024
Updated
23 Mar 2024

Overview

Rpi simplex clock hat is an open-source printed circuit board by hharte, from the hharte/rpi-simplex-clock-hat repository on GitHub, published under the MIT licence. It is a 2-layer board of 65 × 56 mm with 26 parts on 47 nets, routed with 204 tracks and 0 vias.

It is built around the SPBW06F-05, 24LC64-I/P and LAA108, with the C315C104M5U5TA7303, CFM12JT220R and CFM12JT3K90 among its other parts. Its parts include 5 capacitors, 4 resistors, 4 connectors, 2 ICs and 1 diode. It belongs with the lEDs and displays boards of this library.

Main components

12

README

README.md

RPi Simplex Clock Controller Hat

Introduction

This project is a Raspberry Pi-compatible hat for controlling Simplex Synchronous clocks with a 24VAC motor and 24VAC correction solenoid. This hardware can be used with the master-clock software to implement a synchronous clock controller.

alt_text

alt_text

Connectors

Terminal block J1

Pin Name Purpose
1 24VAC 24VAC 60Hz Input
2 24VAC COM 24VAC Common (Return)
3 SYNC 24VAC Clock Sync Pulse Output
4 RUN 24VAC Clock Motor control (optional)

Power Input Barrel Jacks J2, J4

Note: populate either J2 or J4. J4 is intended to give the hat a smaller footprint when installed inside the clock housing. J2 is intended for use with a full-size Raspberry Pi.

Pin Name Purpose
Tip 24VAC 24VAC 60Hz Input
Ring 24VAC COM 24VAC Common (Return)

Raspberry Pi J3 Signals

Pin Raspberry Pi Name Purpose
1 3.3V DC Power 3.3V DC Power
2, 4 5V DC Power Supplies 5VDC at 1.2A to backpower the RPi.
11 GPIO17 SYNC
13 GPIO27 RUN
27 ID_SDA ID EEPROM I2C Data
28 ID_SCL ID EEPROM I2C Clock

Power Supply

This board contains an AC to DC power supply to power the Raspberry Pi Zero 2 W from the same 24VAC that runs the clock motor. If you do not wish to use this power supply to power the RPi, the following components may be omitted from your build:

Reference Designator Component
D1 Bridge rectifier
C1, C2, C3, C4 Capacitors
PS1 SPBW06-5 DC-DC Converter
JP1 Jumper

Jumper

When installed, JP1 provides 5VDC to the Raspberry Pi. This hat can supply 5VDC at 1.2A, which is enough for a Raspberry Pi Zero 2W.

Bill of Materials (Interactive BOM)

Reference Value Quantity DigiKey Mouser
C1 10uF / 25V 1 ECE-A1EN100UI ECE-A1EN100UI
C2,C4,C5 0.1uF 3 C315C104M5U5TA7303 C315C104M5U5TA7303
C3 100uF / 100V 1 REF1016101M100K REF1016101M100K
D1 B250C1000G-E4/51 1 B250C1000G-E4/51 625-B250C1000G-E4
F1 630mA 1 F7846CT-ND 0251.630MAT1L
J1 TBP01R1-508-04BE 1 TBP01R1-508-04BE TBP01R1-508-04BE
P1 TBP01P1-508-04BE 1 TBP01P1-508-04BE TBP01P1-508-04BE
J2,J4 2.1mm Barrel 1 RAPC722BK RAPC722BK
J3 2x20 female 1 SSQ-120-01-F-D SSQ-120-01-F-D
JP1 Short with wire. - - -
PS1 SPBW06-05 1 SPBW06F-05 709-SPBW06G-05
R1,R2 220 ohm 2 CFM12JT220R CFR-25JR-52-220
R3,R4 3.9K ohm 2 S3.9KHCT-ND CFR-25JR-52-3K9
U1 LAA108 1 LAA108 849-LAA108
U2 24LC256 1 24LC64-I/P 24LC64-I/P
8-pin DIP Sockets 2 AR 08-HZL-TT 110-41-308-41-001000

Hat ID EEPROM

The board contains a footprint for a 24C256 or similar serial EEPROM. This EEPROM connects to the Raspberry Pi’s i2c-0 port, and contains configuration data describing the hat.

The i2c-0 port needs to be enabled in /boot/config.txt by manually adding the line:

text
dtparam=i2c_vc=on

And uncommenting:

text
dtparam=i2c_arm=on

Reboot the Pi and make sure the EEPROM is detected at address 0x50:

text
$ i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Use utilities from here: https://github.com/raspberrypi/hats

text
$ git clone https://github.com/raspberrypi/hats
$ cd hats/eepromutils/
$ make
$ ./eepmake rpi-simplex-clock-hat.txt rpi-simplex-clock-hat.eep
$ sudo ./eepflash.sh -w -f=./rpi-simplex-clock-hat.eep -t=24c64 -d=0
This will attempt to talk to an eeprom at i2c address 0x50. Make sure there is an eeprom at this address.
This script comes with ABSOLUTELY no warranty. Continue only if you know what you are doing.
Do you wish to continue? (yes/no): yes
Writing...
0+1 records in
0+1 records out
149 bytes copied, 0.660765 s, 0.2 kB/s
Closing EEPROM Device.
Done.

Read EEPROM to a file:

text
sudo ./eepflash.sh -r -t=24c64 -f=readout.eep

After programming the EEPROM and rebooting, the hat information should be available in /proc/device-tree/hat/

Mounting Brackets

3D-printable mounting brackets for the Raspberry Pi Zero 2 W and full-size Raspberry Pi are provided. The Raspberry Pi Zero 2 W can fit inside the clock movement housing.

Software Installation

The software for this project consists of Raspberry Pi OS as well as a Master Clock Daemon which is a Python script that activates the SYNC output at the correct times for hourly and 12-hour corrections.

Raspberry Pi Zero 2 W

Install Raspberry Pi OS to MicroSD card using Raspberry Pi Imager. Select Raspberry Pi OS (other) → Raspberry Pi OS (Legacy, 32-bit) Lite.

Change settings to enable WiFi with SSID/Password, set WiFi country, set locale, set username/password.

After booting the Raspberry Pi, ssh in and:

text
$ sudo apt-get install ntpdate
$ sudo ntpdate time.google.com
$ sudo apt-get update; sudo apt-get upgrade
$ sudo apt-get install git gpiod i2c-tools
$ git clone https://github.com/hharte/master-clock.git

Configure Service

Edit simplex_master_clock.service and change the following line to the correct path for simplex_master_clock.py:

ExecStart=/usr/bin/python3 /home/pi/master-clock/simplex_master_clock.py

Install Service

text
$ sudo cp simplex_master_clock.service /etc/systemd/system/
$ sudo systemctl enable simplex_master_clock.service
$ sudo systemctl start simplex_master_clock.service
$ sudo systemctl status simplex_master_clock.service

Clock Connectors

The Simplex synchronous clocks typically have a 4-pin female Molex MLX connector. These connectors, pins, and tools are available from Amazon:

Connectors: https://www.amazon.com/dp/B07DKZQK5M

Crimper: https://www.amazon.com/gp/product/B0C8MXNWDK

Pin Extractor: DAP-T292328: https://www.amazon.com/dp/B0C4NWRQD4

Clock Movement Bushings

The clock movements are mounted using pins with spring clips and rubber bushings. These rubber bushings become dried out and brittle with age. If you would like to replace them, the ¼” grommets in this kit work well: 300 Pcs Rubber Grommets Kit.

Compatibility with other Pi Hats

The synchronous clock controller is designed to support piggybacking with the Uputronics Pi GPS/RTC Expansion Board. When used in conjunction with the GPS Expansion Board, a complete accurate time solution can be realized.

Revision History

Rev 0 → Rev 1

  1. Turn SSRs on with logic 1 to GPIO outputs. This is needed so that the SSRs don't become enabled when the GPIO17 and GPIO27 are set to outputs during boot. These GPIOs are pulled low on the RPi.
  2. Add alternate footprint location (J4) for AC input barrel jack.
  3. Add additional mounting holes for Raspberry Pi Zero / Zero 2 W.
  4. Correct pinout for the bridge rectifier D1.

Parts

26
QtyValueFootprintReferences
6MountingHole_2.7mm_M2.5MountingHole:MountingHole_2.7mm_M2.5MH1, MH2, MH3, MH4, MH5, MH6
30.1uFCapacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mmC2, C4, C5
2220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2
23.9KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR3, R4
2Barrel_Jack_SwitchConnector_BarrelJack:BarrelJack_HorizontalJ2, J4
1100uF/100VCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC3
110uF 25VCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1
124LC64-I/PPackage_DIP:DIP-8_W7.62mm_SocketU2
1B250C1000G-E4/51Diode_THT:Diode_Bridge_Round_D9.8mmD1
1Fuse 630mAResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalF1
1GPIOConnector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_VerticalJ3
1ID_WPJumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mmJP2
1Jumper_2_BridgedConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP1
1LAA108Package_DIP:DIP-8_W7.62mm_SocketU1
1SPBW06Converter_DCDC:Converter_DCDC_TRACO_TMR-xxxx_THTPS1
1TBP01R1-508-04BEhardware:CUI_TBP01R1-508-04BEJ1

Questions

How big is the Rpi simplex clock hat PCB?

It measures 65 × 56 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Rpi simplex clock hat use?

26 parts, built around the SPBW06F-05, 24LC64-I/P, LAA108 and C315C104M5U5TA7303. 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 simplex clock hat KiCad files?

From the hharte/rpi-simplex-clock-hat repository on GitHub, at the commit this page was made from: the board is hardware/rpi-simplex-clock-hat.kicad_pcb and its schematic hardware/rpi-simplex-clock-hat.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Rpi simplex clock hat design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

Similar boards

  • 2 layers158.8 × 159.8 mm1dcoinctrl, the printed circuit board in 3D

    1dcoinctrl

    hharte/1dcoinctrl

    Western Electric 1D/2D Payphone Controller for Asterisk

    115 parts76MIT
  • 2 layers88.9 × 79.8 mmWe755a slc, the printed circuit board in 3D

    We755a slc

    hharte/we755a_slc

    WE 755A PBX Station Line Concentrator

    57 partsMIT
  • 4 layers110 × 175.2 mmBattery Display, the printed circuit board in 3D

    Battery Display

    Tuskar-Marine/hardware

    All tools for the Mermaid's Rest open sailing tools

    195 parts6
  • 4 layers100 × 79 mmESP32 Interface, the printed circuit board in 3D

    ESP32 Interface

    dennowiggle/ESP32_Interface

    Facilitate learning the Z80 Retro! hardware and software.

    114 parts1LGPL-2.1
  • 2 layers49 × 82.3 mmWe755a dtmf, the printed circuit board in 3D

    We755a dtmf

    hharte/we755a_dtmf

    DTMF Converter for the WE 755A PBX

    52 partsMIT
  • 2 layers271.8 × 78.7 mmPCPI AppliCard, the printed circuit board in 3D

    PCPI AppliCard

    baldengineer/bit-preserve

    Project for capturing vintage, classic, aka old computer schematics in KiCad.

    82 parts446
  • 2 layers146 × 134.6 mmRaven68k rev2, the printed circuit board in 3D

    Raven68k rev2

    jkuituni/Raven68k

    A repository for all the hardware and software development related files for a 68000 based single board computer

    78 parts5
  • 2 layers80 × 45 mmMarker lamp controller rev b, the printed circuit board in 3D

    Marker lamp controller rev b

    moonpolysoft/marker-lamp-controller

    circuit and enclosure design for an aftermarket lamp controller for a 2023 f150 lightning

    21 partsCERN-OHL-S-2.0