boscacci / Arduino-Subway-Clock

Build your own ioT subway clock with Arduino!
21 stars 2 forks source link

You're about to make your own MTA clock!

Here's how to do it:

  1. Register for an MTA API key.
  2. Host a server.
  3. Put and run MTA API code on the server.
  4. Buy parts.
  5. Wire it up.
  6. Install some software.
  7. Set up your Arduino project.
  8. Edit your MTA Clock preferences.
  9. Compile and upload the code.
  10. Make an enclosure.
  11. Assemble.
  12. Don't miss your train!

1. Register for an MTA API key.

2. Host a server.

3. Put and run MTA API code on the server.

4. Buy parts.

These are the parts you will need and some examples of where to find them:

5. Wire it up.

Adafruit OLED Wiring Guide:

OLED pin ESP32 pin
1 (gnd) GND
2 (vin) VIN
4 (rs) 14
5 (rw) 32
6 (en) 26
11 (d4) 33
12 (d5) 27
13 (d6) 12
14 (d7) 13

6. Install some software.

6.1 Install ArduinoIDE.

6.2 Install ESP board in Arduino.

6.3 Install necessary libraries.

7. Set up your Arduino project.

8. Edit your MTA Clock preferences.

9. Compile and upload the code.

10. Make an enclosure.

11. Assemble.

If you're happy with your preferences, and everything fits properly in the enclosure, you can solder the connections and install everything in the enclosure.

12. Don't miss your train!

If you're still reading, thanks for reading me. Now, credit where credit is due! Thanks to:

Zach Kuperstein for toiling in an unfamiliar language to make this, and making the instructions as clear as possible!

Jon Thornton for making the MTA's GTFS protobuf accessible.

Bill & George at NYC Resistor for making the first generation version of this.

The MTA for making its data available to the public.