Method for Analyzing Backtrace Information of ESP32 Crash

Method for Analyzing Backtrace Information of ESP32 Crash

Recently, after upgrading the ESP32 firmware to LVGL 9.2.2 + MicroPython 1.25, previously functioning code began to experience crashes and restarts. At this point, the following error message can be seen: A fatal error occurred. The crash dump printed below may be used to help determine what caused it. If you are not already running … Read more

ESP32S3-BOX3 Keyboard Example Based on LVGL

ESP32S3-BOX3 Keyboard Example Based on LVGL

Previous articles introduced how to flash the <span>ESP32S3-BOX3</span> with <span>LVGL-Micropython</span> firmware, showcasing examples of a clock dial, tab view, button examples, and menu examples. This note will continue to share a keyboard example based on <span>LVGL-Micropython</span>. 1. Introduction to ESP32S3-BOX3 The ESP32-S3-BOX-3 is an open-source AIoT development kit equipped with the ESP32-S3 chip, featuring <span>16 … Read more

ESP32 MicroPython MQTT Development and Testing

ESP32 MicroPython MQTT Development and Testing

1. Connecting ESP32 to the Network Before performing MQTT communication, the ESP32 needs to connect to a WiFi network. Below is the code to connect to WiFi: import network import time def connect_wifi(ssid, password): # Create WiFi client interface wlan = network.WLAN(network.STA_IF) wlan.active(True) # Check if already connected if not wlan.isconnected(): print('Connecting to network…') wlan.connect(ssid, … Read more

MicroPython: The Mini Power of Embedded Systems!

MicroPython: The Mini Power of Embedded Systems!

▼ Click the card below to follow me ▲ Click the card above to follow me MicroPython is a lightweight Python interpreter designed specifically for embedded systems. Its emergence allows us to run Python code on microcontrollers, opening another window to the world of hardware. Imagine being able to control an LED, read sensor data, … Read more

TinyML on ESP32: Create Your Micro Machine Learning Tool in Just a Few Steps!

TinyML on ESP32: Create Your Micro Machine Learning Tool in Just a Few Steps!

In recent years, artificial intelligence (AI) technology has developed rapidly; however, the high power consumption and cost associated with high-performance hardware have limited its application in edge devices. TinyML has emerged to bring the powerful capabilities of machine learning to resource-constrained microcontrollers, such as the ESP32. This article will take you deep into the tinyml-esp … Read more

Using the ESP32 MicroPython File System

Using the ESP32 MicroPython File System

1. Overview of the File System The MicroPython on ESP32 uses the FAT file system by default, stored in internal flash memory or on an external SD card. The main operations include file reading and writing, directory management, and retrieving file information. 2. Common APIs <span>os.listdir()</span>: List directory contents <span>os.mkdir(path)</span>: Create a directory <span>os.rmdir(path)</span>: Remove … Read more

ESP32 MicroPython UART Testing

ESP32 MicroPython UART Testing

1. Key Points of UART Hardware Resources and Configuration UART Resources of ESP32ESP32 supports 3 UART controllers (UART0, UART1, UART2), but actual availability is limited by pin conflicts: UART0: Default for REPL debugging (flashing and serial monitoring), using GPIO1 (TX), GPIO3 (RX) UART1: Some development boards connect to external Flash/SD cards (conflicts should be avoided), … Read more

ESP32 MicroPython WiFi Testing

ESP32 MicroPython WiFi Testing

Development Steps: Connection Process 2. Core Functions Station Mode (Connect to Router) AP Mode (Create Hotspot) Network Scanning HTTP Requests Socket Communication Test Code: 1. Connect to WiFi (Station Mode) import network import time # Configure WiFi SSID ="your_wifi_ssid" PASSWORD ="your_wifi_password" sta_if = network.WLAN(network.STA_IF) sta_if.active(True) if not sta_if.isconnected(): print("Connecting to WiFi…") sta_if.connect(SSID, PASSWORD) # Wait … Read more

MicroPython: The Mini Power of Embedded Systems!

MicroPython: The Mini Power of Embedded Systems!

▼ Click the card below to follow me ▲ Click the card above to follow me MicroPython: The Mini Power of Embedded Systems Is Python getting slim? That’s right, MicroPython is here to do just that. The originally large Python has transformed, putting on a slim suit and fitting into various compact hardware. What is … Read more

MicroPython: The Mini Power of Embedded Systems!

MicroPython: The Mini Power of Embedded Systems!

▼ Click the card below to follow me ▲ Click the card above to follow me —— Another “universe” for Python enthusiasts Today, we won’t talk about elephants dancing or the myriad of web development topics; instead, let’s dive straight into a niche but super cool topic—MicroPython. This is like a “mini clone” of Python, … Read more