For our first Raspberry Pi project we decided to make a NYC subway themed clock with a led pixel display and a Raspberry Pi.
Main goal:
- To create a clock display, which tells (i) the time and (ii) the stops for Line 6 in New York city.
Phase I Goal:
- Clock to display time + names of subway stops for Line 6 at fixed intervals Phase II Goal:
- Clock to display time + live updates from of subway, e.g. 10:10, arriving at Longwood Av., using MTA api
Stretch goals:
- Combine Raspberry Pi + Display to use a single source of power
- Create frame for clock
- Adafruit 16 x 32 RGB LED Matrix Panel Display
- Raspberry Pi Zero (with WiFi)
- See more materials: https://learn.adafruit.com/connecting-a-16x32-rgb-led-matrix-panel-to-a-raspberry-pi/you-will-need
- Download and Install raspbian to SD card
- Plug in SD Card to Raspberry Pi
- We wanted to setup our raspberry pi without ever having to plug it into a physical screen so we followed this gist that allowed us to do so as long as we had a micro USB cable and an additional computer
- Use micro USB cable to connect a computer to the Pi
- Go to Mac/PC and SSH via network address into Raspberry Pi Use login credentials available on Pi to log in ssh pi@raspberrypi in terminal password: raspberry
- Use command line on Mac/PC to control Pi
- Setup wifi on Pi by following: https://medium.com/a-swift-misadventure/setup-your-raspberry-pi-2-3-with-raspbian-headless-without-cables-c78309fd7045
- Transfer files from Mac/PC to Raspberry Pi:
- http://thomasloughlin.com/how-to-transfer-files-from-a-mac-or-pc-onto-a-raspberry-pi/
- Example:
scp test.jpg pi@raspberrypi.local:~
(test.jpg is in home directory e.g. Ismael)
- Set the clock on the Raspberry Pi
We would recommend following hzeller guide
sudo python main.py
- Create photoshop images (in pmp format) of all train stop names
We are use the python bindings of hzeller rpi-rgb-led-matrix project so be sure to install clone his repo and install all necessary libraries for getting images displayed