Skip to the content
PCBKitNew board
2 layers70 × 54 mmClock, the printed circuit board in 3D

A digital clock with a 7 segment display, attiny85, DS3231 and a lot of cool features

Size
70 × 54 mm
Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
43
Pads
125
Tracks, vias
351, 36
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
4 Mar 2020
Updated
21 Mar 2024

Overview

Clock is an open-source printed circuit board by Pesc0, from the Pesc0/Clock repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 70 × 54 mm with 30 parts on 43 nets, routed with 351 tracks and 36 vias.

It is built around the ATTINY85-20SU, HT16K33 and DS3231MZ+. Its parts include 5 connectors, 4 ICs, 3 switches, 2 resistors and 1 capacitor. It belongs with the lEDs and displays boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

README.md

Clock

A digital clock based on the AtTiny85 and DS3231 chips.

Features:

  • Simple interface, designed for the elderly who just need a simple clock.
  • Time is kept even after a power loss, provided the battery is working.
  • Great time keeping accuracy, thanks to the 2ppm accuracy of the DS3231 chip (basically in the worse case it will gain/lose 1 minute every year).
  • Brightness can be adjusted, the value is saved and will be restored even after a complete power loss.
  • Can display ambient temperature (the value is updated internally every minute or so).
  • Easy to build PCB, ideal for beginners.
  • Cheap, around $10.
  • The display consumes most of the power, so in theory it's possible to run the clock on batteries [not tested].
  • Fully open source.

PCB Design

Things to note:

  • The board is symmetrical to simplify the design of mounting mechanisms.
  • The button panel is "removable" from the main pcb body, to allow repositioning of the buttons.
  • On the board are present two jumpers that disconnect the ATTiny from the I2C bus, for debug purposes.

3D printed case

TBD

Building and Flashing the firmware

You will need a working avr toolchain, with avr-gcc and avrdude installed on your computer. They are very easy to install on a linux computer, but on windows you will have to fiddle with Arduino IDE. You will also need an AVR programmer, or alternatively you can use "Arduino as ISP". You may need to modify the makefile and replace /dev/ttyACM0 with the usb port where your ICSP programmer is connected.

Once the programmer is connected to the board simply run

text
make install 

Gallery

Revisions

  • rev-1: initial design
  • rev-2: fix display was upside down, despite silkscreen being right side up

Parts

30
QtyValueFootprintReferences
4PCB_breakpointJumper:SolderJumper-2_P1.3mm_Bridged_RoundedPad1.0x1.5mmJP3, JP4, JP5, JP6
3SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW2, SW3
210kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR1, R2
2Buttons_connConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ4, J5
2I2C_jmpJumper:SolderJumper-2_P1.3mm_Bridged_RoundedPad1.0x1.5mmJP1, JP2
110uFCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC1
1ATtiny85-20SUPackage_SO:SOIJ-8_5.3x5.3mm_P1.27mmU1
1AVR-ISP-6Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ3
1Battery_CellBattery:BatteryHolder_Keystone_3001_1x12mmCR1220
1DDiode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1
1DS3231MPackage_SO:SOIC-16W_7.5x10.3mm_P1.27mmU2
1HT16K33ht16k33:HT16K33U3
1I2C_connConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ2
1KW4-56NCWB-P-Ydisplay7seg:7segmentU4
1PWR_connConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1

The 23 most common of 30 parts.

Questions

How big is the Clock PCB?

It measures 70 × 54 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Clock use?

30 parts, built around the ATTINY85-20SU, HT16K33 and DS3231MZ+. 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 KiCad files?

From the Pesc0/Clock repository on GitHub, at the commit this page was made from: the board is KiCad/clock.kicad_pcb and its schematic KiCad/clock.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Clock 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).

Similar boards

  • 2 layers398.2 × 398.2 mmLargeWordClock LargeKickstarter, the printed circuit board in 3D

    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 layers179.1 × 67.9 mmControl Board, the printed circuit board in 3D

    Control Board

    Alan-JH/PCB-Heater

    Reflow hotplate PCB design

    77 parts6
  • 2 layers58.3 × 30.4 mmMatrixLed, the printed circuit board in 3D

    MatrixLed

    FrizzyElectronics/MatrixLed8x8

    An 8x8 Matrix Led based on the I2C chip ht16k33

    144 parts1
  • 2 layers91 × 154.9 mmPanel, the printed circuit board in 3D

    Panel

    TrojanPinata/Model-C

    Calculator-numpad hybrid - work in progress

    269 parts1GPL-3.0
  • 4 layers100 × 100 mmJhl synth0, the printed circuit board in 3D

    Jhl synth0

    koyoi/jhl_synth0_pcb

    218 parts
  • 2 layers50 × 67 mm7seg htk16k33, the printed circuit board in 3D

    7seg htk16k33

    llegoff/7seg_htk16k33

    4*7 segments diplay + keyboard, drived by Holtek HT16K33

    45 parts
  • 2 layers499.7 × 124.5 mmController, the printed circuit board in 3D

    Controller

    VoltMusic/OB-SX-Programmer-and-Interface

    This contains the Arduino code and KiCAD project file for creating a OB-SX Programmer and Interface.

    157 parts
  • 2 layers25.4 × 25.4 mmDesign files 8x8, the printed circuit board in 3D

    Design files 8x8

    aspro648/KiCad

    My design files. Abandon all hope ye who enter here.

    14 parts33