目录.........................................................................................................2..............................................................................................................................2..........................................................................2...............................................................................................2..........................................................................................................................2..................................................................................................................................................3.............................................................................................................3.............................................................................................................3......................................................................................................................3.........................................................................................................................3.............................................................................................................4.............................................................................................................5.....................................................................................................................6......................................................................................................................6......................................................................................................................7...........................................................................................................................................8.........................................................................................................................................8基于STM32的温度控制实验裴顺利,电子系摘要:请设计一个基于STM32的单片机的具有高精度温度控制的实验,温度范围为10~140℃,实验模块包含控制,测温,加热器和人机交互等,并使用DB18B20温度传感器测量温度的大小,选用搭载ARMCortex-M内核的STM32F429的单片机作为控制的核心部分,人机交互部分采用TFT显示屏显示温度,使用PWM的脉冲宽度调制波驱动加热器。该实验能够实现温度的测量,数据存储,控制和分析功能。为实现三个控制参数的在线修正,使用自适应性强的模糊PID算法。不用建立被控对象的精确模型就能保证加热器功率的实时控制,实现较稳和较快的性能。实验结果表明了该方法的有效性和实用性。关键字:温度实时显示,控制;模糊PID算法;脉冲宽度调制BasedonSTM32temperaturecontrolexperimentPeishunli,DepartmentofelectronicsAbstract:PleasedesignabasedontheSTM32MCUhasahighprecisiontemperaturecontrolexperiment,thetemperaturerangeof10~140,theexperiment℃modulecontainscontrol,temperature,heaterandhuman-computerinteraction,etc.,andthesizeoftheDB18B20temperaturesensorisusedtomeasurethetemperature,theuseofcarryingtheARMarchitecture(MSTM32F429singlechipmicrocomputerascontrolcorepartofthekernel,thehuman-computerinteractionpartadoptsTFTdisplayshowsthetemperature,usingPWMpulsewidthmodulationwavetodrivetheheater.Theexperimentcanrealizetemperaturemeasurement,datastorage,controlandanalysisfunction.Inordertorealizetheonlinecorrectionofthreecontrolparameters,aself-adaptivefuzzyPI...