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

Espressif ESP32-S3: The ‘Super Chip’ Opening a New Era of Smart IoT

A high-performance chip that injects strong power into your smart devices, leading to infinite possibilities for the future. In today’s global wave of the Internet of Things (IoT), every device yearns for a smart “brain” and efficient “communication capabilities.” Espressif Technology, as a leader in wireless communication and artificial intelligence IoT processor chips, is bringing … Read more

Is the Stack Size of RTOS Tasks Related to the Amount of Task Code?

Recently, a colleague raised the following question:“I have a lot of code in my task; does this mean that the stack for this task needs to be allocated larger?”Below, we will describe the relationship between the amount of task code and stack allocation. 1RTOS Task Stack Allocation Many RTOSs on the market require the stack … Read more

ARM Abandons Cortex Brand, Future Chip Landscape Set for Major Changes

Arm has recently disclosed its product brand restructuring strategy, planning to provide self-developed chips to customers, while also mentioning its reliance on the Chinese market and the competitive risks posed by RISC-V.ARM has suddenly announced the abandonment of the Cortex brand, which it has used for twenty years. This once-arrogant British chip giant may indeed … Read more

OpenWrt Core Component: libubox (4) – ulog

This is the fourth article introducing the core component of OpenWrt, libubox. Here, we will discuss the ulog module, which is widely used in the OpenWrt software ecosystem. Almost all core modules in the system utilize it to save logs, so let’s get started.The ulog module is a wrapper for the syslog programming interface. If … Read more

ZTE’s Cross-Border RISC-V Development

In recent years, RISC-V chips have developed rapidly worldwide, especially in the Chinese market, with domestic manufacturers active in various fields.ZTE Corporation, as a less frequently mentioned giant, joined the RISC-V International Foundation as early as 2018, deeply participating in standard formulation.Previously, it disclosed few details about its RISC-V chips, but early last month, it … Read more

RISC-V Performance Counters and Timer Extensions – Zicntr and Zihpm

Introduction: RISC-V (pronounced “risk-five”) is a new instruction set architecture (ISA) originally designed to support research and education in computer architecture. However, in recent years, it has evolved into a standardized, free, and open architecture for industrial implementations. One significant advantage of the RISC-V instruction set is its scalability, allowing users to select appropriate extension … Read more

Understanding the Microcontroller Startup Process (STM32) for Hardware Engineers, Including a Troubleshooting Manual for Startup Issues

As a hardware engineer, have you ever encountered these issues: The circuit board shows no response after power is applied, like a “brick”. The program occasionally starts, but sometimes hangs. Peripheral initialization is abnormal, yet the code logic is correct. These issues stem from startup process anomalies 80% of the time! Let’s learn about the … Read more

Design and Implementation of an Independent Keyboard Simulation System Based on Microcontroller

1. Control Requirements1.Keyboard Structure: An independent keyboard structure is adopted, consisting of 4 mechanical keys K0~K3;2.Debounce Algorithm: A software delay debounce algorithm is used to effectively eliminate interference caused by mechanical key bounce;3.Display Method: A static display using a digital tube is employed to clearly and real-time show the value of the pressed key.2. Simulation … Read more

Design and Implementation of a DC Motor Control Simulation System Based on Microcontroller

1. Control Requirements1. Start/Stop Control: A light touch on the “Start/Stop” button allows for flexible switching of the motor’s operational state. Each time this button is pressed, the motor accurately toggles between running and stopping states, making operation simple and efficient;2. Direction Control: The “Forward/Reverse” button allows for easy changes in motor direction. Each press … Read more