
TimeDisk
garrettsworkshop/TimeDisk
Apple II memory expansion card with 1 MB battery-backed RAM and NoSlotClock-compatible clock

Coin-cell elapsed-time counter with a 4-digit LCD and a magnetic off switch (MSP430FR4131, KiCad 10, CERN-OHL-P v2)
Ocn LCD is an open-source printed circuit board by z2amiller, from the z2amiller/ocn-LCD repository on GitHub, published under the CERN-OHL-P-2.0 licence. It is a 2-layer board of 27 × 65.3 mm with 23 parts on 67 nets, routed with 134 tracks and 49 vias.
It is built around the MSP430FR4131IPMR, AO3401A and CR2032. Its parts include 12 capacitors, 3 resistors, 1 IC, 1 transistor and 1 connector. It belongs with the lEDs and displays boards and the MSP430 boards of this library.
A coin-cell elapsed-time counter with a 4-digit LCD and a magnetic off switch. While a magnet sits at the marked end, the board is switched off. Take the magnet away and it powers up and counts elapsed time in hours and minutes, up to 99:59 (about 100 hours). Put the magnet back and it powers down a few seconds later; the next time the magnet comes off, counting starts again from 00:00.

The renders leave out the LCD (on the back), the coin-cell holder and the reed switch, which have no 3D models.
Status: revision 0.1, not yet built. The firmware is in firmware/: it runs on TI's MSP430FR4133 LaunchPad, and its driver for this board's LCD hasn't been tried on real glass yet.
Estimates at 3.0 V and 25 °C, from the TI datasheet (SLAS865) and the part specs. They will be replaced by measurements on the board. Until then, the firmware's measurements on the LaunchPad are the nearest guide: 2.2 µA asleep with its much larger LCD.
| Item | Counting (magnet away) | Off (magnet in place) | Basis |
|---|---|---|---|
| MCU asleep (LPM3.5), with the 32 kHz crystal, RTC, LCD controller and charge pump running | 0.94 µA | 0 | Datasheet typical, supervisor (SVS) off |
| LCD glass: recharging the segments about 30 times a second | 0.2–1 µA | 0 | Estimate from typical TN glass capacitance (~2 nF); the biggest unknown |
| Waking once a minute to advance the count and rewrite the display | ~0.01 µA | 0 | ~2 ms at ~0.4 mA per wake; waking every second instead would cost ~0.8 µA |
| Colon blink | ~0 | 0 | Done by the LCD hardware, no CPU wake |
| Gate pull-down R3 (10 MΩ across the cell while the reed is closed) | 0 | 0.3 µA | 3.0 V / 10 MΩ |
| Q1 MOSFET leakage while off | – | a few nA | Typical; the datasheet maximum is specified at 30 V |
| Hold-up capacitors C1–C3, leakage | ~1 nA | 0 | MLCC insulation resistance; under 0.1 µA even at the spec minimum |
| Reset pull-up, reed switch, unused pins (driven low) | 0 | 0 | No DC path |
| Total | about 1.2–2 µA | about 0.3 µA |
Estimated runtime on one CR2032 (225 mAh nominal), allowing about 1 %/year for the cell's own self-discharge:
| Mode | Estimated runtime |
|---|---|
| Counting continuously | about 11–18 years |
| Off (magnet in place) | over 40 years |
Both are longer than a CR2032's rated shelf life of about 10 years, so in practice the cell's age sets the limit, not this circuit. Cold reduces the cell's usable capacity, so expect less in cold conditions.
Firmware choices that keep it there:
The reed switch is at the end marked MAGNET DISABLE and runs along the length of the board. It responds to field along its own length, so use a magnet magnetized through its flat faces (a neodymium cylinder or disc), at that end, with its axis along the board and its face toward the board's end. SW1's axis is 4.4 mm in from the long edge that carries the LCD pins, and a magnet centered on that line gives the most margin.
A magnet centered on the board's width sits about 9 mm off SW1's axis and puts roughly half to a quarter as much field along it. Even so, a model of a typical 10 × 8 mm N42 cylinder (no nearby steel) gives several times the switch's ~2–3 mT pull-in out to about 20 mm. Check the actual magnet on the bench, especially if steel sits near it.
The switch lets go only once the magnet is a few centimeters away (the same model puts it at about 35–40 mm in line), so move the magnet well clear to start counting.
| Ref | Part | LCSC |
|---|---|---|
| U1 | TI MSP430FR4131IPM, LQFP-64 (FR4132/FR4133 also fit) | C1879660 |
| DS1 | Good Display GDC04212 4-digit LCD, 12 pins at 2.54 mm | none (hand-soldered) |
| BT1 | Lian Xin BS-CR2032-8 coin-cell holder, for a CR2032 | C7498149 |
| SW1 | Littelfuse 59170-1-S-00-D reed switch, normally open, 10–15 AT | C315909 |
| Q1 | AO3401A P-channel MOSFET, SOT-23 | C15127 |
| Y1 | TKD SF32WK32768D31T002 32.768 kHz crystal, 3215, 12.5 pF (any 3215 12.5 pF crystal fits) | C271654 |
Every part in the BOM carries its LCSC number. The LCD, J1 and TP3 are left out of the BOM and the placement file. The passives are 0603 and 1206.
JLCPCB can make the board and fit all the surface-mount parts. docs/ORDERING.md walks through the order, screen by screen.
The MCU is programmed over Spy-Bi-Wire from the eZ-FET programmer on a TI MSP-EXP430FR4133 LaunchPad. Any MSP430 LaunchPad with an eZ-FET should also work. J1 carries the four programming signals plus the MCU's serial port.
Take the coin cell out. The LaunchPad powers the board at 3.3 V, and with a cell fitted it would push current back into it. The board's silkscreen says so too.
Pull every jumper off the LaunchPad's J101 isolation block. That disconnects the LaunchPad's own MCU, so the eZ-FET talks only to this board.
Wire J1 to J101 with dupont jumpers. Use the J101 pins on the eZ-FET (emulator) side, not the side that runs to the LaunchPad's own MCU:
| ocn-LCD J1 | LaunchPad J101, eZ-FET side |
|---|---|
| 3V | 3V3 |
| R | SBW RST |
| T | SBW TST |
| GND | GND |
| RX (optional, serial) | RXD |
| TX (optional, serial) | TXD |
The serial names match straight across. J101 labels its pins from the target MCU's point of view, so its RXD carries data into this board's RX.
Flash the firmware with TI UniFlash or Code Composer Studio. Select the MSP430FR4131 and the
LaunchPad's eZ-FET as the connection. Or, with msp430-gcc and DSLite installed (see
firmware/README.md), run make GLASS=gdc04212 MCU=msp430fr4131 flash in
firmware/.
Unplug the LaunchPad before measuring current or fitting the cell. The programming and serial lines draw current of their own.
Measuring battery current. R2 (1 Ω, 1206) sits in series with the cell. Lift it and connect a current meter across its pads. TP3 is a test pad on the switched 3 V supply.
ocn-LCD.kicad_pro, .kicad_sch and .kicad_pcb: the KiCad 10 project. The board is 27 × 65.4 mm,
two layers.lib/: the board's own symbols and footprints: the MSP430FR413x, the GDC04212 and its footprint,
the coin-cell holder and the reed switch. The project's library tables point at this folder, so the
project opens without any other library installed.firmware/: the MCU's firmware, in C for msp430-gcc, with its own README covering how it works, how
to build and flash it, and the current measurements.GERBER-ocn-LCD.zip and jlcpcb/production_files/ (BOM and CPL): the JLCPCB fabrication and
assembly files. docs/ORDERING.md explains how to use them.The board (everything outside firmware/) is licensed under the CERN Open Hardware Licence
Version 2 – Permissive (CERN-OHL-P v2). See LICENSE and NOTICE.
You may make, modify, and sell boards from these files, with no obligation to publish your changes.
The firmware in firmware/ is licensed under the MIT License; see
firmware/LICENSE. It is just as permissive, in the form usual for software.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | 100n | Capacitor_SMD:C_0603_1608Metric | C4, C5, C13, C14, C15, C16 |
| 3 | 4.7u | Capacitor_SMD:C_1206_3216Metric | C1, C2, C3 |
| 2 | 20p | Capacitor_SMD:C_0603_1608Metric | C9, C10 |
| 1 | 10M | Resistor_SMD:R_0603_1608Metric | R3 |
| 1 | 1R | Resistor_SMD:R_1206_3216Metric | R2 |
| 1 | 1n | Capacitor_SMD:C_0603_1608Metric | C11 |
| 1 | 32.768k | Crystal:Crystal_SMD_3215-2Pin_3.2x1.5mm | Y1 |
| 1 | 3V | TestPoint:TestPoint_Pad_1.5x1.5mm | TP3 |
| 1 | 47K | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | AO3401A | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | CR2032 | LowPower:BatteryHolder_LianXin_BS-CR2032-8_1x2032 | BT1 |
| 1 | GDC04212 | LowPower:LCD_GDC04212_1x12_P2.54mm | DS1 |
| 1 | MSP430FR4131IPM | Package_QFP:LQFP-64_10x10mm_P0.5mm | U1 |
| 1 | PROG | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J1 |
| 1 | REED (NO) | LowPower:SW_SPST_REED_Littelfuse_59170_GullWing | SW1 |

