[ESP32-S2] Using USB and an external PSU at the same time?

jgalt91
Posts: 4
Joined: Tue Jul 06, 2021 10:13 pm

[ESP32-S2] Using USB and an external PSU at the same time?

Postby jgalt91 » Thu Aug 12, 2021 12:22 am

Hi,
I have an ESP32-S2 Saola dev board and I need to upload the sketches/code through USB, as I need the ADCs (so can't enable Wifi to do OTA updates). I also have multiple leds that require external PSU, so I will have a power supply providing power to all the circuit and to the ESP32-S2 aswell (5V through the 5V pin).

My plan is to cut the 5V lane of a USB cable (so only D+, D-, GND) to send the code while being powered by the PSU throught the 5V pin. Will that work or I need to program it through RX and TX pins with a USB to Serial TTL converter (not using the 5V lane, only data and ground)?

Thanks in advance

ESP_Sprite
Posts: 9592
Joined: Thu Nov 26, 2015 4:08 am

Re: [ESP32-S2] Using USB and an external PSU at the same time?

Postby ESP_Sprite » Thu Aug 12, 2021 1:04 am

Looking at the schematics, you might actually be able to get away without a cut USB cable. There's a Schottky diode between the 5V and USB 5V lines, so there's no possibility of backfeeding the USB line. You do need to be careful that the board will present 5V to your power supply when it is off and USB is plugged in; you could use a second Shottky diode to stop that from happening if you're unsure if this is OK.

jgalt91
Posts: 4
Joined: Tue Jul 06, 2021 10:13 pm

Re: [ESP32-S2] Using USB and an external PSU at the same time?

Postby jgalt91 » Thu Aug 12, 2021 12:44 pm

Great thanks for clarifying.

Who is online

Users browsing this forum: No registered users and 143 guests