Wi-Fi
Interfacing ESP 01 Wi-Fi with ESP32
What is the ESP 01?
ESP 01 practical reference
A bare-bones ESP8266 Wi-Fi module controllable via AT commands, a cheap way to bolt Wi-Fi connectivity onto non-networked microcontrollers. The ESP-01 exposes just enough pins — power, UART, and two GPIO — to run the module in its simplest mode: forward AT commands over serial from an existing microcontroller like an Arduino Uno, and let the ESP-01 handle all the Wi-Fi networking, making it a low-cost bridge for otherwise offline projects that just need occasional connectivity (sending sensor data to the cloud, receiving simple remote commands).
Key specifications
- Wi-Fi chipset: ESP8266 SoC, 802.11 b/g/n 2.4GHz Wi-Fi
- Operating voltage: 3.3V DC only (NOT 5V tolerant on any pin)
- Operating current: ~80 mA average, spikes to 200-300 mA during Wi-Fi transmit bursts
- Flash memory: Typically 1MB onboard SPI flash on standard ESP-01 boards (ESP-01S variants may have more)
- GPIO: Only 2 usable GPIO pins broken out (GPIO0, GPIO2) — the most limiting factor of this module
- Programming interface: UART (TX/RX), controlled via AT command firmware by default, or reflashed with custom Arduino-core firmware
- Form factor: Very small 8-pin module, the smallest and cheapest of the common ESP8266 breakout family
Pinout and connection notes
All ESP-01 pins are strictly 3.3V — connecting directly to a 5V Arduino's logic pins without a level shifter or resistor divider will damage the chip. The module also draws current spikes during Wi-Fi transmission that a microcontroller's onboard 3.3V regulator often can't supply reliably, so a separate 3.3V regulator capable of a few hundred mA is strongly recommended rather than powering it from an Arduino's 3.3V pin.
- VCC: Power, 3.3V DC only — do not supply 5V
- GND: Ground
- TX: UART transmit — connect to microcontroller RX
- RX: UART receive — connect to microcontroller TX (3.3V logic, level-shift from 5V boards)
- GPIO0: General I/O; must be pulled LOW at boot to enter flashing mode, HIGH for normal AT-command run mode
- GPIO2: General I/O; must be pulled HIGH at boot for normal operation
- CH_PD / EN: Chip enable — must be pulled HIGH for the module to run
- RST: Active-LOW reset pin
Integration checklist
- Confirm the exact part number and breakout-board revision.
- Verify supply voltage, current demand, logic levels, and signal direction against the datasheet.
- Check controller pin assignments and bus address or interface mode against the example code.
- Power up with external loads disconnected, then test signals before full integration.
- If readings or communication fail, check power and ground first, then pin mapping, interface settings, and library initialization.
Troubleshooting and reproducibility
Record the board used, wiring, library/version, supply arrangement, and measured behavior. Use the selected board-specific wiring example as the source of truth. Never assume visually similar modules share identical voltage tolerance or pin order.
Setting Up ESP 01 with ESP32
Library
ESP8266WiFi by ESP8266 Community
Bundled with the ESP8266 Arduino core
Wiring
| Component pin | ESP32 pin | Note |
|---|---|---|
| VCC | 3.3V | ESP-01 needs a stable 3.3V supply capable of ~300mA peaks during Wi-Fi TX -- use a dedicated regulator if you see resets |
| GND | GND | |
| TX | GPIO16 (RX2) | ESP-01 TX is 3.3V logic -- safe to connect directly |
| RX | GPIO17 (TX2) | |
| CH_PD / EN | 3.3V | Must be pulled HIGH for the module to run |
| GPIO2 | 3.3V | Must be pulled HIGH at boot for normal operation |
| GPIO0 | Floating or pulled HIGH | Pull LOW only when re-flashing firmware; HIGH for normal AT-command operation |
Swipe sideways to see every column →
This bridges the ESP32's UART2 to the ESP-01 running its stock AT-command firmware. Since the ESP32 already has its own Wi-Fi radio, pairing it with an ESP-01 is mainly useful for learning AT commands -- for new projects, using the ESP32's built-in WiFi library directly is simpler.
Related Components
CC2530
Mesh-networking Zigbee radio module for home-automation sensors.
ESP8266 Module
General-purpose ESP8266 breakout with more accessible GPIO.
HC-05 Bluetooth Module
Add Bluetooth Classic serial communication to Arduino projects with a UART connection, safe logic levels, and a practical pairing workflow.
HC 06
Slave-only Bluetooth serial module — simpler and cheaper than HC-05 for one-way connections.
Related Guides & Projects
MicroPython vs Arduino on ESP32: Which Should You Learn First?
An honest comparison for beginners: where MicroPython is easier, where Arduino C++ is faster, how libraries and memory differ, and how to choose based on your project instead of hype.
MicroPython ESP32 Web Server: Control an LED or Relay from Your Browser
Create a working web server with the socket module, parse requests, serve a responsive control page for an LED or a relay, keep the displayed state truthful, choose a safe relay startup state and make the server survive bad or repeated requests.
MicroPython on ESP32 and Raspberry Pi Pico W: The Complete Guide
A structured MicroPython learning path for ESP32 and Pico W. Set up your tools, control GPIO, read sensors, connect to WiFi, build web servers, publish MQTT data and make projects reliable. Start here, then follow the links by level.
boot.py vs main.py in MicroPython: What Runs, When and Why
Understand the difference between boot.py and main.py in MicroPython, startup order, Wi-Fi setup, project structure, and recovery from boot errors.