#irrigation with pump control(pressure switch)

12 messages · Page 1 of 1 (latest)

drowsy sigil
#

I updated my irrigation controller, however I've got a little worries because it controls also a water pump with cheap pressure sensor, which looks identical to Renault air condition pressure sensor. There is no other safety switch than software one. I've tested it last year, but with double security: one node controlled irrigation zones and switched AC for the pump, another one just turned it on and off in dependence of pressure. Now it's all-in-one solution. My Code works good, but it's little bit messy, I got to clean it.

Code (still bit messy) and more : https://github.com/Bobbik1/ESPhome-irrigation/blob/main/README.md

drowsy sigil
hot plover
#

You mentioned in your README that you use a resistor divider between the sensor and the analog pin. Yet your schematic only shows R1 (a resistor)... which is not "dividing" anything.

For the pressures that you're dealing with, maybe you don't need any dividing at all, but you should likely add some kind of protection to the pin, because in case the GND of the sensor went loose, you'd get VDD on the analog pin... and you don't want that.

I had a similar set up, and it's very similar to yours, adding a red LED (lowest Vf I had around) between the analog input and ground. This clamps the voltage on that pin to Vf... and in my case (only) when the pressure is really high, the LED lights up a bit and clamps the voltage.
Of course, the component that should be used for this is a Zener diode of the right voltage, but I did not have one around.

drowsy sigil
#

@hot plover

void coyote
#

@drowsy sigil - what case is that? I'm doing a similar build and need a good casing where I can attach my relay and esp32 card

void coyote
#

thx!

#

Ar these waterproof? IPxx standard?

drowsy sigil
#

There is some, claimed as "high" but i didn't found what does it mean yet.

void coyote
#

me neither, went with fibox actually