ESP8266 (Wemos D1 mini) MicroPython firmware, blink program

Опубликовано: 09 Август 2026
на канале: НПО ЭнергоКомплект
8,234
197

#esp8266, #MicroPython, #wemos
Flashing MicroPython to the ESP8266 microcontroller (Wemos D1 mini)

Step-by-step instructions:

1. Install Python on Windows
https://www.python.org/downloads/wind...

2. Install the driver for the esp8266
http://www.ek21.ru/driver/CH341SER_wi...

3. Install esptool on Python
pip install esptool

4. Erase the flash memory of the esp8266 microcontroller
esptool.py --port COM3 erase_flash

5. Download the MicroPython firmware for the ESP8266 (select from the "2M or more of flash" section)
http://micropython.org/download/esp8266/

6. Upload the MicroPython firmware to the ESP8266 microcontroller
esptool.py --port COM3 --baud 460800 write_flash --flash_size=detect 0 D:\esp8266.bin

7. Download the Python programming platform
https://codewith.mu/en/download

8. Upload the blink program written in Python to the ESP8266 microcontroller:
from machine import Pin
import time

led_pin = Pin(2,Pin.OUT)

while True:
led_pin.on()
time.sleep(1)
led_pin.off()

time.sleep(1)

9. Save the program as main.py and copy it to the ESP8266 microcontroller's flash memory