Last year I stumbled across DIN rails and now unless I'm space constrained that's 100% the way to go for electronics stuff.
Last year I stumbled across DIN rails and now unless I'm space constrained that's 100% the way to go for electronics stuff.
I recall recently seeing raspberry pi "cases" that mount on a din rail. I think people like modular stuff - there should be more of it.
The main savings are in labor costs avoided drilling mounting holes and ease of replacement. The standard sizes also make it easy to fit various components in a limited space.
I like PLCs a bit more since they're dead simple to program and designed to handle a harsher environment than the RPi. They also have a whole host of I/O options and everything in industrial automation is standardized(-ish) so that you can interop between vendors for their different specialties.
One of the most fun part of the project was running the whole thing from solar, we have irrigation water so I build a neat little PID controller in the PLC that runs to a hefty Solid State Relay connected to a RV water pump with variable speed/flow. If you bypass the pressure relay, put in an appropriately sized flyback diode and use the SSR to do PWM it works quite well. It's no 3-phase VFD that you find on well pumps but it's held up well over the last year(and gave me an excuse to get a cheap hand-held scope to verify I had the flyback diode sized correctly).
[1] https://www.automationdirect.com/adc/shopping/catalog/progra...