Component guide · Intermediate · 5 min read
ESP-12F, ESP-12E and ESP-12S ESP8266 Module

Pinout and Wiring
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The ESP-12F is the bare ESP8266 Wi-Fi module inside NodeMCU and Wemos boards: an 80 MHz chip, 4 MB flash and a PCB antenna on a 16-pad shielded module. On its own it has no USB or regulator, so you supply 3.3 V, pull the boot pins to the right levels and upload through a USB to TTL adapter. The ESP-12E is the same with an older antenna; the ESP-12S has the pull-ups built in.
Key specs at a glance
- Chip
- ESP8266EX, 32-bit, 80 or 160 MHz
- Flash
- 4 MB (32 Mbit)
- Wireless
- Wi-Fi 802.11 b/g/n 2.4 GHz, PCB antenna
- GPIO
- 11 usable, plus one 10-bit ADC (0 to 1 V on the bare pin)
- Supply
- 3.0 to 3.6 V, peaks around 300 to 400 mA
- Logic level
- 3.3 V
- Size
- 24 x 16 mm, 2 mm pad pitch
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1AI-Thinker ESP-12E ESP8266 Serial WiFi Module₹339
Option 2AI-Thinker ESP-12F ESP8266 Serial WiFi Module₹259
Option 3AI-Thinker ESP-12S ESP8266 Serial Wi-Fi Module₹209
Option 4ESP-12E ESP8266 Serial Wi-Fi Transceiver Module₹109
Option 5ESP-12F ESP8266 Wi-Fi Module w/ PCB Antenna₹125
Option 6ESP-12F/ESP-12E Serial WiFi Adapter Module 5V₹148
What the ESP-12F is
ESP-12E and ESP-12F share the same pads and firmware; the F has a tuned antenna for slightly better range. The ESP-12S moves the boot resistors inside and has fewer side pads. The breakout board in this list turns the 2 mm pads into 2.54 mm pins, and the 5 V adapter board adds a 3.3 V regulator and the boot resistors so the module just works.
Use a bare module when you design your own PCB or need the smallest size; use a NodeMCU when you want USB and auto-reset built in.
ESP-12F pinout
The pins on the ESP-12F and what each one does.
| Pin | Function |
|---|---|
| VCC | 3.3 V only |
| GND | Ground |
| EN (CH_PD) | Chip enable: pull HIGH with 10 k |
| RST | Reset: pull HIGH with 10 k, LOW to reset |
| GPIO 0 | HIGH to run, LOW at reset to flash |
| GPIO 2 | Must be HIGH at boot (blue LED on the module) |
| GPIO 15 | Must be LOW at boot: pull down with 10 k |
| TX / RX (GPIO 1 / 3) | UART0 for upload and Serial |
| ADC (A0) | 0 to 1 V analog input |
| GPIO 16 | Wake from deep sleep: link to RST |
- VCC
- 3.3 V only
- GND
- Ground
- EN (CH_PD)
- Chip enable: pull HIGH with 10 k
- RST
- Reset: pull HIGH with 10 k, LOW to reset
- GPIO 0
- HIGH to run, LOW at reset to flash
- GPIO 2
- Must be HIGH at boot (blue LED on the module)
- GPIO 15
- Must be LOW at boot: pull down with 10 k
- TX / RX (GPIO 1 / 3)
- UART0 for upload and Serial
- ADC (A0)
- 0 to 1 V analog input
- GPIO 16
- Wake from deep sleep: link to RST
Wiring the ESP-12F
Set the USB to TTL adapter to 3.3 V logic. Do not power the module from the adapter's 3.3 V pin: most give under 100 mA and the module resets when Wi-Fi starts. Add a 100 uF capacitor across VCC and GND close to the module.
| ESP-12F pin | Bare module or breakout | 5 V adapter board |
|---|---|---|
| VCC | 3.3 V from AMS1117 (adapter 3V3 pin is too weak) | VCC (or 5 V on the adapter board) |
| GND | GND | GND |
| EN and RST | 10 k to 3.3 V | already fitted |
| GPIO 15 | 10 k to GND | already fitted |
| GPIO 0 | 10 k to 3.3 V, button to GND for flashing | button or jumper to GND |
| TX | USB-TTL RX | USB-TTL RX |
| RX | USB-TTL TX (3.3 V level) | USB-TTL TX |
- VCC
- Bare module or breakout:
- 3.3 V from AMS1117 (adapter 3V3 pin is too weak)
- 5 V adapter board:
- VCC (or 5 V on the adapter board)
- GND
- Bare module or breakout:
- GND
- 5 V adapter board:
- GND
- EN and RST
- Bare module or breakout:
- 10 k to 3.3 V
- 5 V adapter board:
- already fitted
- GPIO 15
- Bare module or breakout:
- 10 k to GND
- 5 V adapter board:
- already fitted
- GPIO 0
- Bare module or breakout:
- 10 k to 3.3 V, button to GND for flashing
- 5 V adapter board:
- button or jumper to GND
- TX
- Bare module or breakout:
- USB-TTL RX
- 5 V adapter board:
- USB-TTL RX
- RX
- Bare module or breakout:
- USB-TTL TX (3.3 V level)
- 5 V adapter board:
- USB-TTL TX
Example code
Choose "Generic ESP8266 Module" with Flash Size 4MB. To upload, hold GPIO 0 low, pulse RST, then start the upload; release GPIO 0 and reset again to run.
#include <ESP8266WiFi.h>
const char* SSID = "your-wifi";
const char* PASS = "your-password";
void setup() {
Serial.begin(115200);
pinMode(2, OUTPUT); // blue LED, active LOW
WiFi.begin(SSID, PASS);
while (WiFi.status() != WL_CONNECTED) { delay(300); Serial.print("."); }
Serial.print("\nIP: "); Serial.println(WiFi.localIP());
}
void loop() {
digitalWrite(2, LOW); delay(200);
digitalWrite(2, HIGH); delay(800);
}Setup and tuning
add the ESP8266 boards URL in Arduino IDE preferences and install "esp8266 by ESP8266 Community".
GPIO 0 low at reset. If you see "Failed to connect", the module is not in flash mode or TX and RX are swapped.
almost always weak power. Use a separate 3.3 V regulator of 500 mA or more.
link GPIO 16 to RST to wake from ESP.deepSleep(); remove the link while uploading.
some modules ship with AT firmware; uploading an Arduino sketch replaces it.
What you need
Shop this list11 of 13 found in our store · ₹1,605
AI-Thinker ESP-12E ESP8266 Serial WiFi Module: the part this guide coversAI-Thinker ESP-12E ESP8266 Serial WiFi Module₹339
AI-Thinker ESP-12F ESP8266 Serial WiFi Module: another version this guide coversAI-Thinker ESP-12F ESP8266 Serial WiFi Module₹259
AI-Thinker ESP-12S ESP8266 Serial Wi-Fi Module: another version this guide coversAI-Thinker ESP-12S ESP8266 Serial Wi-Fi Module₹209
ESP-12E ESP8266 Serial Wi-Fi Transceiver Module: another version this guide coversESP-12E ESP8266 Serial Wi-Fi Transceiver Module₹109
ESP-12F ESP8266 Wi-Fi Module w/ PCB Antenna: another version this guide coversESP-12F ESP8266 Wi-Fi Module w/ PCB Antenna₹125
ESP-12F/ESP-12E Serial WiFi Adapter Module 5V: another version this guide coversESP-12F/ESP-12E Serial WiFi Adapter Module 5V₹148
ESP-12E/F breakout board: to put the module on a breadboardESP-12E/F Breakout Board₹16
USB to TTL serial converter: to talk to the module from a PCUSB to TTL Serial Converter (CH340G / CP2102 / FT232RL / PL2303)₹85Closest match, check the specs- AMS1117 3.3 V regulator module: to power a bare module from 5 VFind this part
- NodeMCU ESP8266 CP2102 board: if you want USB and the regulator built inFind this part
Resistor assortment kit: for the 10 k boot resistorsResistor Assortment Kit₹250
Electrolytic capacitor: 100 uF across the supplyElectrolytic Capacitor₹16
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- ESP8266 and ESP8285 modules: every ESP8266 module type compared.
- ESP-01: the smaller 8-pin ESP8266 module.
- NodeMCU ESP8266: the ESP-12 on a USB board.
- USB to TTL adapters: wiring the upload adapter.
Common mistakes to avoid
- Powering the module from 5 V or from the USB-TTL 3.3 V pin.
- Leaving GPIO 15 floating, so the module will not boot.
- Forgetting to pull EN high, so nothing happens at all.
- Feeding more than 1 V into the bare ADC pin.
- Keeping GPIO 16 linked to RST during upload.
Frequently asked questions
What is the difference between ESP-12E and ESP-12F?
Same pins, chip and flash; the ESP-12F has an improved antenna layout. Code is identical.
Can I power it from 5 V?
Not the bare module. Use a 3.3 V regulator, or the 5 V adapter board which has one.
Why does it keep resetting?
Usually the supply sags when Wi-Fi transmits. Add a 500 mA regulator and a 100 uF capacitor.
Which pins are safe to use?
GPIO 4, 5, 12, 13 and 14 are free; 0, 2 and 15 work with care because they set the boot mode.
Should I buy a module or a NodeMCU?
A NodeMCU for learning and prototypes; the bare module for your own PCB or a small final build.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



