ESP8266 (NodeMCU)

MCUs

Also known as: NodeMCU v1.0, NodeMCU DevKit, ESP-12E Board, Amica NodeMCU

ESP8266 (NodeMCU) pinout diagram
PinNameFunction
1A0Analog input (0-3.3V via onboard divider)
2GGround
3VUVIN, 5V USB power input
4S3Connected to onboard flash (SD3), avoid using
5S2Connected to onboard flash (SD2), avoid using
6S1Connected to onboard flash (SD1), avoid using
7SCConnected to onboard flash (CLK), avoid using
8S0Connected to onboard flash (SD0), avoid using
9SKConnected to onboard flash (CMD), avoid using
10GGround
113V33.3V power output
12ENChip enable
13RSTReset (active low)
14GGround
15VUVIN, 5V USB power input (duplicate pin)
16TXGPIO1, UART0 TX
17RXGPIO3, UART0 RX
18D8GPIO15, SPI CS, boot mode select
19D7GPIO13, SPI MOSI
20D6GPIO12, SPI MISO
21D5GPIO14, SPI CLK
22GGround
233V33.3V power output
24D4GPIO2, onboard LED, boot mode select
25D3GPIO0, boot mode select
26D2GPIO4, commonly used as I2C SDA
27D1GPIO5, commonly used as I2C SCL
28D0GPIO16, wake from deep sleep, no PWM/interrupt
29GGround
30VUVIN, 5V USB power input (duplicate pin)

Summary

Cheap Wi-Fi microcontroller board built around the ESP8266 chip, the predecessor to the ESP32. No Bluetooth, fewer GPIO pins than an ESP32, but very popular for simple Wi-Fi projects. Full 30-pin layout below is the common Amica NodeMCU V1.0 board — power/ground pins repeat across the header, and the S1/S2/S3/SC/S0/SK flash pins can vary slightly by manufacturer, so check against your specific board.