Skip to content

An LED display board that shows when the next TTC vehicles will be arriving at a transit stop

Notifications You must be signed in to change notification settings

melkuo/next_ttc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Next TTC

Next TTC displays when the next TTC vehicles will be arriving at a given stop. 2 x twelve MAX7219 LED displays are attached to a wifi-enabled ESP8266 microcontroller.

Supplies

  • 24 MAX7219 LED Displays (2xCAD$16)
  • Right angled header pins (CAD$10)
  • ESP8266 Microcontroller (CAD$12)
  • KeeYees breakout board (CAD$15)
  • Jumper wires (CAD$13)
  • MicroUSB to electrical outlet

The MAX7219 displays have to be soldered together with the help of the header pins. See this video for more information. Instead of buying male-to-male header pins like in the video, you could buy male-to-female right angled pins. Not only does this require less soldering, but it also lets you more easily take the pieces apart.

If you'd prefer not to solder, I'd look into a display like the P10. It has benefit of different colours but note that it's also considerably more expensive.

Additionally, for the Canadians, the KeeYee microcontroller I've linked is too wide to fit on a traditional breadboard. You could look into breaking one into two or buy the breakout development board I've linked above to make things easy. From pictures from reviews, the American one does not seem to have this problem.

Circuit set-up

This circuit uses 2 x twelve MAX7219 display set up in parallel. Display 1 is the first row of twelve and shows the route title, Display 2 is the second row of twelve and shows the predictions.

Display LED Connection Microcontroller Label
Display 1 DIN D7 (GPIO13)
Display 1 CLK D5 (GPIO14)
Display 1 CS D8 (GPIO15)
Display 2 DIN D2 (GPIO4)
Display 2 CLK D1 (GPIO5)
Display 2 CS D3 (GPIO0)

The displays could share the same VCC, GND, DIN and CLK. You would need to strip the wires and solder them together to form a Y-shaped jumper wire.

IDE set-up

I would recommend watching this video, which walks you through:

Code set-up

const char* ssid = "";
const char* password = "";
String stopsUrlString = "&stops=504|1159&stops=501|10272";
int delayBetweenPredictions = 20000;
  • Add your wifi credentials
  • Add the stops in format &stops=<routeTag>|<stopTag>. See command for predictionsForMultiStopsin TTC API documentation for more info.
  • Change the amount of time before displaying the next route prediction (optional)

Helpful videos and resources

About

An LED display board that shows when the next TTC vehicles will be arriving at a transit stop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages