Code Monkey home page Code Monkey logo

Comments (8)

dokeeffe avatar dokeeffe commented on July 23, 2024 1

Yes that sounds familliar, I think I have the same setting. My one stays on for 15min. I think you may be missing a pull up/down resistor when connecting the RG11 to the arduino...
What you could do as an experiment is get it working with a basic switch/button instead of the RG11, so a microswitch or the like. Then swap in the RG11.
See here for a good example of using the resistor in an on/off button circut https://www.arduino.cc/en/Tutorial/Button

from cloud-rain-monitor.

Trigger-broom-289 avatar Trigger-broom-289 commented on July 23, 2024

update:

I've disconnected the relay ouput from the RG11 sensor, and connected pin 8 from the Arduino directly to the ground.
Now it shows a constant "false" in minicom:

{"rain":false,"sky":25.63,"ambient":29.01}??q
{"rain":false,"sky":25.67,"ambient":28.99}??q
{"rain":false,"sky":25.79,"ambient":28.97}??q
{"rain":false,"sky":25.87,"ambient":28.99}??q
{"rain":false,"sky":25.87,"ambient":28.97}??q

Am I understanding this correctly that when the pin 8 and ground are making a circuit it's reporting as no rain, but when the circuit is open it reports as rainy ?

from cloud-rain-monitor.

Trigger-broom-289 avatar Trigger-broom-289 commented on July 23, 2024

What are your RG11 switches set to please?

from cloud-rain-monitor.

dokeeffe avatar dokeeffe commented on July 23, 2024

Good question, I cant remember at all. I remember it detects a single drop and then closes the circuit do you have a link or any info to the available settings and I'll see if I can remember

from cloud-rain-monitor.

Trigger-broom-289 avatar Trigger-broom-289 commented on July 23, 2024

the pdf link:
http://hydreon.com/wp-content/uploads/sites/3/2015/documents/rg-11_instructions.pdf

I have it set to Mode 1 it's raining with the extra 15min.
What I've noticed for example, if you touch the sensor to simulate rain, your code will pick up the rain but shortly will revert back to no rain, despite the relay be active for 15 min.

from cloud-rain-monitor.

Trigger-broom-289 avatar Trigger-broom-289 commented on July 23, 2024

ah, in the code it says:

_* Wiring:

  • Rain sensor:
  •  Relay is attached to pin 8 and acts as a simple on off switch_
    

I wasn't aware it needed a pull down resistor. I'll have to install it when I'm back this following Christmas holidays as there are no shops selling electronic components where I am now.

from cloud-rain-monitor.

dokeeffe avatar dokeeffe commented on July 23, 2024

My bad, sorry about that. Actually you will probably randomly get rain/no-rain readings now so

from cloud-rain-monitor.

Trigger-broom-289 avatar Trigger-broom-289 commented on July 23, 2024

That's correct, I had rain/no-rain going round and round :)....
Now that we know it needs a resistor, I'll close this issue.
thanks for the help on this one.

from cloud-rain-monitor.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.