How to power ESP8266

This guide provides step-by-step instructions on energizing the ESP8266 NodeMCU. You'll gain insights into various methods of powering the ESP8266 and its associated sensors:

2 Powering both the ESP8266 and sensors through the USB port

Additionally, you'll learn practical and convenient wiring techniques for seamless implementation.

Hardware Preparation

1×ESP8266 NodeMCU
1×Micro USB Cable
1×Jumper Wires
1×(Optional) DC Power Jack
1×(Optional) Breadboard
1×(Optional) 5V Power Adapter
1×(Optional) ESP8266 Screw Terminal Adapter

Or you can buy the following sensor kit:

1×DIYables Sensor Kit 30 types, 69 units
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. We appreciate your support.

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 ESP8266 via USB port as above, and then get power from Vin pin to power sensors.

Please note that this way is only suitable for a few sensors with less power consumption. If you want to powers sensors with high power consumption, please see the next part

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

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!