I want to create a solar powered soil moisture setup and am thus playing around with the deep sleep functions.
My code measures, puts the measurements to a MQTT queue, then sleeps for 2 mins.
Using a not very accurate hobbyking power meter at the battery, I noticed that the consumption is around 0.17A while not idle, which seems to be quite high. While in sleep it shows 0.00. While not very accurate, I can at least get a picture.
The setup is a:
- Wemos D1 Mini
Wemos D1 Mini Battery Shield
Soil Sensor: https://www.tindie.com/products/miceuz/ ... re-sensor/
1S 240mah lipo for a quick test
The code: https://gist.github.com/solars/df2348b6 ... ec9114f552
Questions:
As the number seems to be quite high, am I doing something wrong, or is there a way to optimize this?
The number I get through ESP.getVcc() doesn't seem to make any sense, it's 2955 and more or less stays there even though the voltage went down from 4.01V to 3.75V in 1:20h
It would be nice if anyone could help or give me some hints.
Thank you,
Christoph