How to power ESP8266

This guide will walk you through safe and convenient ways to power the ESP8266 NodeMCU and its connected components (e.g., sensors, displays). We will cover:

how to power ESP8266 NodeMCU and sensors

Hardware Preparation

1×ESP8266 NodeMCU
1×USB Cable Type-C
1×Jumper Wires
1×Breadboard
1×(Optional) DC Power Jack
1×(Optional) Breadboard
1×(Optional) 5V Power Adapter
1×(Recommended) Screw Terminal Expansion Board for ESP8266
1×(Recommended) Power Splitter For ESP8266 Type-C

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 provided in this section are Amazon affiliate links. We may receive a commission for any purchases made through these links at no additional cost to you.
Additionally, some of these links are for products from our own brand, DIYables.

How to power ESP8266 via USB port

how to power ESP8266 NodeMCU via USB port

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

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

How to power ESP8266 and sensors via USB port

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

how to power ESP8266 NodeMCU and sensors via USB port

You can power the ESP8266 using the USB port as described above and then use the Vin pin to power the sensors.

Please note: This method is NOT recommended. It only works well for a few sensors that use little power. If a sensor uses a lot of power, it can damage the ESP8266 board. Instead, sensors and displays should be powered separately.

However, using two or more power sources is not very convenient. The best solution is to use a single power source with this power splitter set. The power splitter provides two connections:

  • USB-C power line: Powers the ESP8266 board through the USB port.
  • Screw terminal block line: Powers the connected sensors or displays.

The diagram below shows how to use a single power source with a power splitter to power both the ESP8266 and an LCD display separately.

how to power ESP8266 NodeMCU

How to power ESP8266 via Vin pin

how to power ESP8266 NodeMCU via Vin pin

You can use the 5v power adapter with barrel jack to power ESP8266 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 ESP8266
  • (Recommended) use a DC Jack connecter

How to power ESP8266 and sensors via Vin pin

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

how to power ESP8266 NodeMCU and sensors via Vin pin

This method is strongly recommended as it ensures that the motors, sensors, displays, and other components are powered independently of the ESP8266 board, ensuring both safety and adequate power supply

The most reliable and convenient method to power the ESP8266, sensors, and display

In sumary, there are two best ways to power ESP8266 and connected components, as below examles:

how to power ESP8266 NodeMCU
how to power ESP8266 NodeMCU and sensors via Vin pin

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.

esp8266 screw terminal board

※ OUR MESSAGES

  • As freelancers, We are AVAILABLE for HIRE. See how to outsource your project to us
  • Please feel free to share the link of this tutorial. However, Please do not use our content on any other websites. We invested a lot of effort and time to create the content, please respect our work!