You will need to have ubuntu or another linux distro, its the easiest method

setting up and upgrading firmware

  • sudo apt-get update && sudo apt-get upgrade
  • sudo apt-get install python3-pip
  • sudo pip3 install esptool
  • sudo pip3 install mpfshell
  • dmesg | grep ttyUSB (find the correct port, should be ttyUSB0)
  • sudo --port /dev/ttyUSB0 flash_id (check the device)
  • Download the firmware [](MicroPython ESP32 Firmware)
  • sudo --port /dev/ttyUSB0 write_flash 0x1000 file.bin (now we flash with the file you downloaded`''

setting up wifi

  • mkdir esp && cd esp
  • echo "import wifi" >

now we need to create nano and save the following code in it, dont forget to change network and password so it connects

import network station = network.WLAN(network.STA_IF) station.connect("yournetworkname", "yourwifipassword") station.ifconfig()

connect and upload

mpfshell -o COM5 -c "put"

mpfshell -o COM5 -c "put"

now reconnect the usb connector to reboot

mpfshell commands

  • help (shows all commands)
  • get (download from esp)
  • put (uploads to esp)
  • repl (interactive python shell)