Overview
A little over a year ago I moved to Austin after graduating college in DC. One of my favorite parts about living in DC was access to the metro, so when moving here I ended up picking an apartment overlooking the CapMetro Red Line.

Seeing the train go by I thought it would be interesting to make some sort of live tracker to visualize it. I'd seen PCB transit maps created for other cities like DC, NYC, and Chicago but nothing similar existed for Austin so I decided to attempt to create my own.
Hardware
I started by defining basic features like board size, LED type, and which microcontroller to use. Board size came first, and I opted for a 6 x 8 inch board so the design could fit into a standard picture frame. For the LEDs I decided to use addressable RGB LEDs simply because they were easier to wire than setting up an LED matrix and I had an LED strip on hand to test on before I ordered the boards. My final pick was the XL-2020RGBC-2812B since it was widely available in the JLC part library and I thought the size (2 x 2 mm) would make for a good LED density with my board size. Finally, I went with an ESP32 as my microcontroller of choice. This mainly came down to its WiFi abilities, wide availability, and that I had a couple of dev boards on hand to test with.
Using an official CapMetro map as a reference, I drew out the Red Line using Inkscape so I could later import it into KiCad as the silkscreen. Since the LEDs were 2 x 2 mm I made the line width 2.2 mm so it would still be visible beneath the footprints.


Including just the Red Line made the map feel a little bit too sparse for my liking so I looked into other potential routes to include. Austin is currently in the process of building another rail line through UT and downtown, but with construction not expected to complete until 2033 I didn't want to lock my map into plans that could potentially change. Instead I decided to include the four CapMetro Rapid bus lines on the map, using a double line to differentiate them from the rail route.
To finish the map graphic I added stop labels, route numbers, and used Inkscape to draw various Austin landmarks. Included are the Texas State Capitol, the UT Tower, St. Edward's University, the Mueller control tower, Q2 Stadium, and the moontower in Zilker Park.

To implement the ESP32 on the board I used the Espressif schematic as a reference but decided to use USB-C instead of a micro USB port. This included implementing a USB to UART converter to allow direct flashing of the board without an external device. Rough estimates on worst-case power draw put the board at around 2 amps so I placed 5.1 kΩ resistors on the CC pins to request 5V 3A. I also added a WiFi indicator LED and a MODE button to allow for the ability to cycle settings and brightness levels.
The LED schematic was relatively straightforward. Each route was separated into its own chain of LEDs connected to GPIO ports on the ESP32. Since the LEDs operate on 5V logic, a level shifter is present at the start of each line as well as a series resistor to prevent current spikes. Pulldowns were added at the start of each chain to prevent any noise during boot-up from accidentally activating LEDs.


Initially my plan was to do a two-layer board but I decided to go with a four-layer stackup instead for peace of mind with my power routing and signal integrity. Signals and ground on TOP, ground fill on IN1, power on IN2, and signals and ground on BOTTOM. The ESP32 and associated circuitry were placed in the lower right corner where I had reserved space in my graphics. In total 197 LEDs were placed along the routes with 4 mm of spacing between them.


Once I was happy with the placement and routing I added just a couple more final touches before sending it to get manufactured. I added test points for the last LED in each chain (these ended up being useless due to how the LEDs transmit data) as well as for 3.3V, 5V, and GND. For future wall installation I added mounting holes in the four corners and made sure to create voids on the power layers so an oversized screw won't lead to a short. Silkscreen is limited to white only so to represent the river I created a void in the ground fill. On the back I put a QR code to link to setup instructions and some basic information. I had some extra space so I included the frog from the "Hi, How Are You" mural as a small tribute to Daniel Johnston.


Getting the board actually made was the most terrifying part to me. I would like to thank Luke Adams, John Burr, and Jonathan He for taking the time to review my design and catching any errors before manufacturing. This was my first time doing PCB assembly but I found the process to be pretty straightforward. I used the Fabrication Toolkit plugin in KiCad to produce my gerbers, BOM, and position files and they all worked with JLC with some minor position adjustments.
Software
Before I start I have to admit that my coding skills are very limited and I relied on AI for a lot of the software aspect of this project. I did know the basic workings of GTFS and I used that to guide the firmware design. Each time GTFS is polled a list of all the transit vehicles is returned with information such as route number, heading, and coordinate position. For live mapping to work each LED needs to be mapped to a specific route and coordinate, so the firmware can then compare that information to the vehicle list to map live positions. Instead of finding and writing each position manually I had AI create a visual mapping tool that allowed me to go through each line and click on a real-life map to set coordinates. This was a lifesaver.

While waiting for the actual board to arrive I had AI write the firmware and I tested it on the dev kits that I already had. This allowed me to make tweaks to the setup process and the overall look and feel of the device. It's definitely "vibe coded" but it works and is better than what I could have done on my own. Using the LED strip I had lying around I left the ESP32 running for a couple of days to watch out for and fix any connectivity problems.
Bring Up
A couple of weeks after I placed my order, the moment of truth arrived. Luckily everything looked good directly out of the box. I had some concerns about the silkscreen quality with how small some of my graphics were, but everything turned out great. Using a multimeter I did a quick check just to make sure that none of the power rails were shorted together and then I plugged it into my laptop. The power LED lit up and my computer recognized the UART interface immediately. Either I got lucky or my neurotic design checks paid off but I was able to flash the device on the first try and everything worked hardware-wise. There was a minor software bug causing some LED flicker but after looking at the data lines through an oscilloscope it was found and fixed.

Overall I'm really happy with how the whole project turned out. I need to get a stand for it or something but it's currently on my side table resting against a plant. I'm definitely more confident in my board design abilities and I want to get started on another project as soon as I'm inspired.
