Page 1 of 1

Powering ESP32

Posted: Thu Aug 17, 2023 8:44 am
by svicar
Hello to all.
I read a lot of powering the ESP32...but I still dont know what is the best option to power it.
I have 5v power supply (230 to 5v). Is better to power it to usb or to vin? or is the same?


Thanks

Re: Powering ESP32

Posted: Thu Aug 17, 2023 10:13 am
by MicroController
Same.
Depending on the board/devkit you have, there may or may not be a protection diode between Vin and Vusb, but apart from that no difference.
Just be careful: Boards without a protection diode must not be connected to a USB port and be independently supplied via Vin at the same time because that will short-circuit Vusb to the Vin power supply.

Re: Powering ESP32

Posted: Thu Aug 17, 2023 11:42 am
by svicar
In reality I have arduino mega and ESP32. I want to power all two with the same 5v power adapter...So its possible to power all two with usb cables (power adapter with two usb output).

Re: Powering ESP32

Posted: Fri Aug 18, 2023 8:17 pm
by MicroController
So its possible to power all two with usb cables (power adapter with two usb output).
This should be fine.
Only things to consider here are:
1. Avoid connecting ESP's 5V to Arduino's 5V while both are powered from different 5V sources
2. Pay attention to GND. ESP and Arduino will need a common GND if they are to send electrical signals to each other. Your power adapter probably has all its ports' GND connected together internally anyway, but double-checking that won't hurt.

(The reason for #1 is that "5V" of one power outlet is virtually never exactly the same as the "5V" from another outlet. If you had in fact, say, 4.95V and 5.05V and some wire connection between them of, e.g., actual 10mOhm, both voltage sources would be fighting each other, in theory forcing up to 10A out of the 5.05V, through the wire, and into the 4.95V supply.)