Hey guys, try and figure this one out with me.
I’m integrating the ESP32-C3 Xiao board into a design I have for temperature controlled storage box - essentially I have a bunch of mains relays operating a refrigeration compressor, ceramic fan heat, dehumidifier, based on temperature and humidity sensing over I2C, with an OLED screen and capacitive touch switches.
Breadboarded the whole lot (not the mains part, obviously) and powering the Xiao at the time over USB cable attached to my Mac, the entire design working just dandy. Set about getting the PCB designed, with 5V LDO reg to supply the Xiao, relays and some other bits…
Imagine my surprise when I supply 5V into the VUSB pin that I get 5V OUT of the 3V3 line, almost killing all my 3V3 active comps (specifically the two BME280 temp/humidity sensors and OLED screen), thankfully I can easily disconnect them from my board, leaving essentially the Xiao feeding 5V into that 3V3 trace on my board.
The datasheet suggests you can use the VUSB/5V pin as input or output and to protect the USB with a schottky diode, assuming you’re using both external power to the Xiao AND USB simultaneously. Which I’m not, nor never will. The USB-C socket on the Xiao was only used to flash ESPHome into the board, then OTA updates takes over. Only external 5V to the Xiao is used in my design, so therefore that protection diode is not needed.
On several bare modules (I have a good few Xiao’s in stock here), if I power the module only over the USB-C socket (plugged into my laptop), I get 5V out of the VUSB pin and 3V3 out of the 3V3 pin as expected.
If I then disconnect my USB cable, then power the Xiao on the VUSB/GND pins, I get 5V out of the 3V3 pin.
Just to satisfy my curiosity, I cut a USB-C cable up so I could continuity check between +VE in on the USB plug goes to VUSB, yes it does. -VE in the cable buzzed out fine to the GND pin also.
Where is this 5V coming from on the 3V3 output? Did I order a duff batch of Xiao boards from Ali Express?
While I can bodge my design to take my 5V LDO reg output off the board into my chopped up USB cable, it’s less than ideal. Those of you powering the Xiao ‘externally’ (not over USB cable) AND needing the 3V3 output must’ve had similar issues, no?