Watering only when the moisture sensor switches on
- This topic has 7 replies, 2 voices, and was last updated 4 years, 11 months ago by
Dirk Hildebrand.
-
AuthorPosts
-
June 30, 2021 at 8:44 #24568
Dirk Hildebrand
ParticipantHello,
I bought an OSPi, a humidity meter and a rain sensor. I would like to create a program for my green roof that should work like this:
When the moisture sensor opens (reports that it is dry), the “carport roof” zone should be started for x time units.
If it is raining and the carport irrigation is running, the irrigation should stop. If the rain wasn't enough and the sensor says it's dry again, then the irrigation should start again.Is this feasible, or am I seeing it as too complex?
June 30, 2021 at 9:08 #24569Admin
KeymasterThat simply means: Don't water if the moisture sensor says wet or the rain sensor says rain
You just have to enter a delay into the moisture sensor, otherwise it switches on as soon as you water (>watering time). With the rain sensor everything stays at 0.0
Is therefore possible
July 1, 2021 at 3:11 p.m #24586Dirk Hildebrand
ParticipantYes, precisely summarized, but how do I incorporate this into a program? And if the moisture sensor says “moist”, the watering should also stop if you don’t put the sensor right next to the drip hose, right?
July 2, 2021 at 8:56 #24589Dirk Hildebrand
ParticipantAnd another question. Yesterday I plugged my OSPi into my Raspberry 3b+. A top-hat rail power supply with 24vAC output was plugged into the OSPi board and my Pi turned on too. Is that normal? I thought I had to supply the PI with extra power. In addition, no lamp on the AD converter was lit. And yes, I am 100% sure that it is a power supply with AC on the secondary side is https://www.amazon.de/gp/product/B00F4QFH4O/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1
What else could I have done wrong?
July 3, 2021 at 9:12 #24596Dirk Hildebrand
ParticipantToday I connected valves, they switch well, but there is no visible activity on the A2D converter. It's not clear to me how I'm supposed to turn these mini little pots
July 14, 2021 at 12:07 #24645Admin
KeymasterYou turn the small pots with a small Phillips screwdriver.
If it is damp but the LED is off, turn to the right until the LED lights up.
If it is dry but the LED is on, turn to the left until the LED goes off.
The A2D is powered by the OSpi, the pin assignment is (left to right): GND, SN1, SN2, VIN (+5V)
Actually, you should install the soil moisture sensor where moisture is important. This could definitely be under the drip hose. The only important thing is the time delay, so that it doesn't switch off right away with the first drop.
The OSPi supplies the Raspberry Pi with power via the 24VAC power supply. Only with the old 1.43 version and the RPi 3 or 4 was the power supply too low, since version 1.5. But that's no longer a problem. Here you also had to connect the RPi power supply.
By the way, it doesn't work the other way around, so only the RPi power supply cannot supply the OSPi and the solenoid valves!
July 16, 2021 at 4:14 p.m #24657Dirk Hildebrand
ParticipantHello,
The potentiometers do not turn even with the smallest Phillips screwdriver (CRV 1.0). Could it be that these pots are defective?
July 16, 2021 at 4:48 p.m #24659Dirk Hildebrand
ParticipantOk, it worked with a slot bit, but a pot has no stop. The LED lights up when I unplug the 5V line, sometimes the LED flickers even when I plug the 5V back in. If I remove GND, the LED lights up and I can use the potentiometer to set the LED to go out. But I still don't see any moisture displayed. Is the humidity sensor defective or the AD converter?
-
AuthorPosts
- You must be logged in to reply to this topic.
