Chat freely about anything...

User avatar
By chbla
#50836 Hi there,

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:



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
User avatar
By trackerj
#50837 You need a form of deep-sleep or even full shutdown for your ESP Module.

One of the many threads about here: http://www.esp8266.com/viewtopic.php?f=13&t=5747&start=40
User avatar
By chbla
#50838 How do you mean, I'm using deep sleep already (see code).

Now something very weird I noticed: After around 1h it consumes 0.15A permanent now and 0.35A when measuring.. so there must be some kind of problem. I guess this is due to the lower voltage (3.65 now).
User avatar
By trackerj
#50839 Are you sure that is properly entering in deep-sleep mode?
What voltage regulator do you have on that setup?