Live London bus departures board on a Pimoroni Badger 2350 #19631
marciolopes93
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've had a Pimoroni Badger 2350 (RP2350) running as a live bus departures board for the stop outside my flat for a few weeks now, and it's turned out well enough to publish: https://github.com/marciolopes93/tfl-bus-arrivals-badger2350. MicroPython, MIT, no API key — it hits TfL's public arrivals endpoint directly and wttr.in for the weather.
Six arrival rows and a weather footer, refreshing every two minutes and deep-sleeping in between, so it runs for a week or more on the internal LiPo. Rather than just dumping the data on screen I spent most of the effort making it degrade gracefully rather than lie: overnight it parks and only wakes hourly for a clock/weather heartbeat, it latches a static low-battery screen instead of showing stale times, and it fails over to a neighbouring stop when TfL reports mine closed. Anything stale gets labelled or dropped.
Under the hood it's a plain wake → fetch → draw → sleep loop. Deep sleep is a full reset on this firmware, so every cached value has to be written to flash and rehydrated on the next wake, and that one constraint ended up shaping most of the design.
Full write-up of every Badgeware v2.x quirk is in the repo (HANDOFF.md / docs/FIRMWARE-NOTES.md). It's my first project up on GitHub, so I'd really welcome any feedback on the code or the approach.
All reactions