Repository navigation
Conversation
An ESPHome firmware for the Pico W, for DIY Pico W builds and for the VEEB Clock Driver. Same GP13/GP14 wiring as webtime.py and the ESP32 port. - Hand position, polarity and run state are persisted in LittleFS, not ESPHome preferences: on RP2040 those live in one 4 KB flash sector that is erased on every changed save, which one save per minute would wear out in about 70 days. - The record is saved after each pulse, so a power cut at any moment leaves the hands and the record consistent. - SNTP time from a server settable at runtime (validated, persisted; set in both lwIP slots), so Home Assistant is optional. - Face time, Synchronise, pause, manual steps, pulse width, state and time-server reachability entities. Face time is refused while a pulse is energised. - api reboot_timeout 0s, OTA stops pulses first, web-page firmware upload disabled, OTA encrypted with the API key. - Host unit test for the dial maths and state record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Default pulse width 1000 ms like webtime.py, main.py and the ESP32 port; note that the VEEB Clock Driver's shipped firmware uses 400 ms - Describe the captive-portal firmware upload path on the fallback hotspot instead of claiming the web page takes no uploads at all - Note that the status LED blinks while no API client is connected - Time server: hostname or IPv4 only (IPv6 is off on rp2); correct the lwIP server-slot explanation - README: Pico W and one-pulse-a-minute scope, dashboard UF2 download, catch-up speed, neutral wording about the shipped firmware - Tests: DST cases in local-time terms rather than GMT/BST Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aquarat
marked this pull request as ready for review
October 31, 2026 16:05
Owner
|
Brilliant, this is beefy enough that I'll need to take a proper look at it. I may come back with questions :) |
Author
|
Of course 😊 no rush 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey there
I purchased a 1960s "Adelheid" Inducta clock from you on the 19th of August. It works well and I'm very happy with it 😊
The clock was supplied with your driver, which intermittently stopped working a few times. A few days ago it stopped working entirely, power cycling the device and swapping the PSU did nothing.
I opened up the enclosure and found your configuration. I then asked Claude to inspect the firmware, take a backup and then re-implement the firmware using ESPHome.
I love MicroPython and I'm using it for a fairly complex project at the moment - but for someone like me with an existing ESPHome system/Home Assistant instance and several MCUs hanging around the house, running the Veeb clock controller on ESPhome is a nice way of managing the device, loading updates and keeping control in a handily accessible location.
I'm sure you're aware that the original device firmware has a bug in it which can cause wifi credentials to be erased in certain scenarios. There's also seemingly potentially a flash wear issue, but I didn't look into this properly.
I thought I'd give this code to you as a PR in case you want it.
It is almost entirely vibe coded, but it does work quite nicely.
Feel free to close/reject this PR if you're not keen, no problem ❤️
All the best 😊
P.S. "192.168.0.21" here is an NTP stratum 1 local time server... which is a bit silly, but why not. NTPPool likes it 😆
P.P.S. the RLCD device you mentioned turned out to be perfect as an AI quota usage dashboard 😅 🫠
AI description follows (Claude Opus 5.5):
This adds
esphome/pico-w/, an ESPHome firmware for the Pico W: for DIY Pico W buildsand for the VEEB Clock Driver, which is a Pico W. It sits next to the ESP32 port from #7
and uses the same GP13/GP14 wiring and the same movement rules as
webtime.py: alternatingpulses, catch up when behind, wait when up to an hour ahead. The pulse width is adjustable;
it defaults to 1 s like
webtime.py,main.pyand the ESP32 port (the VEEB Clock Driver'sshipped firmware uses 0.4 s).
Tested on a VEEB Clock Driver driving a secondary clock (ESPHome 2026.10). For
one-pulse-a-minute movements and the Pico W (RP2040) only.
Why not just retarget the ESP32 YAML?
On the RP2040, ESPHome keeps all preferences in a single 4 KB flash sector and erases it on
every sync that changed something (
components/rp2/preferences.cpp). Saving the hand position once a minutewith
globals: restore_valuewould wear that sector out in about 70 days. So this port keepsits state in LittleFS, which spreads the writes and is safe against power loss.
What else is different
hands consistent: the next pulse repeats the same polarity, which the movement ignores if it
had already stepped.
(checked on the device, kept across reboots). Home Assistant isn't required.
width, a state sensor, and a time-server reachability sensor. Nothing moves until Face time
has been entered. Setting it while a pulse is energised is refused, because there's no way to
know whether the hands were read before or after that step.
api: reboot_timeout: 0s: no reboot when HA is away, which matters with no RTC.(only ESPHome's captive-portal recovery path on the fallback hotspot does).
The existing ESP32 README gets a one-line pointer to the new folder; nothing else outside
esphome/pico-w/changes.