garrettsworkshop/TimeDisk
Apple II memory expansion card with 1 MB battery-backed RAM and NoSlotClock-compatible clock

ArcaneNibble/puya-spinner
Puya PY32 deliberately-overengineered fidget spinner

KNEAGHUST/PCB_Christmas_Tree_AGH
PCB Christmas tree designed for the AGH University of Krakow

MitchellStride/Hummingbird-RP2040-Clock-Module
RP2040 RTC Module, highly compatible with JLCPCB's basic SMT components.


frahncky/Smart-Metering
Analisador trifásico de energia e qualidade de energia com interface gráfica touchscreen.

Global-Health-Engineering/h2s-monitor
Design and Development of a Low-Cost Hydrogen Sulfide Sensor System for Biogas Monitoring

ktims/xmascard2020
If you're here, it's probably because I sent you a card/ornament and you can't get it to work, thought it might be fun to hack on, or you were curious how it was designed. Unless it's the first one, awesome!!
It measures 27 × 65.3 mm and has 2 copper layers, 1.6 mm thick.
23 parts, built around the MSP430FR4131IPMR, AO3401A and CR2032. 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.
From the z2amiller/ocn-LCD repository on GitHub, at the commit this page was made from: the board is ocn-LCD.kicad_pcb and its schematic ocn-LCD.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the CERN-OHL-P-2.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).