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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #211

    Just copy the relay code from https://www.mysensors.org/build/relay and add it your sketch and make necessary changes to adapt it: like setting child_id in presentation

    Fat FlyF 1 Reply Last reply
    0
    • gohanG gohan

      Just copy the relay code from https://www.mysensors.org/build/relay and add it your sketch and make necessary changes to adapt it: like setting child_id in presentation

      Fat FlyF Offline
      Fat FlyF Offline
      Fat Fly
      wrote on last edited by
      #212

      @gohan I make something this. Please look if all is right. My software writer skill is low. :) Some small errors. :)
      https://pastebin.com/8LWpgb8L

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #213

        because you are using old code, you need to convert it from libraries 1.5 to 2.x: there is a guide to do that

        1 Reply Last reply
        0
        • Fat FlyF Offline
          Fat FlyF Offline
          Fat Fly
          wrote on last edited by
          #214

          Can i use old libraries and gateway version 2.1 ?

          1 Reply Last reply
          0
          • gohanG Offline
            gohanG Offline
            gohan
            Mod
            wrote on last edited by
            #215

            You can downgrade libraries and use old examples, but I'd suggest to stick to the new version

            1 Reply Last reply
            1
            • Fat FlyF Offline
              Fat FlyF Offline
              Fat Fly
              wrote on last edited by
              #216

              @gohan said in Office plant monitoring:

              but I'd suggest to stick to the new version

              I try but idonotknow. :)

              1 Reply Last reply
              0
              • Fat FlyF Offline
                Fat FlyF Offline
                Fat Fly
                wrote on last edited by
                #217

                @gohan
                Please help with small errors. https://pastebin.com/VRXyT8Ut I try for library 2.x

                1 Reply Last reply
                0
                • fhenrycoF Offline
                  fhenrycoF Offline
                  fhenryco
                  wrote on last edited by
                  #218

                  It's a pity that at least one sketch for the analog reading of moisture sensor is not v2 compatible and made available on the main page ... i have no idea if making it v2 compatible would be a hard job...even if it's just a question of changing some library calls i'm afraid i don't have the skill for that...

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

                    My Bonsai tree humidity node celebrates 2 years on battery today!

                    During these two years, the gateway has received 146,528 updates on humidity level (and an additional 30,870 updates on voltage level).

                    The battery level has gone from 3.187V to 3.049, which means an average drop of 0,0058V 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.0058 = 146 months = ~12 years. There are several error sources in this calculation, but it looks like battery life will be quite good.

                    Here are the voltage and humidity graphs for the last year.
                    0_1510070572143_chart.png
                    0_1510070578967_temp.png

                    As you can see, there was a problem in November. I was asked to verify the battery voltage reading by using a multimeter. When I opened the box to do that, I must have tripped something because the node got caught in some sort of loop, consuming battery. I restarted the node and the batteries recovered almost to the level they had before the problem occurred.

                    Last year's report: https://forum.mysensors.org/post/52232

                    gohanG 1 Reply Last reply
                    2
                    • mfalkviddM mfalkvidd

                      My Bonsai tree humidity node celebrates 2 years on battery today!

                      During these two years, the gateway has received 146,528 updates on humidity level (and an additional 30,870 updates on voltage level).

                      The battery level has gone from 3.187V to 3.049, which means an average drop of 0,0058V 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.0058 = 146 months = ~12 years. There are several error sources in this calculation, but it looks like battery life will be quite good.

                      Here are the voltage and humidity graphs for the last year.
                      0_1510070572143_chart.png
                      0_1510070578967_temp.png

                      As you can see, there was a problem in November. I was asked to verify the battery voltage reading by using a multimeter. When I opened the box to do that, I must have tripped something because the node got caught in some sort of loop, consuming battery. I restarted the node and the batteries recovered almost to the level they had before the problem occurred.

                      Last year's report: https://forum.mysensors.org/post/52232

                      gohanG Offline
                      gohanG Offline
                      gohan
                      Mod
                      wrote on last edited by
                      #220

                      @mfalkvidd said in Office plant monitoring:

                      and that the voltage drop is linear

                      You wish!!! :D

                      mfalkviddM 1 Reply Last reply
                      0
                      • gohanG gohan

                        @mfalkvidd said in Office plant monitoring:

                        and that the voltage drop is linear

                        You wish!!! :D

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

                        @gohan no actually I don't. The voltage drop is normally a s-shaped curve that is very flat in the middle. That means I am experiencing a higher drop at the beginning. That's likely the reason that the prediction after 2 years is more than 10% longer battery life than the prediction after 1 year was.

                        1 Reply Last reply
                        0
                        • gohanG Offline
                          gohanG Offline
                          gohan
                          Mod
                          wrote on last edited by
                          #222

                          Yes, it depends when the voltage starts to drop significantly, but unless you have tested another battery before it is hard to know in advance 😀

                          mfalkviddM 1 Reply Last reply
                          0
                          • gohanG gohan

                            Yes, it depends when the voltage starts to drop significantly, but unless you have tested another battery before it is hard to know in advance 😀

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

                            @gohan alkaline batteries in general have been tested quite extensively and don't deviate much from the S-curve characteristics.

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


                            12

                            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