https://github.com/werediver/clock
Electronic desktop clock based on Pico/RP2040.
https://github.com/werediver/clock
hardware
Last synced: 3 months ago
JSON representation
Electronic desktop clock based on Pico/RP2040.
- Host: GitHub
- URL: https://github.com/werediver/clock
- Owner: werediver
- Created: 2023-02-27T15:15:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T18:54:12.000Z (over 2 years ago)
- Last Synced: 2024-10-19T08:13:19.706Z (over 1 year ago)
- Topics: hardware
- Language: HTML
- Homepage:
- Size: 4.54 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Clock
This [Pico](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html)-based clock uses a dedicated oscillator for the built-in RP2040 [RTC](https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf#section_rtc), displays time using seven-segment indicators, features capacitive touch-sensing buttons, and a custom built-in NiMH charging circuit.
The estimated run-time on a single charge is _one week_ (yes, _just_ one week).
When assembling, refer to the [interactive BOM](https://htmlpreview.github.io/?https://github.com/werediver/clock/blob/main/KiCad/bom/ibom.html) page.
## NiMH battery charger
```mermaid
---
title: Charger state machine
---
stateDiagram-v2
[*] --> Hold
Hold --> Charge: ext_power && v < HIGH
Charge --> Charged: d(v) ≤ NDV || is_adc_saturated() || is_timed_out()
Charged --> Charge: v < HIGH
Charge --> Hold: !ext_power
Charged --> Hold: !ext_power
```
- [ ] Add a time-out for `v ≥ NiMH_HIGH` (1–2h?)