- Go to the
Applications Menu -> Preferences -> Raspberry Pi Configuration -> Interfaces -> Enable the Serial Port
- Restart the device
(This is an example for esp32, for other devices select the right configuration)
Download the firmware
- Go to https://micropython.org/download/
- For esp32
- For esp8266
- Select
Generic ESP32 module
underGeneric ESP8266 module
- Select
- Open Thonny By Clicking on
Applications Menu -> Programming -> Thonny Python IDE
- Click on
Switch to regular mode
and restart Thonny
- Click on
Tools -> Manage Plugins
- Search for
esptool
- Install
- Restart Thonny
- Click on
Run->Select Interpreter
- Select
MicroPython (ESP32)
- Click on
Install and update firmware
- Connect the device with a USB cabale to the raspbery pi
- Select the correct port
- Select the firmware file
- Click Install
- Click on
Run->Select Interpreter
- Select
MicroPython (ESP32)
- Select port
- OK
- Copy and paste this test python code and run
Print Device Info
For setting up development using wifi see Setup webREPL