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. OpenHardware.io
  3. 💬 Extremely Simple Arduino Pro-Mini LoRa Water Leak Detector

💬 Extremely Simple Arduino Pro-Mini LoRa Water Leak Detector

Scheduled Pinned Locked Moved OpenHardware.io
easysimpledetectorpro miniliquidwater heaterplumbingwetarduinosinkleakwater
25 Posts 6 Posters 7.4k Views 5 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.
  • NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by NeverDie
    #5

    I just now uploaded Version 6. I changed the board layout to avoid some physical clearance problems that manifested in the Version 4 board, and I added a test button and a buzzer. I also increased the size of the pads for the battery holders so that the soldered connections should now have greater mechanical strength.

    1 Reply Last reply
    0
    • NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by
      #6

      Not sure, but it looks as though perhaps an ESP32 LoRa could be used as a gateway:
      https://www.aliexpress.com/item/LoRa-ESP32-0-96-Inch-Blue-OLED-Display-SX1278-Bluetooth-WIFI-Lora-Kit-32-Module-Internet/32829056144.html?spm=2114.search0204.3.2.QrI4pf&ws_ab_test=searchweb0_0,searchweb201602_4_10152_10065_5000015_10151_10344_10068_10130_10345_10324_10342_10547_10325_10343_51102_10546_10340_10341_10548_10545_5130015_10541_10084_10083_10307_5690015_10539_5080015_10312_10059_10313_10314_10534_100031_10604_10603_10103_10605_10594_5060015_10596_10142_10107,searchweb201603_25,ppcSwitch_4_ppcChannel&algo_expid=f6591117-6a7c-473e-af12-bb606196f59c-0&algo_pvid=f6591117-6a7c-473e-af12-bb606196f59c&rmStoreLevelAB=0

      1 Reply Last reply
      0
      • NeverDieN Offline
        NeverDieN Offline
        NeverDie
        Hero Member
        wrote on last edited by
        #7

        I received the version 6 board today and assembled it. It is completely free of the clearance issues that were quite noticeable in the previous version.

        1 Reply Last reply
        0
        • ranseyerR Offline
          ranseyerR Offline
          ranseyer
          Hardware Contributor
          wrote on last edited by
          #8

          Thanks for sharing. Is it possible that you post the schematic, and is it now useable with mysensors ?

          NeverDieN 2 Replies Last reply
          0
          • ranseyerR ranseyer

            Thanks for sharing. Is it possible that you post the schematic, and is it now useable with mysensors ?

            NeverDieN Offline
            NeverDieN Offline
            NeverDie
            Hero Member
            wrote on last edited by NeverDie
            #9

            @ranseyer said in 💬 Arduino Pro-Mini LoRa Water Leak Detector:

            Thanks for sharing. Is it possible that you post the schematic, and is it now useable with mysensors ?

            The board was so simple that I free-handed the PCB without doing a schematic first. Diptrace allows that. So, sorry, there's no separate schematic on this one.

            I've been distracted with other things, so I haven't yet fully tested it. Once I've confirmed that it's working, then I'll remove the work-in-progress moniker.

            1 Reply Last reply
            0
            • NeverDieN Offline
              NeverDieN Offline
              NeverDie
              Hero Member
              wrote on last edited by
              #10

              I just now uploaded Version 7.

              What changed: I rotated the buzzer 90 degrees to provide much better clearance between the pass-through of the buzzer leads and the batteries.

              1 Reply Last reply
              0
              • ranseyerR ranseyer

                Thanks for sharing. Is it possible that you post the schematic, and is it now useable with mysensors ?

                NeverDieN Offline
                NeverDieN Offline
                NeverDie
                Hero Member
                wrote on last edited by NeverDie
                #11

                @ranseyer said in 💬 Arduino Pro-Mini LoRa Water Leak Detector:

                Thanks for sharing. Is it possible that you post the schematic, and is it now useable with mysensors ?

                I just now uploaded a schematic. I've made a few upgrades to the project, which are shown in the schematic but not yet reflected in the gerber files:

                1. Uses a TPL5010 as an external watchdog timer. This chip consumes just 35na, so it is far more energy efficient than the atmega328p's built-in watchdog timer. Also, it will reset the pro mini if the pro mini ever becomes unresponsive.

                2. Uses a TPS22860 to drive the buzzer. I've done some experiments, and the buzzer is louder if driven by a load switch than if the buzzer is driven by just a pin on the pro mini.

                These changes should make the project both reliable and "bullet proof".

                1 Reply Last reply
                0
                • NeverDieN Offline
                  NeverDieN Offline
                  NeverDie
                  Hero Member
                  wrote on last edited by
                  #12

                  I just now uploaded the files for Version 12.

                  1 Reply Last reply
                  0
                  • NeverDieN Offline
                    NeverDieN Offline
                    NeverDie
                    Hero Member
                    wrote on last edited by
                    #13

                    I just now updated the BOM so that it reflects the current design.

                    1 Reply Last reply
                    0
                    • NeverDieN Offline
                      NeverDieN Offline
                      NeverDie
                      Hero Member
                      wrote on last edited by
                      #14

                      I just now uploaded version 14. Changes: added a 100K pullup resistor and a 0.1uF bypass capacitor, both used by the TPL5010.

                      1 Reply Last reply
                      0
                      • NeverDieN Offline
                        NeverDieN Offline
                        NeverDie
                        Hero Member
                        wrote on last edited by NeverDie
                        #15

                        I just now uploaded a demo sketch which demonstrates that the TPL5010 external watchdog is functioning correctly by:

                        1. Showing that the TPL5010 can periodically awaken the sleeping Pro Mini, and
                        2. Showing that the TPL5010 will hardware reset the Pro Mini if the Pro Mini becomes unresponsive.
                        1 Reply Last reply
                        0
                        • NeverDieN Offline
                          NeverDieN Offline
                          NeverDie
                          Hero Member
                          wrote on last edited by NeverDie
                          #16

                          I further upgraded the demo script to demonstrate leak detection, as well as the TEST button being pressed.

                          You can easily adapt this test script to run your favorite brand of LoRa radio code. :)

                          1 Reply Last reply
                          0
                          • bjacobseB Offline
                            bjacobseB Offline
                            bjacobse
                            wrote on last edited by
                            #17

                            What a nice design you have created :-)

                            1 Reply Last reply
                            1
                            • NeverDieN Offline
                              NeverDieN Offline
                              NeverDie
                              Hero Member
                              wrote on last edited by
                              #18

                              Starting with MySensors Release 2.1.1, it appears this LoRa radio is now supported by MySensors:
                              "New transport layer: RFM95 (LoRa mode)"

                              1 Reply Last reply
                              0
                              • NeverDieN Offline
                                NeverDieN Offline
                                NeverDie
                                Hero Member
                                wrote on last edited by NeverDie
                                #19

                                To get the most battery efficient operation, I recommend setting your atmega328p's fuses as follows:

                                BODLEVEL = DISABLED
                                RSTDISBL = [ ]
                                DWEN = [ ]
                                SPIEN = [X]
                                WDTON = [ ]
                                EESAVE = [ ]
                                BOOTSZ = 1024W_3C00
                                BOOTRST = [X]
                                CKDIV8 = [ ]
                                CKOUT = [ ]
                                SUT_CKSEL = INTRCOSC_8MHZ_6CK_14CK_0MS
                                
                                EXTENDED = 0xFF (valid)
                                HIGH = 0xDA (valid)
                                LOW = 0xC2 (valid)
                                

                                Also, either use the mysensors bootloader, or else use optiboot_atmega328.hex as your bootloader: https://github.com/Optiboot/optiboot

                                1 Reply Last reply
                                0
                                • NeverDieN Offline
                                  NeverDieN Offline
                                  NeverDie
                                  Hero Member
                                  wrote on last edited by NeverDie
                                  #20

                                  Hardware works. Project completed. Insert your favorite brand of radio code, and you'll be good to go.

                                  I uploaded version 11 of the TPL5010 test code. The way it works is this:

                                  1. If you simply add the batteries, the unit will boot (giving two beeps when it does), and then it will wake up every 5 minutes after that. However, no LED will light, except during the initial boot.

                                  2. So, to speed up the testing, hold down the "TEST1" button prior to (and during) inserting the batteries. Then release. This will wake up the pro mini every few seconds. However, the LED's still won't light to indicate each wakeup.

                                  3. So, after step #2, press the "TEST2" button once. This will then flash the LED every time the pro mini wakes up. This confirms that the TPL5010 is correctly waking up the pro mini.

                                  4. To confirm that the TPL5010 will reboot the pro mini if the pro mini becomes unresponsive, press the "TEST2" button again. This will put the pro mini into a tight infinite loop, making it unresponsive. Within a few seconds, the TPL5010 will reboot the pro mini.

                                  That's it!

                                  1 Reply Last reply
                                  0
                                  • NeverDieN Offline
                                    NeverDieN Offline
                                    NeverDie
                                    Hero Member
                                    wrote on last edited by
                                    #21

                                    Photo of Version 16 posted:
                                    0_1517694360194_lora_leak_detector_v16.jpg

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

                                      16 versions! Impressive iterative work to get the perfect result.

                                      1 Reply Last reply
                                      0
                                      • NeverDieN Offline
                                        NeverDieN Offline
                                        NeverDie
                                        Hero Member
                                        wrote on last edited by
                                        #23

                                        To more easily conform to some of the existing LoRa libraries, I'm going to change some of the wiring....

                                        1 Reply Last reply
                                        0
                                        • NeverDieN Offline
                                          NeverDieN Offline
                                          NeverDie
                                          Hero Member
                                          wrote on last edited by
                                          #24

                                          Done! I'm very happy with Version 17. Files and photos are now uploaded.

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


                                          13

                                          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