Diy Raspberry Pi Nhl Scoreboard Led Panel
1
First, a final photo
2
Pregame info
3
Postgame info
4
Gather your materials
5
Install Raspbian
6
Wire everything up
JIN1- The red wire’s pitchfork connector to the positive (+) terminal on the bonnet
- The black wire’s pitchfork connector to the negative (-) terminal on the bonnet
7
Install the software
nhl-led-scoreboardA special thanks to riffnshred on GitHub for putting this together (and for approving my pull requests)! 🙂in the README file on GitHubConnect to your Raspberry Pi via SSHchanging the Pi’s default passwordchanging the Pi’s hostnamescoreboardssh pi@scoreboardUpdate the Pi and install Git
sudo apt-get update
sudo apt-get install git python-pipInstall the library and dependencies
git clone --recursive https://github.com/riffnshred/nhl-led-scoreboard
cd nhl-led-scoreboard/
sudo chmod +x install.sh
sudo ./install.shSet your favorite team
sudo nano config.jsonfav_team_id{
"end_of_day": "12:00",
"debug": false,
"fav_team_id": 14
}8
Set your timezone
9
Test
sudo python main.py --led-gpio-mapping=adafruit-hat --led-brightness=60 --led-slowdown-gpio=21100sudo python main.py --led-gpio-mapping=adafruit-hat --led-brightness=100 --led-slowdown-gpio=2the rpi-rgb-led-matrix library10
Optional: Anti-flicker mod
418sudo python main.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=60 --led-slowdown-gpio=2--led-gpio-mappingadafruit-hat-pwmadafruit-hat11
Start the script at launch
and
Crontab: How to Run a Simple Command When Your Raspberry Pi Boots
nano ~/start-scoreboard.sh#!/bin/bash
cd /home/pi/nhl-led-scoreboard
n=0
until [ $n -ge 10 ]
do
python main.py --led-gpio-mapping=adafruit-hat --led-brightness=60 --led-slowdown-gpio=2 && break
# Uncomment and use this line instead if you did the anti-flicker mod:
#python main.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=60 --led-slowdown-gpio=2 && break
n=$[$n+1]
sleep 10
doneCTRL-XYEnterchmod +x ~/start-scoreboard.shsudo crontab -e@reboot /home/pi/start-scoreboard.sh > /home/pi/cron.log 2>&1sudo rebootcron.logcat ~/cron.log12
Optional: 3D print the LED panel housing
this amazing model
raspberry_pi_zero_w_sled_alternate_version.stlcover_rpi_side.stlcover_battery_side.stlp5_panel_frame_rpi_side.stlp5_panel_frame_battery_side.stl
Panel assembly
this great tutorial13
Add a power button
14
Display it proudly!
15
Future plans
Real-time clock countdown functionality
I created a GitHub issue for this featureInstalling MLB scoreboard
MLB-LED-ScoreboardWeather and a clock on off-days
Potentiometer
add a potentiometer (knob)How to Add a Raspberry Pi PotentiometerOther things
subscribe to me on YouTubelike Howchoo on FacebookA special thanks
- riffnshred for developing the
NHL-LED-Scoreboardlibrary. - The
MLB-LED-Scoreboarddevelopers: Their repo served as the basis for theNHL-LED-Scoreboardlibrary. - TomHammond on Thingiverse for designing and sharing the panel housing.
- The
rpi-rgb-led-matrixdevelopers: Their library helps us control our LED panels so, so easily.
16
Questions? Comments?
Want to keep up with your favorite teams this season? Check out this guide on how to add your favorite sports team’s schedule to your Microsoft Outlook Calendar.