Controllingood power to moisture sensors
-
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
-
@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.
-
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)
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
MQTT-Help me understand about the MQTT Gateway.
Development • 2 Mar 2025, 01:44 • dpcons 12 Mar 2025, 23:39