This is a totally beginner question. I always use USB to power my ESP32, but now I need to use external battery. I use Volt Meter to check the battery and it shows 3,8V. I have read that Vin pin can accept 5V. I put 3,8 and ESP light up. ESP connected to display, and the display seems to light up as well. So, what will happen if I put 4,2V ad Vin? Is it going to cause some trouble?
Note:
I need to make a small device. I need to use SIM808 module that work on 3,5-4V so I thought about using step-up module. But the device only has space for 1 Step Up/Down module. So I either use it for SIM808 module or for the ESP.
Any suggestion are welcome. Please help me with this
And after recheck, I found that my battery is 3,8V. And SIM808 need from 3,5 to 4. Is it a good idea to use step down and set the voltage to 3.5 so I can just plug it to both?
If it has a USB-socket. USB always uses 5V. If there is a USB-socket then there is a voltage-regulator on the microcontroler-board that does regulate down to 3.3V.
You can connect 5V to the Vin-pin.
But only to the V-In-pin.
All other pins should be only connected to 3.3V (or a maximum of 3.6V)
So applying 3.8V to the 3.3V input pin of the ESP32 will destroy it.
a voltage-regulator needs a voltage that is minimum approx 1V higher than its output voltage
If your battery goes below 3.8V it might be that using the V-in does not work because of the then too low input-voltage for the onboard voltage-regulator
What type of battery are you using? What will be the lowest voltage before battery is too empty?
If you want to operate an ESP32 on battery as long as WiFi is switched on the battery will be empty after some hours. WiFi is power-hungry.
The ESP32 has a deep-sleep-mode. But most ESP32-boards are not optimsed for lowest deep-sleep-power-consumption. The current will still be in the range of 7 to 15 milliampere
There is only one manufacturer of ESP32-boards that gets
the deep-sleep-current down to 0,015 milliampere
Wow thanks for the info. I use 802025 200mAh battery. I don't think this battery can last long, but I only need it to last like 10 mins, just to show it to my teacher