-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BME280/BMP280 high power comsumption when sleeping #522
Comments
Weird, would you mind ensuring with a multimeter that while sleeping ping 5 and 6 and both 0v? thanks |
Sorry for the bad picture. I'm still geting 3.48v through ping 5,6 even when sleeping.
|
Using mysensors library directly with the sketch below, I was able to get 7uA during sleep.
The code below seems to be the key for the power consumpition drop:
|
Ok thanks so seems to be two different issues: first of all when the node is sleeping, PowerManager should bring both the pins to 0V but doesn't look the case for you. Weird cause I have a similar configuration and would have noticed a battery drain. Which NodeManager version are you using? |
Thank you! I'm using the latest developement branch - 1.9-dev. I don't now if it's related, but I was trying to do an multi-sensor node, bme/p280 + door sensor. |
I did some further improvements in power consumption. By default, the Adfruit library uses normal mode that's not indicated for battery-powered nodes. I had changed SensorBME280's onLoop method to use forced mode:
Now it's using 15uA when sleeping. Probably the code above can be much better coded and placed taking into account my poor c++ skills. Unfortunately, I wasn't able to use PowerManager and the code above, which I believe, would bring more power savings. |
OK thanks, what I need to do for my own reference is:
thanks! |
Thank you @user2684! Just to let you known, I had made some testing disabling SDA an SCL internal pullup, but this brought the need to re-initiate the sensor every loop. This added some seconds to the sketch making it more power-hungry. |
Thanks for the feedback, yes this is what I was afraid of, that the attached sensors needed to be re-initialized. Ok so I will keep the SDA/SCL on during sleeping as per the original code base. Thanks! |
Hi,
I'm getting about 0.50mA when deep sleeping using BME280/BMP280, just arduino and radio gives me 5uA.
I've tried to power the sensor from digital pins 5,6 - PowerManager power(5,6) - but still gets 0.50mA when sleeping.
The text was updated successfully, but these errors were encountered: