Skip to the content
2 layers100 × 130.1 mmBerlinUhr, the printed circuit board in 3D

Berlin Uhr or Mengenlehreuhr, a fancy retro style clock

Size
100 × 130.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
62
Nets
52
Pads
249
Tracks, vias
672, 73
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
19 Oct 2021
Updated
18 Dec 2022

Overview

BerlinUhr is an open-source printed circuit board by designer2k2, from the designer2k2/BerlinUhr repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 100 × 130.1 mm with 62 parts on 52 nets, routed with 672 tracks and 73 vias.

It is built around the ATTINY167-SU, TLC5947DAP and DS3231MZ+. Its parts include 26 diodes, 10 resistors, 7 capacitors, 3 ICs and 2 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

README.md

BerlinUhr

Berlin Uhr or Mengenlehreuhr, a fancy retro style clock that's a bit tricky to read: https://en.wikipedia.org/wiki/Mengenlehreuhr

What is this

The BerlinUhr is a standalone PCB with all the needed parts on it, just connect power over the USB-C and it will run.

The ATtiny167 receives the actual time from the DS3231 real time clock chip. Then displays it with 24 leds driven by the TLC5947. The brightness is adopted by measuring the ambient light with a KPS-3227.

Building it

  1. PCB, source it with the gerbers: https://github.com/designer2k2/BerlinUhr/tree/main/Berlin_Uhr/gerber
  2. Schematic: https://github.com/designer2k2/BerlinUhr/blob/main/Berlin_Uhr/Schematic.pdf
  3. BOM, interactive BOM here: https://github.com/designer2k2/BerlinUhr/tree/main/Berlin_Uhr/bom
  4. Bootloader, burn the Micronucleus Bootloader to the ATtiny167 with ISP: https://github.com/ArminJo/DigistumpArduino
  5. Insert CR1216 battery for the RTC to keep time also while the USB power is gone.
  6. Software, upload the Code from the scr folder: https://github.com/designer2k2/BerlinUhr/tree/main/src/berlin-uhr

Setting the time

  1. The time gets set the first time the code is uploaded to the time from the pc.
  2. To change it afterwards, push the A and B buttons on the edge / backside.

Reading the time

This is special on the Berlin Clock. A practical explanation is given in the wikipedia article: https://en.wikipedia.org/wiki/Mengenlehreuhr#Time_encoding

The Berlin Clock is easy to read after a couple of days :-)

Modifying it

KiCad Version of at least 6.0.2 is needed due to a bug in the KPS-3227 Footprint in older Versions: https://gitlab.com/kicad/libraries/kicad-symbols/-/issues/3164

How it looks

grafik

Its 17:45 :smiley:

It can hang on a wall or sit on a table with the help of a USB-C phone docking station.

The bare PCB:

grafik

ISP Programming the Bootloader to the ATtiny with the help of a Arduino Uno:

grafik

Populated backside:

grafik

Parts

62
QtyValueFootprintReferences
24LEDDiode_SMD:D_1206_3216MetricD10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, D24, D25 +8
4100nFCapacitor_SMD:C_1206_3216MetricC1, C2, C3, C5
310kResistor_SMD:R_1206_3216MetricR4, R8, R10
222pCapacitor_SMD:C_0805_2012MetricC4, C6
25.1kResistor_SMD:R_1206_3216MetricR6, R7
266.5RResistor_SMD:R_1206_3216MetricR2, R3
2BZT52BxxDiode_SMD:D_SOD-123D1, D2
2SW_PushButton_Switch_SMD:SW_SPST_B3U-3000PSW1, SW2
11.5kResistor_SMD:R_1206_3216MetricR1
110uFCapacitor_SMD:C_0805_2012MetricC7
116MHzCrystal:Crystal_SMD_TXC_7A-2Pin_5x3.2mmY1
13.3kResistor_SMD:R_1206_3216MetricR5
151kResistor_SMD:R_1206_3216MetricR9
1ATtiny167-SUPackage_SO:SOIC-20W_7.5x12.8mm_P1.27mmU2
1CR1216Battery:BatteryHolder_Keystone_3000_1x12mmBT1
1DS3231MPackage_SO:SOIC-16W_7.5x10.3mm_P1.27mmU1
1G***Berlin_Uhr:BerlinUhrLogoBerlinUhr
1ISPConnector_PinHeader_1.27mm:PinHeader_1x06_P1.27mm_VerticalJ2
1KPS-3227OptoDevice:Kingbright_KPS-3227Q1
1LOGOBerlin_Uhr:Berlin-Uhr-FrontG***
1LOGOBerlin_Uhr:LED-FrameG***
1TLC5947DAPPackage_SO:HTSSOP-32-1EP_6.1x11mm_P0.65mm_EP5.2x11mm_Mask4.11x4.36mm_ThermalViasU3
1USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1

The 56 most common of 62 parts.

Similar boards

  • 2 layers127 × 71 mmRgb input, the printed circuit board in 3D

    Rgb input

    hoeken/yarrboard-hardware

    Hardware for the Yarrboard open hardware project

    118 parts4GPL-3.0
  • 2 layers127 × 114.3 mmKbxBinaryClock.v2.1, the printed circuit board in 3D

    KbxBinaryClock.v2.1

    kbx81/RGBBinaryClock

    RGB Binary Clock project files - PCB and source

    138 parts2
  • 2 layers51 × 65.5 mmSmiley, the printed circuit board in 3D

    Smiley

    Rob-Sligter/Smiley-LED-PCB

    This repo contains my first PCB design, a smiley face board with LEDs controlled by a TLC5947 driver chip.

    28 parts1
  • 2 layers100 × 100 mmRailLed, the printed circuit board in 3D

    RailLed

    ashleyjr/RailLed

    240 parts
  • 2 layers120 × 92.8 mmIssaScope v0.2, the printed circuit board in 3D

    IssaScope v0.2

    MaximeZimmermann/IssaScope

    Ethoscope for optogenetics behavioural essays

    33 parts
  • 2 layers127.1 × 67.1 mmBlinCAN, the printed circuit board in 3D

    BlinCAN

    metalhead777/blinCAN

    A 24 channel LED driver with CAN bus interface and Arduino-style microcontroller.

    103 partsCC-BY-SA-4.0
  • 2 layers26.5 × 49.5 mmRgb7breakout, the printed circuit board in 3D

    Rgb7breakout

    mignon-p/rgb7breakout

    SPI breakout board for AD-121F2 RGB 7-segment display

    14 parts

Questions

How big is the BerlinUhr PCB?

It measures 100 × 130.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the BerlinUhr use?

62 parts, built around the ATTINY167-SU, TLC5947DAP 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 BerlinUhr KiCad files?

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

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