DIN Rail PCB Enclosure – Customizable Electronics Case STL


Description
Need a DIN rail enclosure that actually fits your PCB?
This free STL is a ready-to-print example of a DIN rail PCB enclosure for electronics, controllers, sensors and custom circuit-board projects.
The uploaded STL uses fixed dimensions. If your PCB, mounting holes, components or terminal layout are different, you can generate your own custom version online:
https://www.buildyour3d.com/en/product/parametric_din_rail_pcb_enclosure_v1
With the online configurator you can adjust:
PCB Width & Length – match the enclosure to your circuit board
Top Component Height – allow space for components above the PCB
Bottom Component Height – control clearance below the PCB and standoff height
Hole Spacing X & Y – match the mounting-hole pattern of your PCB
PCB Hole Diameter – adapt the mounting points
Terminals per Side – create centered terminal openings on the long sides
Terminal Opening Width – adjust the openings to your connectors
Lid Ventilation – choose between a closed lid or ventilation slots
This enclosure is useful for DIY electronics, automation projects, control cabinets, sensor modules, microcontroller projects, relay boards and other DIN-rail-mounted electronics.
No CAD required. Enter your dimensions, generate the model, preview it online and download the custom STL.
➡️ Create your own DIN rail enclosure:
https://www.buildyour3d.com/en/product/parametric_din_rail_pcb_enclosure_v1
The STL provided here is one fixed example configuration. For other dimensions and layouts, use the online generator.