A server to control a scoreboard (Video on YouTube)
there is also a scoreboard-gui for a more user friendly interface.
- Raspberry Pi 3 Model B Plus Rev 1.3 (might switch to Pi Zero 2W later)
- 3x PCA9685
- SG90 Servo Motors
- Jumper wires (Shop)
apt install git python3-pip python3-full
python3 -m venv /opt/pythonenv
/opt/pythonenv/bin/pip install pip --upgrade
/opt/pythonenv/bin/pip install poetryadd /opt/pythonenv/bin: to PATH in /etc/profile
give pi user access to I2C (Pin3 and 5, SDA and SCL): usermod -a -G i2c pi
due to no real time clock we have to be able to set the time. add this line to /etc/sudoers to give the pi user the permission to change the time:
pi ALL=(root) NOPASSWD: /usr/bin/date
crontab pi user:
@reboot cd /home/pi/scoreboard && /opt/pythonenv/bin/poetry run python scoreboard.py
@reboot sleep 40 && wget -q localhost:7000/clock -O /dev/null
here are some helpful links which provided useful information for us: