ESP32 LoBo Blink

Step 1: Why? The Purpose.

Load MicroPython LoBo firmware in ESP32 and turns the built-in LED on and off by using python command.

Step 2: How? The Process.

  1. Check / Install Python3.

  2. Install ESP Tools.

  3. Erase the flash memory of ESP32 and Load the MicroPython LoBo Firmware.

  4. Install Rshell for communication with ESP32 Board.

  5. Use repl to blink the built-in led.

Step 3: What? The Result.

Verify "What we Get" by "Why we are Doing".

Step 1: Check whether Python3 is Installed or Not. If Not, Install it.

Click Here to Download Python Installer

Note: Do not install Python2.

Step2: Install ESPTOOLS.

cmd> pip install esptool

Note: don't upgrade pip to 20 version.


Check the esptool help command:

cmd> esptool.py -h

Commands of Interest:

-h, -p PORT, flash_id, erase_flash, write_flash

Step 3a: Download and Install CP210x driver

Click here to download CP210x driver: USB to UART bridge.

Step 3b: Connect the ESP32 board and find out the com port number.

Step 3c: Display the esp32 board info.

cmd> esptool.py -p COM3 flash_id

Note: While try to connecting, you have to press the boot button for few seconds until unless connection established.

Replace the COM3 with your COM PORT NUMBER.

Step 3d: download the latest stable version of MicroPython LoBo for ESP32.

Click here to download MicroPython LoBo Firmware for ESP32.

Step 3e: Erase the flash memory of ESP32.

cmd> esptool.py -c esp32 -p COM3 erase_flash

Note: Replace COM3 with your COM PORT Number.

Step 3f: Load Micropython LoBo in ESP32.

Unzip the file in MicroPython_LoBo_esp32_all folder.

Change directory to MicroPython_Logo_esp32_all/esp_32_all/

List the files. (must contain MicroPython.bin)

cmd> esptool.py -c esp32 -p COM3 -b 460800 --before default_reset --after no_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader/bootloader.bin 0xf000 phy_init_data.bin 0x10000 MicroPython.bin 0x8000 partitions_mpy.bin

Step4: Install rshell for communication with ESP32.

cmd> pip install rshell

Check the rshell help command:

cmd> esptool.py -h

Step 5: Communicate with esp32 board and control LED.

Knowledge Base:

In LoBo Firmware the "boot.py" file is inside /pyboard/flash folder.

Click Here for MicroPython Library reference