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. Controllingood power to moisture sensors

Controllingood power to moisture sensors

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 859 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.
  • rchampR Offline
    rchampR Offline
    rchamp
    wrote on last edited by
    #1

    Hi there,

    I just recently built a battery powered moisture sensor with 2 of the sensors posted on the site.

    Detection is quite accurate and I didn't need to tweak much. However, I noticed they draw quite a bit of power even with removing the leds.

    Anyone have ideas how I can modify my code to leverage powering them using digital out pins vs vcc to turn them on after sleep and off before going to sleep? Currently 2 AA batteties will only last a week with the APM sleeping at 15 min intervals? I need to check to see if the APM can handle the current of each sensor. Haven't hooked up the multimeter to test draw quite yet but and looking for ideas.
    Many thanks

    mfalkviddM 1 Reply Last reply
    0
    • rchampR rchamp

      Hi there,

      I just recently built a battery powered moisture sensor with 2 of the sensors posted on the site.

      Detection is quite accurate and I didn't need to tweak much. However, I noticed they draw quite a bit of power even with removing the leds.

      Anyone have ideas how I can modify my code to leverage powering them using digital out pins vs vcc to turn them on after sleep and off before going to sleep? Currently 2 AA batteties will only last a week with the APM sleeping at 15 min intervals? I need to check to see if the APM can handle the current of each sensor. Haven't hooked up the multimeter to test draw quite yet but and looking for ideas.
      Many thanks

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

      @rchamp check out https://forum.mysensors.org/post/52232
      I'm looking at 10 years battery life with 2xAA. My code is on github, but I haven't ported it to MySensors 1.5 yet.

      1 Reply Last reply
      0
      • rchampR Offline
        rchampR Offline
        rchamp
        wrote on last edited by
        #3

        I'm in the 2.0 code. I'll have to play around some more and do some tests over the next few weeks. I like using the intermediary modules to generate a binary alert vs doing the analog reads. Seems faster to calibrate based on the moisture levels I need for different plants. However, the battery drain of those modules is crazy.

        I'll do some current measements aND report back. If the consumption is too high for the pro mini digital out, I reckon I can use a mosfet to control power to the modules and power it on and wait a little before getting my reads. I think that will be the fastest solution and least path of resistance (no pun intended) :)

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