In this project, I've designed and built a relay control panel based on the raspberryPi board and 5" dsi touchscreen. \
In this work, I've used 2 8ch relay boards connected to an arduino mega communicating over USB serial connection. \
It is assumed you have a working knowledge of python and the raspberry pi including linux as well as Arduino programming
Raspberry Pi 3B and accessories FREENOVE 5 Inch Touch Screen https://www.amazon.com/dp/B0B455LDKH?psc=1&ref=ppx_yo2ov_dt_b_product_details Arduino Mega 2560 with USB cable 2X 8 Channel Relay Boards 3D printed Case designed by hiruna https://www.thingiverse.com/thing:5488963
- Clone the github repository using the following command
git clone https://github.com/fierrojulian/TouchScreenRelayPanel.git - Install guizero. Open new terminal (Ctrl+t) and enter:
sudo pip3 install guizero - After Raspbian is installed we will need to add the main program (main.py) to the raspberryPi autostart using crontab (tip).
Open new terminal (Ctrl+t) and enter the following command:Select to open using nano. Add the following line to the end of the file:sudo crontab -eclose and save using Ctrl+x and enter Y.@reboot python3 /home/pi/TouchScreenRelayPanel/main.py &
At this point the program should run every time the raspberryPi is starts.
- I believe that the project can also be implemented using the raspberryPi zero.
Julian Fierro, with inspiration from Ron Berenstein - website
This project is licensed under the MIT License - see the LICENSE.md file for details