Skip to content

jasoncook-fr/ESP32-MicroPython-Intro-Course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started with Micropython on ESP32

To follow the examples it is recommended to install Thonny (Python IDE for beginners)

For download instructions, visit The official website

Installing Micropython Firmware onto the ESP32

Download the latest esptool software

git clone https://github.com/espressif/esptool.git

Serial library is a possible requisite for using esptool

sudo apt-get update
sudo apt-get install python-serial python3-serial

Download the necessary firmware for our board

Visit the official micropython download page.
You will notice there are many options. For most generic ESP32 devices try this one .

Alternatively we can use wget in commandline:

# all following commands to be executed in the esptool folder

cd esptool
wget https://micropython.org/resources/firmware/esp32-20210902-v1.17.bin

Connect the ESP32 to your computer and erase all existing data

# Change USB port if necessary

./esptool.py --chip esp32 --port /dev/ttyUSB0 erase_flash

Program the firmware

# Change USB port and .bin file name to match your own

./esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x1000 esp32-20190125-v1.10.bin

Open Thonny and verify that the firmware is working

Under Tools -> Options -> Interpreter, Choose MicroPython(ESP32)

Thonny-options

If all goes well, you should see the Micropython version and date displayed in the shell window

Thonny-verify

About

Getting started with Micropython on ESP32 (IoT examples)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages