Final results
With the application and systemd service configured and installed on the target SBC, it will automatically start and configure itself. To complete the system, you could install it along with a suitable power supply into an enclosure, into which you would run the signal wires from the switches, the network cable, and so on.
One implementation of this system was installed at the Entropia hackerspace in Karlsruhe, Germany. This setup uses a real traffic light (legally obtained) outside the club door with 12 volt LED lights for status indication. The SBC, relay board, debounce board, and power supply (5V and 12V MeanWell industrial PSU) are all integrated into a single, laser-cut wooden enclosure:
However, you are free to integrate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access