For those few of us left in the world who don’t have 3d printers… boxes for our projects are always an issue… I’ve decided I want to use DIN rail enclosures because in Spain, the large household Din rail mains boxes are dirt cheap – just need some enclosures for power supplies and SBCs and ESP8266 boards – and I hit this by accident..
Some of these are DIRT cheap – like a tenner for 5 boxes… I’m still wading through. So the question is – do others have links to similarly inexpensive boxes?
OH! So there I was struggling to find power supplies that would fit in the box alongside my Pi (I ended up with orange boxes – not ideal, but cheap) – and I found this….. 2amps – just the job!!!!
“new” (i’ve seen them from months, actually, generic one) box from itead:
https://www.cnx-software.com/2017/10/27/sonoff-wireless-switch-family-gets-a-3-ip66-waterproof-enclosure/
often the screws tend to get rusted, look in this video a similar box:
itead added even a blog for using them for christmas lightnings:
http://ewelink.coolkit.cc/?p=1149
I bought 12 of these at nearly £90
https://www.aliexpress.com/item/4-pieces-electrical-plastic-boxes-din-rail-enclosure-80-71-43mm-instrument-case-szomk-2015-new/32298754611.html?spm=2114.13010608.0.0.pGhAt6
Currently is dispute with them, but they are not being helpful.
I have bought hundreds of items from China and this is the first problem.
I’ve not used those – remember, AliExpress don’t actually keep stock – all of their stuff comes from other suppliers – so it looks like you’ve hit a bad one – I get stuff from AliExpress all the time without issue. Good luck – I hope they give you a refund – they’ll no doubt want pictures.
Just a word of warning…
I bought some of the din rail boxes from AliExpress Pete linked to above.
Total rubbish, terminal screws too small and won’t tighten.
Terminal cover lid hinge easily broken off.
din rail click mechanism at rear flimsy and in some cases will not work at all.
Wow, you must’ve gotten a bad batch John. Mine are Orange, the screws fit – and they seem reasonable. Clearly not top of the range as they are dirt cheap but nothing wrong with them.
Great project enclosures can be bought at polycase. I have used several exterior waterproof cases from them. http://www.polycase.com
But for one, slight TEENY problem – they’re based in the USA. I just checked a really nice little case – a fob – a mere $3 – a good price comparable with something you might find in China – all very good until I checked the shipping options – $68 to ship it to the UK – so we’ll just put that one to one side – and NOBODY is going to tell me that’s even remotely what it costs them… I have relatives in the states and we ship stuff back and forth all the time.
Sorry Pete didn’t check the shipping costs out of the US.
Peter, My current project under development has a Teensy 3.2 with OctoWS2811 adapter and is on a wood board on the back of a large China Cabinet. 8 strips of 1.5 meter 60 neopixels per meter (90 neopixels per strip) in the cabinet. Still working on the ESP12E/ESP32 wireless interface to Node-Red to communicate with the Teensy 3.2 over a serial interface. I plan to hide the panel with extra wood around the back edge to hide everything as there are almost 1000 individual neopixels shining thru small fiber optics in the back wall of the cabinet. I’ll post everything including videos and the code when I finish.
Excellent
Peter, your friend Peter Oakes is reviewing a cute din rail box for raspy with interesting features, at 13:00 of his latest video: https://www.youtube.com/watch?v=WUEVodmwFOw
Very nice indeed other than the cost – and of course – (I know it is hard to believe) not everyone has a 3d printer.. I looked at the cheap 3d printers and the quality simply isn’t good enough.
Anyway I bought 4 of these
https://www.aliexpress.com/item/4-pcs-lot-abs-plastic-electronic-industrial-enclosure-with-connectors-115x90x40mm-orange-color-din-rail-plastic/32513626644.html?spm=2114.13010608.0.0.pdKin9
The only thing being – the connectors aren’t included which is a bit cheeky – but easy enough to get. Got my DIN rail, about to buy my new DIN power supply… though thinking about it I might look out for a 5 amp model in case I want to keep adding more.
This enclosure from Phoenix is very nice and holds the Pi very securely. Not the cheapest but it looks very good. There is space to put your own PCB’s (3) and they supply the headers (not cheap though) I have one here and making a custom power input board and radio board with the Enocean RF module.
You can download 3D Step models of the enclosure and all of the parts too which is ideal for development.
http://sg.element14.com/phoenix-contact/rpi-bc-107-6-dev-kit-kmgy/electronic-housing-raspberry-pi/dp/2550729
Pete, check this company…
https://www.okw.co.uk/en
I got some din-rail cases from them. Very good quality and most important, they can make customisation..
Regards from Cyprus
if only thingiverse could make the ultimate box maker for din rails, too…
there you can customize in every detail your box, then download the file to 3D print… very useful, for 3d printer owners
http://www.thingiverse.com/thing:1264391
It will be some time before I invest in a 3D printer – most (but not all) prints I’ve seen seem to end up either with a straw-like finish – or too shiny due to using a solvent to get rid of the straw finish – or have corners curled up etc etc. We need a step improvement in low costs printers at which point I can’t see why anyone would NOT have one.
the solvent (acetone) is useful only on ABS, which is quite difficult to print, too: requires heated bed, no cold air flux around, etc… PLA is more difficult to get shiny, although for a maker, not selling stuff, results are pretty decent using slow printing settings, reduced layer height and fan flow over the printed parts to block hot after extrusion… yes, still not suitable for everybody, but the real step is studying a 3D modeling software, if you don’t want only to print stuff found on thingiverse…
Well, right now some custom cases based on DIN but to fit some of my little boards with power supplies would be good..
The thing is – we one time you got ripped by UK PCB suppliers charging over the top for small quanties of PCBs – and now the Chinese will let you have 10 boards for a tenner – good quality, quickly, no catches.
What’s needed is a Chinese manufacturer with huge, high quality 3d printers to take your designs and let you have, say 5 little boxes for a tenner…. now THAT would be a game changer for me.
Hi Alex- yes I get samples from OKW – VERY expensive but nice – I’m waiting for one of their single vented Din rail boxes – looks like it might be JUST the job for one of my smaller SBCs.
I found them on Farnell and in Greece (about 3,5 euros each). Quite good price…
This is great guys that we are building a trail of good information. Today a single DIN box turned up for me – the size you would see for a standard single-pole switch – but with EIGHT screw connections… it is WAY too small for anything but… the NanoPi Neo Air which fits perfectly!!!! AND coming soon – WiringPi for this board – YES – I just had an email from FriendlyArm to say they’ve finally developed this – but – right now it is still partly in Chinese – I’ve asked them to come back to me to know when this will be fully translated and I’ll do a write-up on it. MEANWHILE right about now, ARMBIAN is getting a preliminary better WIFI driver as you’ll see elsewhere in here. All great stuff.
these are nice, too… not din rail, but with transparent front, you can even put a screen inside and protect it… https://it.aliexpress.com/item/Waterproof-Plastic-Electronic-Project-Box-85x58x33mm-Cover-Enclosure-Instrument-Case-Electrical-Supplies-VE838-P/32504118330.html
…and a slightly larger version which could hold batteries, too (but without the external mounting lugs).
http://www.ebay.com/itm/Waterproof-Cover-Plastic-Electronic-Project-Box-Enclosure-Case115x90x55mm-M1BG-/272164852546
I came across this company on eBay while looking for a control panel case that included a cutout for an LCD display…
http://stores.ebay.com/MBOX-Ltd
This looks like the same ones as MrShark, only more expensive!
This is great Pete. I am contemplating the replacement of all my ageing and unreliable X10 din rail modules. Some of these enclosures will be perfect for the job. For the wall switch trigger, I need to design a mains sensing device with opto isolation to trigger an ESP to toggle a relay. Then I can fully integrate with MQTT and Node Red for the automation end.
John
Hi John,
I’ve done something like this to get the status of the central heating system into nodered. I monitor the room thermostat’s, hot water tank and pump. I used the MID400 opto isolator (£2.50 each). Which is rated for mains ac.
I used Pete’s code with a small modification to have 5 i/p’s .
Regards
Paul
Thanks Paul
I’ve just started researching suitable devices, but this MID400 seems perfect. What wattage input resistor (22K) did you use.
John
Hi John,
I used 2W Which maybe over kill.
Regards
Paul
Paul
Just thinking… I could probably use a Sonoff board along with the MID400 inside one of these AliExpress boxes. I wonder how easy it is to access a spare input pin on the ESP to toggle the output. Also is it possible to use Pete’s firmware to do this without alteration. Maybe using in_2bounce and letting node red make the switch?
If you turn off temperature sensing – both 2 and 14 are debounced inputs – which can report automatically back to Node-Red.
Thanks Pete, that would work but I could also just parallel up my output with the Sonoff pushbutton switch and use that to toggle the output.
I would think that would work.
I changed Pete’s code as I wanted 4 inputs and 4 outputs in the one box.
Regards
Paul
this site in Turkey has good boxes: http://www.altinkaya.eu/63-aluminium-profile-enclosure-components
or you can use whatever box you find, and use this to adapt it to din rail mounts: https://it.aliexpress.com/item/single-phase-SSR-35MM-DIN-rail-fixed-solid-state-relay-clip-clamp/32382241531.html
Thanks MrShark, very useful!
This one looks really nice:
http://www.altinkaya.eu/operator-panel-enclosures/99-op-300.html
Unfortunately, this one is for a 5″ screen, I wish there were the same design for 2.4, 2.5 or 3.5″ screens too!