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. Development
  3. Water level code

Water level code

Scheduled Pinned Locked Moved Development
6 Posts 3 Posters 2.7k Views 2 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.
  • P Offline
    P Offline
    punter9
    wrote on last edited by punter9
    #1

    I wanted to pick your brains on this issue.

    What I have is a domoticz/mysensors setup. I have a garden with the moisture sensor and relay node combined. What this does is measure soil moisture and trigger a small pump in a tank to run. On the side of this tank I have put 4 bolts through it into the water. One at 25% down from top, one at 50% down from top, one right above top of pump (submerged pump), and one at very bottom.

    The bolt at the bottom is the ground and I apply power to the top 3 bolts 1 at a time to check for water levels. This way I can be alerted of needed tank refill and write logic to not run the pump if the water level is too low.

    Could anyone help me form some code to make these bolts into a useful mysensor node? I don't need the combo relay/soil sensor I have already combined those sketches. I would simply like tto add the bolts to register on or off and transmit as a recognizable sensor to domoticz.

    I am betting this is really simple, but I am learning everyday. I am working towards being able to build my own custom mysensor node.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      punter9
      wrote on last edited by punter9
      #2

      I'm seeing possibly using an s_door setup to be just like a door open closed switch. This could be useful. I would like for it to not show up as a door however in domoticz

      edit: just saw s_binary

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jkandasa
        Plugin Developer
        wrote on last edited by
        #3

        @punter9 I do not know about domoticz. But you can use S_WATER as sensor type and V_VOLUME as data type and you can send 25%, 50%, 100%.. based on the level of the bolt that you placed.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          brianc1969
          wrote on last edited by
          #4

          I was wanting to do something like this as well. Are you using some sort of op-amp or transistor amplifier in the circuit, or just the bolts and wires to the micro?

          Please share your hardware info.

          I think @jkandasa has the right idea for the mySensors portion.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jkandasa
            Plugin Developer
            wrote on last edited by
            #5

            @brianc1969 Here is the sketch I'm using with MyController.org Controller

            1 Reply Last reply
            0
            • P Offline
              P Offline
              punter9
              wrote on last edited by
              #6

              I am using straight bolts. I am still working through issues however combining multiple binary switches (bolts), 2 moisture sensors, and a relay.

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


              15

              Online

              11.7k

              Users

              11.2k

              Topics

              113.0k

              Posts


              Copyright 2019 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