Introduction: DIN Rail Mount for Raspberry Pi 4

Sometimes it is useful to mount your Raspberry Pi 4 based project permanently in a control cabinet - for example in home automation or industrial applications. In such cases our RasPiBox Enclosure Set for Raspberry Pi A+, 3B+ and 4B can help you to come to a rugged solution with professional look. In this documentation we will show you how to use RasPiBox with the different Raspberry Pi Boards boards

Step 1: Tools and Materials



  • Soldering iron
  • screw driver
  • side cutting pliers
  • needle nose pliers

Step 2: PCB Assembly

The enclosure kit includes a prototyping pcb with integrated 5V power supply. So you can use for example 24V DC by the cabinet to power the Raspberry Pi inside the enclosure.

In the first step you have to assemble this PCB of the RasPiBox kit. Please follow the attached construction manual.

If needed, you can add additional circuit or modules (RTC, communication...) on the breadboard area beside the Raspberry Pi. Beside the breadboard area you will find all marked GPIO and power pins.

Step 3: PCB Mounting

Step 4: Place the Raspberry Pi

now you can plug the Raspberry Pi 4 to the main pcb

Step 5: Open the Terminal Covers

Depending on the used terminals you have to remove the terminal covers of the top shell. These covers comes with rated break points. You can remove it with a screw driver and a nose pliers

Step 6: Cabinet Mount

After mounting the top shell you be ready to mount the RasPiBox in a cabinet.

Step 7: Different Ways of Power Supply