Diy Raspberry Pi Nhl Scoreboard Led Panel

By admin ·
1

First, a final photo

2

Pregame info

3

Postgame info

4

Gather your materials

LED panel

Raspberry Pi

With Header

Housing

3D printed a housing

Project cost

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@scoreboard

Update the Pi and install Git

sudo apt-get update
sudo apt-get install git python-pip

Install 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.sh

Set your favorite team

sudo nano config.json
fav_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=2
1100
sudo python main.py --led-gpio-mapping=adafruit-hat --led-brightness=100 --led-slowdown-gpio=2
the rpi-rgb-led-matrix library
10

Optional: Anti-flicker mod

418
sudo python main.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=60 --led-slowdown-gpio=2
--led-gpio-mappingadafruit-hat-pwmadafruit-hat
11

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
done
CTRL-XYEnter
chmod +x ~/start-scoreboard.sh
sudo crontab -e
@reboot /home/pi/start-scoreboard.sh > /home/pi/cron.log 2>&1
sudo reboot
cron.logcat ~/cron.log
12

Optional: 3D print the LED panel housing

this amazing model
  1. raspberry_pi_zero_w_sled_alternate_version.stl
  2. cover_rpi_side.stl
  3. cover_battery_side.stl
  4. p5_panel_frame_rpi_side.stl
  5. p5_panel_frame_battery_side.stl
I highly recommend itCreality Ender 3 Review: The Best 3D Printer Under $200

Panel assembly

this great tutorial
13

Add a power button

14

Display it proudly!

15

Future plans

Real-time clock countdown functionality

I created a GitHub issue for this feature

Installing MLB scoreboard

MLB-LED-Scoreboard

Weather and a clock on off-days

Potentiometer

add a potentiometer (knob)How to Add a Raspberry Pi Potentiometer

Other things

subscribe to me on YouTubelike Howchoo on Facebook

A special thanks

  • riffnshred for developing the NHL-LED-Scoreboard library.
  • The MLB-LED-Scoreboard developers: Their repo served as the basis for the NHL-LED-Scoreboard library.
  • TomHammond on Thingiverse for designing and sharing the panel housing.
  • The rpi-rgb-led-matrix developers: 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.