Micropython for Node MCU 8266

February 9, 2018 | Views: 2654

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here


Hello guyz! Hope you all doing well, as we all know Python is an extraordinary emerging language.Which has a broad spectrum from CGI scripts to the embedded devices. As for embedded system we have a special version of the python called as MICROPYTHON . We can do many extraordinary things with this language , to explore this world of magic lets set our Node MCU in micropython mode .

In this blog I am showing you a simple way to interact with micropython using 8266, there is an advanced way by using esplorer IDE. For now, we will use PuTTY for communicating with our node MCU .

So let’s start. For this , e will require the following software.

1.Python 3


3.Micropython firmware

4.esptool (i will show how to install it in py3)


I am considering you all have PY3 installed in your PC. So follow the steps below:

>> Download

>> Go to your python directory in my case its D:Python3Scripts

>> Type on cmd cd  D:Python3Scripts then type following command

>> pip install esptool


Once its done it should look like this, then:


>> We gotta install firmware on our node MCU

>> Go to http://micropython.org/download site and download stable firmware, stable firmware best for the NOOBS like me 🙂

>> then paste that file in the same directory D:Python3Scripts .

>> Connect the Node MCU to the PC, note the COM port from devi manager.

>> Then type following the cmd esptool.py –port COM4 –baud 11520 erase_flash to erase default LUA firmware.




>> Now type following esptool.py –port COM4 –baud 11520 write_flash –flash_size= detect -fm dio 0 esp8266-20171101-v1.9.3.bin

>> Note here you have to adjust your port number


>> Now open putty and set serial baud rate is equal to 115200 and you can run the python commands on this





So its done , We are ready to explore it , Happy hacking …..












Share with Friends
Use Cybytes and
Tip the Author!
Share with Friends
Ready to share your knowledge and expertise?
Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge



Is Linux Worth Learning in 2020?
Views: 294 / December 14, 2019
How do I Get MTA Certified?
Views: 892 / December 12, 2019
How much does your PAM software really cost?
Views: 1343 / December 10, 2019
How Do I Get into Android Development?
Views: 1722 / December 8, 2019

We recommend always using caution when following any link

Are you sure you want to continue?