Ender 3 V2 OctoPi enclosure V2
Because the USB Relay plugin in OctoPrint doesn’t offer many features, I switched to relays controlled via the Raspberry Pi’s GPIO pins. I also added two push buttons that allow me to turn the printer and the lights on and off without having to start up my PC and do it through OctoPrint. The screws I used to secure the components are M2x6.
If you also want to switch the power supply, please keep in mind that you are working with voltages that can potentially be fatal.
If you don’t know what you’re doing, don’t do it!
Fan:
For the fan, you can use a two-wire 5V fan that runs continuously, or a three-wire fan that is temperature-controlled by the Raspberry Pi.
The fan cover I am using was designed by "Wingnuts" here is a link to his post. 30mm Fan Covers by Wingnuts.
Relays:
Use relays with a coil voltage of 3V. For controlling the relays, I use the "OctoRelay" plugin.
Push buttons:
The "Physical Button" plugin for the push buttons has some bugs. In the attached document, you will find the settings I used and the modifications I made to get it working.