Today I started a (hopefully) long term battery test with the ESP8266 board I reviewed here. The conditions are:
- powered by 3 AA batteries (serial)
- every 10 minutes update temperature and humidity retrieved from a DHT11 to thingspeak
- go the deep sleep between the posts
The test board comes with a light resistor and several LEDs of which one is a RGB led. For some reason I couldn’t turn them off completely so I just chopped them off. Before the surgical change the board consumed 1.3mA in deep sleep mode. After only 130µA. This is still almost factor two away of the 67µA I read somewhere in the web, but not bad for starters. With this the board could theoretically survive more than two years in permanent deep sleep. This experiment will show how much the wake-ups costs and if theory es even close to reality.
|The Test Setup: all LEDs removed
from the board to save energy
Now a beer! Did you like this post? It often takes me several hours of my free time to write one. If I was your neighbour would you offer me a beer for the hard work I did for you? The beauty is: beers can be teletransported with a painless donation using Paypal. A beer in a Swiss bar costs about USD $4.80. Or use this affiliate link if you order something on Banggood and I'll get a small kickback. Thank you!
Nice!! Waiting to see the results. What surgical change have you made?
Hi Catalin. Since I'm using this yellowish ESP8266 test board I had to remove all the onboard LEDs which reduced the power consumption a lot. I just added a picture of the board for illustration…
Ok, It's clear now. I am estimating between 170 and 175 days on batteries, but having the converter from 4.5 V to 3.3 V, It will be maximum 100 days, maybe less than that.
One problem though. The link to Thingspeak says:
"ESP8266 has been running for NaN hours (NaN day(s))
Last updated 5 minutes ago."
Thank you for the hint. It was a bug in the thingspeak plugin which did not appear in Chrome, but in the other browsers… It should be fixed now…
Have you considered using the ADC input to monitor cell voltage or total input voltage. This may give some interesting info about the battery life.
Yes, actually I'm using the readVCC function, but it always returns 65k as value. I assume that this is due to the voltage regulator that sits between the batteries and the ESP8266. Or the readVCC function is not implemented properly. I didn't want to use the ADC because I was afraid the required voltage diveder would consume too much energy and falsify the picture…
Have you tried to measure the battery voltage(with at multimeter) recently? It could be interesting to see how low it is
Good work, but I have a problem
Always after end my deep sleep my software reboot, and start to begain
is it normal?
What I can do ?
This is completely normal and intended. When going to deep sleep the ESP basically turns everything off except the timer that you might have programmed to wake it up again…
thanks again rsrsrs
are there a kind f sleep where i can wake up in the main loop ?
sorry for the inconvenient
Very interesting. I was reading migth be some problems, due the voltaje of the pins 3.3v to feed the sensor. Have you noticed alike?
The graphs at least on the cellphone appear in white . have the bateries died?
This is still almost factor two away of the 67µA I read somewhere in the web, but not bad for starters. With this the board could theoretically survive more than two years in permanent deep sleep. This experiment will show how much the wake-ups costs and if theory es even close to reality. 8x batteries
I'm wondering what is your exact version of ESP8266 because when i use deep sleep mode i have a remaining consumption of 3mA instead of 70uA (50 times more…).
Samsung's innovations gave us lot of decent techs including flexible prototype displays, curved displays, etc. Now Samsung have invented a new type of flexible batteries or strip batteries called "Band".Digital Camera batteries
So the result is 80 days on three AA batteries?
Before I used ESP Easy on the AI-Thinker board.
Now I am trying to reduce battery consumption by using youre .ino.
While compiling i’m getting the following erros.
Can you help with this subject??
thingspeak-data-logger:15: error: ‘DHT11’ was not declared in this scope
#define DHTTYPE DHT11 // DHT 11
C:\Users\Arjen\Downloads\esp8266-projects-master\esp8266-projects-master\arduino-ide\thingspeak-data-logger\thingspeak-data-logger.ino:19:17: note: in expansion of macro ‘DHTTYPE’
DHT dht(DHTPIN, DHTTYPE, 15);
C:\Users\Arjen\Downloads\esp8266-projects-master\esp8266-projects-master\arduino-ide\thingspeak-data-logger\thingspeak-data-logger.ino: In function ‘void setup()’:
thingspeak-data-logger:46: error: ‘class DHT’ has no member named ‘begin’
C:\Users\Arjen\Downloads\esp8266-projects-master\esp8266-projects-master\arduino-ide\thingspeak-data-logger\thingspeak-data-logger.ino: In function ‘void loop()’:
thingspeak-data-logger:87: error: ‘class DHT’ has no member named ‘readTemperature’
String temp = String(dht.readTemperature());
thingspeak-data-logger:88: error: ‘class DHT’ has no member named ‘readHumidity’
String humidity = String(dht.readHumidity());
exit status 1
‘DHT11’ was not declared in this scope
Thanks for reading and replies.