Skip to content

Display up-to-date MTA bus arrival times for one stop in NYC with a Raspberry Pi Pico 2W and 1602 LCD

Notifications You must be signed in to change notification settings

ngolebiewski/pi-bus-pico-2w

Repository files navigation

PI BUS PICO

A Raspberry Pi Pico 2W with 16x2 LCD Screen NYC MTA One-stop Bus Tracker

Every morning will you be going to the same bus stop? Pain to look up on your phone. This little device will update you on arrival times for your near-to-home (or work) MTA bus stop. Once set up initially, all you have to do is plug it in.

Note: Project uses Micro Python and Thonny as IDE bus arrival times rotating on screen

Setup

  1. Get an API key from the MTA https://register.developer.obanyc.com/
  2. Instead of an .env (dotenv library space constraints) make a my_secrets.py file with:
    • API_KEY=
    • STOP_ID= i.e. 401608
    • KNOWN_NETWORKS={'ssid':'password', etc}
    • LOCAL_OFFSET = -4 * 60 * 60 # for EDT (UTC-4) NYC!
  3. Hardware:
    • I2C LCD1602 - uses 5 volts
    • Raspberry Pi Pico 2W
    • USB cable

snapshot of lcd screen soldered to pico


Planning:

First time, be able to connect via wifi to pico to set wifi credentials and pick a bus stop.

FYI: https://www.mta.info/developers to get bus GTFS (bus stop lists)


This Repo and workspace started with the 'Python Quick Setup Workspace'

by Nick Golebiewski https://github.com/ngolebiewski/py_starter

📦 Virtual Environment

Activate:

source .venv/bin/activate

Deactivate:

deactivate

About

Display up-to-date MTA bus arrival times for one stop in NYC with a Raspberry Pi Pico 2W and 1602 LCD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages