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
    #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
                    • NeverDieN Offline
                      NeverDieN Offline
                      NeverDie
                      Hero Member
                      wrote on last edited by
                      #25

                      For those of you who want an extremely simple build, I've reduced it to just 5 parts:

                      • one 1-megaohm resistor (0805 SMD)
                      • one Arduino Pro Mini
                      • one Ra-01 LoRa module
                      • Male header pins
                      • Battery clips

                      See photos.

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


                      14

                      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