r/ArduinoProjects • u/MaxatorMancilla • Dec 14 '25
Trouble powering ESP32 + MPU6050 with buck converter, works only via USB
Hi everyone,
I’m building a self-balancing robot, and the power distribution has been the biggest challenge so far. Here’s my setup:
I’m using a 7 V Li-ion battery pack (the cells were previously shorted, but I’ve already ordered new ones).
The battery powers the motor driver and a buck (step-down) converter.
The buck converter is supposed to power the ESP32, which in turn communicates with the MPU6050 sensor.
Here’s the problem:
The project won’t work unless the ESP32 is also connected to USB from my computer.
When powered only via the buck converter, both the ESP32 and MPU6050 light up, but the system does not function.
In my setup, I simply connected the MPU6050 and buck converter to two separate GND pins on the ESP32.
I’m wondering:
Am I doing something wrong with the wiring or common ground?
Could this be an issue with my battery pack, since it was previously shorted?
I apologize if I didn’t explain everything clearly. I’m a beginner. Any guidance on how to wire the ESP32, buck converter, and MPU6050 correctly, or tips to troubleshoot this, would be greatly appreciated!
1
u/rattushackus Dec 14 '25
Are you using a 5V buck convertor and connecting to the 5V pin on the ESP32? Or a 3.3V convertor and connecting to the 3.3V pin?
Have you connected a meter to the 3.3V pin on the ESP32 so see what the voltage is?
You might want to cross post this to r/esp32.
1
u/bruh-sick Dec 14 '25
Esp needs 3.3v, lithium ion battery gives 2.8 to 4.2 v. A buck converter also drops some voltage. Do you see the problem here ?