this post was submitted on 15 Aug 2023
10 points (100.0% liked)

Ask Electronics

3336 readers
1 users here now

For questions about component-level electronic circuits, tools and equipment.

Rules

1: Be nice.

2: Be on-topic (eg: Electronic, not electrical).

3: No commercial stuff, buying, selling or valuations.

4: Be safe.


founded 1 year ago
MODERATORS
 

Hi, I am automating my manual switches at home with ESPHome on NodeMCU. For controlling the switches, I am using 8 channel relay module.

The back of the board has solder-points sticking out. I will be installing this relay module inside the switchboard. So I want to put it in some kind of enclosure.

Just wanted to know your thoughts on enclosure. Should I just wrap the whole thing in electrical tape? Or a plastic box maybe?

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

Something weird happened... So I edited my comment: Ive used those exact relays, 3 in a single prototype that I was tinkering with quite a lot, so what worked best for me in the end was mounting a DIN rail into my enclosure (Any box would probably work for you? I needed IP65 so I used a proper box with glands for incoming wires.) And then the relay boards were hot glued to DIN rail mounts... (The relay boards are then lined perpendicular to the DIN rail) That ensured that I could add or remove the rails as needed.

The rest of my circuit is also mounted on another DIN rail... Also allowing me to swap out main boards as I programmed/ upgraded them with minimal effort.

This was all connected by DIY 'ribbon cable' so that plugging and unplugging was also a breeze..

Granted this all might be overkill for you? Ive also have had projects that still live in shoeboxes and they work but obviously it all depends on your use cases?

Just remember, if you go the box route, to make your life easier, make sure the box is big enough to work in if anything is to be mounted permanently. Its a massive headache trying to feed one wire past all the others into the hole if you are working 20mm from the edge of your box.

Hope this helps!

(Second edit):

I read like my arse... If youre installing inside the switchboard and already have din rails, then a rail mount would be the most convienient solution

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

I think you should use turrets, the board has mounting holes for a reason

[–] [email protected] 1 points 1 year ago

I ended up using spacers so that it does not come in contact with the metal box enclosure. Thanks for pointing out the mountijg holes. It was right there and I never noticed haha. I feel like an idiot.

[–] dack 3 points 1 year ago (1 children)

Can you explain what you mean by "inside the switchboard"? Maybe a photo?

Normally, you would use standoffs to mount it.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Perfect. Ended up using the standoffs idea.

This is the wall outlet.

This is the switchboard that will be now mounted on wall mount. Wanted to avoid relay board from touching its back side.

This is the relay board now: