How To Load Micropython Firmware On ESP8266 using Windows

Using MicroPython is a great way to get the most of your ESP8266 board. And vice versa, the ESP8266 chip is a great platform for using MicroPython. This tutorial will guide you through setting up MicroPython, getting a prompt, using WebREPL, connecting to the network and communicating with the Internet, using the hardware peripherals, and controlling some external components.

Let’s get started!


Getting Firmware

The first thing you need to do is download the most recent MicroPython firmware .bin file to load onto your ESP8266 device. You can download it from the MicroPython downloads page. From here, you have 3 main choices

Stable firmware builds for 1024kb modules and above.
Daily firmware builds for 1024kb modules and above.
Daily firmware builds for 512kb modules.
How to Download MicroPython Firmware

You should download 1st firmware.

If you are just starting with MicroPython, the best bet is to go for the Stable firmware builds. If you are an advanced, experienced MicroPython ESP8266 user who would like to follow development closely and help with testing new features, there are daily builds (note: you actually may need some development experience, e.g. being ready to follow git history to know what new changes and features were introduced).


Deploying the firmware using Windows

Once you have the MicroPython firmware (compiled code), you need to load it onto your ESP8266 device.

On windows you can do this by NodeMCU Flasher.You can download it here.

After downloading extract zip file and go to
nodemcu-flasher-master.zip\nodemcu-flasher-master\Win64\Release directory and open ESP8266Flasher.exe .it will look like this,

Here select com port of your esp8266.
 
How to use Nodemcu Firmware programmer

Go to Config Tab,
 
How to use Nodemcu Firmware programmer and selecting programming file

Click Setting icon next to 0x00000 and locate firmware file you have downloaded from Micropython site.

From Operation Tab,

How to use Nodemcu Firmware programmer

Click on Flash button and wait for process to complete.

After completion window will look like,

Nodemcu Firmware programmer after Firmware download complete

Congratulations, you've loaded the MicroPython firmware on the ESP8266!

Watch below video for more information. 

Post a Comment

0 Comments