Print file

Wall and DIN-rail carrier for the ESP32-C5-DevKitC-1

A printed carrier that holds the ESP32-C5-DevKitC-1 v1.2 by its headers and clips onto a 35 mm top-hat rail or screws to a wall, with the antenna kept 15 mm from the carrier and the rail.

Rendered, not yet printed

FitsESP32-C5-DevKitC-1 (v1.2 (Espressif dimension drawing v1.2, 9 May 2025))
MaterialPETG recommended (our choice, untested). No carbon- or metal-filled filament near the antenna.
Printer settingsRecommended, not yet tested: 0.4 mm nozzle, 0.2 mm layers, 4 walls, 30% infill, back face down, supports from the build plate under the plate only
LicenceCC BY 4.0 (design), source under MIT
Downloadswall-and-din-rail-mount.scad (Source) · wall-and-din-rail-mount.stl · wall-and-din-rail-mount.3mf
Updated28 November 2026
Render of Wall and DIN-rail carrier for the ESP32-C5-DevKitC-1
Render from the OpenSCAD source. Not yet printed.

This carrier holds an ESP32-C5-DevKitC-1, board revision v1.2, upright with its antenna end at the top. It clips onto a standard 35 mm top-hat rail or screws to a wall. Use it for a gateway or monitor in a cabinet, a plant room or on a workshop wall. It is a bare carrier, not an enclosure: the board stays open to the air. The design is rendered and checked, not yet printed.

What it is for

A devkit on a DIN rail is a common way to put a Wi-Fi node into a control cabinet next to the equipment it watches. Most printable rail clips are generic. This one is built around the ESP32-C5-DevKitC-1 outline from Espressif’s own drawing. It keeps the radio’s antenna clear of both the printed parts and the steel rail.

The IoT design reasons

Material and metal near the antenna

The module’s PCB antenna area overhangs the end of the devkit PCB by 6.5 mm (F-B-003). Espressif recommends at least 15 mm of clearance in all directions around the PCB antenna inside a housing (F-B-015). The carrier applies that rule to itself and to the surface behind it:

  • The carrier plate ends 38.6 mm from the USB end of the board, 15 mm short of the antenna area. The top 21.5 mm of the board, including the whole antenna, overhangs the plate.
  • The board stands 22 mm off the plate. The antenna sits 27.6 mm in front of the rail’s face, and 30.4 mm in front of a wall.
  • The cable tie that holds the board crosses the module’s metal shield, not the antenna area.

A DIN rail is steel and so are most cabinets. Espressif’s guidance covers the housing, not the cabinet around it, and asks for the end product to be tested for throughput and range (F-B-016). Test the link with the cabinet door closed. If the cabinet is metal, plan for an external-antenna board instead. We have not measured either case. The Lab’s RF loss method is where that measurement will go.

Venting and heat

The board is open on all sides, so there is nothing to vent. If you add a temperature sensor, keep it below the board or off the carrier: board heat rises past the antenna end. The vented enclosure explains why a sensor needs its own air.

Holding a board with no mounting holes

The v1.2 drawing and PCB layout show no mounting holes (F-B-012). As in the vented enclosure, the board sits on four pillars. Each pillar ends in a narrow tooth that fits between two header pins and carries the plastic header strip. A side guide stands beside each PCB edge. The teeth fix the board along its length to within about 0.3 mm each way. A 5 mm cable tie through two slots in the plate wraps over the module shield and behind the plate, so the board cannot lift off. The feet leave a 2.8 mm gap behind the plate for the tie.

With the default tooth_gaps = [0, 7] the pillars block jumper housings on four pins per row: NC (not connected), G (ground), 8 and 7 on J1, and NC, G, 5 and 4 on J3, by the v1.2 silkscreen (F-B-028). Change tooth_gaps if you need those pins.

Mounting on the rail and on a wall

The rail profile comes from Phoenix Contact’s drawing for its NS 35/7,5 rail, which the datasheet says is tested to EN 60715. The rail is 35 mm wide and 7.5 mm high, with 1 mm flanges and 27 mm between them (F-B-021, F-B-022). The rail runs across the carrier, with its centre line 12 mm from the board’s USB edge.

  • Top hook (fixed): 30 mm wide. It reaches 1.5 mm behind the upper flange, with 0.3 mm clearance around the flange.
  • Bottom latch (sprung): two 6 mm hooks at the ends of two printed cantilever beams, each 14 mm long and 2.5 mm wide. A slot between the beams and the plate lets them bend outwards, away from the rail’s centre line. The hooks have a sloped lead-in, so the flange pushes them aside as you press the carrier on, and they snap back behind it.

To fit it, hook the top over the upper flange, swing the bottom onto the rail and press until the latch clicks. To remove it, lever the two latch hooks down with a small flat screwdriver and tilt the carrier off.

For a wall, four 4.5 mm holes pass through 9 mm feet on the back. The feet stand out exactly as far as the hooks (2.8 mm), so the carrier sits flat on the feet and the hook tips. The feet sit between the rail flanges, so they do not touch the rail in DIN use. Wall plugs, screw sizes and the wall itself are your call.

Dimensions and where they come from

Dimension Value Source
PCB width × length 25.40 × 53.60 mm Espressif dimension drawing v1.2 (F-B-001, F-B-002)
Antenna overhang past the PCB 6.50 mm Same drawing (F-B-003)
Module width, centred 18.00 mm Same drawing, DXF coordinates (F-B-004)
Header rows, centre to centre 22.86 mm, 1.27 mm from each edge Same drawing (F-B-005)
Header pitch and count 2.54 mm, 16 per row Drawing and PCB layout V1.2 (F-B-006, F-B-008)
USB edge to the nearest pin 13.925 mm Same drawing (F-B-007)
Module length and height 27.5 mm, 3.3 mm ESP32-C5-WROOM-1 datasheet v1.3 (F-B-013)
Antenna clearance 15 mm Espressif hardware design guidelines (F-B-015)
Rail width × height 35 × 7.5 mm Phoenix Contact NS 35/7,5 drawing, EN 60715 (F-B-021)
Rail flange thickness, inner width 1 mm, 27 mm Same drawing (F-B-022)

These values are not in an official drawing. Each is a parameter marked ASSUMPTION in the source:

Parameter Default What to check
pcb_t 1.6 mm PCB thickness
hdr_body_h, hdr_tail 2.5 mm, 6.0 mm Header plastic height and pin length (the user guide does not say whether headers come fitted, F-B-020)
tie_w, tie_t 5.0 mm, 1.8 mm Your cable tie, plus clearance
mount_hole 4.5 mm Wall screw size

Tolerances and parameters you can change

The board sits 0.25 mm (fit) from the side guides. The hooks have 0.3 mm (clip_c) around the rail flange. The render check confirms the carrier is 46.0 × 46.9 × 31.4 mm within ±0.2 mm, and that the mesh is closed and manifold.

  • rail_y (12 mm): where the rail crosses the board. The source refuses positions that put the top hook in the cable tie’s path.
  • under_board (22 mm): board height above the plate. The source refuses values that bring the rail within 15 mm of the antenna.
  • lip, lip_t (1.5 mm each): how far and how thick the hooks reach behind the flange.
  • beam_w, beam_len, slot_w (2.5, 17, 1.5 mm): latch stiffness. A thinner or longer beam is easier to push on and holds less firmly.
  • clip_c (0.3 mm): flange clearance. Reduce it if the carrier rattles on your rail.
  • tooth_gaps ([0, 7]): which header pin gaps carry the board.
  • Print it back face down. The feet, hook bodies and lips all reach the build plate. The plate between them spans a 2.8 mm gap, so use supports from the build plate under the plate only.
  • The latch beams flex in the plane of the plate, so print them flat as laid out. Do not stand the part on edge.
  • We have not tested how many fit and removal cycles the latch survives, or how it behaves with your filament. Test it on a short piece of rail before relying on it.
  • PETG is our recommendation, not a tested result.

Status

Rendered, not yet printed. The source renders in the pinned OpenSCAD build (openscad/openscad:bookworm.2026-11-25), the mesh is manifold and the bounding box matches dims.yaml. No print, rail fit or wall fit has been done yet. This page will say “Printed and fitted” only after a print on a named printer and material, fitted to a v1.2 board and an NS 35/7,5 rail, with a photo.

For makers

Print one, try it on a short offcut of rail, then fit the board and the cable tie. For a wall, use the four holes and keep the antenna end up and clear of metal shelving or conduit.

For product teams

In a cabinet the radio path matters more than the clip. Espressif’s guidance asks for 15 mm of antenna clearance and for end-product throughput and range tests (F-B-015, F-B-016). A steel cabinet sits outside that guidance, so measure with the door shut, or use an external antenna through the cabinet wall. A printed clip is a prototype part. For production, use a moulded or bought-in clip with its own specification, and a housing chosen for the cabinet’s environment.