Most first PCB projects end up as a blinking LED and a header strip. Light Rail shows how far the same parts can go: a handful of SMD LEDs, one microcontroller, a rotary dial and some DIP switches become a playable model railroad the size of a business card. For ECE students hunting for a capstone or a freshman design project, it is a useful reminder that clever firmware can turn cheap hardware into something people want to hold.
A railroad with no moving parts
Light Rail comes from a small maker outfit called Fun Name Products. Instead of plastic locomotives, the board uses dozens of tiny surface-mount LEDs laid out as a looping track with several sidings. The microcontroller lights them in sequence so a “train” appears to travel around the loop, and different LED colors stand for the engine, the railcars and other track elements. A dial in the lower-right corner sets speed and direction, while DIP switches throw track switches and work the couplers so you can shunt cars between sidings.
The firmware carries 4 games, with the rules printed on the back of the board. One asks you to park railcars in a target zone. Another shows a ghost train you must copy by sorting cars into the right order. A third has you dodging a bomb, and the last is an electronic version of the trolley problem. The Kickstarter tiers start at $35, roughly PHP 2,000.
How the circuit likely works
- Power: 3 AAA cells on the back give about 4.5V fresh, dropping toward 3.3V as they drain, so the MCU and LED drive need to tolerate that whole range.
- LED drive: dozens of LEDs on a small MCU almost always means multiplexing or charlieplexing, scanning rows fast enough (above roughly 100 Hz) that your eye sees steady light. Each GPIO pin ends up serving many LEDs.
- Inputs: the rotary dial can be read as a potentiometer on an ADC pin or as an encoder on 2 interrupt pins. DIP switches are plain digital inputs with internal pull-up resistors enabled.
- Game logic: the track becomes an array of positions in code, and each game is a state machine checking where cars sit when you finish.
Build your own pocket railroad
You can prototype the idea on a breadboard before you ever solder an SMD part. Start with an Arduino Nano or an ATtiny85, a WS2812B strip (one data pin drives every LED, so no multiplexing headache), a 10k potentiometer for speed, and a 4-position DIP switch. Lay the strip out as an oval and write a function that shifts a 3-pixel “train” one step per tick, with the tick delay mapped from the pot reading. The tricky part is the siding logic: model each switch as a branch in your position array and read the DIP state before every move. Once the code works, move it to a KiCad board and order it as your first PCB.
Read the original write-up and photos of both sides of the board on Hackster.
Frequently Asked Questions
How does Light Rail make trains move without motors?
A microcontroller lights a chain of surface-mount LEDs in sequence along a printed track, so a group of lit LEDs appears to travel around the loop. Different LED colors represent the locomotive and railcars.
What parts would I need to build a similar LED railroad?
A small microcontroller such as an Arduino Nano or ATtiny85, an addressable LED strip like WS2812B, a 10k potentiometer for speed, a DIP switch bank for track switches, and a 3xAAA or USB power source. A breadboard is enough for the prototype.
What will I learn if I build this?
You will practice reading analog and digital inputs, using pull-up resistors, driving many LEDs from few GPIO pins, and writing game logic as a state machine. Turning the prototype into a custom PCB also teaches schematic capture and board layout in KiCad.
