Hi everyone,
Introduction:
I am working with Waveshare ESP32-C3 Zero module and I’ve run into a strange issue that I’d really like some help understanding. I connected a laser distance sensor VL53L0X with ESP via I2C, so SCL and SDA are wired properly. The sensor is powered from the ESP’s 3.3V pin and shares a common ground.
Hardware Components:
-
Waveshare ESP32-C3 Zero
-
MT3608 Step-Up Boost Converter
-
Li-ion battery (3.7V 1500mAh)
For power, I’m using a li-ion battery (3.7V 1500mAh) connected to a boost converter (MT3608) that outputs 5V. I placed a switch between the boost converter’s Vout+ and the ESP’s 5V (VIN) pin so that I can cut off the external power whenever needed. The ground (Vout−) of the boost converter is connected to the ESP’s ground. The whole setup works perfectly fine during normal operation no noise, no overheating, everything behaves as expected and the sensor readings are stable.
Schematic:
The Problem:
The issue started when I tried to upload new code. I connected the ESP to my PC using a USB Type-C cable. Before doing that, I made sure the switch between the boost converter and the ESP’s 5V pin was turned OFF, so externally the 5V supply line was disconnected. However, the grounds of the ESP, boost converter, battery, and sensor were still all connected together.
Right after connecting USB Type-C, I noticed that the area around the 3.3V regulator on the ESP started getting extremely hot. There was also a faint weird sound coming from the board, and the RGB LED began glowing very dimly (this LED does not glow in the normal operation). The regulator got so hot that I could barely touch it. It definitely felt like something went wrong electrically, possibly a short or some kind of power conflict.
After this happened, I checked continuity and found that the VIN and EN pins show continuity, although there is no continuity between the VIN and GND and similarly there is no continuity between 5V, 3.3V, and GND pins on the ESP.
I’m trying to understand what exactly caused this. Could this be due to a conflict between USB power and the boost converter, even though the switch was OFF? Is it possible that current still found a path because the grounds were common?
I’ve already burned one ESP32-C3 module before, where the 5V and GND ended up shorting after the regulator failed. I replaced that entire ESP module with a new one, but now I’m facing a similar danger again. This time the behavior is slightly different. I can’t keep replacing ESP modules like this, so I’m trying to understand what I’m doing wrong and how to fix the setup properly. I am also interested in understanding the real root cause of this issue.
Possible Errors:
I understand that there were some design mistakes on my part, such as not using a Schottky diode between the boost converter and the ESP.
Also, placing the switch on the output side instead of the input side of the converter was the right way to go. However, I was quite confident that connecting the USB Type-C cable to the ESP would not cause any issue, because the 5V line between the ESP and the boost converter was physically disconnected via the switch. Even though the grounds were still common, I assumed that the circuit would effectively behave as an open loop and no current would flow from the USB side into the boost converter or vice versa.
If anything in my setup isn’t clear, feel free to ask I can provide more details. I’d really appreciate any guidance on what went wrong here and how to avoid it in the future.
