The battery life with esp32

Hello,

I have a project which uses 3.7v 1000mAh lithium battery, and send the sensor data to Azure database every 10 seconds,
which boasts a 20 hour battery life. How to increase battery life or find the best solution to solve the long time connection (1-3 years) ?

Any help you can give would be greatly appreciated.

Send less often. Switch off between sends, activate sleep modes.

Reduce the average current draw.

(Battery life in hours) ~= (battery capacity in mAh)/(average current draw in mA).

First step will be to measure how much current the ESP32 consumes, and for how many seconds, it takes to send one database updates.

Although in simple terms if you want to extend the battery life by a factor of 1000, send the data ever 10,000 seconds instead of every 10.

Measure every ten seconds but send less frequently. How often depends on your application needs of course.

Sleep modes will help, but ultimately, to get the kind of longevity you're looking for, you need a much, much bigger battery.

Send less often or activate sleep modes, but sensor data cannot be monitored in real time.

Any comments and suggestions will be appreciated.

What sensor ?

MPU6050 (Gyroscope + Accelerometer + Temperature) Sensor

Will this be getting its power from the same batteries ?

What current does your MPU6050 need ?

Yes, I only need to get Gyroscope & Accelerometer data.

We need to know the current that is being constantly taken from the battery.

We then need to know the current that is needed when the ESP32 is doing it's stuff.

As mentioned the ESP32 can go into sleep modes and it can be powered down completely.


Below is an ESP32 schematic of a cct. that I use.

The sensor can turn on power to the ESP32 as needed.

The ESP32 turns off the power when it is finished.

Thank you for your quick reply.

When the ESP32 is in sleep modes, can it send data to Azure database?

No, its asleep.

A bigger battery will Help? The AMS1117 regulator is wasting power. Disconnect the LEDs or increase the resistance to reduce current. This is a starting point.

If that’s directed at post #11, there are 3 options for applying power; one is a 3.7V battery (no regulator).

Options:
5V, 3.7V or 3.3V.

The three LEDs have a disabling jumper J11.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.