TrainLight: Transit Info At A Glance

In a world of sensory overload, sometimes it’s nice to get the information you need without a bunch of clutter. [Savage] has created an attractive and minimalist system to display the current wait times for specific trains in his San Francisco neighborhood.

trainlight-legendIt’s basically a Spark Core and a 60 LED-per-meter strip of WS2812Bs. A 1000µF cap filters the power coming in from a switching adapter and a resistor limits the level-shifted logic going to the LEDs. Eight barriers made from card stock keep the light zones from bleeding together. The sides of the square canvas panel indicate cardinal directions and are oriented to [Savage]’s southern-facing house.

The server gets prediction data every 30 seconds using the RESTbus JSON API. [Savage] added in a bit of time for walking down the stairs, putting shoes on, and walking to each stop. TrainLight receives these times over WiFi and lights the LEDs accordingly. If a section isn’t lit at all, the wait time for that line is greater than 10 minutes. Dark green means you have 5-10 minutes to get there, and pale green means 2-5 minutes. If the LEDs are yellow, you’d better put on your running shoes.

This is a fairly simple build with a focus on subtlety. Even before guests in his house understand what they’re looking at, [Savage]’s TrainLight makes for an interesting conversational piece of blinkenlights and doubles as illumination for the stairs. There’s a slightly sped-up demo after the break.

Want to make your own? [Savage] has a tutorial page and his code is up on the gits. Blinky lights are also good for telling you whether the trains are running at all.

7 thoughts on “TrainLight: Transit Info At A Glance

  1. Translink here in Queensland provides full GTFS-realtime data for all transport vehicles (bus, train, ferry, tram) backed by GPS tracking of every vehicle. One of these days I will find the time to write an app for my phone that pulls the GTFS-realtime data and display the bus I am currently on and the upcoming stops so I could see when the stop I need is comming up :)

Leave a Reply to MaxCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.