Esp32 consuming more power on battery compare to usb power

Hello!
I have a project including esp32 with temperature and accelerometer sensors that record data and send it to a server.
Connecting it to my laptop through USB(5V) gives 5mA of current consumption, but switching it to a 3.7V(2400mAh) battery takes 60-70mA current.
Can someone guide what I am missing?

I would say that 60-70mA is normal.

When you are powering with USB, how did you measure the current? 5mA is too low, unless you are using some power saving or sleep mode, in which case it should also be low on battery power.

Please post a schematic showing USB and battery power and indicate how/where you measure the current.

Also post your code (using code tags).

The question was how and where, not what you are measuring the current with. We would assume it was a multimeter.

1 Like

Oh ok. So I am connecting multimeter in series with 3V3 pin after which vcc of sensors are connected.
The green dot is where I am connecting it.

Blockquote

You need to measure the power consumed from the USB port. I agree that 60-70 mA is normal, but since the USB port provides 5V, the power consumed will be higher than from a 3.7V source.

You are only measuring the current used by the sensors. Most of the current will be used by the esp.

How did you measure the current when powered by battery?

@PaulRB @jremington thanks, I got it, was taking measurements of only sensors.
How can I connect multimeter when it's powered through usb cable?
Also, may you guys please give insights about how to reduce this current seeing into my code?
That would be really helpful

Cut the cable and insert the current meter into the V+ power lead, or use a USB power monitor.

To reduce the average processor current draw, use sleep or idle modes if your application allows that (e.g. while waiting for a button press). If not, choose a lower power MCU.

2 Likes

Also, I'm using this battery, when it's fully charged it shows 4.2V which is a lot for esp32 and it has already damaged one when directly connect to 3.3V pin.
I need suggestions, which batteries should I use for maintaining a good voltage across esp32 and also it should lasts longer.
And should I connect it directly to 3.3V pin?
Another confusion in my head, if the operational voltage for esp32 is 2.3-3.3v, then it means if the battery discharges to 2.3V it would be of no use which in term would reduce the battery life, what's the solution for this?

If you have a module with PSRAM then the recommended voltage range is 3.0V to 3.6V
Without PSRAM it is 2.3V to 3.6V

Yes, it has PSRAM
So, it means I have to carefully select battery choices, what battery options do you suggest and the necessary components with it?

I see the topic has been solved, sorry