Cannot run app on ESP32 from an external battery
-
- Posts: 13
- Joined: Fri Aug 10, 2018 7:47 am
Cannot run app on ESP32 from an external battery
I am trying to run an ESP-IDF app on my ESP32 that sends sensor readings to a web server on my Ubuntu machine, I have attached it to 2 batteries and pins to Vin and Gnd with 3.40V. When I connect the ESP32 to a USB port on my PC, it transmits data just fine to my server. But when I connect it to the batteries it does not transmit any data. Both the ESP32 and the MPU6050's onboard LED power up though. What am I doing wrong here?
- Attachments
-
- IMG_0008.JPG (961.09 KiB) Viewed 10368 times
-
- IMG_0007.JPG (705.3 KiB) Viewed 10368 times
Re: Cannot run app on ESP32 from an external battery
If it were me, I'd attach an external UART->USB connector to the RX and TX pins of the ESP32 and see what the console is saying during boot.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: Cannot run app on ESP32 from an external battery
Which pins on the development board are you connecting the 3.4V out of the battery to?
-
- Posts: 13
- Joined: Fri Aug 10, 2018 7:47 am
Re: Cannot run app on ESP32 from an external battery
To the VIN and GND pins.
@kolban thanks for the reply, unfortunately I don't have access to a USB->UART connector right now.
@kolban thanks for the reply, unfortunately I don't have access to a USB->UART connector right now.
- Attachments
-
- IMG_0010.JPG (305.91 KiB) Viewed 10336 times
Re: Cannot run app on ESP32 from an external battery
Vin is the LDO input (+5V pin from USB). If the battery voltage is 3.4V, it is probably not enough to give 3.3V on LDO's output (pin 3V3).
You could use the LiFePO4 battery connected directly to 3V3 pin to power the board.
You could use the LiFePO4 battery connected directly to 3V3 pin to power the board.
-
- Posts: 13
- Joined: Fri Aug 10, 2018 7:47 am
Re: Cannot run app on ESP32 from an external battery
Hi @loboris, if I connect my 3.4V connection to 3v3, where do I connect my I2C sensor's VCC then?
Re: Cannot run app on ESP32 from an external battery
It the sensors can be powered from 3.4V, connect them to 3.4V, if thay require some other voltage, you must use separate LDO to power them and some level shifter. Most of the I2C sensors should work with 3.4V.sheikhumar93 wrote:Hi @loboris, if I connect my 3.4V connection to 3v3, where do I connect my I2C sensor's VCC then?
Be carefull if using Li-Po batteries, fully charged they can have voltage too high for ESP32.
Who is online
Users browsing this forum: No registered users and 45 guests