Hello MicroPython enthusiasts! After making so many MicroPython tutorials, I realized that I never wrote a guide on how to install the damn thing in t

How to install MicroPython on ESP32

submited by
Style Pass
2025-01-24 06:00:05

Hello MicroPython enthusiasts! After making so many MicroPython tutorials, I realized that I never wrote a guide on how to install the damn thing in the first place šŸ¤¦ā€ā™‚ļø That's what this guide is for.

I've found 2 ways to install it on an ESP32 - one is using the GUI in the Thonny editor, and the other way is using a command line tool called esptool. The Thonny method works for other microcontrollers as well, whereas the esptool method only works for the ESP-series microcontrollers, which include the ESP32 and the older ESP8266.

The Thonny method is easier, especially for beginners, whereas the command line method makes you look like an l33t haxx0r elite hacker so you can impress your friends šŸ˜Ž Jokes aside, I will discuss the actual pros and cons of each method at the end of each section below.

As you can see, I omitted the --port flag from the above commands and it installed just fine. Again, it is very important to restate that this only works if you have just one device connected to your computer. Please, for the love of programming, don't accidentally wipe or flash any other device that you had connected to your computer! (Although maybe it would be cool if your external mouse was now running MicroPython šŸ¤” Just a thought).

Leave a Comment