Powering ESP32

svicar
Posts: 2
Joined: Thu Aug 17, 2023 8:39 am

Powering ESP32

Postby svicar » Thu Aug 17, 2023 8:44 am

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

MicroController
Posts: 1708
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Powering ESP32

Postby MicroController » Thu Aug 17, 2023 10:13 am

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.

svicar
Posts: 2
Joined: Thu Aug 17, 2023 8:39 am

Re: Powering ESP32

Postby svicar » Thu Aug 17, 2023 11:42 am

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).

MicroController
Posts: 1708
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Powering ESP32

Postby MicroController » Fri Aug 18, 2023 8:17 pm

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.)

Who is online

Users browsing this forum: Baidu [Spider], MicroController and 112 guests