Skip to content

HailStorm32/Portland-Transit-Tracker_Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Info

This the code for a custom PCB that shows in real time what TriMet MAX stations have a train at them. Details regarding the board can be found here. More detail into how this was made, can be found here

For those looking for how to flash their boards, please see below.

Setup:


Setting up the IDE

  1. Install Arduino IDE
  2. Add the ablity to install the ESP32 board info
    1. Open the Arduino IDE and open the prefrences window File->Prefrences
    2. Paste https://dl.espressif.com/dl/package_esp32_index.json into the Additinal Board Manager URLs section
    3. Close the IDE and reopen it
  3. Install the board info for the ESP32
    1. Open the board manager Tools->Board->Board Manager
    2. Search for esp32 and install the latest version
  4. Select the target board Tools->Board->ESP32 Arduino->DOIT ESP32 DEVKIT V1
  5. Install the NeoPixel library
    1. Open the library manager Sketch->Include Library->Manage Librarys
    2. Search for NeoPixel and install the latest version

Setting up the code:

  1. Download this repository as a zip
  2. For those that know how to do so, you can also clone the repository
    1. See below photo
  3. Unzip the zip folder to C:\Users\[USR-NAME]\Documents\Arduino
  4. Open the IDE and open the TransitTracker.ino
    1. File->Open and navigate to the folder C:\Users\[USR-NAME]\Documents\Arduino\Portland-Transit-Tracker_Code-master\TransitTracker
    2. Click on the file called TransitTracker.ino and click Open
  5. Once the code is open, click the little down arrow at the top right and click New Tab
  6. Name the tab config.h
  7. Go to the tab that was just created, and paste in the following code
  8. 
        const char* WIFI_SSID = "WIFI-SSID-HERE";
        const char* WIFI_PSWD = "WIFI-PASSWORD-HERE";
        const char* API_KEY = "API-KEY-HERE";
      
  9. Replace WIFI-SSID-HERE with the name of your WIFI network name
  10. Replace WIFI-PASSWORD-HERE with your WIFI password
  11. Replace API-KEY-HERE the API key you got earlier
  12. Your code should look similar to this
  13. 
        const char* WIFI_SSID = "WifiName";
        const char* WIFI_PSWD = "Password123";
        const char* API_KEY = "ABCDEF1234";
      
  14. Now save by clicking the check mark in the top left or by hitting CTRL+S

Uploading the code:

  1. Plug the ESP32 into the computer
  2. Open the IDE and select the proper COM port Tools->Port
    1. If you have multiple options to pick from, you can disconnect the ESP32 and re-open the menu; the entry that disappears should be the ESP32. Reconnect the board and select that serial port.
  3. Click the upload button (shown below)
  4. A message like below will indicate a successful flash
  5. Unplug the ESP32 from the computer and remove the cable from the ESP32

Starting the board:

  1. Follow the instructions that came with the board
    1. Back up instructions can be found LINK TBD

About

Code for the Portland Transit Tracker PCB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published