The ESP-01 is the smallest way to put Wi-Fi on a project: an ESP8266EX, its SPI flash and a PCB antenna on a module with an 8-pin header. That header is all you get: two GPIOs (GPIO0 and GPIO2, both boot pins), the serial pins, enable, reset and power. There's no USB and no regulator, so it needs a little support circuit.
Quick answer: pins are GND, IO2, IO0, RX on one row and TX, EN, RST, 3V3 on the other. Supply 3.3 V with at least 250 mA, never 5 V. To run: EN and RST pulled up, IO0 pulled up. To upload: hold IO0 LOW and reset. Program it through a USB-serial adapter with 3.3 V IO.
Highlighted on the SolderHub Simulator Ai-Thinker ESP-01 / ESP-01S. Explore every pin on the Ai-Thinker ESP-01 / ESP-01S board page.
What's Actually on the Board
A PCB antenna at one end, the ESP8266EX and its SPI flash in the middle, and the 2 × 4 header at the other end. That's it: everything else (power regulation, USB, buttons) is up to you.
The 8 Pins
| Pin | GPIO | What it does |
|---|---|---|
| GND | — | Ground |
| IO2 | GPIO2 | GPIO; must be HIGH at boot (pull-up on at boot) |
| IO0 | GPIO0 | GPIO; HIGH = run, LOW at reset = upload mode |
| RX | GPIO3 | Serial in (to the adapter's TX) |
| TX | GPIO1 | Serial out (to the adapter's RX) |
| EN | — | Chip enable (CH_PD): pull up to run |
| RST | — | Reset: keep pulled up, LOW to reset |
| 3V3 | — | 3.3 V supply, ≥ 250 mA |
8 of 8 pins match
Hover or tap any pin on the board
ROW 2 header · pin 1
TX
Use with care
Serial TX: connect to the adapter's RX.
Serial
Used for uploads and the Serial Monitor; anything else wired here can block uploads.
Can be used as
- UART
Signals on this pad
- GPIO1
- TXD0
Boot Modes: Why GPIO0 and GPIO2 Matter
At reset the ESP8266 reads three pins. GPIO15 must be LOW and isn't on the ESP-01's header, so the two you control are:
| GPIO0 | GPIO2 | Result |
|---|---|---|
| HIGH | HIGH | Runs your sketch from flash |
| LOW | HIGH | UART bootloader: ready for an upload |
So both GPIOs must be HIGH at power-up for normal running. A button or sensor that pulls either one LOW at boot stops your sketch from starting.
Highlighted on the SolderHub Simulator Ai-Thinker ESP-01 / ESP-01S. Explore every pin on the Ai-Thinker ESP-01 / ESP-01S board page.
Wiring for Uploading
| ESP-01 | Connect to |
|---|---|
| 3V3 | 3.3 V regulator output (≥ 250 mA) |
| GND | Regulator GND and adapter GND |
| TX | Adapter RX |
| RX | Adapter TX |
| EN | 3.3 V through a pull-up resistor |
| RST | 3.3 V through a pull-up resistor (a button to GND resets) |
| IO0 | Pull-up resistor; a button to GND for upload mode |
Use resistors, not wires: the core docs point out that a direct connection to VCC or GND isn't a substitute for a pull-up or pull-down. In the Arduino IDE pick Tools → Board → Generic ESP8266 Module.
Highlighted on the SolderHub Simulator Ai-Thinker ESP-01 / ESP-01S. Explore every pin on the Ai-Thinker ESP-01 / ESP-01S board page.
Highlighted on the SolderHub Simulator Ai-Thinker ESP-01 / ESP-01S. Explore every pin on the Ai-Thinker ESP-01 / ESP-01S board page.
Try your pin plan on a virtual ESP-01. The SolderHub Simulator has the same ESP-01 you see in these figures, so you can check the wiring before you touch real hardware.
FAQ
Can I power the ESP-01 from 5 V? No, 3.3 V only.
Why does the ESP-01 keep resetting? Usually a weak supply: it needs at least 250 mA at 3.3 V.
How many GPIOs does the ESP-01 have? Two (GPIO0, GPIO2), plus TX/RX if you don't need serial.
How do I put the ESP-01 in programming mode? Hold IO0 LOW and reset.