ESP-12F pinout

ESP-12F (Ai-Thinker), ESP8266EX, 3.3 V logic, 16×24 mm, 22 pins

verified20.10.2026

Which ESP-12F pins are safe to use

Free to use

GPIO3-5, GPIO12-14, GPIO16

Use with care

  • GPIO0, GPIO2, GPIO15: strapping: the level at power-up selects the boot mode.
  • GPIO1: signal at boot.
  • A0: analog input only.

Leave alone

  • GPIO6-11: flash and PSRAM memory.

Important

  • 3.3 V only for supply and signals.
  • Boot circuit: EN and RST to 3.3 V through 10 kΩ, GPIO15 to GND through 10 kΩ, GPIO0 and GPIO2 to 3.3 V through 10 kΩ.
  • Flashing: GPIO0 to GND at power-up or reset, TXD0 and RXD0 crossed to a USB-UART adapter.
  • The module draws up to 170 mA when transmitting: power it from a regulator rated 500 mA or more, with 10 µF and 100 nF capacitors at VCC.
  • The bottom row (CS0, MISO, IO9, IO10, MOSI, SCLK) is wired to the module's flash: connect nothing.
  • ADC: 0-1.0 V, no divider on the module.
  • To wake from deep sleep, connect IO16 to RST.
  • Pin numbers 1-22 follow the Ai-Thinker application circuit. In table 2.2 of the same specification the 16 side pins are numbered differently: from 9 GND to 16 TXD up the right edge.
  • Pin labels are printed on the back of the module; the shield covers them on top.
  • Ai-Thinker: power source rated 500 mA or more, a separate DC-DC or LDO.
  • Do not apply 5 V to VCC or the pins.

Revisions and clones

  • ESP-12E: same pinout and size, different antenna shape.
  • ESP-12S: 16 pins without the bottom row, pull-ups on EN, RST, GPIO0, GPIO15 are already on the module.

All pins

LabelNumberFunctionsLimitsCheck
RSTpin 1Reset (low = reset)verified
ADCTOUT, Arduino A0, pin 2ADC0 (A0), 10 bitanalog input onlynot 5 V tolerantverified
ENpin 3CH_PD: chip enable (high = running)verified
IO16GPIO16, pin 4XPD_DCDC: wake from deep sleep (connect to RST)PWM (software)not 5 V tolerantno interruptsverified
IO14GPIO14, pin 5interruptPWM (software)HSPI SCKnot 5 V tolerantverified
IO12GPIO12, pin 6interruptPWM (software)HSPI MISOnot 5 V tolerantverified
IO13GPIO13, pin 7interruptPWM (software)HSPI MOSIUART0 RX (Serial.swap)not 5 V tolerantverified
VCCpin 83.3 Vpower inputverified
CS0GPIO11, pin 9SPI flash CMDnot 5 V tolerantused by flash, do not useverified
MISOGPIO7, pin 10SPI flash SD0not 5 V tolerantused by flash, do not useverified
IO9GPIO9, pin 11SPI flash SD2not 5 V tolerantused by flash, do not useverified
IO10GPIO10, pin 12SPI flash SD3not 5 V tolerantused by flash, do not useverified
MOSIGPIO8, pin 13SPI flash SD1not 5 V tolerantused by flash, do not useverified
SCLKGPIO6, pin 14SPI flash CLKnot 5 V tolerantused by flash, do not useverified
GNDpin 15Groundverified
IO15GPIO15, pin 16interruptPWM (software)HSPI CS (SS)UART0 TX (Serial.swap)not 5 V tolerantaffects boot (strapping)verified
IO2GPIO2, pin 17interruptPWM (software)UART1 TX (Serial1, transmit only)not 5 V tolerantaffects boot (strapping)onboard LEDverified
IO0GPIO0, pin 18interruptPWM (software)not 5 V tolerantaffects boot (strapping)verified
IO4GPIO4, pin 19interruptPWM (software)I2C SDAnot 5 V tolerantverified
IO5GPIO5, pin 20interruptPWM (software)I2C SCLnot 5 V tolerantverified
RXD0GPIO3, pin 21interruptPWM (software)UART0 RXnot 5 V tolerantverified
TXD0GPIO1, pin 22interruptPWM (software)UART0 TXnot 5 V tolerantoutputs a signal at bootverified

Sources

Every pin is verified against the manufacturer's documents.

Size: 24×16×3 mm (±0.2) per the Ai-Thinker specification.

FAQ

Which ESP-12F pins are I2C, SPI and UART?
By default in ESP8266 Arduino core (NodeMCU 1.0, ESP-12E Module): I2C: SDA GPIO4, SCL GPIO5; SPI: MOSI GPIO13, MISO GPIO12, SCK GPIO14, SS GPIO15; UART: TX GPIO1, RX GPIO3.
Which pin is the ESP-12F LED on?
Blue LED on GPIO2, lit when LOW (per the ESP8266 core, not shown on the schematic).
Are the ESP-12F pins 5 V tolerant?
No. The logic is 3.3 V and the pins are not 5 V tolerant: use a divider or a level shifter for 5 V signals.
What supply voltage does the ESP-12F need?
VCC: 3-3.6 V. 3.3 V logic.

You might also need

Similar boards