Component guide · Intermediate · 3 min read
ESP-01 / ESP-01S ESP8266 Module

Pinout, Wiring and Programming
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The ESP-01 is a tiny ESP8266 Wi-Fi module with 8 pins: power, serial, reset, chip enable and two GPIOs. You can control it with AT commands from an Arduino, or flash your own sketch so it runs on its own. It needs a solid 3.3 V supply of at least 300 mA, and GPIO0 must be LOW at boot to enter flashing mode.
Key specs at a glance
- Chip
- ESP8266 (80/160 MHz, 2.4 GHz Wi-Fi b/g/n)
- Flash
- 1 MB on ESP-01S (512 KB on early ESP-01)
- Supply
- 3.3 V only, peaks about 300 to 400 mA
- GPIO
- GPIO0, GPIO2, plus TX/RX (GPIO1, GPIO3)
- ESP-01S changes
- CH_PD and RST pulled up on board, blue LED on GPIO2
- Default firmware
- AT command firmware at 115200 baud
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1AI-Thinker ESP-01S ESP8266 WiFi Module₹185
Option 2ESP-01 ESP8266 Serial Wi-Fi Transceiver Module₹131
What the ESP-01 (ESP8266) is
The ESP-01 was the first cheap way to add Wi-Fi to an Arduino. Out of the box it runs AT firmware, so a host board sends text AT commands to join a network and open connections.
Today it is more common to program the ESP8266 directly and use it as a small Wi-Fi sensor or relay node. For learning, a NodeMCU or D1 Mini is easier because it has USB and more pins.
ESP-01 (ESP8266) pinout
The pins on the ESP-01 (ESP8266) and what each one does.
| Pin | Function |
|---|---|
| VCC | 3.3 V |
| GND | Ground |
| TX (GPIO1) | Serial transmit |
| RX (GPIO3) | Serial receive (3.3 V) |
| CH_PD / EN | Chip enable, must be HIGH |
| RST | Reset, LOW = reset |
| GPIO0 | LOW at boot = flash mode, HIGH = run |
| GPIO2 | General I/O, must be HIGH at boot |
- VCC
- 3.3 V
- GND
- Ground
- TX (GPIO1)
- Serial transmit
- RX (GPIO3)
- Serial receive (3.3 V)
- CH_PD / EN
- Chip enable, must be HIGH
- RST
- Reset, LOW = reset
- GPIO0
- LOW at boot = flash mode, HIGH = run
- GPIO2
- General I/O, must be HIGH at boot
Wiring the ESP-01 (ESP8266)
The Uno's 3.3 V pin cannot supply the current peaks. Use an AMS1117 module with a 100 µF capacitor. The ESP-01 RX pin is not 5 V tolerant, so divide the Uno's TX signal.
| ESP-01 (ESP8266) pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 3.3 V regulator (not the Uno 3.3V pin) | 3V3 regulator |
| GND | GND | GND |
| TX | D2 (SoftwareSerial RX) | GPIO 16 (RX2) |
| RX | D3 via divider (5 V to 3.3 V) | GPIO 17 (TX2) |
| CH_PD | 3.3 V | 3.3 V |
| GPIO0 | 3.3 V (run) / GND (flash) | 3.3 V (run) / GND (flash) |
- VCC
- Arduino Uno:
- 3.3 V regulator (not the Uno 3.3V pin)
- ESP32:
- 3V3 regulator
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- TX
- Arduino Uno:
- D2 (SoftwareSerial RX)
- ESP32:
- GPIO 16 (RX2)
- RX
- Arduino Uno:
- D3 via divider (5 V to 3.3 V)
- ESP32:
- GPIO 17 (TX2)
- CH_PD
- Arduino Uno:
- 3.3 V
- ESP32:
- 3.3 V
- GPIO0
- Arduino Uno:
- 3.3 V (run) / GND (flash)
- ESP32:
- 3.3 V (run) / GND (flash)
Example code
Set the Serial Monitor to 'Both NL & CR'. To run your own sketch instead, flash the module with a USB adapter and choose 'Generic ESP8266 Module' in the ESP8266 Arduino core.
#include <SoftwareSerial.h>
SoftwareSerial esp(2, 3); // RX, TX
void setup() {
Serial.begin(9600);
esp.begin(115200);
esp.println("AT+UART_DEF=9600,8,1,0,0"); // SoftwareSerial is unreliable at 115200
delay(500);
esp.begin(9600);
Serial.println("Type AT commands, e.g. AT, AT+CWMODE=1, AT+CWJAP=\"ssid\",\"pass\"");
}
void loop() {
if (esp.available()) Serial.write(esp.read());
if (Serial.available()) esp.write(Serial.read());
}Setup and tuning
use a USB to ESP-01 adapter with a programming switch, or a USB-TTL adapter with GPIO0 tied to GND during reset.
GPIO0 and GPIO2 must be HIGH for a normal boot, so do not pull them LOW with relays or LEDs at power-on.
brownouts during Wi-Fi transmit cause random resets; a capacitor near the module helps.
connect GPIO16 to RST for timed wake-up; on the ESP-01 GPIO16 is not broken out, so this needs fine soldering.
What you need
Shop this list4 of 5 found in our store · ₹407
AI-Thinker ESP-01S ESP8266 Wi-Fi module: the newer ESP-01SAI-Thinker ESP-01S ESP8266 WiFi Module₹185
ESP-01 ESP8266 serial Wi-Fi module: the original ESP-01ESP-01 ESP8266 Serial Wi-Fi Transceiver Module₹131
USB to ESP-01 programmer adapter (CH340): to flash the module from a PCUSB to ESP-01 Programmer Adapter (CH340)₹72
AMS1117 fixed regulator module: a proper 3.3 V supplyAMS1117 Fixed Regulator Module₹19- Uno R3 development board: the controller used in the wiring tableFind this part
Alternatives and when to choose them
- ESP8266 NodeMCU: USB, regulator and more GPIOs on one board.
- D1 Mini: small ESP8266 board that is easier to program.
- ESP32: more GPIOs, Bluetooth and faster CPU.
Try it: Uart baud rate error calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Powering it from the Uno's 3.3V pin.
- Sending 5 V into the RX pin.
- Leaving CH_PD unconnected on the old ESP-01.
- Pulling GPIO0 or GPIO2 LOW at boot with a connected load.
Frequently asked questions
What is the difference between ESP-01 and ESP-01S?
The ESP-01S has 1 MB flash, on-board pull-ups for CH_PD and RST, and its LED on GPIO2. Pinout is the same.
How do I put it in flash mode?
Hold GPIO0 LOW while resetting or powering up, then upload.
Can it run without an Arduino?
Yes. Flash your own sketch and it works on its own with two GPIOs.
Why does it keep resetting?
Usually a weak 3.3 V supply. Use a regulator rated 500 mA or more and add a capacitor.
Is it 5 V tolerant?
No. Use 3.3 V power and logic.
What baud rate is the AT firmware?
Usually 115200; some older units use 9600 or 57600.
Parts for this guide
Calculators
Terms in this guide
Keep learning
Sources
- ESP8266EX datasheet (Espressif)
- ESP8266 AT instruction set (Espressif)
- ESP8266 Arduino core documentation
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

