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. Office plant monitoring

Office plant monitoring

Scheduled Pinned Locked Moved My Project
223 Posts 39 Posters 131.7k Views 42 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.
  • mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by
    #60

    That's correct. The Arduino cannot measure voltages above it's Vcc level.

    Great that you found information on voltage dividers.

    Powering on Raw will keep the voltage regulator active all the time, so you might get worse batttery life than when using 2xAA on Vcc. Therefore I suggest you order a 2xAA battery holder for later use. In the meanwhile, you can make your 4xAA holder work by putting two wires instead of batteries in the unused slots.

    If you still want to use 4 batteries, http://www.mysensors.org/build/battery#measuring-and-reporting-battery-level has more details and code to use for battery measurement.

    1 Reply Last reply
    1
    • J Jan Gatzke

      Just built this sensor and it is working great. However I am seeing different results with every run. It seems as if the value is always higher with one polarity than with the other one. Is this normal?

      0_1456353874082_soil.PNG

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #61

      @Jan-Gatzke I have updated my skech on codebender to report rolling average. I have not tested it yet though.
      The change is available at https://github.com/mfalkvidd/arduino-plantmoisture/commit/5e98c5e625075d62ae27956ab8dc3ea9dec4a29e

      J 1 Reply Last reply
      1
      • mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #62

        One more change https://github.com/mfalkvidd/arduino-plantmoisture/commit/299a4b273aee49b27a4cb3363574afec83ac2cd5

        1 Reply Last reply
        0
        • mfalkviddM mfalkvidd

          @Jan-Gatzke I have updated my skech on codebender to report rolling average. I have not tested it yet though.
          The change is available at https://github.com/mfalkvidd/arduino-plantmoisture/commit/5e98c5e625075d62ae27956ab8dc3ea9dec4a29e

          J Offline
          J Offline
          Jan Gatzke
          wrote on last edited by
          #63

          @mfalkvidd At the moment I am testing a modified version of the sketch which always does two readings. I don't think this will have a big impact on the battery life because most power is consumend by the nrf and not by the sensor. Or am I wrong? The pullups are rated at 10k Ohm. The sensors resistance will be about the same in average. So we talk about 20k at 3V which is 0.15 mA. The nrf uses abot 15 mA when sending.

          1 Reply Last reply
          0
          • mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by
            #64

            Yes, but the nrf needs to be active approximately 1ms while the moisture reading needs about a second to be stable. So the consumption while reading is much larger than the consumption while sending.

            1 Reply Last reply
            0
            • mrc-coreM Offline
              mrc-coreM Offline
              mrc-core
              wrote on last edited by
              #65

              Hi.

              I have been trying to connect two sensors to the same arduino nano using this code and i have add sensor 1 pin to A0 and GND, and sensor 2 pin A1 and GND.
              But i only get the reads from sensor 1 sensor 2 doesn't appear...
              Can anyone help me with this on how to get more than one moisture sensor working.

              Thanks.

              mfalkviddM 1 Reply Last reply
              0
              • mrc-coreM mrc-core

                Hi.

                I have been trying to connect two sensors to the same arduino nano using this code and i have add sensor 1 pin to A0 and GND, and sensor 2 pin A1 and GND.
                But i only get the reads from sensor 1 sensor 2 doesn't appear...
                Can anyone help me with this on how to get more than one moisture sensor working.

                Thanks.

                mfalkviddM Offline
                mfalkviddM Offline
                mfalkvidd
                Mod
                wrote on last edited by
                #66

                @mrc-core there have been quite a few revisions of the sketch. The latest version (which can be found at github) only support one sensor, which is connected to A0 and A1 in the default configuration. Both pins are required to enable alternating the direction of the current when measuring, to try to minimize corrosion.

                Adding support for up to three sensors is technically possible (using A0-A5), but would make the code harder to read and since I have no use for multiple sensor I haven't spent the time required to program and test a sketch with multiple sensors.

                mrc-coreM 1 Reply Last reply
                0
                • mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by mfalkvidd
                  #67

                  An update on battery life: The sensor in my bonsai tree has been reporting every 11,5 minutes since 2015-11-07, so over the last ~four months it has done 24,504 measurements. The battery level has gone from 3.187V to 3.142V, which means a drop of 0.01125V per month. Assuming I let it go down to 2.34V (limit for 8MHz according to the datasheet) and that the voltage drop is linear, I should get (3.187-2.34)/0.01125 = 75 months = ~6 years. There are several error sources in this calculation, but it looks like battery life will be quite good, even though the sensor reports much more often than necessary.

                  0_1457905111939_chart.png

                  iotcrazyI 1 Reply Last reply
                  1
                  • mfalkviddM mfalkvidd

                    @mrc-core there have been quite a few revisions of the sketch. The latest version (which can be found at github) only support one sensor, which is connected to A0 and A1 in the default configuration. Both pins are required to enable alternating the direction of the current when measuring, to try to minimize corrosion.

                    Adding support for up to three sensors is technically possible (using A0-A5), but would make the code harder to read and since I have no use for multiple sensor I haven't spent the time required to program and test a sketch with multiple sensors.

                    mrc-coreM Offline
                    mrc-coreM Offline
                    mrc-core
                    wrote on last edited by
                    #68

                    @mfalkvidd Thanks for the replay.
                    Will use only one sensor per arduino.

                    Once again thanks

                    1 Reply Last reply
                    0
                    • mfalkviddM mfalkvidd

                      An update on battery life: The sensor in my bonsai tree has been reporting every 11,5 minutes since 2015-11-07, so over the last ~four months it has done 24,504 measurements. The battery level has gone from 3.187V to 3.142V, which means a drop of 0.01125V per month. Assuming I let it go down to 2.34V (limit for 8MHz according to the datasheet) and that the voltage drop is linear, I should get (3.187-2.34)/0.01125 = 75 months = ~6 years. There are several error sources in this calculation, but it looks like battery life will be quite good, even though the sensor reports much more often than necessary.

                      0_1457905111939_chart.png

                      iotcrazyI Offline
                      iotcrazyI Offline
                      iotcrazy
                      wrote on last edited by
                      #69

                      @mfalkvidd since you are using 2 AA battery(3V max) with a sensor , how are you powering the sensors ? What sensors are you using ?.Most of the sensors need 5V right ? how are you providing the required voltage for sensor ?. If possible can you share a circuit diagram or close up picture for your sensor node with connection to NRF , Sensor and battery ?

                      Appreciate it .

                      mfalkviddM 1 Reply Last reply
                      0
                      • iotcrazyI iotcrazy

                        @mfalkvidd since you are using 2 AA battery(3V max) with a sensor , how are you powering the sensors ? What sensors are you using ?.Most of the sensors need 5V right ? how are you providing the required voltage for sensor ?. If possible can you share a circuit diagram or close up picture for your sensor node with connection to NRF , Sensor and battery ?

                        Appreciate it .

                        mfalkviddM Offline
                        mfalkviddM Offline
                        mfalkvidd
                        Mod
                        wrote on last edited by
                        #70

                        @iotcrazy the fork is entirely passive so no requirements on voltage. See earlier posts in this thread for wiring information.

                        iotcrazyI 1 Reply Last reply
                        0
                        • mfalkviddM mfalkvidd

                          @iotcrazy the fork is entirely passive so no requirements on voltage. See earlier posts in this thread for wiring information.

                          iotcrazyI Offline
                          iotcrazyI Offline
                          iotcrazy
                          wrote on last edited by iotcrazy
                          #71

                          @mfalkvidd sorry if questions seems like a dump . What do you mean by passive ? every sensors needs some voltage to perform a task right ?

                          I tried connecting a DHt11 Temp and humidity sensor using a arduino pro min(with led and voltage divider removed). It is connected to 2 AA battery. Unfortunate the node sends out value(proper value) only when I power on the Mini. It never sends the data again. However if I disconnect power supply and re attach it , it again sends the data. any idea what I am doing wrong ?

                          Also , whats the best way to create a Node which needs to monitor a sensor which uses 5 V . Arduino Mini is 3.3 V which.

                          Thanks

                          1 Reply Last reply
                          0
                          • carlierdC Offline
                            carlierdC Offline
                            carlierd
                            wrote on last edited by
                            #72

                            Hello,

                            Thanks for this useful and simple project !
                            My first node is running perfectly since 10 days.
                            Next step is to create a PCB and try running on a CR2032 to minimize the size (WAF request ;))

                            One question on the uses : when do you set a warning on the result ? When I need to water the flower ?

                            0_1461308771999_2016-04-21 17.21.41.png

                            My first node is close to 50%, is it time ? Off course it depends on the nature of the flower but I was not able to found the information on Google ...

                            David.

                            1 Reply Last reply
                            0
                            • mfalkviddM Offline
                              mfalkviddM Offline
                              mfalkvidd
                              Mod
                              wrote on last edited by
                              #73

                              I do just like I did before I had the sensors: stick a finger into the pot to feel if it needs water. If it does, I set the warning level to whatever level the sensor reports (or slightly higher).

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

                                Great idea @carlierd!

                                One that has everything mounted and you just stick into the plant soil would be really useful.

                                F 1 Reply Last reply
                                0
                                • scalzS Offline
                                  scalzS Offline
                                  scalz
                                  Hardware Contributor
                                  wrote on last edited by scalz
                                  #75

                                  yep, I think that would be a nice module!

                                  @mfalkvidd @hek I hope to not OT :flushed: I just want to show you few old school pics, a small jump back of 20years! My dad's stuff, a real maker ;)

                                  This one was, I guess, the smallest soil moisture, in "virtual bulb", meaning there was no external electrodes, so no corrosion :
                                  0_1461316115256_2016-04-22_10-58-38.png
                                  2nd: still in virtual bulb, humidity, salinity, roots temperature, temperature compensated, pH tendancy
                                  0_1461316160275_2016-04-22_10-59-39.png
                                  Multi level soil moisture:
                                  0_1461316305917_2016-04-22_11-02-44.png
                                  And these old Aurel 433mhz emitter/receiver !
                                  0_1462008084352_IMAG0394.jpg
                                  I have lot of others old pics like this lol! He was selling his devices.

                                  Few months ago, I have started to mix some of his old project with our new techno, but not finished! I would like to have sort of flo** pow** but more professional..still open. what!!

                                  1 Reply Last reply
                                  4
                                  • carlierdC Offline
                                    carlierdC Offline
                                    carlierd
                                    wrote on last edited by
                                    #76

                                    @scalz : very interesting ! Will you plan to make one ? I am pretty sure that your design could be very very very small ;)

                                    1 Reply Last reply
                                    0
                                    • scalzS Offline
                                      scalzS Offline
                                      scalz
                                      Hardware Contributor
                                      wrote on last edited by scalz
                                      #77

                                      @carlierd yes this is planned, but don't know yet when ..I have already started something few months ago, but I need to think about few points mostly about the overall assembly, and to be sure of the power supply/battery I prefer..I will tell you when I will have something nice :)

                                      1 Reply Last reply
                                      0
                                      • carlierdC Offline
                                        carlierdC Offline
                                        carlierd
                                        wrote on last edited by carlierd
                                        #78

                                        Hello,

                                        I finally spent some hours on Eagles.

                                        See the result in this post !

                                        Do not hesitate to give me advice.

                                        David.

                                        1 Reply Last reply
                                        0
                                        • mfalkviddM Offline
                                          mfalkviddM Offline
                                          mfalkvidd
                                          Mod
                                          wrote on last edited by
                                          #79

                                          Another update on battery life:
                                          The sensor in my bonsai tree has been reporting every 11,5 minutes since 2015-11-07, so over the last ~seven months it has done 48,965 measurements. It sends data over the radio every time, regardless if the value has changed. The battery level has gone from 3.187V to 3.134V, which means a drop of 0.0076V per month. Assuming I let it go down to 2.34V (limit for 8MHz according to the datasheet) and that the voltage drop is linear, I should get (3.187-2.34)/0.0076 = 111 months = ~9 years. There are several error sources in this calculation, but it looks like battery life will be quite good, even though the sensor reports much more often than necessary.
                                          0_1466870465803_Batteri plantmoisture.png

                                          1 Reply Last reply
                                          2
                                          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