Watering only when the moisture sensor switches on

Homepage Forums Generally Watering only when the moisture sensor switches on

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #24568
    Dirk Hildebrand
    Participant

    Hello,

    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?

    #24569
    Admin
    Keymaster

    That 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

    #24586
    Dirk Hildebrand
    Participant

    Yes, 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?

    #24589
    Dirk Hildebrand
    Participant

    And 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?

    #24596
    Dirk Hildebrand
    Participant

    Today 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

    #24645
    Admin
    Keymaster

    You 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!

     

    #24657
    Dirk Hildebrand
    Participant

    Hello,

     

    The potentiometers do not turn even with the smallest Phillips screwdriver (CRV 1.0). Could it be that these pots are defective?

    #24659
    Dirk Hildebrand
    Participant

    Ok, 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?

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.