Wireless track smart car school competition | How to burn ESP32 MicroPython firmware?

  • Ask /Aim: How to burn MicroPython's firmware on ESP32?
  • Principle : Use Thonny software and the circuit on the ESP32 control board to complete the MicroPython firmware update.

 

01 radio track


1. Problem/goal

  On this smart car control circuit board, the core is the ESP32 microcontroller. ·You need to use MicroPython for programming. Originally, there is no MicroPython firmware on ESP32. The following describes the process of burning MicroPython firmware. Usually, the MicroPython firmware needs to be re-downloaded in the following three situations. The following describes the method of downloading the MicroPython firmware in the Thonny software environment. Lay the foundation for future applications.

GM1690277457_1280_720.MPG|_-6

2. Basic principles

  Updating the MicroPython firmware of ESP32 requires three conditions. The first condition is to download the hardware. The ESP32 core board we have at hand has integrated download-related hardware circuits. Behind the USB to serial port, these two transistors constitute the ESP32 firmware download circuit. Therefore no additional download hardware is required. The second condition is to download the software, and the third is the latest version, which is suitable for the MicroPython firmware of the corresponding model of ESP32. These two conditions are automatically met in the Thonny environment. Let's demonstrate the upgrade process in detail.

GM1690278068_1280_720.MPG|_-11

3. Application example

  First assume that the Thonny software has been installed in the computer, and connect the ESP32 control board to the computer through USB. In the Thonny software, enter the Interpreter page through the Options dialog box in the menu Tools, select the ESP32 interpreter, and click Install or Update MicroPytthon below. In Target Port, select the serial port corresponding to USB, which corresponds to COM6 here. Choose ESP32 MicroPython series, there are some corresponding variants later, use the default version 1.20.0. This step can be selected according to the specific model of ESP32 you are using. If the selection is wrong, the software will automatically report an error in the subsequent download process. Next, press the Install button, and the download will start. This process includes procedures such as program erasing and program downloading. Because the MicroPython software is relatively large, the entire download process is relatively slow. After the download is complete, press Done to return to the main interface of Thonny, and you can see the shell prompt information and command prompt. Enter the help command, you can see the corresponding MicroPython version information and main instructions. So far the ESP32 firmware upgrade is complete.

GM1690279004_1280_720.MPG|_-7

4. Practice/Experiment

  According to the process described above, you can download other versions of MicroPython firmware for the ESP32 control board at hand, and test whether the MicroPython of other ESP32 series can be downloaded. Thonny software makes it easier to upgrade ESP32 firmware.

GM1690279352_1280_720.MPG|_-4

 

02 Lecture information


1. Lecture video

How to burn ESP32 MICROPYTHON firmware?

2. Lecture information


■ Links to related literature:

Guess you like

Origin blog.csdn.net/zhuoqingjoking97298/article/details/131922553
Recommended