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?

  • sokkies@lemmyrs.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    a 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

    • WhyAUsername_1@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      a 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
    link
    fedilink
    English
    arrow-up
    3
    ·
    a year ago

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

    Normally, you would use standoffs to mount it.

    • WhyAUsername_1@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      a 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: