Siirry pääsisältöön

ESP8266

ESP8266 Board configurations


https://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/intro.html#requirements

- Need ESP8266 board with 1Mbyte flash.
- Remember boards are mostly operating 3.3V

Get firmware here

Need esptool for desktop computer. Best way to install it by using pip install esptool  f.g on Python directory


  • Erase flash esptool.py --port /dev/ttyUSB0 erase_flash
  • Flash new firmware esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 esp8266-20170108-v1.8.7.bin


Serial communication

with realterm 115.2k
REPL over serial port is always available

Wifi Communication

Board configures automatically Wifi Access point.
ESSID: MicroPython-xxxxxx
Password: micropythoN
IP:192.168.4.1

WebREPL is available, but before first run after flashing the password need to setup. Only way to do that is use the serial REPL.

Give the command import webrepl_setup on serial console and follow the instructions.

ctrl-E special paste mode
  • ctrl-C cancel
  • ctrl-D end
ctrl-A raw REPL mode
ctrl-B normal REPL mode
ctrl-C cancels any input, or interrupt currently runnning code
ctrl-D do a soft reset

ctrl-A and ctrl-D do not work with WebREPL.

Kommentit