There are different firmware that you can use to program the ESP32 and ESP8266 devices. If you wish to program the ESP32 or ESP8266 board using the MicroPython firmware, we suggest using uPyCraft IDE. uPyCraft IDE runs on every major operating system. In this tutorial, we’ll show you how to install uPyCraft IDE on a Linux Ubuntu 16.04.
If you’re using a different operating system, make sure you follow the right guide:
After installing uPyCraft IDE on your PC, we recommend reading: Getting Started with MicroPython on ESP32 and ESP8266.
Installing Python 3.X – Linux Ubuntu
$ sudo apt install python3 python3-pip
Installing uPyCraft IDE – Linux Ubuntu 16.04
The ESP32 or ESP8266 boards will be programmed for this tutorial using the MicroPython firmware and the uPyCraft IDE. In our view, the uPyCraft IDE was the simplest way to program ESP-based boards with MicroPython at the time.
Important: At the time of writing this guide, uPyCraft IDE was only tested on Linux Ubuntu 16.04. If you want to run it on a different Ubuntu version or Linux distribution, we recommend using uPyCraft IDE source code and compiling the software yourself.
Downloading uPyCraft IDE for Linux Ubuntu 16.04
Click here to download uPyCraft IDE for Linux Ubuntu 16.04 After a few seconds, you should see a similar file (uPyCraft linux V1.0.zip) in your Downloads folder:
Open your Terminal window, navigate to your Downloads folder, and list all the files:
$ cd Downloads $ ls -l uPyCraft_linux_V1.X
You should see a new file called (uPyCraft_linux_V1.0) after unzipping (uPyCraft linux V1.0.zip). You need to make that file executable with the following command:
$ chmod +x uPyCraft_linux_V1.X
Then, to open/run the uPyCraft IDE software, type the next command:
We'll be programming our ESP-based boards as well as flashing them with MicroPython firmware using this software.
Follow the next tutorial to flash your ESP boards with the MicroPython firmware:
This tutorial should be helpful to you, we hope. This quick tutorial shows you how to install uPyCraft IDE on a Linux Ubuntu. Read one of the following guidelines if you have a different operating system:
If you like ESP8266, you may also like:
- Get MAC Address of ESP32/ESP8266 and Change It (Arduino IDE)
- ESP8266 NodeMCU Deep Sleep with Arduino IDE
- Build a Water Level Control System Using ESP8266 NodeMCU
- How to Post on Twitter using an ESP8266
We hope you find this tutorial useful. Thanks for reading.