Simulation Design of a Remote Water Level Monitoring System Based on Microcontroller

1. Control Requirements1. When the water level in the water tower exceeds 4.5 meters, an ultra-high water level warning is triggered, the ultra-high water level alarm light is turned on, and the water pump operation is immediately stopped;2. When the water level in the water tower is below 0.5 meters, an ultra-low water level warning … Read more

How Embedded Experts Optimize Microcontroller Programs from a Global Perspective

I am Lao Wen, an embedded engineer who loves learning.Follow me to become even better together!Program Structure Optimization 1. Program Writing Structure Although the writing format does not affect the quality of the generated code, certain writing rules should still be followed during actual programming. A clearly written program is beneficial for future maintenance. When … Read more

Design and Implementation of a Basic Control Simulation System for Intelligent Cars Based on Microcontrollers

1. Control Requirements1. Forward Control: When the “Forward” button is pressed, the “Forward” indicator light turns on, and the left and right drive wheels rotate synchronously in the forward direction, enabling the car to move straight ahead;2. Reverse Control: When the “Reverse” button is pressed, the “Reverse” indicator light turns on, and the left and … Read more

Understanding the Adapter Pattern Implementation in C for Microcontrollers

Content In simple terms, the adapter pattern converts the interface of one class into another interface that the client expects. This pattern is often used when we are programming, especially in projects involving microcontrollers. However, when we are working on projects and writing code, we often do not consider many factors. If we want the … Read more

Our Team Achieves Outstanding Results at the 17th Fujian Province College Student Microcontroller Application Design Competition

On May 25, the 17th Fujian Province College Student Microcontroller Application Design Competition, hosted by the Fujian Provincial Department of Education and co-organized by the Fujian Electronic Society, was held at Xiamen University of Technology. Our team, the “Big Eater” from the Intelligent Blue Ocean, consisting of members Lin Qijing, Xu Gaojun, Guo Yating, and … Read more

EMC Testing and Troubleshooting for Microcontroller Systems

WeChat Official Account:Electromagnetic Compatibility Home 01、Introduction For engineering technicians engaged in the design of microcontroller application systems (both hardware and software), mastering certain EMC testing techniques is essential. 02、About EMC EMC: Electromagnetic Compatibility, refers to the ability of a device or system to operate as required in its electromagnetic environment without causing intolerable electromagnetic interference … Read more

Detailed Explanation of GPIO Operations for 32-bit Microcontrollers

32 Single Chip Microcontroller I O When it comes to the IO of the 32-bit microcontroller, taking the F1 series as an example, we first need to mention: 1 initialization function: void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct); 2 functions to read input levels: uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); uint16_t GPIO_ReadInputData(GPIO_TypeDef* GPIOx); 2 functions to read output … Read more

Can Microcontrollers Truly Execute Multiple Tasks Simultaneously?

Many students ask me: Why does my LED light blink while the serial port data reception gets stuck? I want to read data from two sensors simultaneously, why is it that one of them always reads incorrectly? Why can’t my program control the motor while sending data? The most classic question is: why can’t I … Read more

Microcontroller (4) | Microcontroller Bus and Memory Expansion

7. Microcontroller Bus and Memory Expansion Data Memory Expansion (SRAM) 6264 is the most commonly used. A0-A12 address lines, D0-D7 data lines. CE chip select OE read enable WE write enable Reading external data RAM timing, MOVX A, @Ri or MOVX A, @DPTR starts reading When low, the eight-bit address data enters the latch, P0 … Read more