Component guide · Intermediate · 5 min read
ESP8266 and ESP8285 Modules

ESP-01, ESP-07, ESP-12 and ESP-M Explained
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
ESP-01, ESP-07, ESP-12 and ESP-M are bare Wi-Fi modules built on the ESP8266 or ESP8285 chip. They run at 3.3 V, talk over UART with AT commands out of the box, and can be reprogrammed with the Arduino IDE. They differ in pin count, antenna (PCB, ceramic or IPEX) and flash size. Use a NodeMCU board instead if you want USB and a regulator built in.
Key specs at a glance
- Chip
- ESP8266 (external flash) or ESP8285 (1 MB flash inside the chip)
- CPU
- 32-bit Tensilica L106, 80 or 160 MHz
- Wi-Fi
- 802.11 b/g/n, 2.4 GHz only
- Supply
- 3.3 V; plan for peaks of about 300 mA during transmit
- Logic level
- 3.3 V; GPIO is not 5 V tolerant
- Default firmware
- AT commands over UART, usually 115200 baud
- Bluetooth
- None
The module family at a glance
All of these modules carry the same Wi-Fi core, so code and AT commands are the same across them. Choose by size, pins and antenna.
| Module | Chip | Pins broken out | Antenna | Typical use |
|---|---|---|---|---|
| ESP-01 / ESP-01S | ESP8266, 1 MB flash on S | 8 (2 GPIO + UART) | PCB | Adding Wi-Fi to an Arduino over serial, relay and DHT boards |
| ESP-01F / ESP-01M | ESP8285 | Few, small footprint | PCB | Compact serial-to-Wi-Fi links |
| ESP-07 / ESP-07S | ESP8266 | 16 | Ceramic plus IPEX on ESP-07, IPEX only on ESP-07S | Enclosures or long range with an external antenna |
| ESP-12E / ESP-12F / ESP-12S | ESP8266, 4 MB flash | 22 | PCB | Custom boards; the module inside NodeMCU and D1 Mini |
| ESP-M1 / ESP-M2 / ESP-M3 | ESP8285 | Up to 18 | PCB or IPEX by version (check the photo) | Small serial-to-Wi-Fi modules, drop-in for ESP-07 style designs |
- ESP-01 / ESP-01S
- Chip:
- ESP8266, 1 MB flash on S
- Pins broken out:
- 8 (2 GPIO + UART)
- Antenna:
- PCB
- Typical use:
- Adding Wi-Fi to an Arduino over serial, relay and DHT boards
- ESP-01F / ESP-01M
- Chip:
- ESP8285
- Pins broken out:
- Few, small footprint
- Antenna:
- PCB
- Typical use:
- Compact serial-to-Wi-Fi links
- ESP-07 / ESP-07S
- Chip:
- ESP8266
- Pins broken out:
- 16
- Antenna:
- Ceramic plus IPEX on ESP-07, IPEX only on ESP-07S
- Typical use:
- Enclosures or long range with an external antenna
- ESP-12E / ESP-12F / ESP-12S
- Chip:
- ESP8266, 4 MB flash
- Pins broken out:
- 22
- Antenna:
- PCB
- Typical use:
- Custom boards; the module inside NodeMCU and D1 Mini
- ESP-M1 / ESP-M2 / ESP-M3
- Chip:
- ESP8285
- Pins broken out:
- Up to 18
- Antenna:
- PCB or IPEX by version (check the photo)
- Typical use:
- Small serial-to-Wi-Fi modules, drop-in for ESP-07 style designs
Power and wiring
- Feed 3.3 V from a regulator that can supply at least 500 mA. An Arduino's 3.3 V pin is too weak and causes random resets.
- Put a 100 µF capacitor plus a 100 nF capacitor across 3.3 V and GND, close to the module.
- Tie EN (CH_PD) high through 10 kΩ, and keep RST high (10 kΩ) unless you are resetting.
- RX and TX are 3.3 V. From a 5 V Arduino, put a level shifter or a resistor divider on the Arduino TX line going to the module RX.
- Connect module TX to Arduino RX and module RX to Arduino TX, with a shared GND.
Boot pins: run mode and flash mode
The chip reads three strapping pins when it starts. To upload, hold GPIO0 to GND, pulse RST, then upload. Release GPIO0 and reset to run your sketch. ESP-01 boards bring out GPIO0 and GPIO2 only; GPIO15 is already tied low inside.
| Pin | Normal run | Flash (upload) mode |
|---|---|---|
| GPIO0 | High (10 kΩ pull-up) | Pulled to GND |
| GPIO2 | High | High |
| GPIO15 (ESP-07, ESP-12, ESP-M) | Low (10 kΩ to GND) | Low |
- GPIO0
- Normal run:
- High (10 kΩ pull-up)
- Flash (upload) mode:
- Pulled to GND
- GPIO2
- Normal run:
- High
- Flash (upload) mode:
- High
- GPIO15 (ESP-07, ESP-12, ESP-M)
- Normal run:
- Low (10 kΩ to GND)
- Flash (upload) mode:
- Low
Programming with the Arduino IDE
- 1Install the ESP8266 board package (Boards Manager, search for "esp8266").
- 2Pick Generic ESP8266 Module for ESP-01, ESP-07 and ESP-12, or Generic ESP8285 Module for ESP-01F, ESP-01M and ESP-M modules.
- 3Set the flash size to match the module (1 MB for ESP-01S and ESP8285 parts, 4 MB for ESP-12E/F). ESP8285 parts need flash mode DOUT.
- 4Connect a 3.3 V USB-to-TTL adapter, put the module in flash mode and upload.
Uploading your own sketch replaces the AT firmware. Keep a copy of the AT firmware from Espressif if you want to go back to AT commands later.
#include <ESP8266WiFi.h>
const char* ssid = "YourWiFi";
const char* pass = "YourPassword";
void setup() {
Serial.begin(115200);
pinMode(2, OUTPUT); // GPIO2 drives the blue LED on many modules (active low)
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED) {
digitalWrite(2, !digitalRead(2));
delay(250);
}
Serial.print("Connected, IP: ");
Serial.println(WiFi.localIP());
}
void loop() {
digitalWrite(2, LOW); delay(100);
digitalWrite(2, HIGH); delay(900);
}Using the AT firmware
Out of the box most modules answer AT commands at 115200 baud (a few older ESP-01 boards use 9600). Open a serial monitor with both NL and CR line endings and try:
ATreturnsOKAT+GMRshows the firmware versionAT+CWMODE=1sets station modeAT+CWJAP="ssid","password"joins your networkAT+CIPSTART="TCP","example.com",80opens a connection
This is the "transparent transmission" mode the module listings mention: data sent to the UART goes out over Wi-Fi and back.
What you need
Shop this list5 of 5 found in our store · ₹384
An ESP8266 or ESP8285 module, such as the ESP-M1 or ESP-12FESP8266 ESP-01S WiFi Relay Module w/ 10A Relay₹89Closest match, check the specs
A USB-to-TTL adapter set to 3.3 V for flashingUSB Wall Adapter with Cable (5V)₹145Closest match, check the specs
An AMS1117 3.3 V regulator module or another 3.3 V supply rated for 500 mAAMS1117 Fixed Regulator Module₹19Closest match, check the specs
An IPEX to SMA pigtail and a 2.4 GHz antenna for IPEX modules5cm RG178 IPEX 1 to RP-SMA Female RF Pigtail Cable₹82Closest match, check the specs
Jumper wiresDupont Jumper Wires (40 pcs)₹49
Bare module or development board?
smallest and cheapest, for your own PCB or a finished product. You add the regulator, pull-ups and a USB-to-TTL adapter.
an ESP-12 on a board with USB, a regulator and auto-reset. Best for learning and breadboards.
Move to an ESP32. See ESP32 vs ESP8266.
Try it: Battery life calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Powering the module from 5 V or from an Arduino's weak 3.3 V pin.
- Feeding 5 V serial into the RX pin without a level shifter.
- Forgetting to pull GPIO15 low on ESP-12 and ESP-M modules, so the module never boots.
- Flashing an ESP8285 module in QIO mode instead of DOUT.
- Running an IPEX-only module (ESP-07S, ESP-M1 IPEX versions) without an antenna fitted.
- Expecting 5 GHz Wi-Fi or Bluetooth.
Frequently asked questions
What is the difference between ESP8266 and ESP8285?
The ESP8285 is an ESP8266 with 1 MB flash inside the chip. Code is the same; choose Generic ESP8285 Module and DOUT flash mode in the Arduino IDE.
Can an ESP-M1 replace an ESP-07 or ESP-07S?
In most designs, yes: it is a serial-to-Wi-Fi module of similar size with UART, reset and GPIO pins. Check the pin order against your board before soldering, and fit an antenna if your version has an IPEX connector.
Do these modules work at 5 V?
No. Supply and logic are 3.3 V. Use a regulator and a level shifter with 5 V boards.
Which baud rate do AT commands use?
Usually 115200. Some older ESP-01 boards ship at 9600. Try both with NL and CR line endings.
Will uploading an Arduino sketch remove the AT firmware?
Yes. Your sketch replaces it. You can flash Espressif's AT firmware back with the esptool or Flash Download Tool.
How far can they reach?
With a PCB antenna, typical indoor range is like a phone's. A good external antenna on an IPEX module goes further, especially outdoors.
Parts for this guide
Calculators
Terms in this guide
Keep learning
Sources
- Espressif ESP8266EX datasheet
- Espressif ESP8285 datasheet
- ESP8266 Arduino core documentation (boards, flash modes)
- Espressif ESP-AT command set
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




