MicroPython is a re-implementation of Python 3 targeted for microcontrollers and embedded systems.Installing python on windows:-

Make sure you have the latest version of Python 3.7.X installed in your computer. If you don’t, follow the next instructions to install Python 3.7.X.

  1. Go to the Python Downloads page: www.python.org/downloads and download the installation file.
  2. Choose the suitable version according to your OS. Download and start the insallation.
  3. Enable the option at the bottom “Add Python 3.7 to PATH”. then, press the “Install Now” button.
  4. Wait a few seconds while the software completes the installation process.
  5. When it’s done, you should see the message “Setup was successful” and you can close that window.

Installing uPyCraft IDE:-

  1. Download and install uPyCraft IDE from link.
  2. After a few seconds you should see a similar file (uPyCraft_VX.exe) in your Downloads folder.
  3. Double-click that file. A new window opens with the uPyCraft IDE software.

Downloading and flashing MicroPython on ESP8266: –

To download the latest version of MicroPython firmware for the ESP8266, go to the latest MicroPython download page and scroll all the way down to the ESP8266 section

Note:- it is only for ESP8266 if you are using different board then download according to your board specification

Serial port In IDE:-
  1. Connect the NodeMCU via USB or ESP8266 via CP2102 to your System.  
  2. Go to Tools > Serial and select your ESP8266 COM port.
  3. Note: If you don’t see your COM port available then this means you don’t have proper driver. ESP8266-NodeMCU board uses CP2102 driver so download CP2102 driver. You can download the CP2102 drivers on the silicon labs website.
  4. After they are installed, restart the uPyCraft IDE and you should see the COM port in the Tools menu.

Select board: –
Go to Tools > Board. For this tutorial, we assume that you’re using the ESP8266, so make sure you select the “ESP8266” option:

Flashing and uploding firmware
go to Tools > BurnFirmware menu to flash your ESP8266 with MicroPython.

After clicking on burnfire you will get following window

Just select following option
Board – esp8266
Burn-addr – 0x0
Erase_flash – yes
COM – comport number
Primary choice will be Users
Firmware: Select “Users” and choose the ESP8266 .bin file downloaded earlier
After pressing the “Choose” button, navigate to your Downloads folder and select the ESP8266.bin file:
Having all the settings selected, hold-down the “BOOT/FLASH” button in your ESP8266 board:
While holding down the “BOOT/FLASH“, click the “ok” button in the burn firmware window

When the “EraseFlash” process begins, you can release the “BOOT/FLASH” button. After a few seconds, the firmware will be flashed into your ESP8266 board.

Note: if the “EraseFlash” bar doesn’t move and you see an error message saying “erase false“, it means that your ESP8266 wasn’t in flashing mode. You need to repeat all the steps described earlier and hold the “BOOT/FLASH” button again to ensure that your ESP8266 goes into flashing mode

If you are still facing issue regarding micropython esp8266 Feel free to Ask Doubts in the Comment Box Below and Don’t Forget to Follow us on 👍 Social Networks😉