INSTALLATION OF MICROPYTHON ON NODEMCU esp8266

I've explained in detail on how to install micropython on nodemcu esp8266. you can refer this and install it. We'll use this in future projects.

 

Step 1: Erash flash memory from nodemcu esp8266 incase it was used in previous projects. Enter the following command in your command prompt or windows powershell. Hold the flash button in your nodemcu while you do this step and relase it when the erasing starts.

 

python -m esptool --chip esp8266 erase_flash

Note: Make sure that your nodemcu esp8266 is plugged in one of the ports of the device.

If this command fails, do these steps:

1. Install python onto your pc or laptop. https://www.python.org/downloads

2. Install esptool packages by entering this in your command prompt.

Python -m pip install esptool

Bonus: If you have already installed this package update it using this command.

Python.exe -m pip install --upgrade pip

3. Check if it got installed correctly using this command.

python -m esptool

If you get something like this, then esptool package has been installed correctly onto your device.


Step 2:Now install micropython as a .bin file from this link

https://micropython.org/download/esp8266/

Download the latest firmware from the given options



Once you have downloaded this bin file rename it as test_esp8266 if you prefer

Note: If you renmae it, it will be easier to type in the command prompt.

Step 3: In the same directory as that of the bin file open the comamnd prompt by typing cmd onto the highlighted path as follows:


 

Type cmd


 

And press enter

You can also use cd command to come to the required dircetory. Since I’ve kept the file in the downloads folder itself, I’ve opened the command prompt in that directory.

Step 4: Connect esp8266 and make note of the port by going to the device manager and checking the COM port. Mine was in port 3.


 While holding the flash button on nodemcu esp8266, enter this command on the command prompt opened in the same directory as that of the bin file.

esptool --chip esp8266-port COM3 write_flash --flash_mode dio - flash_size detect 0x0 test_esp8266.bin

Note: Here since the name of my bin file was renamed as test_esp8266 I named the file as such and also since my device was connected in COM 3 I’ve given that specific port here.

Hence, Micropython is successfully installed.

 

 

Comments

Popular posts from this blog

Hello! It's me!

Control led light remotely using Nodemcu esp8266