Chat freely about anything...

User avatar
By iazizga
#79508 Hi,

I am just having an issue with the power consumed by the chip. I am trying to collect data 24/7 and powering this out off battery is hard.

Is it possible to collect data while the esp8266 on sleep mode? and then wake it for one minute to transmit all data stored before?

if not, what suggestions do u have?
thanks
User avatar
By btidey
#79525 In sleep mode the device itself can't do anything.

What you can do is leave the wifi off most of the time and send collected data in batches.

The benefit is that the time spent in wake is kept small. For example, you can wake up, take a reading, store the result in SPIFFS (or EPROM) together with a count, then re-enter sleep. This is much faster than making a connection and transmitting the result each time. It also uses less power as the wifi is off. On wake up the count is checked and used to determine when to turn wifi on and transmit the batch of results. If this is done say every 20 readings then the power usage will be significantly reduced.