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. Announcements
  3. 💬 Rain Gauge

💬 Rain Gauge

Scheduled Pinned Locked Moved Announcements
61 Posts 17 Posters 16.8k Views 16 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #3

    According to @Ivan-Z, the MI-SOL Rain Guage has CALIBRATE_FACTOR = 36

    https://forum.mysensors.org/topic/156/rain-guage/112

    TheoLT 1 Reply Last reply
    0
    • hekH hek

      According to @Ivan-Z, the MI-SOL Rain Guage has CALIBRATE_FACTOR = 36

      https://forum.mysensors.org/topic/156/rain-guage/112

      TheoLT Offline
      TheoLT Offline
      TheoL
      Contest Winner
      wrote on last edited by
      #4

      @hek Thank you very much. This saves me a lot of time ;-)

      1 Reply Last reply
      0
      • hoefoigelH Offline
        hoefoigelH Offline
        hoefoigel
        wrote on last edited by
        #5

        When I try to compile the code above I get the error "'timeStatus' was not declared in this scope" in the line

        while (timeStatus() == timeNotSet && millis() - functionTimeout < 30000UL)
        

        I use Arduino IDE 1.6.10 and inserted the library "Time" from the MySensorsArduinoExamples in the Arduino libraries folder.

        Has anyone a hint for me? Thank you in advance!

        By the way: Thanks a lot to @hek and the forum for the project! :-)

        1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #6

          Might be best to check with @petewill and @BulldogLowell.

          A quick googling revealed this:
          https://github.com/PaulStoffregen/Time/issues/32

          So if you rename the Time library to Time2 or something and change the include it might work.

          BulldogLowellB 1 Reply Last reply
          0
          • hekH hek

            Might be best to check with @petewill and @BulldogLowell.

            A quick googling revealed this:
            https://github.com/PaulStoffregen/Time/issues/32

            So if you rename the Time library to Time2 or something and change the include it might work.

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

            @hek @hoefoigel ,

            I coded the basic sensor and @petewill added the rest and updated... Sorry I cannot be helpful!

            1 Reply Last reply
            0
            • petewillP Offline
              petewillP Offline
              petewill
              Admin
              wrote on last edited by
              #8

              I am currently upgrading my devices to 2.0 using the 1.6.12 IDE. I'll try to work on this one in the next few days and post an update.

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

              1 Reply Last reply
              3
              • petewillP Offline
                petewillP Offline
                petewill
                Admin
                wrote on last edited by
                #9

                I finally finished with the update and it has been merged to the MySensors github. Here is the link: https://github.com/mysensors/MySensorsArduinoExamples/tree/master/examples/RainGauge
                You will also need to download the updated Time library here: https://github.com/mysensors/MySensorsArduinoExamples/tree/master/libraries/Time

                Let me know if you run into any issues.

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

                1 Reply Last reply
                3
                • 李旻峰李 Offline
                  李旻峰李 Offline
                  李旻峰
                  wrote on last edited by
                  #10

                  123456789

                  1 Reply Last reply
                  0
                  • 李旻峰李 Offline
                    李旻峰李 Offline
                    李旻峰
                    wrote on last edited by
                    #11

                    which sensor do you use for the rain gauge content sensor

                    mfalkviddM 1 Reply Last reply
                    0
                    • 李旻峰李 李旻峰

                      which sensor do you use for the rain gauge content sensor

                      mfalkviddM Offline
                      mfalkviddM Offline
                      mfalkvidd
                      Mod
                      wrote on last edited by
                      #12

                      @李旻峰 the tipping bucket rain sensor is linked on the build page. See the link in the first post on this thread.

                      1 Reply Last reply
                      0
                      • U Offline
                        U Offline
                        user2684
                        Contest Winner
                        wrote on last edited by
                        #13

                        Hi! I bought the rain gauge recommended in the page, put together a simplified version of the sketch which just reports the mm every hour and everything works just fine. However I did notice that during a sunny day almost every hour I have the equivalent of something between 0 and 3 interrupts happening which are clearly false positives. Do you guys suggest anything to mitigate this behavior? I don't think there is anything that can be done in software (an interrupt is an interrupt) so I was wondering if there is anything else which can do the magic :-)
                        Thanks

                        1 Reply Last reply
                        0
                        • F Offline
                          F Offline
                          flopp
                          wrote on last edited by flopp
                          #14

                          I have been using my tipping bucket for at least 6 month now and I also noticed that the last week I got some fake interrupt. We have had a very nice week in south Sweden so it must be something with the weather that makes the interrupt

                          U 1 Reply Last reply
                          0
                          • F flopp

                            I have been using my tipping bucket for at least 6 month now and I also noticed that the last week I got some fake interrupt. We have had a very nice week in south Sweden so it must be something with the weather that makes the interrupt

                            U Offline
                            U Offline
                            user2684
                            Contest Winner
                            wrote on last edited by
                            #15

                            @flopp I may have noticed something similar, while testing it, indoor, I had no fake interrupts at all (even if I did test it for a short time). When outside though, under the sunshine, I had frequent fake interrupts, like there is a voltage drop in that scenario causing it to trigger. I can of course survive with it but I was wondering if there may be a way to mitigate it somehow. I may try to "debounce" it by checking the input after the interrupt but not sure would be effective since I do expect the input to be HIGH again after the interrupt. Thanks

                            1 Reply Last reply
                            0
                            • F Offline
                              F Offline
                              flopp
                              wrote on last edited by
                              #16

                              My node is batteri powered, can it have something with the battery why this happens?
                              I have a second rain gauge powered by USB and that one doesn't give fake interrupt

                              U 1 Reply Last reply
                              0
                              • F flopp

                                My node is batteri powered, can it have something with the battery why this happens?
                                I have a second rain gauge powered by USB and that one doesn't give fake interrupt

                                U Offline
                                U Offline
                                user2684
                                Contest Winner
                                wrote on last edited by
                                #17

                                Mine is powered by USB but still I have fake interrupts. Agree with you, I guess powering it with batteries could be worse since it is more likely that the voltage would fluctuate so causing fake interrupts. Btw, I assumed the board cannot sleep for this sketch to work, am I wrong? Or are you keeping it awake but still powering it with batteries? Thanks

                                F 1 Reply Last reply
                                0
                                • U user2684

                                  Mine is powered by USB but still I have fake interrupts. Agree with you, I guess powering it with batteries could be worse since it is more likely that the voltage would fluctuate so causing fake interrupts. Btw, I assumed the board cannot sleep for this sketch to work, am I wrong? Or are you keeping it awake but still powering it with batteries? Thanks

                                  F Offline
                                  F Offline
                                  flopp
                                  wrote on last edited by
                                  #18

                                  @user2684
                                  My board is sleep and wake up every 2 hours to send battery voltage or it wake up by interrupt

                                  petewillP 1 Reply Last reply
                                  0
                                  • F flopp

                                    @user2684
                                    My board is sleep and wake up every 2 hours to send battery voltage or it wake up by interrupt

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

                                    @flopp & @user2684 Hmm. Strange. Mine has been running for around 2 years and I have never noticed this behavior. I live in an area where we get lots of nice weather so I'm sure I would have noticed it if it were happening to me. I know that's not helpful for you but hopefully we can get this fixed...
                                    I don't have any great ideas on how to fix this but you may want to try updating to the latest MySensors bata library. There were some updates recently that fixed some interrupt issues.
                                    Also, since this was not happening indoors is it possible that there is something else causing this issue like wind or heat?
                                    Lastly, did you make any changes to the code or wiring for your sensors?

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

                                    1 Reply Last reply
                                    0
                                    • F Offline
                                      F Offline
                                      flopp
                                      wrote on last edited by
                                      #20

                                      I am using version 1.5.?
                                      I have not opened the rain-box for at least 4 month and not changed the code.
                                      Maybe this error have been there since day one but I have not checked so often.
                                      But now I am checking daily because of other nodes that I added recently and then I noticed this

                                      petewillP 1 Reply Last reply
                                      0
                                      • F flopp

                                        I am using version 1.5.?
                                        I have not opened the rain-box for at least 4 month and not changed the code.
                                        Maybe this error have been there since day one but I have not checked so often.
                                        But now I am checking daily because of other nodes that I added recently and then I noticed this

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

                                        @flopp What other types of nodes is this happening on? I'd definitely suggest updating to the latest version of the Beta code if you're having interrupt issues.

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

                                        F 1 Reply Last reply
                                        0
                                        • petewillP petewill

                                          @flopp What other types of nodes is this happening on? I'd definitely suggest updating to the latest version of the Beta code if you're having interrupt issues.

                                          F Offline
                                          F Offline
                                          flopp
                                          wrote on last edited by
                                          #22

                                          @petewill
                                          I have never seen it on other nodes and I don't think I had this error when it was cold

                                          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