Skip to the content
2 layers30 × 30 mmKroneum, the printed circuit board in 3D

🕒 -.- .-. --- -. . ..- -- Kroneum -.- .-. --- -. . ..- -- 🕒

Size
30 × 30 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
24
Pads
89
Tracks, vias
212, 18
Pours
3
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
22 Dec 2018
Updated
4 Mar 2023

Overview

Kroneum is an open-source printed circuit board by azasypkin, from the azasypkin/kroneum repository on GitHub, published under the MIT licence. It is a 2-layer board of 30 × 30 mm with 31 parts on 24 nets, routed with 212 tracks and 18 vias.

It is built around the BAT54C. Its parts include 7 capacitors, 4 switches, 2 resistors, 2 ICs and 1 diode. It belongs with the robots and motor control boards and the STM32 boards of this library.

Main components

1

README

README.md

🕐 Kroneum

Build Status

Disclaimer: I needed a dumb, autonomous, configurable and GUI-less physical timer to better manage my own time during the day and that is how Kroneum was born. Another goal was to see how well Rust fits into embedded development (basic interactions with MCU, USB stack and I2C driver).


Kroneum is an experimental, accessible (no GUI) and fully open source (both in code and hardware) time tracker device.

There is neither GUI/LCD nor Wi-Fi/Bluetooth interface available, just two buttons one can use to configure the timer. More advanced users can use built-in USB functionality to configure device (via dedicated CLI tool with optional Web interface), upgrade firmware (via DFU interface) or upload various Krouneum "recipes" (e.g. to repurpose device completely).

Usage

By default device stays in a standby low power mode and wakes up as soon as any of the button is being pressed for 3-5 seconds. As mentioned above there are just two buttons: Ⅰ (Roman one) and Ⅹ (Roman ten).

  • Long press on Ⅰ or Ⅹ button when in StandBy mode - device enters into Setup mode
  • Short press on Ⅰ when in Setup mode - increases desired timer by one unit
  • Short press on Ⅹ when in Setup mode - increases desired timer by ten units
  • Long press on Ⅰ when in Setup mode - sets timer treating unit as a second (see example below)
  • Long press on Ⅹ when in Setup mode - sets timer treating unit as a minute (see example below)
  • Long press on both Ⅰ and Ⅹ when in Setup mode - sets timer treating unit as an hour (see example below)
  • Long press on Ⅰ or Ⅹ when in Alarm mode - resets current alarm if any and enters Setup mode
  • Long press on both Ⅰ and Ⅹ when in Alarm mode - resets current alarm if any and enters StandBy mode
  • Very long press (5 seconds) on both Ⅰ and Ⅹ - enters Configuration mode and powers up USB interface

Once timer fires up it will be repeated every 10 seconds (configurable) until it's acknowledged by the long press on both Ⅰ and Ⅹ.

Examples:

  • Long Press on Ⅰ + 5 short presses on Ⅰ + long press on Ⅰ = 5s timer
  • Long Press on Ⅰ + 5 short presses on Ⅰ + long press on Ⅹ = 5m timer
  • Long Press on Ⅰ + 5 short presses on Ⅰ + long press on both Ⅰ and Ⅹ = 5h timer
  • Long Press on Ⅰ + 1 short press on Ⅰ + 2 short presses on Ⅹ* + long press on Ⅰ = 21s timer
  • Long Press on Ⅰ + 1 short press on Ⅹ + long press on Ⅹ = 10m timer
  • and so on

Configuration

Advanced users can configure device via USB with the help of dedicated CLI tool, assuming device is in Configuration mode and connected to the host PC via micro USB cable:

bash
$ cargo run -- info

$ cargo run -- beep -n5

$ cargo run -- alarm get
$ cargo run -- alarm set "5m 15s"

$ cargo run -- flash read 0x1f
$ cargo run -- flash write 0x1f 10
$ cargo run -- flash erase

$ cargo run -- reset

It's also possible to use CLI tool as a standalone server with a minimalistic Web interface:

bash
$ cargo run -- ui
  Running Kroneum Web UI on http://127.0.0.1:8080

Web server is bound to a local http://127.0.0.1:8080 address and can be accessed with any modern browser:

enclosure

Run cargo run -- help for more details.

NOTE: To use CLI tool without root privilege you may need to add the following udev rule:

text
/etc/udev/rules.d/50-kroneum.rules
----------
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="deed", GROUP="users", MODE="0660"

And then manually force udev to trigger this rule:

bash
# udevadm trigger

In the future releases Web interface will be using WebHID API completely eliminating the need in the local Web server.

Building custom firmware

If you feel adventurous you can easily build and flash custom firmware to Kroneum. You can use ./scripts/flash.sh script from fw folder to build and flash default firmware or few custom examples:

Default firmware:

bash
# Default firmware
$ ./scripts/flash.sh 

# Example: blinking through TP1/SDA pad exposed on the back side of Kroneum PCB
$ ./scripts/flash.sh blinky

# Example: interfacing with SSD1306 LCD via TP1/SDA and TP2/SCL pads exposed on the back side of Kroneum PCB
$ ./scripts/flash.sh i2c_ssd1306 

The flash.sh script is essentially consequent calls of cargo build --release ..., cargo objcopy --release ... and dfu-util ....

Prototype or DIY

Schematics is done in KiCad and can be found here. PCB includes SWD, I2C and CR2032 connectors and may look a bit oversized because of that, but on the bright side hand soldering and CNC engraving was a breeze.

The most recent enclosure was machined from 5mm (base and cap) and 2mm (buttons) Delrin and the older versions were machined from 5mm Plexiglas (walls and buttons) and 2mm Delrin (base and cap). G-Code can be found here.

See PCB and enclosure renders and photos of how it turned in real:

Demo PCB and enclosure (rendered vs real)

enclosure

Older versions

enclosure

enclosure

enclosure

enclosure

enclosure

enclosure

enclosure

enclosure

-.- .-. --- -. . ..- --

Parts

31
QtyValueFootprintReferences
12PeripheralsTestPoint:TestPoint_THTPad_2.0x2.0mm_Drill1.0mmADC1, ADC3, GND, MISO, MOSI, NSS, SCK, SCL, SDA, SWCLK, SWDIO, VDD
40.1uCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC1, C7, C8, C9
21uCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC2, C4
11MResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR2
14.7uCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC3
1470Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR1
1BAT54CPackage_TO_SOT_SMD:SOT-23D1
1BatteryLINX_BAT-HLD-001:LINX_BAT-HLD-001_0BT1
1Boot_Mode_Btntl3342:tl3342SW1
1BuzzerBuzzer_Murata_PKMCS0909E4000-R1:Buzzer_Murata_PKMCS0909E4000-R1BZ1
1Ctrl_One_Btntl3342:tl3342SW2
1Ctrl_Ten_Btntl3342:tl3342SW4
1MCP1700-3302E_SOT89Package_TO_SOT_SMD:SOT-89-3U2
1Reset_Btntl3342:tl3342SW3
1STM32F042F4Pxtssop-20x6.5mmx4:TSSOP-20_4.4x6.5mm_P0.65mmU1
1USB_B_Micromicro_usb:USB_Micro-B_Molex-105017-0001J1

More from azasypkin/kroneum

4
  • 2 layers40 × 40 mmKroneum, the printed circuit board in 3D

    Kroneum

    azasypkin/kroneum

    🕒 -.- .-. --- -. . ..- -- Kroneum -.- .-. --- -. . ..- -- 🕒

    23 parts47MIT
  • 2 layers40 × 40 mmKroneum, the printed circuit board in 3D

    Kroneum

    azasypkin/kroneum

    🕒 -.- .-. --- -. . ..- -- Kroneum -.- .-. --- -. . ..- -- 🕒

    23 parts47MIT
  • 2 layersKroneum, the printed circuit board in 3D

    Kroneum

    azasypkin/kroneum

    🕒 -.- .-. --- -. . ..- -- Kroneum -.- .-. --- -. . ..- -- 🕒

    22 parts47MIT
  • 2 layers50 × 40 mmKroneum, the printed circuit board in 3D

    Kroneum

    azasypkin/kroneum

    🕒 -.- .-. --- -. . ..- -- Kroneum -.- .-. --- -. . ..- -- 🕒

    20 parts47MIT

Similar boards

  • 2 layers101.5 × 83 mmSd2snes, the printed circuit board in 3D

    Sd2snes

    mrehkopf/sd2snes

    SD card based multi-purpose cartridge for the SNES

    154 parts722GPL-2.0
  • 4 layers51.4 × 61 mmGB LIVE32, the printed circuit board in 3D

    GB LIVE32

    Gekkio/gb-hardware

    Game Boy -related custom hardware by gekkio

    61 parts379CC-BY-4.0
  • 6 layers76.2 × 20.3 mmDEV G2-NANO, the printed circuit board in 3D

    DEV G2-NANO

    theta-machines/DEV-G2-NANO

    The G2 Nano is powered by a record-breaking 1 GHz Arm Cortex-M7 processor, combining the performance of an application processor with real-time determinism.

    141 parts346CERN-OHL-P-2.0
  • 4 layers100 × 123 mmDuet2, the printed circuit board in 3D

    Duet2

    Duet3D/Duet-2-Hardware

    The KiCAD source for the Duet 3d printer controller see www.duet3d.com

    356 parts258
  • 6 layers83.5 × 56 mmEspiff v3 1, the printed circuit board in 3D

    Espiff v3 1

    MDCservice/EsPiFF

    An ESP32 in the Raspberry Pi form factor

    172 parts223GPL-3.0
  • 2 layers33 × 22.5 mmTick, the printed circuit board in 3D

    Tick

    jkramarz/TheTick

    The Tick is the next evolution in covert access control system implants for simulating adversary-in-the-middle attacks.

    37 parts183GPL-3.0
  • 4 layers100 × 83 mmModule17-Mainboard, the printed circuit board in 3D

    Module17-Mainboard

    M17-Project/Module_17

    M17 modem board for 9600-baud capable radios

    209 parts129CERN-OHL-W-2.0
  • 2 layers145 × 165 mmBreakpanel, the printed circuit board in 3D

    Breakpanel

    monero-project/kastelo

    The Sekura Monero Hardware Wallet

    690 parts115

Questions

How big is the Kroneum PCB?

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

What parts does the Kroneum use?

31 parts, built around the BAT54C. 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 Kroneum KiCad files?

From the azasypkin/kroneum repository on GitHub, at the commit this page was made from: the board is hw/pcb/Rev_0.6/kroneum.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Kroneum design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).