Component guide · Intermediate · 3 min read
ESP8285 ESP-M1, ESP-M2 and ESP-M3 Modules

Pins, Flashing and Serial Wi-Fi
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The ESP8285 is an ESP8266 with 1 MB of flash built into the chip, which allows very small modules such as the ESP-M1, ESP-M2 and ESP-M3. They run the same Arduino code as an ESP8266 (choose Generic ESP8285 Module) or ship with AT firmware for serial Wi-Fi. The DT-06 board (ESP-M2) is a ready transparent UART to Wi-Fi bridge.
Key specs at a glance
- Chip
- ESP8285, ESP8266 core with 1 MB internal flash
- Wireless
- Wi-Fi 2.4 GHz b/g/n
- Supply
- 3.3 V, 300 mA peaks
- Size
- ESP-M3 about 12 x 15 mm
- Antenna
- PCB antenna (M1 adds U.FL)
- Firmware
- AT or transparent serial on DT-06 and FL-M1S
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1ESP8285 ESP-M3 Ultra-Small Wi-Fi Module Compatible w/ ESP8266₹209
Option 2ESP8285 ESP-M3 Ultra-Small WiFi Module w/ ESP8266 AT Firmware₹259
Option 3DOIT ESP-M3 Ultra-Small ESP8285 Serial WiFi Module₹209
Option 4ESP-M1 ESP8285 Serial-to-WiFi Module (Replaces ESP-07/07S)₹131
Option 5DT-06 WiFi Serial Port Transparent Transmission Module ESP-M2₹499
Option 6FL-M1S ESP8266 Serial-to-Wi-Fi Module₹129
What the ESP8285 ESP-M module is
The ESP-M3 is a tiny module with the ESP8285, an ESP8266 with 1 MB of flash built in, used in smart plugs and small Wi-Fi devices.
With flash inside the chip, GPIO 9 and 10 become usable on some ESP8285 boards. Boot straps are the same as ESP8266: GPIO 15 low, GPIO 2 high, GPIO 0 low for flashing.
1 MB flash limits OTA updates to sketches under about 450 KB. For larger projects use an ESP-12F (4 MB).
ESP8285 ESP-M module pinout
The pins on the ESP8285 ESP-M module and what each one does.
| Pin | Function |
|---|---|
| 3V3 / GND | Supply |
| EN | Pull high |
| GPIO 0 | Low to flash |
| GPIO 2 | High at boot |
| GPIO 15 | Low at boot |
| TX / RX | UART0 |
| ADC | 0 to 1 V |
- 3V3 / GND
- Supply
- EN
- Pull high
- GPIO 0
- Low to flash
- GPIO 2
- High at boot
- GPIO 15
- Low at boot
- TX / RX
- UART0
- ADC
- 0 to 1 V
Wiring the ESP8285 ESP-M module
Use a 3.3 V adapter and a regulator able to supply 300 mA. DT-06 boards have a 5 V to 3.3 V regulator and accept 5 V power.
| ESP8285 ESP-M module pin | USB to TTL adapter | Host MCU (AT mode) |
|---|---|---|
| 3V3 | 3.3V regulator | 3V3 |
| GND | GND | GND |
| TX | Adapter RX | Host RX |
| RX | Adapter TX | Host TX via divider |
| GPIO 0 | GND while flashing | - |
- 3V3
- USB to TTL adapter:
- 3.3V regulator
- Host MCU (AT mode):
- 3V3
- GND
- USB to TTL adapter:
- GND
- Host MCU (AT mode):
- GND
- TX
- USB to TTL adapter:
- Adapter RX
- Host MCU (AT mode):
- Host RX
- RX
- USB to TTL adapter:
- Adapter TX
- Host MCU (AT mode):
- Host TX via divider
- GPIO 0
- USB to TTL adapter:
- GND while flashing
- Host MCU (AT mode):
- -
Example code
Board: Generic ESP8285 Module. Change the broker IP to your MQTT server.
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
WiFiClient net; PubSubClient mqtt(net);
void setup() {
WiFi.begin("YOUR_WIFI", "YOUR_PASSWORD");
while (WiFi.status() != WL_CONNECTED) delay(300);
mqtt.setServer("192.168.1.10", 1883);
}
void loop() {
if (!mqtt.connected()) mqtt.connect("esp-m3");
mqtt.publish("home/esp-m3/adc", String(analogRead(A0)).c_str());
mqtt.loop();
delay(10000);
}Setup and tuning
pick "Generic ESP8285 Module" in the ESP8266 core.
feed 3.3 V at 300 mA or more with a 100 µF capacitor near the module.
connect a 3.3 V USB-serial adapter to TX and RX, hold GPIO0 to GND and reset.
tie EN and RST high, and GPIO15 low, with resistors.
1 MB limits OTA updates; keep the sketch small.
What you need
Shop this list10 of 11 found in our store · ₹1,772
ESP8285 ESP-M3 Ultra-Small Wi-Fi Module Compatible w/ ESP8266: the part this guide coversESP8285 ESP-M3 Ultra-Small Wi-Fi Module Compatible w/ ESP8266₹209
ESP8285 ESP-M3 Ultra-Small WiFi Module w/ ESP8266 AT Firmware: another version this guide coversESP8285 ESP-M3 Ultra-Small WiFi Module w/ ESP8266 AT Firmware₹259
DOIT ESP-M3 Ultra-Small ESP8285 Serial WiFi Module: another version this guide coversDOIT ESP-M3 Ultra-Small ESP8285 Serial WiFi Module₹209
ESP-M1 ESP8285 Serial-to-WiFi Module (Replaces ESP-07/07S): another version this guide coversESP-M1 ESP8285 Serial-to-WiFi Module (Replaces ESP-07/07S)₹131
DT-06 WiFi Serial Port Transparent Transmission Module ESP-M2: another version this guide coversDT-06 WiFi Serial Port Transparent Transmission Module ESP-M2₹499
FL-M1S ESP8266 Serial-to-Wi-Fi Module: another version this guide coversFL-M1S ESP8266 Serial-to-Wi-Fi Module₹129
ESP8266 ESP-02S Serial WiFi Transceiver Module w/ Onboard Antenna: another version this guide coversESP8266 ESP-02S Serial WiFi Transceiver Module w/ Onboard Antenna₹131
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
Breadboard power supply module 3.3V/5V: a 3.3 V supply for bare modulesBreadboard Power Supply Module (3.3V / 5V)₹71- Uno R3 development board: the controller used in the wiring tableFind this part
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- ESP-12F: 4 MB flash and more pins.
- ESP-01: the classic small module.
- ESP8266 and ESP8285 modules: the whole family compared.
Common mistakes to avoid
- Powering it from a 3.3 V pin that cannot give 300 mA.
- Using a 5 V USB-serial adapter on the TX and RX pins.
- Leaving EN, RST or GPIO15 floating.
- Building a sketch too large for OTA on 1 MB flash.
Frequently asked questions
What is the difference between ESP8285 and ESP8266?
The ESP8285 has 1 MB flash inside the chip; otherwise it is the same.
Which board do I pick in Arduino IDE?
Generic ESP8285 Module in the ESP8266 board package.
Can I use OTA updates?
Yes, if the sketch is under about half of the 1 MB flash.
Why does the module keep resetting?
The 3.3 V supply sags. Add a bulk capacitor and use a stronger regulator.
Can I flash Tasmota on an ESP-M3?
Yes. Tasmota fits in 1 MB, and many smart plugs use this module.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

