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 mfalkvidd

    To use the sketch with reverse polarity you need to connect + and - on the prong to A0 and A1 on the Arduino. The chip in the middle is not used.
    moisture.png

    R Offline
    R Offline
    rajbadri
    wrote on last edited by
    #42

    @mfalkvidd
    ok will try

    1 Reply Last reply
    0
    • mfalkviddM mfalkvidd

      @Nicklas-Starkel last weekend one of my sensors broke. Both pins were completely corroded and broke just where I connect the dupont wires. I think I will use hot glue to protect the connectors, but I have also added alternating power to my single-sensor sketch. I have this sketch running on three sensors now.
      https://codebender.cc/sketch:158460

      Pierre PP Offline
      Pierre PP Offline
      Pierre P
      wrote on last edited by Pierre P
      #43

      @mfalkvidd said:

      @Nicklas-Starkel last weekend one of my sensors broke. Both pins were completely corroded and broke

      Did you try to just paint the sensors ?
      I've seen that here: https://www.tindie.com/products/miceuz/i2c-soil-moisture-sensor/

      It doesn't work for me. I go double check the wiring. EDIT: not it's okay now. Great !
      0_1453567276371_IMG_20160123_173901-2.jpg

      But is it possible to use A0-A1, A2-A3, A4-A5 on a atmega328P or there is the same pullup problem ?

      No quote, no forum notification (else, the mail box ring every minutes !). Thanks, and have a very good MySensors day !

      S 1 Reply Last reply
      1
      • Pierre PP Offline
        Pierre PP Offline
        Pierre P
        wrote on last edited by
        #44

        Painted fork seem to work. 0% on dry heart, and now:
        0_1453725695799_jeedom-008.png

        But the pourcentage of batterie seem to change a lot lot lot.

        ps: i'll tell you if it's corroding.

        No quote, no forum notification (else, the mail box ring every minutes !). Thanks, and have a very good MySensors day !

        1 Reply Last reply
        0
        • mfalkviddM Online
          mfalkviddM Online
          mfalkvidd
          Mod
          wrote on last edited by mfalkvidd
          #45

          @Pierre-P said

          But is it possible to use A0-A1, A2-A3, A4-A5 on a atmega328P or there is the same pullup problem ?

          A0-A5 can be used. A6 and A7 do not have built-in pullup resistors and can not be set high or low. The sketch in http://forum.mysensors.org/topic/2147/office-plant-monitoring/21 mentions that but there have been many revisions and this thread is long so I don't blame you for missing it :)

          1 Reply Last reply
          1
          • Pierre PP Pierre P

            @mfalkvidd said:

            @Nicklas-Starkel last weekend one of my sensors broke. Both pins were completely corroded and broke

            Did you try to just paint the sensors ?
            I've seen that here: https://www.tindie.com/products/miceuz/i2c-soil-moisture-sensor/

            It doesn't work for me. I go double check the wiring. EDIT: not it's okay now. Great !
            0_1453567276371_IMG_20160123_173901-2.jpg

            But is it possible to use A0-A1, A2-A3, A4-A5 on a atmega328P or there is the same pullup problem ?

            S Offline
            S Offline
            Stric
            wrote on last edited by
            #46

            @Pierre-P
            That i2c thing is painted and works because it's capacitive (it can even sense when your finger is hovering a millimeter or two away from it, like a capacitive touch screen (your phone)). I put one of them into the soil yesterday. If I remember, I will get back regarding results.. I placed it into the same flower as a resistive fork, with the middle chip (so I have some corrosion).

            1 Reply Last reply
            1
            • D doblanch

              Hello,

              I'm on the same project personally...I using 2 battery... this part should work between 3.3 V and 5V...
              finally with 2XAA we only have 3V, and the max value for me is 750 not 1023... did you get 1023 when into the water?
              I use a gold plated sensor, and the plug will be into a seal to avoid corrosion and water to go in.
              I use a sensbender where I connected on A3 the pin use for the soil moisture sensor.
              Could you confirm that change the polarity help to avoid corrosion ???
              thanks

              F Offline
              F Offline
              Funnyx
              wrote on last edited by Funnyx
              #47

              @doblanch said:

              I'm on the same project personally...I using 2 battery... this part should work between 3.3 V and 5V...
              finally with 2XAA we only have 3V, and the max value for me is 750 not 1023... did you get 1023 when into the water?

              If you have the XD-28 sensor, I think air is about 1023 (so minimal connection). If you put it in water it will be much lower, 300 to 400. 100% water isn't realistic of course and because of that, I get my first reading with the sensor in the air and the second one I initiate with a button press when it's planted and the spot is fully watered.

              The button press is just a way to get the different readings for different soil. It does actually read the sensor 200 times and takes a median of that and set the "0" point after that.

              I'm trying to measure the centibar which is (apparently, I did not know this a week ago) the right way to measure the soil. Of course, soil temperature has something to do with it also. I'm working on that at the moment.

              1 Reply Last reply
              1
              • Pierre PP Offline
                Pierre PP Offline
                Pierre P
                wrote on last edited by
                #48

                I'm already at 2.73Volts on my two AAA batteries. Is the last sketch a batteries killer ? With a 10 hours sleeping ??

                No quote, no forum notification (else, the mail box ring every minutes !). Thanks, and have a very good MySensors day !

                mfalkviddM 1 Reply Last reply
                0
                • Pierre PP Pierre P

                  I'm already at 2.73Volts on my two AAA batteries. Is the last sketch a batteries killer ? With a 10 hours sleeping ??

                  mfalkviddM Online
                  mfalkviddM Online
                  mfalkvidd
                  Mod
                  wrote on last edited by mfalkvidd
                  #49

                  @Pierre-P after how long time?
                  This is the battery level for my oldest sensor, which is using 2xAA and reporting every 2 hours 0_1454780283967_9nov-6feb.png

                  1 Reply Last reply
                  0
                  • Pierre PP Offline
                    Pierre PP Offline
                    Pierre P
                    wrote on last edited by
                    #50

                    A week.
                    New accus i think. I do it again but this time, i'm making voltage report with my voltmeter and a picture.

                    No quote, no forum notification (else, the mail box ring every minutes !). Thanks, and have a very good MySensors day !

                    1 Reply Last reply
                    0
                    • Pierre PP Offline
                      Pierre PP Offline
                      Pierre P
                      wrote on last edited by
                      #51

                      My node doesn't work anymore. Even with new set of accus. I will check again when I'll solder it.

                      No quote, no forum notification (else, the mail box ring every minutes !). Thanks, and have a very good MySensors day !

                      1 Reply Last reply
                      0
                      • mfalkviddM mfalkvidd

                        I work as development team lead at a software company. We do server and network monitoring. Yesterday we hosted a customer event, and I presented my houseplant monitoring project based on MySensors and Domoticz. The presentation was a hit, and it has been decided that we'll use MySensors to monitor all plants at the office.

                        There is not that much to tell from a technical perspective. I hooked up everything according to the MySensor build page and created a simple sketch.

                        Thanks to everyone from the MySensors community for a great library, clear instructions and great suggestions for projects. And thanks for making me look like a hero :-D Let's continue conquering the world.

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

                        @mfalkvidd Great project. Had few questions...Is it OK to provide 6V to Arduio Mini ? Can you show /explain how you have provided power supply to Mini and Moisture Controller ? In the set up you have , how long does the battery last ?

                        Thanks

                        mfalkviddM 1 Reply Last reply
                        0
                        • iotcrazyI iotcrazy

                          @mfalkvidd Great project. Had few questions...Is it OK to provide 6V to Arduio Mini ? Can you show /explain how you have provided power supply to Mini and Moisture Controller ? In the set up you have , how long does the battery last ?

                          Thanks

                          mfalkviddM Online
                          mfalkviddM Online
                          mfalkvidd
                          Mod
                          wrote on last edited by
                          #53

                          @iotcrazy

                          6V is OK if you connect power on the "raw" pin. 6V is NOT OK if you connect power to the Vcc pin.

                          I use 2xAA batteries. - on the battery holder is connected to GND on the Arduino and + on the battery holder to Vcc. Power led and voltage regulator have been removed.

                          My sensors report every two hours and I expect to get 1-2 years battery life.

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            Jan Gatzke
                            wrote on last edited by
                            #54

                            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 2 Replies Last reply
                            0
                            • 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 Online
                              mfalkviddM Online
                              mfalkvidd
                              Mod
                              wrote on last edited by mfalkvidd
                              #55

                              @Jan-Gatzke yes I'm seeing that as well. The built-in pullup resistors are not 100% accurate, which yields slightly different result when polarity is reversed.

                              The easiest way is probably to let the Arduino report a rolling average of the last 2 readings instead of reporting the latest reading.

                              0_1456394895794_humidity.png
                              0_1456405610141_chart.png

                              1 Reply Last reply
                              0
                              • iotcrazyI Offline
                                iotcrazyI Offline
                                iotcrazy
                                wrote on last edited by
                                #56

                                @mfalkvidd I was looking to your sketch and could not quite understand this piece of line

                                result = 1125300L / result; // Calculate Vcc (in mV); 1125300 = 1.110231000

                                How will this above line change if I use 4 AA battery ?.

                                Thanks in advance

                                1 Reply Last reply
                                1
                                • mfalkviddM Online
                                  mfalkviddM Online
                                  mfalkvidd
                                  Mod
                                  wrote on last edited by mfalkvidd
                                  #57

                                  If you use 4xAA and wire power to Vcc you will break the nrf and the mcu. They are not rated for that high voltage.

                                  If you wire power to Raw you can not use readVcc, you'll have to use a voltage divider to one of the pins.

                                  Is there a reason you want to use 4xAA?

                                  iotcrazyI 1 Reply Last reply
                                  1
                                  • mfalkviddM mfalkvidd

                                    If you use 4xAA and wire power to Vcc you will break the nrf and the mcu. They are not rated for that high voltage.

                                    If you wire power to Raw you can not use readVcc, you'll have to use a voltage divider to one of the pins.

                                    Is there a reason you want to use 4xAA?

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

                                    @mfalkvidd Yes I am connecting to RAW input. My 4 battery holder for some reason does not work with 2 or 3 batteries so connecting 6V to RAW.

                                    "...you'll have to use a voltage divider to one of the pins..." Can you elaborate this part ? Can you share a link which wherein Arduino Pro Mini is powered through RAW input and battery percentage is calculated. I very new to hardware but loving the mysensors projects. Kindly bear with my stupid questions.

                                    Appreciate your patience..

                                    iotcrazyI 1 Reply Last reply
                                    0
                                    • iotcrazyI iotcrazy

                                      @mfalkvidd Yes I am connecting to RAW input. My 4 battery holder for some reason does not work with 2 or 3 batteries so connecting 6V to RAW.

                                      "...you'll have to use a voltage divider to one of the pins..." Can you elaborate this part ? Can you share a link which wherein Arduino Pro Mini is powered through RAW input and battery percentage is calculated. I very new to hardware but loving the mysensors projects. Kindly bear with my stupid questions.

                                      Appreciate your patience..

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

                                      @iotcrazy I understood the voltage divider part by googling. So this is the only option to find the battery percentage right ? We cannot determine by connecting directly to Raw when input if more than 3.3 v.

                                      1 Reply Last reply
                                      1
                                      • mfalkviddM Online
                                        mfalkviddM Online
                                        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 Online
                                          mfalkviddM Online
                                          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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          16

                                          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