Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Rain Guage

Rain Guage

Scheduled Pinned Locked Moved My Project
128 Posts 23 Posters 110.3k Views 21 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrc-coreM Offline
    mrc-coreM Offline
    mrc-core
    wrote on last edited by
    #95

    Hi.
    i'm having some trouble whit my rain gauge...

    My rain gauge is a Aercus KW9015, using the code provided i'm getting rain count every hour whit no rain at all.
    I don't know what to do to fix this.

    Over the rain gauge i have 4 connections.
    1 - GND
    2 - TX1 --- Temperature sensor
    3 - TX2 --- Rain sensor
    4 - VCC

    Why i'm i getting reads of rain ever 1h when there is no rain ?
    Can anyone help me whit this problem ?

    petewillP 1 Reply Last reply
    0
    • mrc-coreM mrc-core

      Hi.
      i'm having some trouble whit my rain gauge...

      My rain gauge is a Aercus KW9015, using the code provided i'm getting rain count every hour whit no rain at all.
      I don't know what to do to fix this.

      Over the rain gauge i have 4 connections.
      1 - GND
      2 - TX1 --- Temperature sensor
      3 - TX2 --- Rain sensor
      4 - VCC

      Why i'm i getting reads of rain ever 1h when there is no rain ?
      Can anyone help me whit this problem ?

      petewillP Offline
      petewillP Offline
      petewill
      Admin
      wrote on last edited by
      #96

      @mrc-core
      Are you actually getting a rain value or is it just sending 0? The code is designed to send an update to your gateway every hour with the total rain for the day whether there is rain or not.

      My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

      1 Reply Last reply
      0
      • mrc-coreM Offline
        mrc-coreM Offline
        mrc-core
        wrote on last edited by
        #97

        Some times i do get value 0 but other times i get rain value a big rain value for example values above 10mm of rain.
        The update is made every hour. Yesterday the rain value was 148mm when there was no rain at all. It doesn't rain for the last month.

        Ill try today reassembling the arduino, clear cd rom and flash again the rain gauge code.

        But i don't understand why i get this values.
        I even beleaved that the sensor was sendind data because off the wind... but it's not the problem.

        BulldogLowellB 1 Reply Last reply
        0
        • mrc-coreM mrc-core

          Some times i do get value 0 but other times i get rain value a big rain value for example values above 10mm of rain.
          The update is made every hour. Yesterday the rain value was 148mm when there was no rain at all. It doesn't rain for the last month.

          Ill try today reassembling the arduino, clear cd rom and flash again the rain gauge code.

          But i don't understand why i get this values.
          I even beleaved that the sensor was sendind data because off the wind... but it's not the problem.

          BulldogLowellB Offline
          BulldogLowellB Offline
          BulldogLowell
          Contest Winner
          wrote on last edited by
          #98

          @mrc-core

          how is it connected electronically?

          1 Reply Last reply
          0
          • mrc-coreM Offline
            mrc-coreM Offline
            mrc-core
            wrote on last edited by mrc-core
            #99

            At the rain gauge i have an arduino nano conneting PIN "d3" to TX2 over the rain gauge circuit, the arduino is powered at pins VIN and GND.
            The rain gauge gets its power from the 3.3V over the arduino.

            im posting two images from the rain gauge circuit:
            IMG_1
            IMG_2

            Starting to believe i had connect someting rong like for example had switched TX1 and TX2 at the rain gauge

            BulldogLowellB 1 Reply Last reply
            0
            • mrc-coreM Offline
              mrc-coreM Offline
              mrc-core
              wrote on last edited by
              #100

              Looking over the IMG_2 should i connect arduino pin d3 to T1 just above the reed switch?
              Or i'm i correct using the TX2 connection.

              1 Reply Last reply
              0
              • mrc-coreM mrc-core

                At the rain gauge i have an arduino nano conneting PIN "d3" to TX2 over the rain gauge circuit, the arduino is powered at pins VIN and GND.
                The rain gauge gets its power from the 3.3V over the arduino.

                im posting two images from the rain gauge circuit:
                IMG_1
                IMG_2

                Starting to believe i had connect someting rong like for example had switched TX1 and TX2 at the rain gauge

                BulldogLowellB Offline
                BulldogLowellB Offline
                BulldogLowell
                Contest Winner
                wrote on last edited by
                #101

                @mrc-core

                No PULLUP or PULLDOWN resistor?

                1 Reply Last reply
                0
                • mrc-coreM Offline
                  mrc-coreM Offline
                  mrc-core
                  wrote on last edited by
                  #102

                  no i cant find any pullup or pulldown resistor.
                  You can see the images from de interior of the rain gauge hi have.

                  1 Reply Last reply
                  0
                  • mrc-coreM Offline
                    mrc-coreM Offline
                    mrc-core
                    wrote on last edited by
                    #103

                    Which resistor do i pu between the 5v and the D3 pin ???

                    BulldogLowellB 1 Reply Last reply
                    0
                    • mrc-coreM mrc-core

                      Which resistor do i pu between the 5v and the D3 pin ???

                      BulldogLowellB Offline
                      BulldogLowellB Offline
                      BulldogLowell
                      Contest Winner
                      wrote on last edited by
                      #104

                      @mrc-core

                      if you don't pull up/down the signal, you may get floating voltages and spurious interrupts occurring.

                      try to use the internal pullup

                      pinMode(yourInterruptPin, INPUT_PULLUP);
                      

                      if that does not work try an external 10kOhm resistor to pull it up/down for your switch.

                      1 Reply Last reply
                      0
                      • mrc-coreM Offline
                        mrc-coreM Offline
                        mrc-core
                        wrote on last edited by
                        #105

                        Going to put the 10kOhm resistor. the internall pullup did not work.
                        One question. the resistor i put it between de 5v and the D3 pin

                        BulldogLowellB 1 Reply Last reply
                        0
                        • mrc-coreM mrc-core

                          Going to put the 10kOhm resistor. the internall pullup did not work.
                          One question. the resistor i put it between de 5v and the D3 pin

                          BulldogLowellB Offline
                          BulldogLowellB Offline
                          BulldogLowell
                          Contest Winner
                          wrote on last edited by
                          #106

                          @mrc-core

                          to PULL UP, yes.

                          1 Reply Last reply
                          0
                          • mrc-coreM Offline
                            mrc-coreM Offline
                            mrc-core
                            wrote on last edited by mrc-core
                            #107

                            Thanks going to try it now. And today is a good day since its raining.

                            No luck... now i'm getting only "0"

                            What i have done until now:
                            Put a resistor 10kOhm between the GND and D3 Pin from arduino and connect it to TX2 over rthe rain gauge.
                            And connected the 5V from arduino to the VCC over the rain gauge.

                            But i'm only getting 0 ...

                            send: 4-4-0-0 s=3,c=1,t=28,pt=7,l=5,sg=0,st=fail:-0.2
                            read: 5-5-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                            send: 4-4-0-0 s=4,c=1,t=16,pt=1,l=1,sg=0,st=ok:0
                            New Sensor State... Sensor: Not Tripped
                            read: 3-3-0 s=0,c=1,t=38,pt=7,l=5,sg=0:4.748
                            read: 0-0-4 s=4,c=2,t=24,pt=0,l=1,sg=0:1
                            read: 5-5-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                            read: 5-5-255 s=255,c=3,t=7,pt=0,l=0,sg=0:

                            BulldogLowellB 1 Reply Last reply
                            0
                            • mrc-coreM mrc-core

                              Thanks going to try it now. And today is a good day since its raining.

                              No luck... now i'm getting only "0"

                              What i have done until now:
                              Put a resistor 10kOhm between the GND and D3 Pin from arduino and connect it to TX2 over rthe rain gauge.
                              And connected the 5V from arduino to the VCC over the rain gauge.

                              But i'm only getting 0 ...

                              send: 4-4-0-0 s=3,c=1,t=28,pt=7,l=5,sg=0,st=fail:-0.2
                              read: 5-5-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                              send: 4-4-0-0 s=4,c=1,t=16,pt=1,l=1,sg=0,st=ok:0
                              New Sensor State... Sensor: Not Tripped
                              read: 3-3-0 s=0,c=1,t=38,pt=7,l=5,sg=0:4.748
                              read: 0-0-4 s=4,c=2,t=24,pt=0,l=1,sg=0:1
                              read: 5-5-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                              read: 5-5-255 s=255,c=3,t=7,pt=0,l=0,sg=0:

                              BulldogLowellB Offline
                              BulldogLowellB Offline
                              BulldogLowell
                              Contest Winner
                              wrote on last edited by
                              #108

                              @mrc-core

                              I guess I'd need to see a schematic or a good photo.

                              can you generate a simple interrupt with a pushbutton and a resistor?

                              1 Reply Last reply
                              0
                              • mrc-coreM Offline
                                mrc-coreM Offline
                                mrc-core
                                wrote on last edited by
                                #109

                                Hi. yesterday i disassembled the rain gauge circuit removed from it the reed switch and created a new circuit.
                                I have connnected the reed switch to GND and PIN3 whit 10kOhm resistor.
                                I'll post an image tonight.

                                Up until now the values i'me getting from this new circuit is:
                                rain gauge log

                                Values i'm getting from serial port:
                                Rain last 24 hours:
                                1.80
                                Rain last 48 hours:
                                12481.94
                                Rain last 72 hours:
                                28210.34
                                Rain last 96 hours:
                                43938.74
                                Rain last 120 hours:
                                59667.14
                                read and drop: 6-6-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                                read and drop: 6-6-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                                read and drop: 5-5-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                                read and drop: 6-6-255 s=255,c=3,t=7,pt=0,l=0,sg=0:

                                Seeing the graphic and this values it seems the problem i was having is fixed...
                                But tonight i'm going do spread some water over the bucket to see if i get any values and not just 0

                                1 Reply Last reply
                                1
                                • Ivan ZI Offline
                                  Ivan ZI Offline
                                  Ivan Z
                                  Hardware Contributor
                                  wrote on last edited by
                                  #110

                                  MI-SOL Rain Guage has CALIBRATE_FACTOR = 36

                                  1 Reply Last reply
                                  0
                                  • Ivan ZI Offline
                                    Ivan ZI Offline
                                    Ivan Z
                                    Hardware Contributor
                                    wrote on last edited by
                                    #111

                                    Sensor manufacturer has sent information about the sensor. 0.3 mm to 1 tick

                                    petewillP 1 Reply Last reply
                                    0
                                    • Ivan ZI Ivan Z

                                      Sensor manufacturer has sent information about the sensor. 0.3 mm to 1 tick

                                      petewillP Offline
                                      petewillP Offline
                                      petewill
                                      Admin
                                      wrote on last edited by
                                      #112

                                      @Ivan-Z :thumbsup: Thanks for the info.

                                      My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                      1 Reply Last reply
                                      0
                                      • petewillP petewill

                                        @BulldogLowell Awesome, thank you very much! I know what it's like to lose code that way. I have done the same thing myself...

                                        Yes, I will test this. I'll do my best to get it tested tonight. I'm combining it with some other sensors (light and temp/humidity) so once I get everything merged I'll be able to upload it.

                                        I'll let you know what I find.

                                        Thanks again!

                                        Pete

                                        TheekshanaT Offline
                                        TheekshanaT Offline
                                        Theekshana
                                        wrote on last edited by
                                        #113

                                        Hey guys,
                                        Sorry if this is a stupid question but how does the Arduino interact with the tipping bucket to detect rain?
                                        Thanks!

                                        petewillP 1 Reply Last reply
                                        0
                                        • TheekshanaT Theekshana

                                          Hey guys,
                                          Sorry if this is a stupid question but how does the Arduino interact with the tipping bucket to detect rain?
                                          Thanks!

                                          petewillP Offline
                                          petewillP Offline
                                          petewill
                                          Admin
                                          wrote on last edited by
                                          #114

                                          @Theekshana There is a magnet on the tipping bucket and a reed switch that detects the magnet each time it passes by. So each time the bucket tips it will trigger to the Arduino and it can count from there.

                                          My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          18

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular