[SOLVED] Poor battery life on door sensor
-
@mfalkvidd
It looks as if the node is going to sleep OK, as I get this from the nodes debug log:7116 MCO:SLP:MS=0,SMS=0,I1=1,M1=1,I2=255,M2=255
"Sleep node, duration 0 ms, SmartSleep=0, Int1=1, Mode1=1, Int2=255, Mode2=255"7122 TSF:TDI:TSL
"Set transport to sleep" -
@mfalkvidd
That's correct, no further log activity until the next change in state of the door -
@yveaux
I did follow the build instructions in your link, with the reed switch on D3. When the door is closed, the reed switch is closed (conducting). -
@zboblamont
The current draw is the same, whether the door is open or closed. -
@martinb sorry for asking, but what pin is D3 on a promini?
Edit: is it the one opposite A2?
@mfalkvidd
It may be my terminology! It's using digital pin 3 (just marked "3" on the Arduino) -
@martinb is the current draw the same if you disconnect the reed switch?
The sketch looks good btw.
@mfalkvidd
The current draw is the same whether the reed switch is open or closed. There is a momentary increase after a change (which I assume is the radio drawing additional power to transmit?) -
@martinb sorry for asking, but what pin is D3 on a promini?
Edit: is it the one opposite A2?
@mfalkvidd
Yes, I'm using pin 3 which is opposite A2 -
I'm beginning to wonder if it's the NRF24L01 that's the problem. I found this post which might explain my continuous power draw.
-
@martinb
I replaced the NRF24L01 and now the power consumption has dramatically reduced. Thanks for all the help, as I’m new to MySensors it helped to eliminate other potential issues. -
@mfalkvidd Interesting discussion!
I've got the same issue with a lux sensor based upon BH1750; battery life is limited to 7-10 days (3V, 9900mAh)
I gather that it's not possible to use the interrupt method in this case?Do you have any suggestions how I can improve battery life?
-
@martinb
I replaced the NRF24L01 and now the power consumption has dramatically reduced. Thanks for all the help, as I’m new to MySensors it helped to eliminate other potential issues.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login