PID Control Algorithm Based on STM32

PID Control Algorithm Based on STM32

Click the blue text above to follow us Embedded Training – Choose Jufeng Zhilian Implementation of a PID temperature control system based onSTM32, integrating hardware configuration, PID algorithm optimization, and display module design: 1. System Architecture Design 2. Hardware Selection and Circuit Design 1. Core Component List Module Recommended Model Key Parameters Temperature Sensor DS18B20 … Read more

Syswonder Community Releases hvisor v0.2: Enhanced Device Passthrough, Broader OS Support, and More Domestic Hardware Compatibility

Syswonder Community Releases hvisor v0.2: Enhanced Device Passthrough, Broader OS Support, and More Domestic Hardware Compatibility

In recent years, with the accelerated development of domestic processors, a multi-architecture ecosystem has become a reality. How to build a unified virtualization capability across diverse hardware platforms has become a core issue of concern in the industry. Developed by the Syswonder Open Source Community (Syswonder), hvisor is a Type-1 lightweight virtual machine monitor (Hypervisor) … Read more

Using Linux Does Not Equal Localization: Don’t Let ‘Open Source Kernel’ Mislead Your Judgment of ‘Self-Control’

Using Linux Does Not Equal Localization: Don't Let 'Open Source Kernel' Mislead Your Judgment of 'Self-Control'

Using Linux Does Not Equal Localization: Don’t Let ‘Open Source Kernel’ Mislead Your Judgment of ‘Self-Control’ It is often heard around me: “Our company uses the Linux system, so that must mean we are localized, right?” This statement is half right and half wrong—Linux is indeed an important technological cornerstone of domestic operating systems, but … Read more

Embedded C Language Programming

Embedded C Language Programming

The Relationship Between .h Files and .c Files When referring to the programs of experts, I found that the strict programs written by others all include a “KEY.H” file, which defines the functions used in the .C file, such as Keyhit(), Keyscan(), etc.The .H file is a header file, probably meaning ‘Head’, which is necessary … Read more

Differences Between Firmware and Software in Embedded Development

Differences Between Firmware and Software in Embedded Development

In embedded system development, “Firmware” and “Software” are two concepts that are closely related yet fundamentally different. They together constitute the operational logic of a device, but they have clear boundaries in terms of hardware dependency, functional positioning, and development models — firmware is the “soul of the hardware,” responsible for bringing the hardware “to … Read more

Switching Tasks in ThreadX RTOS

Switching Tasks in ThreadX RTOS

Using the QEMU simulator to outline the ThreadX task scheduling process.0. Build ExampleCreate Task 0 and Task 1 #include "tx_api.h" #include "tx_thread.h" // Task 0 entry void thread_0_entry(ULONG thread_input){ TX_THREAD *current_thread; thread_0_counter++; TX_THREAD_GET_CURRENT(current_thread); tx_thread_terminate(current_thread); } // Task 1 entry void thread_1_entry(ULONG thread_input){ while(1) { /* Increment the thread counter. */ thread_1_counter++; while(1); }} // Create … Read more

Detailed Explanation of FreeRTOS Multitasking Execution Principles – Part Two

Detailed Explanation of FreeRTOS Multitasking Execution Principles - Part Two

Detailed Explanation of FreeRTOS Multitasking Switching Underlying Principles 6. Task State Transitions 6.1 State Transition Diagram Create Ready Queue CPU Execution [NEW] —–> [READY] —–> [RUNNING] ↑ ↓ ↓ ↑ ↓ [Time Slice Expired] ↑ ↓ ↓ [Waiting for Event] [BLOCKED] [Delay Waiting] [SUSPENDED] 6.2 State Transition Conditions Transition Trigger Condition Description NEW → READY … Read more

Optimizing Microcontroller Memory Usage with Map Files

Optimizing Microcontroller Memory Usage with Map Files

The company asked me to interface a visibility detection instrument with a product from a few years ago. The mainboard uses the STM32L051C6 microcontroller to communicate with the visibility detection instrument via RS485. In theory, this should just involve implementing a serial port data reception processing logic. However, after adding the code and compiling, it … Read more

Sharing Learning Experiences in Microcontroller Principles (39) | Wang Jinke’s Insights on Scoring 97

Sharing Learning Experiences in Microcontroller Principles (39) | Wang Jinke's Insights on Scoring 97

Author: Wang Jinke College: School of Electrical Engineering Major: Rail Transit Signal and Control Grade: 2022 PART.1Introduction The course on Microcontroller Principles and Applications is offered by most majors in the School of Electrical Engineering and is characterized by its complex content and difficulty in understanding. Mastering this subject can effectively stimulate interest in learning … Read more

Analysis of the Logical Structure of the MCS-51 Microcontroller

Analysis of the Logical Structure of the MCS-51 Microcontroller

Analysis of the Logical Structure of the MCS-51 Microcontroller The MCS-51 microcontroller (such as the classic 8051) is a milestone design in embedded systems, with its logical structure centered around modular integration and Harvard architecture, perfectly balancing performance and cost. Below is a detailed breakdown of its logical structure: 1. Core Control Unit (CPU) 8-bit … Read more