Mange
Hello,
First I want to say a big Thanks to Thiago and everyone who have contributed to this fantastic software!
This is a true gamechanger in automation for sure!

Im new to both Raspberry and OpenPLC and I am now sitting and waiting for my ordered Raspberry to arrive.
In the meantime, Im trying to understand which operating system, I should use.
I will control a heatpump and want the system to be as redundant as possible. Should manage a power outage and similar.
Im aware of the problems with SD-cards and will probably use a SSD-disk on one USB-port.
Apart from the OpenPLC application, there will be only some application for logging 1-wire, PTV1000, and/or DT1820 sensors on this system.
I will connect to LAN and have ordered some hats for IO, Modbus Master (as I will control an inverter with modbus) and a little OLED display that I couldnt resist.. But main function is to be a stable controller for the heatpump, which I can contact and control over LAN.
I understand that an original Rasp comes with a built in OS, some linux-variant.
Is wise to use that or some Debian or similar?
Sorry if I put an obvious question that is answered somewhere else.
Reply 0 0
thiagoralves

Thank you for the kind words @Mange . In short, to stay out of trouble, stick with the official Raspbian OS. Anything other than that will give you headache to install OpenPLC and other software. As for the sd card, I think the best alternative is to make the filesystem read-only once you have everything configured and set up. An SSD on the USB port would be useless as the OS doesn't boot from there.

Also, if your goal is a stable controller for the heatpump, perhaps it would be better to go with a microcontroller solution instead of the RPi. Take the ESP8266 for example, it is as cheap as a small diet coke but it comes with built-in WiFi, so you can control your heatpump indefinitely with no sd card / OS updates / latency issues and still have it connected to your network.

Reply 0 0
Mange

Thank you for the kind words @Mange . In short, to stay out of trouble, stick with the official Raspbian OS. Anything other than that will give you headache to install OpenPLC and other software. As for the sd card, I think the best alternative is to make the filesystem read-only once you have everything configured and set up. An SSD on the USB port would be useless as the OS doesn't boot from there.

Also, if your goal is a stable controller for the heatpump, perhaps it would be better to go with a microcontroller solution instead of the RPi. Take the ESP8266 for example, it is as cheap as a small diet coke but it comes with built-in WiFi, so you can control your heatpump indefinitely with no sd card / OS updates / latency issues and still have it connected to your network.


OK, great, then the choise of OS is easy!
About SSD, Im almost certain that people who runs HA, HomeAutomation on RPi, are booting from and using SSDs nowadays, but I can have misunderstood that part.
My main idea for the SSD was to use it for logging of other sensors, that I might not be able to get into OpenPLC, and to store it in the case of network trouble etc.
But good, then I know that it is not needed for Open PLC at least!

I was considering smaller formfactors as Android or ESPs but for the double use above and that I want LAN instead of Wifi, I choosed the RPi once I found it to a bit better price. Might be that I make an ESP-controller for the heatpump once Im warm in the clothes and find other use of the RPi :-)

Looking forward to get started with this project!  👍
Reply 0 0
safetyfactorman
my understanding is the as of rp 4, usb boot is supported.  Actually, in the absence of an sd card, it automatically will boot from usb.  I believe I took an sdcard, put it into and usb card reader, an had it work (cant remember whether I removed the sd card or not).  If it does work, then perhaps ssd is an option.  relying on wifi might not be as reliable as local storage
Reply 1 0
Mange
Time flies by..now I have the Rasp up and running w SSD. Perhaps I should take out the SD card and only have it for emergency re-starts.
Reply 0 0
fg71
My RPi5B use passive cooling case I mount on din rail. I could use SSD with ribbon cable and mount the SSD with a custom plate mount on din rail.
I believe this din rail mount could be used for SSD. KKSB Raspberry Pi DIN Rail Clip Bracket — KKSB Cases
 
The case I have now do not feet SSD inside.
Reply 1 0
Mange
My RPi5B use passive cooling case I mount on din rail. I could use SSD with ribbon cable and mount the SSD with a custom plate mount on din rail.
I believe this din rail mount could be used for SSD. KKSB Raspberry Pi DIN Rail Clip Bracket — KKSB Cases
 
The case I have now do not feet SSD inside.
Thats a nice fitting to DIN rail! (Even if these things seems to pricey as gold..) I didnt find anything else working OK in fact, so Im currently using a bottom part of one PI-enclosure and have screwed in the bottom of a larger std box. There I also have space for a SSD + 2-3 extension cards. Passive cooling it is.
Reply 0 0
fg71
There are many nice things for din rail, there you could have terminal block and use a serious installation for your RPi PLC
Reply 1 0
Mange
There are many nice things for din rail, there you could have terminal block and use a serious installation for your RPi PLC
This was something I imagined but never found! So nice to set whatever breakoutborad on those! :   https://czh-labs.com/products/din-rail-mount-bracket-for-raspberry-pi-arduino-uno-mega-beaglebone-black
I have the same set up now, but with L-bent pieces of acryl which I will screw to the bottom of my big box.
Reply 0 0
fg71
If you have or know someone who has 3D printer I bet you could find ready models or your could create on yourself.
I have plans to get a 3D printer but that has to come later.
 
I like your finding, that site many cools things 😉
Reply 0 0
Mange
If you have or know someone who has 3D printer I bet you could find ready models or your could create on yourself.
I have plans to get a 3D printer but that has to come later.
 
I like your finding, that site many cools things 😉
I have a 3D-printer, didnt had time to pack it up for 4 years... But great idea, will probably use it for items like this later. Now it will be a bit quick and dirty, winter is coming and I want to start up the heatpump..
Reply 0 0
fg71
Today, I changed the linear curve with 2.5 steps on heater and set expansion vessel to 1.5b, so I think I'm ready for the winter. 🙂
 
Are you using OpenPLC for your heatpump ?
Reply 0 0
Mange
Today, I changed the linear curve with 2.5 steps on heater and set expansion vessel to 1.5b, so I think I'm ready for the winter. 🙂
 
Are you using OpenPLC for your heatpump ?
Yes 🙂, my old heat-pump is top modern with superefficient combined evaporator-condenser, electronic expansion valve and R290 as environmental friendly refrigerant. Have been running fine as simple on/off by microswitch on the arm of the shunt regulator + a time relay, for 10 years.
But the old piston compressor from the 80ths finally gave in 2 years ago so Im replacing it now with a state-of-the-art, top of the line inverter 3-phase twin rotary compressor (Highly-LS Control) and in the same time Im upgrading the only left part, the brine pump to a energy efficient, controllable pump (Grundfos with Genibus or 0-10V control).
 
And of course, I will add the best ever control PLC which I gradually want to make smart with adaption of compressor and brine pump speed depending on heat need and process efficiency.
So in the end, I will connect and steer with a 1-wire net of temp sensors and a flow meter which I had for manual optimizations until now.
And it would be nice to get the Carel expansion valve controller on to the modbus chain too...after all this is about control..
 
Right now, I will make it as simple as possible and begin with a very simple control strategy with manually pre-set speeds of the compressor and brine pump, and even the old micro-switch, to get a known working link to the shunt. (When the heat of the water to the house is getting too warm, the arm closes the micro switch with stops the heat pump to work more and be less efficient)
 
As a backup and for days with extreme electricity prices, I have a pellets burner too, that Im using in parallell, or instead of the heat pump. It was good to have today when first winter day came to us.
Reply 0 0
Reply