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.
  • petewillP petewill

    @BulldogLowell
    Thanks for the comments and sorry for the delayed response. It was a busy weekend and I didn't get much time in front of the computer.

    I had a whack of combining your desire to use floats, and my desire not to use floats!

    Haha! I only used floats because I don't know any better. I'm curious, why the dislike of floats?

    Once you get it done, let's take @hek 's idea and put it into github.

    Is this something you would like me to do since you made it way better :) I'm happy to do it but I don't want to overstep. I consider this your handy work that I'm just happy to use.

    Take a look at this and let me know if you like it, note it is untested and I still have to test the circular buffer storing ints instead of bytes.

    Great! I will take a look some time this week. I mounted my gauge on the house today because we were supposed to get some rain and I wanted to see how it worked in real life. Unfortunately we didn't get any... Hopefully we will get some in the next couple of days before I pull it off to do some more testing.

    we also need to create image files for the Sensor, but for now, if you want to do the tutorial, I say go for it!

    I was thinking of going through how I made my gauge by using an existing rain gauge. I'd go over how to do the calculations for the tipping bucket calibration, uploading the files to Vera and how I added the MySensors stuff to the existing gauge. I will definitely mention the 3d printing option as well

    Thanks for your help!.

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

    @petewill said:

    why the dislike of floats?

    their four-byte size on arduino make for a huge eeprom storage buffer that we really don't need, we will never have negative rain and we'd never be interested in precision below 0.01 inches or milimeters.

    @petewill said:

    I mounted my gauge on the house today

    terrific, glad to see it make its way into the real world!

    petewillP 1 Reply Last reply
    0
    • BulldogLowellB BulldogLowell

      @petewill said:

      why the dislike of floats?

      their four-byte size on arduino make for a huge eeprom storage buffer that we really don't need, we will never have negative rain and we'd never be interested in precision below 0.01 inches or milimeters.

      @petewill said:

      I mounted my gauge on the house today

      terrific, glad to see it make its way into the real world!

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

      @BulldogLowell said:

      their four-byte size on arduino make for a huge eeprom storage buffer that we really don't need

      Good to know! I still have a lot to learn about all this stuff. It's definitely fun.

      terrific, glad to see it make its way into the real world!

      Yes, me too! I'm happy to report it's working. It rained 6.4mm last night. SO COOL!

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

      BulldogLowellB 1 Reply Last reply
      2
      • petewillP petewill

        @BulldogLowell said:

        their four-byte size on arduino make for a huge eeprom storage buffer that we really don't need

        Good to know! I still have a lot to learn about all this stuff. It's definitely fun.

        terrific, glad to see it make its way into the real world!

        Yes, me too! I'm happy to report it's working. It rained 6.4mm last night. SO COOL!

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

        @petewill

        :thumbsup:

        big thumbs up!

        1 Reply Last reply
        0
        • BulldogLowellB Offline
          BulldogLowellB Offline
          BulldogLowell
          Contest Winner
          wrote on last edited by
          #62

          how about adding windspeed to the device?

          hekH 1 Reply Last reply
          0
          • BulldogLowellB BulldogLowell

            how about adding windspeed to the device?

            hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #63

            @BulldogLowell said:

            how about adding windspeed to the device?

            Cool device. Haven't seen that one before.

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

              @BulldogLowell Cool! Do you think it detects wind from all directions? Would this be better than the traditional spinning cup design?

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

              1 Reply Last reply
              0
              • BulldogLowellB Offline
                BulldogLowellB Offline
                BulldogLowell
                Contest Winner
                wrote on last edited by BulldogLowell
                #65

                @hek
                @petewill

                A little progress on the device...

                Screen Shot 2015-05-09 at 11.07.41 PM.png

                Screen Shot 2015-05-09 at 11.17.11 PM.png

                Screen Shot 2015-05-09 at 11.07.28 PM.png

                Screen Shot 2015-05-09 at 11.11.29 PM.png

                BulldogLowellB 1 Reply Last reply
                1
                • BulldogLowellB BulldogLowell

                  @hek
                  @petewill

                  A little progress on the device...

                  Screen Shot 2015-05-09 at 11.07.41 PM.png

                  Screen Shot 2015-05-09 at 11.17.11 PM.png

                  Screen Shot 2015-05-09 at 11.07.28 PM.png

                  Screen Shot 2015-05-09 at 11.11.29 PM.png

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

                  electronics box:

                  Screen Shot 2015-05-10 at 10.08.29 AM.png

                  Screen Shot 2015-05-10 at 10.09.57 AM.png

                  1 Reply Last reply
                  0
                  • FrancoisF Offline
                    FrancoisF Offline
                    Francois
                    wrote on last edited by Francois
                    #67

                    @BulldogLowell this looks great once you complete it I will print it. Only problem our raining session is over till Dec. But I can start the build so long :).

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

                      Nice. But I'm a bit worried about water finding its way into the electronics. Would it be possible to make a cavity for the electronics box in the bottom plate?

                      1431266959242-screen-shot-2015-05-10-at-10.08.29-am.png

                      BulldogLowellB 1 Reply Last reply
                      0
                      • hekH hek

                        Nice. But I'm a bit worried about water finding its way into the electronics. Would it be possible to make a cavity for the electronics box in the bottom plate?

                        1431266959242-screen-shot-2015-05-10-at-10.08.29-am.png

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

                        @hek
                        recessing the electronics into the bottom would be tough in this design. I was taking advantage on the two parts to use the smooth plate of the printer, and then make a gasket or even use silicone. lemme think about it. I could add a couple of deflectors on the bottom plate to glue on around where the weep holes are...

                        PS enough room for 2 C sized cells

                        bottom view:

                        Screen Shot 2015-05-10 at 11.32.50 AM.png

                        Screen Shot 2015-05-10 at 11.44.44 AM.png

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

                          @BulldogLowell Awesome!

                          I kind of wish I didn't have mine built already :)

                          I may have missed it but did you have any mounting holes (for the side of a building or pole) What is your vision for that?

                          It would also be cool to see some place to add a DHT22 in there. On mine I added one of those as well as a BH1750 for light. I'm not sure how long that will hold up though.

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

                          BulldogLowellB 2 Replies Last reply
                          0
                          • petewillP petewill

                            @BulldogLowell Awesome!

                            I kind of wish I didn't have mine built already :)

                            I may have missed it but did you have any mounting holes (for the side of a building or pole) What is your vision for that?

                            It would also be cool to see some place to add a DHT22 in there. On mine I added one of those as well as a BH1750 for light. I'm not sure how long that will hold up though.

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

                            @petewill said:

                            It would also be cool to see some place to add a DHT22 in there. On mine I added one of those as well as a BH1750 for light. I'm not sure how long that will hold up though.

                            I'll try to fit that in, if I can, but I'm really focusing on sealing up the electronics. A skirt around the electronics housing may be enough...

                            I was thinking of a female 'flange-like' option for the unit to sit at the top of some galvanized pipe. It could be mounted that way on the side of a house, a fence or just a pole (back of your basketball backboard!). So, the yellow-brown part will be of two options to print.

                            hekH 1 Reply Last reply
                            0
                            • BulldogLowellB BulldogLowell

                              @petewill said:

                              It would also be cool to see some place to add a DHT22 in there. On mine I added one of those as well as a BH1750 for light. I'm not sure how long that will hold up though.

                              I'll try to fit that in, if I can, but I'm really focusing on sealing up the electronics. A skirt around the electronics housing may be enough...

                              I was thinking of a female 'flange-like' option for the unit to sit at the top of some galvanized pipe. It could be mounted that way on the side of a house, a fence or just a pole (back of your basketball backboard!). So, the yellow-brown part will be of two options to print.

                              hekH Offline
                              hekH Offline
                              hek
                              Admin
                              wrote on last edited by
                              #72

                              @BulldogLowell said:

                              I was taking advantage on the two parts to use the smooth plate of the printer

                              Of course, didn't think that long.

                              1 Reply Last reply
                              0
                              • petewillP petewill

                                @BulldogLowell Awesome!

                                I kind of wish I didn't have mine built already :)

                                I may have missed it but did you have any mounting holes (for the side of a building or pole) What is your vision for that?

                                It would also be cool to see some place to add a DHT22 in there. On mine I added one of those as well as a BH1750 for light. I'm not sure how long that will hold up though.

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

                                @petewill

                                Screen Shot 2015-05-10 at 12.49.56 PM.png

                                1 Reply Last reply
                                0
                                • A Offline
                                  A Offline
                                  Andreas Maurer
                                  wrote on last edited by
                                  #74

                                  If you add a little edge around the holes, the water cannt flow into the electronic box.

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

                                    @BulldogLowell Awesome. I would love to get a 3d printer. Someday.

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

                                    1 Reply Last reply
                                    0
                                    • BulldogLowellB Offline
                                      BulldogLowellB Offline
                                      BulldogLowell
                                      Contest Winner
                                      wrote on last edited by
                                      #76

                                      @petewill

                                      As it happens, I am sort of turning the code on its head for this update. Do you want to use accumulated rain over X days as the trigger?

                                      I was thinking about storing the time on EEPROM and retrieving the stored rain values from VERA for each of the last 5 days after a power-up/restart. This saves from having to create too much EEPROM management, plus we can observe how much time has passed in the event of a power-off. That is, if the unit starts up, we test EEPROM to see what was the last day of rain recorded. If it hasn't been more than one, then we retrieve the values from VERA that were previously sent up. Sound OK to you?

                                      I would save an epoch timestamp once each day at midnight when we total today's rain and cascade the values back a day.

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

                                        @BulldogLowell said:

                                        Do you want to use accumulated rain over X days as the trigger?

                                        As opposed to hours? I don't have too strong of an opinion either way. I think whatever is easier works. If they are both the same then maybe hours so we have a little more granular control?

                                        I was thinking about storing the time on EEPROM and retrieving the stored rain values from VERA for each of the last 5 days after a power-up/restart.

                                        I like that it will simplify the EEPROM more and potentially prolong the life of the device (since it's not using as much EEPROM). One thought though, if there is a communication error between Vera and the rain gauge when it is first started is there a way to prevent the rain gauge from subsequently overwriting the values in Vera? I don't know too much about the "ack" portion of the communication but maybe that would make it so it's not an issue?

                                        I'm excited to see the new code. Keep up the good work!

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

                                        BulldogLowellB 1 Reply Last reply
                                        0
                                        • petewillP petewill

                                          @BulldogLowell said:

                                          Do you want to use accumulated rain over X days as the trigger?

                                          As opposed to hours? I don't have too strong of an opinion either way. I think whatever is easier works. If they are both the same then maybe hours so we have a little more granular control?

                                          I was thinking about storing the time on EEPROM and retrieving the stored rain values from VERA for each of the last 5 days after a power-up/restart.

                                          I like that it will simplify the EEPROM more and potentially prolong the life of the device (since it's not using as much EEPROM). One thought though, if there is a communication error between Vera and the rain gauge when it is first started is there a way to prevent the rain gauge from subsequently overwriting the values in Vera? I don't know too much about the "ack" portion of the communication but maybe that would make it so it's not an issue?

                                          I'm excited to see the new code. Keep up the good work!

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

                                          @petewill said:

                                          As opposed to hours? I don't have too strong of an opinion either way. I think whatever is easier works. If they are both the same then maybe hours so we have a little more granular control?

                                          that's where we were with the 120 hour framework, so let's leave that. I'm not worried about EEPROM life, you get 100,000 writes and that is your lifetime++ using the circular buffer. I did the math on it but can't recall the exact number.

                                          So, we won't change EEPROM data, actually may need to add another 24hours. We just send to VERA the total of each of the past 5 days instead of the total accumulated rainfall over the past 24, 48, 72, 96 and 120 hours. This will be calendar days, we will verify by getting the time from VERA, and synchronize that a few times daily. the days will rollover at midnight, and the daily accumulation will be cascaded back accordingly.

                                          trigger for the sensor will still be total accumulation over so many hours.

                                          Yes?

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


                                          11

                                          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