April 5, 2026
Description
I needed a compact, neat 16 relay solution for my Arduino puzzle box project so I made this DIN rail mounted 2x 8-relay module holder. It uses 2 phoenix contacts PTFIX terminal blocks.
To not lose 16 pins on my Arduino I used this GPIO extender.
Now it's controlled via the I2C protocol that can be used for Arduino, raspberry pi, ESP32 and others using only 4 wires. (ground, 5v, SCL and SDA)
This is my setup:
A neat and clean organisation of parts.
For those interested I used this Arduino shield with locking connectors to hook up all my sensors.
There is a huge collection (100+) of plug&play sensors and accessories with strong and reliable locking connectors to keep things neat, organized and securely fixed.
I made 2 versions of mount. One using the PTFIX mount and one using 4x 3D printed DIN mounting latches.
Both need to be glued in place.
I de-soldered the headers and re soldered wires on the other side of the board for a more clean build. This is not strictly necessary though, since there's room for outside routing of wires.
Be aware the size of your boards because they do differ!
My boards are 138 x 50, specifically I used these boards.
Another common size board is 138 x 56,5mm, these boards.
I designed for both, so you can pick the one you need.
I designed the model with 3D printed rail mounts (print 4 of these on there side) and you superglue them in.
I personally used the nice PTFIX rail mounts that came with my terminal blocks and glued those in.
I added that version too. Again, pick what you need.
The screws I used are M3x8. The holes are 2,9mm so you can just screw them in the plastic.
On the sides, there are holes to screw in M3x8 screws to secure the terminal blocks in place if you need to.
Leave al like if you take the model with you please!
I printed in PETG
0.4mm nozzle
0.2mm laier height
With supports
15% infill.
License:
Creative Commons — Attribution — Noncommercial — Share Alike
9