ESP-12F Pinout
The ESP-12F is a compact ESP8266-based Wi-Fi module designed for embedded IoT projects. It includes the ESP8266EX microcontroller, external SPI flash, RF front-end circuitry, and an onboard PCB antenna in a castellated module package. Unlike NodeMCU or Wemos D1 Mini boards, the ESP-12F does not include USB, a voltage regulator, or automatic boot circuitry, so it must be powered from a stable 3.3 V supply and programmed through an external USB-to-UART adapter.
- Manufacturer
- Ai-Thinker
- Package
- WiFi Module

Pin reference
| Pin | Name | Functions | Description |
|---|---|---|---|
| 1 | GPIO2 | GPIO2 | <p>General-purpose I/O pin that must be high during boot. It can also be used as UART1 TX in some configurations. Avoid pulling it low at reset.</p> |
| 2 | EN | EN | <p>Chip enable pin. The module only runs when this pin is pulled high. Pull low to disable the chip.</p> |
| 3 | GND | GND | <p>Ground reference for power, UART, GPIO, and all connected external circuits.</p> |
| 4 | RXD0 | RXD0 | <p>UART0 receive pin. Used for serial programming and normal serial communication. Avoid tying it to circuits that interfere with uploading firmware.</p> |
| 5 | VCC | VCC | <p>Main 3.3 V supply input for the ESP-12F module. Use a stable regulator because Wi-Fi transmit bursts can cause brownouts.</p> |
| 6 | GPIO0 | GPIO0 | <p>General-purpose I/O pin that also selects boot mode. Pull high for normal boot and pull low during reset to enter flashing mode.</p> |
| 7 | TXD0 | TXD0 | <p>UART0 transmit pin. Outputs boot messages at startup and is used for programming and serial logs. Can be used as GPIO only if serial output is not needed.</p> |
| 8 | GPIO15 | GPIO15 | <p>General-purpose I/O pin that must be low during boot. Usually pulled down with a resistor and used carefully for outputs or SPI chip select.</p> |
| 9 | GPIO4 | GPIO4 | <p>Safe general-purpose I/O pin commonly used as software I2C SDA on ESP8266 projects.</p> |
| 10 | GPIO5 | GPIO5 | <p>Safe general-purpose I/O pin commonly used as software I2C SCL on ESP8266 projects.</p> |
| 11 | ADC0 | ADC0 | <p>Single analog input of the ESP8266. On the bare ESP-12F module, this pin accepts about 0–1.0 V, not 3.3 V.</p> |
| 12 | GPIO16 | GPIO16 | <p>Special GPIO pin used for deep-sleep wake. Connect GPIO16 to RST when using ESP8266 deep sleep wake-up.</p> |
| 13 | GPIO14 | GPIO14 | <p>General-purpose I/O pin often used as HSPI clock. Also commonly used as an alternate software I2C SCL pin.</p> |
| 14 | GPIO12 | GPIO12 | <p>General-purpose I/O pin often used for HSPI MISO. Usually safe for external devices if it does not interfere with boot wiring.</p> |
| 15 | GPIO13 | GPIO13 | <p>General-purpose I/O pin often used for HSPI MOSI. Can also act as UART0 CTS depending on configuration.</p> |
| 16 | RST | RST | <p>Active-low reset pin. Pulling this pin low resets the ESP8266. Usually pulled high during normal operation.</p> |
| 17 | SCLK | SCLK | <p>SPI flash clock line connected to the onboard flash memory. Do not use this as a normal GPIO on ESP-12F modules.</p> |
| 18 | MOSI | MOSI | <p>SPI flash data line connected to the onboard flash memory. Not available for normal external use.</p> |
| 19 | GPIO10 | GPIO10 | <p>SPI flash write-protect/data line connected to the onboard flash. Avoid using this pin for user circuits.</p> |
| 20 | GPIO9 | GPIO9 | <p>SPI flash hold/data line connected to the onboard flash. Avoid using this pin for user circuits.</p> |
| 21 | MISO | MISO | <p>SPI flash data line connected to the onboard flash memory. Using it can crash the module or prevent boot.</p> |
| 22 | CS0 | CS0 | <p>SPI flash chip-select/command line connected to the onboard flash. Do not use as normal GPIO.</p> |
