Listed below are the supplies necessary to begin installing the Sports Scoreboard.
The resources below are also needed to further set up the project.
- 3D Printing Device
- 3D Printed Panels
- Jumper Wires to Connect from the Buttons to the Circuit
- Soldering Iron Equipment
- 2.4 GHz Wi-Fi Connection
- Shell to Set Up the Connection from the APIs to the Raspberry Pi
- 3M Double-Sided Tape (*NOT REQUIRED but it helps keeping the Pi in place on the panel)
- Small Metal File (*NOT REQUIRED but used to shave holes on the case to fit other buttons)
Once all the parts have been delivered, you can begin building the project following
this installation guide step-by-step.
- Begin by printing out the 3D objects by downloading it here.
NOTE: If the buttons don't fit in the case, use a metal file to shave the button holes at the top of the case.
-
Using the micro SD card you bought
i. Download and install Raspbian Buster Lite OS disk image on your PC.
ii. Flash the disk image from your PC to the SD card.
iii. Locate the /boot directory that your SD card is mounted as.
iv. Create a plaintext file called wpa_supplicant.conf and paste the following code.
v. Replace the country, ssid, and psk variable values with correct values that correspond to your 2.4GHz network.country=US # Your 2-digit country code ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev network={ ssid="YOUR_NETWORK_NAME" psk="YOUR_PASSWORD" key_mgmt=WPA-PSK }
vi. Create an empty file named ssh by executing the following code your shell.
touch ssh
-
Insert the SD card into the Pi and boot up the system.
NOTE: Make sure the .conf file you made disappears from your SD card's /boot directory once your Pi boots up, correctly.
- Connect the RGB bonnet on top of the Raspberry Pi.
- Solder the button to the bonnet to pin 24 using a jumper wire.
- To prevent the LED panle from flickering, solder another, smaller jumper wire from port 4 to port 18 on the bonnet.
- Using the gray ribbon you bought, connect one end to the panel's JIN1 port and the other end to the bonnet's JIN1 port.
- With the Y-cable included with the LED panel, connect one of the connectors to the battery side of the panel.
- On the other end of the Y-cable are two pitchfork connectors
i. Connect the red wire's pitchfork connecter to the positive terminal shown on the bonnet by using a flathead screwdriver.
ii. Connect the black wire's pitchfork connecter to the negative terminal shown on the bonnet by using a flathead screwdriver. - Connect the power supply to the bonnet and wait unitl a green light turns on.
- Screw the 3D printed panels onto the holes in the LED panel.
- Drill 4 holes on the sides of the 3D printed case for the LED board at the locations where the panels have holes standing up.
- Screw the LED board onto the case, insert the power supply cord through the rectangular hole on the 3D printed case.
- Connect to your Raspberry Pi by using the ssh pi@raspberrypi command, the default username is pi and the default password is raspberry.
- Now that in your Pi's terminal, run the command below.
sudo raspi-config
-
Navigate to the option titled "Localisation Options" and set the timezone to your local timezone.
NOTE: You can use the Raspberry Pi Configuration Tool to change the ssh username and password, for more security.
-
Install the Python, Git and Pip tools with the following command.
sudo apt-get git python3 python3-pip
-
Clone the project repository by pasting this command on the terminal.
git clone --recursive https://github.com/SrDesignLEDBoard/super-board
- Change into the project directory and install the rpi-rgb-led-matrix located inside.
-
Install all the necessary Python libraries needed to get the project running by executing the following command.
pip install -r requirements.txt
-
In config.py , add the abbreviations for the teams you want to display on the scoreboard in _FAVS arrays for each sport.
NOTE: The abbreviations for each team in each sport is located in each of the sport's directory in a file called teams.py.
-
Boot up the LED Scoreboard by executing and running the following command.
./run.sh