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. Leaf Wetness

Leaf Wetness

Scheduled Pinned Locked Moved My Project
45 Posts 9 Posters 33.2k Views 3 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
    #15

    It doesn't look much different that the china-ones. Is it gold-plated or something?

    1 Reply Last reply
    0
    • epierreE Offline
      epierreE Offline
      epierre
      Hero Member
      wrote on last edited by epierre
      #16

      yes it is, from the hobby board site it is $2, but it is a quarter the china's size.

      sorry I missed your point, it is gold plated, immersion gold.

      z-wave - Vera -> Domoticz
      rfx - Domoticz <- MyDomoAtHome <- Imperihome
      mysensors -> mysensors-gw -> Domoticz

      1 Reply Last reply
      0
      • epierreE Offline
        epierreE Offline
        epierre
        Hero Member
        wrote on last edited by epierre
        #17

        Ok, so I made some adjustments from my last try:

        • hobbyboard immersion gold sensor
        • I kept the comparator from the other sensor to facilitate work with the arduino
        • I've added a 18650 LiOn battery (5000mAh) to have an extended life cycle

        Here is the sketch:
        https://github.com/empierre/arduino/blob/master/LeafWetnessSensor.ino

        What I can say, is that it is very sensitive. It is now outside live in the cold.

        This could be used for a leak sensor easily.

        z-wave - Vera -> Domoticz
        rfx - Domoticz <- MyDomoAtHome <- Imperihome
        mysensors -> mysensors-gw -> Domoticz

        1 Reply Last reply
        0
        • epierreE Offline
          epierreE Offline
          epierre
          Hero Member
          wrote on last edited by
          #18

          so my 5000mAh lasted outside... 4 days... btw I didn't remove all leds from the comparator that could be an improvement and the outside weather is quite cold.

          I had a reading every 30 secs, way to quick surely...

          @hek is there a way to power the radio only when necessary ? I guess the gw.sleep could be a gw.sleep and a gw.wakeup and manage the delay outside ?

          z-wave - Vera -> Domoticz
          rfx - Domoticz <- MyDomoAtHome <- Imperihome
          mysensors -> mysensors-gw -> Domoticz

          hekH 1 Reply Last reply
          0
          • epierreE epierre

            so my 5000mAh lasted outside... 4 days... btw I didn't remove all leds from the comparator that could be an improvement and the outside weather is quite cold.

            I had a reading every 30 secs, way to quick surely...

            @hek is there a way to power the radio only when necessary ? I guess the gw.sleep could be a gw.sleep and a gw.wakeup and manage the delay outside ?

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

            @epierre

            gw.sleep() sleeps the radio as well. What do you mean by power down radio? Like cutting power using digital pin?

            epierreE 1 Reply Last reply
            0
            • hekH hek

              @epierre

              gw.sleep() sleeps the radio as well. What do you mean by power down radio? Like cutting power using digital pin?

              epierreE Offline
              epierreE Offline
              epierre
              Hero Member
              wrote on last edited by
              #20

              @hek said:

              @epierre

              gw.sleep() sleeps the radio as well. What do you mean by power down radio? Like cutting power using digital pin?
              yes, now you combine sleep for the radio and delay, what I mean is to have loop() run without radio, and if a transmission is needed to have a command that power it.

              If you have a long dry period, a device on battery will consume a lot of power having the radion on and off, if it is always off until a sensor finds something, that would save more power, no ?

              z-wave - Vera -> Domoticz
              rfx - Domoticz <- MyDomoAtHome <- Imperihome
              mysensors -> mysensors-gw -> Domoticz

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

                Wake only on interrupt?

                RJ_Make

                1 Reply Last reply
                0
                • epierreE Offline
                  epierreE Offline
                  epierre
                  Hero Member
                  wrote on last edited by
                  #22

                  In my idea, a value above 0 would mean sending the info, an interrupt could be generated this way ?

                  z-wave - Vera -> Domoticz
                  rfx - Domoticz <- MyDomoAtHome <- Imperihome
                  mysensors -> mysensors-gw -> Domoticz

                  1 Reply Last reply
                  0
                  • elisavetgrigE Offline
                    elisavetgrigE Offline
                    elisavetgrig
                    wrote on last edited by
                    #23

                    Hey,
                    I am a newbie (in the forum) and in the arduino/sensors development. I bought the Leaf Wetness from cooking-hacks.com. Can I connected it to my Arduino via Analog input? Is it easy?

                    SparkmanS 1 Reply Last reply
                    0
                    • elisavetgrigE elisavetgrig

                      Hey,
                      I am a newbie (in the forum) and in the arduino/sensors development. I bought the Leaf Wetness from cooking-hacks.com. Can I connected it to my Arduino via Analog input? Is it easy?

                      SparkmanS Offline
                      SparkmanS Offline
                      Sparkman
                      Hero Member
                      wrote on last edited by
                      #24

                      @elisavetgrig Welcome to the forum. The answer is yes to both questions. Given that the sensor is a resistive element, you need to build a voltage divider. Google "voltage divider" Arduino and you'll find lots of examples.

                      Cheers
                      Al

                      1 Reply Last reply
                      0
                      • FotoFieberF Offline
                        FotoFieberF Offline
                        FotoFieber
                        Hardware Contributor
                        wrote on last edited by
                        #25

                        Measuring the current with DC doesn't seem to be the ideal solution:
                        thread

                        SparkmanS 1 Reply Last reply
                        0
                        • FotoFieberF FotoFieber

                          Measuring the current with DC doesn't seem to be the ideal solution:
                          thread

                          SparkmanS Offline
                          SparkmanS Offline
                          Sparkman
                          Hero Member
                          wrote on last edited by
                          #26

                          @FotoFieber That thread is regarding soil moisture measurements which is different than leaf wetness. For soil, capacitive is the best way to go IMHO.

                          Cheers
                          Al

                          1 Reply Last reply
                          0
                          • FotoFieberF Offline
                            FotoFieberF Offline
                            FotoFieber
                            Hardware Contributor
                            wrote on last edited by
                            #27

                            AC Statement ☺

                            1 Reply Last reply
                            0
                            • elisavetgrigE Offline
                              elisavetgrigE Offline
                              elisavetgrig
                              wrote on last edited by
                              #28

                              ok...Thank you... I will try the "voltage divider" and I will see what will happen!

                              1 Reply Last reply
                              0
                              • elisavetgrigE Offline
                                elisavetgrigE Offline
                                elisavetgrig
                                wrote on last edited by elisavetgrig
                                #29

                                assembly.jpg

                                1 Reply Last reply
                                0
                                • elisavetgrigE Offline
                                  elisavetgrigE Offline
                                  elisavetgrig
                                  wrote on last edited by
                                  #30

                                  Did you mean something like the figure above? Or I only need to connect one resistor to one wire and the other wire to another pin in the Arduino?

                                  SparkmanS 1 Reply Last reply
                                  0
                                  • elisavetgrigE elisavetgrig

                                    Did you mean something like the figure above? Or I only need to connect one resistor to one wire and the other wire to another pin in the Arduino?

                                    SparkmanS Offline
                                    SparkmanS Offline
                                    Sparkman
                                    Hero Member
                                    wrote on last edited by
                                    #31

                                    @elisavetgrig You're missing the connections to a voltage source and ground. You also only need one resistor as the wetness sensor is the 2nd resistor in the voltage divider circuit. Take a look at this: http://homepage.cs.uri.edu/faculty/hamel/workshops/as220-sept-09/sensors-voltage-dividers.html.

                                    Cheers
                                    Al

                                    1 Reply Last reply
                                    0
                                    • elisavetgrigE Offline
                                      elisavetgrigE Offline
                                      elisavetgrig
                                      wrote on last edited by
                                      #32

                                      You are right! I thought that I missing something... always there are Data connection, VCC connection and GND.. and I had only one! I made another dummy scheme... Is that better?leaf wetness.jpg

                                      SparkmanS 1 Reply Last reply
                                      0
                                      • elisavetgrigE elisavetgrig

                                        You are right! I thought that I missing something... always there are Data connection, VCC connection and GND.. and I had only one! I made another dummy scheme... Is that better?leaf wetness.jpg

                                        SparkmanS Offline
                                        SparkmanS Offline
                                        Sparkman
                                        Hero Member
                                        wrote on last edited by
                                        #33

                                        @elisavetgrig Take a look at the second diagram of the link I posted. Right now you show the GND pin connected to the Analog pin and Vcc is also connected to the same spot, so that's not going to work.

                                        Cheers
                                        Al

                                        1 Reply Last reply
                                        0
                                        • elisavetgrigE Offline
                                          elisavetgrigE Offline
                                          elisavetgrig
                                          wrote on last edited by
                                          #34

                                          I based in the second diagram... i think that I understand it... resistorss-leaf wet.png

                                          SparkmanS 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