

BerlinUhr
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
3ATTINY167-SU
SOIC-20-300mil-40℃~+85℃ 1.8V~5.5V 16 16KB 16MHz 512Byte 512Byte 8 Bit AVR Built-in FLASH SOIC-20-300mil Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)TLC5947DAP
HTSSOP-32-EP-6.1mm-40℃~+85℃ 2% 24 30MHz 30mA 3V~5.5V Built-in Over-Temperature Protection (OTP) PWM HTSSOP-32-EP-6.1mm LED Drivers ROHSTexas InstrumentsLED DriversDS3231MZ+
SOIC-8-40℃~+85℃ 2.3V~5.5V I2C Temperature compensation、Backup power management and battery charging、Alarm function、Periodic interrupt output SOIC-8 Real Time Clocks ROHSMaxim Integrated (Analog Devices)Real Time Clocks
README
README.mdBerlinUhr
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
- PCB, source it with the gerbers: https://github.com/designer2k2/BerlinUhr/tree/main/Berlin_Uhr/gerber
- Schematic: https://github.com/designer2k2/BerlinUhr/blob/main/Berlin_Uhr/Schematic.pdf
- BOM, interactive BOM here: https://github.com/designer2k2/BerlinUhr/tree/main/Berlin_Uhr/bom
- Bootloader, burn the Micronucleus Bootloader to the ATtiny167 with ISP: https://github.com/ArminJo/DigistumpArduino
- Insert CR1216 battery for the RTC to keep time also while the USB power is gone.
- Software, upload the Code from the scr folder: https://github.com/designer2k2/BerlinUhr/tree/main/src/berlin-uhr
Setting the time
- The time gets set the first time the code is uploaded to the time from the pc.
- 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
- The PCB is made with KiCad (6.0.2): http://www.kicad-pcb.org/
- The PCB-Art graphics are made with Inkscape: https://inkscape.org/
- Parts of the graphics are converted to Footprints with svg2mod: https://github.com/mtl/svg2mod
- The BOM is made with InteractiveHtmlBom: https://github.com/openscopeproject/InteractiveHtmlBom
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

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:

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

Populated backside:

Parts
62| Qty | Value | Footprint | References |
|---|---|---|---|
| 24 | LED | Diode_SMD:D_1206_3216Metric | D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, D24, D25 +8 |
| 4 | 100nF | Capacitor_SMD:C_1206_3216Metric | C1, C2, C3, C5 |
| 3 | 10k | Resistor_SMD:R_1206_3216Metric | R4, R8, R10 |
| 2 | 22p | Capacitor_SMD:C_0805_2012Metric | C4, C6 |
| 2 | 5.1k | Resistor_SMD:R_1206_3216Metric | R6, R7 |
| 2 | 66.5R | Resistor_SMD:R_1206_3216Metric | R2, R3 |
| 2 | BZT52Bxx | Diode_SMD:D_SOD-123 | D1, D2 |
| 2 | SW_Push | Button_Switch_SMD:SW_SPST_B3U-3000P | SW1, SW2 |
| 1 | 1.5k | Resistor_SMD:R_1206_3216Metric | R1 |
| 1 | 10uF | Capacitor_SMD:C_0805_2012Metric | C7 |
| 1 | 16MHz | Crystal:Crystal_SMD_TXC_7A-2Pin_5x3.2mm | Y1 |
| 1 | 3.3k | Resistor_SMD:R_1206_3216Metric | R5 |
| 1 | 51k | Resistor_SMD:R_1206_3216Metric | R9 |
| 1 | ATtiny167-SU | Package_SO:SOIC-20W_7.5x12.8mm_P1.27mm | U2 |
| 1 | CR1216 | Battery:BatteryHolder_Keystone_3000_1x12mm | BT1 |
| 1 | DS3231M | Package_SO:SOIC-16W_7.5x10.3mm_P1.27mm | U1 |
| 1 | G*** | Berlin_Uhr:BerlinUhrLogo | BerlinUhr |
| 1 | ISP | Connector_PinHeader_1.27mm:PinHeader_1x06_P1.27mm_Vertical | J2 |
| 1 | KPS-3227 | OptoDevice:Kingbright_KPS-3227 | Q1 |
| 1 | LOGO | Berlin_Uhr:Berlin-Uhr-Front | G*** |
| 1 | LOGO | Berlin_Uhr:LED-Frame | G*** |
| 1 | TLC5947DAP | Package_SO:HTSSOP-32-1EP_6.1x11mm_P0.65mm_EP5.2x11mm_Mask4.11x4.36mm_ThermalVias | U3 |
| 1 | USB_C_Receptacle_USB2.0 | Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12 | J1 |
The 56 most common of 62 parts.
Similar boards
- 2 layers127 × 71 mm

- 2 layers127 × 114.3 mm

- 2 layers51 × 65.5 mm

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 mm

- 2 layers120 × 92.8 mm

- 2 layers127.1 × 67.1 mm

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 mm

- 4 layers

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).