Creating a live UK train-map

Designing and planning

The base shape of the map (makercase.com)
The final product (left), and the laser cut panels (right)

Electronics

  • 19 3mm Red LEDS
  • 19 330Ω resistors
  • 39 jumper wires (19 female to female) (20 female to male)
  • Random breadboard
  • Raspberry Pi 3A
Completed wiring (left) and close-up RPi GPIO wiring (left)

Software

  1. Subscribe to the Darwin Push Port which provides a live data feed of basically every single train and station update in the UK
  2. Parse and filter the XML feed items to only get status updates to trains arriving at the stations
  3. Start a timer for each station, which calls a function to illuminate the corresponding LED
  1. Creating a timer for every train arrival and depature is not very performant — each timer creates a thread, and the threads will very quickly add up, until you are out of memory
The end result

--

--

--

I like programming and using technology to make awesome stuff

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Digital and Non-Digital PDF segregator — Python

Simplified OAuth and OpenID Connect

CS371p Fall 2021: Martin Nguyen

Implementing Adaptive HTTP Streaming Using the Web

Lambda Tech Weekly Report-07.19–07.13

Columbus Omnia Luna — Mint Roadmap

HOW TO USE A DC MOTOR WITH THE RASPBERRY PI PICO

How to Teach Yourself to Code

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Wyatt Sell

Wyatt Sell

I like programming and using technology to make awesome stuff

More from Medium

Membuat Alert Disk Space dengan Bash Script

Membuat Alert Disk Space dengan Bash Script

Setting up Emacs for Clojure Programming Within Seconds

What Developers and Technologists can learn from Hackers

PulseAudio, Squeezelite and Raspberry Pi 3B