Skip to the content
2 layers120 × 80 mmClock i2c l0, the printed circuit board in 3D

test project for binary clock based in stm32 f4070disk

Size
120 × 80 mm
Copper layers
2
Thickness
1.6 mm
Parts
77
Nets
68
Pads
239
Tracks, vias
577, 66
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
23 Jun 2026
Updated
5 Oct 2026

Overview

Clock i2c l0 is an open-source printed circuit board by ekibanu4, from the ekibanu4/STM_32_Clock repository on GitHub. It is a 2-layer board of 120 × 80 mm with 77 parts on 68 nets, routed with 577 tracks and 66 vias.

It is built around the AHT10 and 74HC595N. Its parts include 31 resistors, 20 diodes, 7 connectors, 6 capacitors and 6 switches. It belongs with the lEDs and displays boards and the STM32 boards of this library.

Main components

2

README

README.md

STM32 Binary Clock Lab

This repository is a development sandbox for a binary clock built around different STM32 microcontrollers and peripheral combinations. It contains the current clock firmware, earlier hardware ports, reusable device drivers, board experiments, KiCad sources, and end-user documentation.

The project is intentionally broader than a single finished product: it is used to test display concepts, sensors, RTC implementations, power management, alarm behavior, and small-memory firmware optimizations on real hardware.

MCU variants

  • STM32L010F4P6 - current primary target and the most complete low-power build.
  • STM32F030F4P6 - compact CubeMX/HAL port used during early hardware tests.
  • STM32F407G-DISC1 - original prototype and development platform.

The default CMake configuration currently builds the STM32L010F4P6 firmware. Board-specific notes and wiring are kept under Core/Src/boards.

Hardware and drivers

The repository includes implementations or experiments for:

  • a 16-LED binary display driven by chained 74HC595 shift registers;
  • a 128x32 OLED display;
  • an internal STM32 RTC clocked from a 32.768 kHz LSE crystal;
  • the external DS1302 RTC used by earlier board versions;
  • AHT10 and DHT11 temperature/humidity sensors;
  • BH1750 and analog LDR light sensing with automatic display brightness;
  • an ADC resistor ladder for five control buttons;
  • active-buzzer alarm output and three persistent alarm slots;
  • PIR motion detection, idle display shutdown, battery measurement, and standby power handling.

Separate branches also preserve display and peripheral experiments such as the MAX721x 8x8 LED matrix version.

Firmware layout

  • Core/Src/app - clock behavior, alarms, display rendering, environment data, automatic modes, and user-interface state.
  • Core/Src/boards - MCU/board-specific GPIO and peripheral implementations.
  • Core/Src/drivers - reusable drivers for buttons, buzzer, DHT11, DS1302, light sensing, and shift registers.
  • Drivers - STM32 CMSIS and HAL sources.
  • docs - user guide, technical reference, diagrams, and promotional assets.
  • Clocl i2C l0 16 -2 595 - KiCad schematic and PCB sources for the current STM32L010-based hardware.

Build

The current target requires CMake, Ninja, and the GNU Arm Embedded toolchain.

bash
cmake --preset Release
cmake --build --preset Release

Debug and Release presets place their output under build/.

Documentation

This is an experimental hardware/firmware repository. Verify the selected board configuration, supply voltage, pin mapping, and programming setup before using it on assembled hardware.

Parts

