Skip to content

Latest commit

 

History

History

setup-rp-dev

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Setup Raspberry Pi and ESP32 for MicroPython Development

1. Enable the serial port

  • Go to the Applications Menu -> Preferences -> Raspberry Pi Configuration -> Interfaces -> Enable the Serial Port

image

  • Restart the device

2. Install MicroPython Firmware

(This is an example for esp32, for other devices select the right configuration)

Download the firmware

  • Go to https://micropython.org/download/
  • For esp32
    • Select Generic ESP32 module under Espressif ESP-based boards

    • The page says

      image
      So select and download the latest v4

  • For esp8266
    • Select Generic ESP32 module under Generic ESP8266 module

3. Get Thonny Ready

  • Open Thonny By Clicking on Applications Menu -> Programming -> Thonny Python IDE
  • Click on Switch to regular mode and restart Thonny

3.1. Install esptools

  • Click on Tools -> Manage Plugins
  • Search for esptool
  • Install
  • Restart Thonny

image

3.2. Install Firmware

  • Click on Run->Select Interpreter
  • Select MicroPython (ESP32)
  • Click on Install and update firmware

image

  • Connect the device with a USB cabale to the raspbery pi
  • Select the correct port
  • Select the firmware file
  • Click Install

image

Test the connection

  • Click on Run->Select Interpreter
  • Select MicroPython (ESP32)
  • Select port
  • OK

image

For setting up development using wifi see Setup webREPL