Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Boards & Microcontrollers
  4. ›ESP-12F, ESP-12E and ESP-12S ESP8266 Module

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
Short answerWhat the ESP-12F isESP-12F pinoutWiring the ESP-12FExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

ESP-12F pinout

The pins on the ESP-12F and what each one does.

PinFunction
VCC3.3 V only
GNDGround
EN (CH_PD)Chip enable: pull HIGH with 10 k
RSTReset: pull HIGH with 10 k, LOW to reset
GPIO 0HIGH to run, LOW at reset to flash
GPIO 2Must be HIGH at boot (blue LED on the module)
GPIO 15Must 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 16Wake from deep sleep: link to RST
PinFunction
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
03

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 pinBare module or breakout5 V adapter board
VCC3.3 V from AMS1117 (adapter 3V3 pin is too weak)VCC (or 5 V on the adapter board)
GNDGNDGND
EN and RST10 k to 3.3 Valready fitted
GPIO 1510 k to GNDalready fitted
GPIO 010 k to 3.3 V, button to GND for flashingbutton or jumper to GND
TXUSB-TTL RXUSB-TTL RX
RXUSB-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
04

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.

Connect to Wi-Fi and blink the module LED (GPIO 2) · Arduino C++Verify & upload in Electrolark
#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);
}
05

Setup and tuning

Board package

add the ESP8266 boards URL in Arduino IDE preferences and install "esp8266 by ESP8266 Community".

Flash mode

GPIO 0 low at reset. If you see "Failed to connect", the module is not in flash mode or TX and RX are swapped.

Random resets

almost always weak power. Use a separate 3.3 V regulator of 500 mA or more.

Deep sleep

link GPIO 16 to RST to wake from ESP.deepSleep(); remove the link while uploading.

AT firmware

some modules ship with AT firmware; uploading an Arduino sketch replaces it.

06

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
07

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.
08

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.
09

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

  • AI-Thinker ESP-12E ESP8266 Serial WiFi Module
    ₹339View
  • AI-Thinker ESP-12F ESP8266 Serial WiFi Module
    ₹259View
  • AI-Thinker ESP-12S ESP8266 Serial Wi-Fi Module
    ₹209View
  • ESP-12E ESP8266 Serial Wi-Fi Transceiver Module
    ₹109View
  • ESP-12F ESP8266 Wi-Fi Module w/ PCB Antenna
    ₹125View
  • ESP-12F/ESP-12E Serial WiFi Adapter Module 5V
    ₹148View
  • ESP-12E/F Breakout Board
    ₹16View
  • USB to TTL Serial Converter (CH340G / CP2102 / FT232RL / PL2303)
    ₹85View
  • AMS1117 Fixed Regulator Module
    ₹19View
  • ESP8266 NodeMCU CP2102 Wi-Fi Development Board
    ₹234View
  • Resistor Assortment Kit (30 Values)
    ₹33View
  • Electrolytic Capacitor
    ₹16View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
Shop Wi-Fi Modules & Development BoardsShop Interface Modules

Keep learning

Component guideIntermediateESP8266 and ESP8285 ModulesESP-01, ESP-07, ESP-12 and ESP-M are bare Wi-Fi modules built on the ESP8266 or ESP8285 chip.5 min read · IoT & WirelessComponent guideIntermediateESP-01 / ESP-01S ESP8266 ModuleThe ESP-01 is a tiny ESP8266 Wi-Fi module with 8 pins: power, serial, reset, chip enable and two GPIOs.3 min read · IoT & WirelessComponent guideBeginnerESP8266 NodeMCUThe ESP8266 is a 3.3 V Wi-Fi microcontroller, and NodeMCU is the most common board built around it.3 min read · Boards & MicrocontrollersComponent guideIntermediateUSB to TTL Serial AdaptersA USB to TTL adapter turns a computer USB port into a 3.3 V or 5 V serial port, so you can program boards without USB (Pro Mini, ESP-01, ESP32-CAM) or read a debug console.4 min read · Boards & MicrocontrollersComponent guideBeginnerAMS1117 regulatorThe AMS1117 is a small linear (LDO) regulator that turns 4.5 to 12 V into a fixed 3.3 V or 5 V at up to about 800 mA.3 min read · Power & Batteries

Sources

  • Ai-Thinker ESP-12F datasheet
  • Espressif ESP8266EX datasheet
  • ESP8266 Arduino core documentation

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the ESP-12F isESP-12F pinoutWiring the ESP-12FExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide3 items · ₹605

AI-Thinker ESP-12E ESP8266 Serial WiFi Module · Resistor Assortment Kit · Electrolytic Capacitor

Run itChange the inputs and watch the output

The blue LED on GPIO2 is active-low: LOW lights it. It blinks 200 ms on, 800 ms off.

LED GPIO2 ON
Serial monitor115200 baud
......
IP: 192.168.1.57

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question