摘要
提出了一种基于模糊PID控制的智能小车单片机温度控制系统,利用模糊逻辑对温度误差和误差变化率进行模糊化处理,根据模糊规则和推理机制得到模糊控制量。再通过反模糊化得到PID控制器的参数,从而实现对小车单片机温度的精确控制。本文采用STM32F103C8T6单片机作为智能小车的核心控制器,使用DS18B20数字温度传感器测量温度,使用风扇作为执行器。搭建了智能小车单片机温度控制系统的硬件平台,并使用Keil软件编写相应的软件程序。使用MATLAB软件和实验平台对系统的性能进行仿真和实验,分别与传统的PID控制进行比较。实验结果表明,模糊PID控制系统具有更快的响应速度,更小的超调量与稳态误差,更强的鲁棒性和适应性,能够有效地控制小车单片机的温度。
Proposes a smart car microcontroller temperature control system based on fuzzy PID control,it utilizes fuzzy logic to process the temperature error and error rate,obtaining a fuzzy control quantity based on fuzzy rules and inference mechanisms.Then,the PID controller parameters are derived through defuzzification,enabling precise control of the microcontroller temperature in the smart car.The STM32F103C8T6 microcontroller is employed as the core controller for the smart car,with the DS18B20 digital temperature sensor for temperature measurement and a fan as the actuator.The hardware platform of the smart car microcontroller temperature control system is established,and corresponding software programs are written using Keil software.Simulate and experiment performance of the system using MATLAB software and the experimental platform,and compare it with traditional PID control.The experimental results show that the fuzzy PID control system exhibits faster response times,smaller overshoot,reduced steady-state error,greater robustness,and adaptability,effectively controlling the microcontroller temperature of the car.
作者
李菲
LI Fei(Wuhai Vocational and Technical School,Wuhai 016000,China)
出处
《电子测试》
2023年第3期34-37,共4页
Electronic Test