How to Power ESP32

This tutorial instructs you how to power ESP32. You will learn all ways to power ESP32 and connected sensors.

how to power ESP32

Hardware Used In This Tutorial

1×ESP-WROOM-32 Dev Module
1×USB Cable Type-C
1×Jumper Wires
1×(Optional) DC Power Jack
1×(Optional) Breadboard
1×(Optional) 5V Power Adapter
1×(Recommended) Screw Terminal Expansion Board for ESP32
1×(Recommended) Power Splitter For ESP32

Or you can buy the following sensor kits:

1×DIYables Sensor Kit (30 sensors/displays)
1×DIYables Sensor Kit (18 sensors/displays)
Disclosure: Some of the links in this section are Amazon affiliate links, meaning we may earn a commission at no additional cost to you if you make a purchase through them. Additionally, some links direct you to products from our own brand, DIYables .

How to power ESP32 via USB port

how to power ESP32 via USB port

You can use the following power sources to power ESP32 via USB port

  • Computer and USB Cable
  • Phone charger (USB terminal)
  • 5V Power Adapter (USB terminal)

How to power ESP32 and sensors via USB port

The below diagram shows and example of powering ESP32 (via USB port) and DHT22 sensor

how to power ESP32 and sensors via USB port

You can power ESP32 via USB port as above, and then get power from Vin pin to power sensors.

Keep in mind that this approach works only for a few low-power sensors. If you’re using sensors with higher power requirements, avoid powering them from the Vin pin to prevent damage to your ESP32 board. In any case, the safest method is to supply power to your sensors or display separately. You can do this by using this power splitter set, as shown below:

how to power ESP32 and sensors with 5V power splitter

How to power ESP32 via Vin pin

how to power ESP32 via Vin pin

You can use the 5v power adapter with barrel jack to power ESP32 via Vin pin. You can do so by two ways:

  • Cut the wire and separate the positive and negative lines. Then connect the positive line to Vin pin and the negative line to a GND pin of ESP32
  • (Recommended) use a DC Jack connecter

How to power ESP32 and sensors via Vin pin

The below diagram shows and example of powering ESP32 (via Vin pin) and DHT22 sensor by a 5V power adapter

how to power ESP32 and sensors via Vin pin

The best way to power ESP32 and sensors

Among the suggested methods, powering sensors and external components separately is strongly recommended. This setup ensures that motors, sensors, displays, and other peripherals have their own power supply, protecting the ESP32 board while providing adequate power for each component.

how to power ESP32 and sensors with 5V power splitter

How to actually do wiring easily and conveniently

In practice, we require a method for secure, tidy, safe, and convenient wiring. The optimal solution is to utilize a screw terminal board.

esp32 screw terminal board

※ OUR MESSAGES