77
QtyValueFootprintReferences
16200Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23, R24, R25, R26
16LEDLED_THT:LED_D3.0mmD5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20
410kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2, R7, R27, R31
4DDiode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1, D2, D3, D4
34k7Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR6, R9, R30
2100nCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2
215pCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC7, C8
274HC595N-DIP16Package_SO:SOIC-16_3.9x9.9mm_P1.27mmU2, U3
110uCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC4
118650Battery:BatteryHolder_MPD_BH-18650-PCBT1
11KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR28
11MResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR8
120kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR32
1220kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3
12KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR29
12N2222Package_TO_SOT_THT:TO-92Q1
12kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR10
132.7Crystal:Crystal_SMD_3215-2Pin_3.2x1.5mmY1
1470kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5
1AHT10Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ7
1BMSConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1Buck-boostConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ4
1BuzzerBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1C_PolarizedCapacitor_THT:CP_Radial_D10.0mm_P5.00mm_P7.50mmC3
1GY-302 BH1750FVIConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ6
1LCS i2c screenConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ5
1RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1
1STM32L010F4PxPackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU1
1SWDConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ2
1SW_SPSTConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical_SMD_Pin1LeftSW6
1downButton_Switch_SMD:SW_Push_1P1T_NO_CK_PTS125Sx73PSMTRSW4
1modeButton_Switch_SMD:SW_Push_1P1T_NO_CK_PTS125Sx73PSMTRSW1
1offButton_Switch_SMD:SW_Push_1P1T_NO_CK_PTS125Sx73PSMTRSW5
1setButton_Switch_SMD:SW_Push_1P1T_NO_CK_PTS125Sx73PSMTRSW2
1upButton_Switch_SMD:SW_Push_1P1T_NO_CK_PTS125Sx73PSMTRSW3
1датчик руху am312 hc-sr312Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1

Similar boards

  • 4 layers130 × 131.3 mmShuffleboard, the printed circuit board in 3D

    Shuffleboard

    anhvuknguyen/Shuffleboard

    Intro to Embedded Systems Final Project

    72 parts
  • 2 layers160 × 125 mmReflex machine, the printed circuit board in 3D

    Reflex machine

    Mhamednoui/PCB_Designer

    AI-assisted KiCad PCB design pipeline: netlist -> schematic -> routed board -> fab files, with a 3D/simulation webview

    125 parts
  • 2 layers218 × 218 mmChessBoard, the printed circuit board in 3D

    ChessBoard

    Odissus/ChessBoard

    Interactive chess board design based on Arduino and ESP32

    143 parts
  • 4 layers130 × 131.3 mmShuffleboard, the printed circuit board in 3D

    Shuffleboard

    rbala25/shuffleboard

    Multiplayer Shuffleboard — Embedded Firmware (C), PCB Design, Mixed-Signal I/O, and Display + Audio Integration

    72 parts
  • 2 layers78.4 × 64.8 mmPowerNode2, the printed circuit board in 3D

    PowerNode2

    utahrobotics/Electrical-2019-2020

    67 partsMIT
  • 2 layers69.9 × 41.3 mmHeaterMeterLCD, the printed circuit board in 3D

    HeaterMeterLCD

    CapnBry/HeaterMeter

    HeaterMeter and LinkMeter Arduino BBQ Controller

    21 parts557MIT
  • 2 layers108 × 88 mmControl board, the printed circuit board in 3D

    Control board

    m0xpd/STRACHEY

    A Random Looping Sequencer for Eurorack

    99 parts25CC-BY-SA-4.0
  • 2 layers87 × 96 mmBraids through hole V1.1 CONTROL, the printed circuit board in 3D

    Braids through hole V1.1 CONTROL

    sebastianbeyer/KOSMO_braids

    This is a KOSMO (Look Mum No Computer) version of the Mutable instruments braids, based on the through-hole version done by sound-force.nl.

    56 parts15

Questions

How big is the Clock i2c l0 PCB?

It measures 120 × 80 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Clock i2c l0 use?

77 parts, built around the AHT10 and 74HC595N. 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 Clock i2c l0 KiCad files?

From the ekibanu4/STM_32_Clock repository on GitHub, at the commit this page was made from: the board is Clocl i2C l0 16 -2 595/Clock i2c l0.kicad_pcb and its schematic Clocl i2C l0 16 -2 595/Clock i2c l0.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Clock i2c l0 design in my own project?

Its repository states no licence, so its author keeps all rights: ask ekibanu4 before reusing the design.