资源描述:
《模糊温度控制器的软硬件设计.doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、摘要本设计完成基于单片机的模糊温度控制器的软硬件设计。本设计完成了将模糊控制与PID控制相结合方法用于工业温度控制领域,实现了对大滞后、慢时变、非线性的复杂系统的控制。在硬件方面,Fuzzy-PID温控器采用单片机作为控制核心,采用Pt100作为温度传感器,设计了温度测量转换电路,模/数转换器TLC2543实现温度数据采集。HD7279构成良好的人机接口模块,完成温度设定值的输入和温度数据实时显示。输出通道由D/A转换器和AD694芯片组成,将控制量转换为现场总线标准的电流信号4~20mA。在软件方面,本设计完成了并行Fuzzy-PID复
2、合控制器的主流程图和各子流程图。编写的软件程序经过编译连接无误。在设计过程中,采用Multisim软件对Pt100的测温电路进行了仿真,实现了温度采集精度的设计要求。本设计中的模糊PID控制器,既具有模糊控制灵活、适应性强的优点,不依赖于控制对象有精确的数学模型,同时又具有控温精度高,动态性能好、受系统参数变化影响小的优点。关键词:Pt100;温度控制;单片机;模糊-PID控制;MultisimIIABSTRACTThisdesignhascompletedthedesignofsoftwareandhardwareoftheFuzzy-
3、PIDtemperaturecontrollerbasedonMCU.IthasmadethecombinationmethodofFuzzycontrolandthePIDcontrolusedintheindustrytemperaturecontroldomain,whichhasrealizedthecontrolofcomplexsystemoflong-timedelay,slowtime-variable,andthenon-linear.Inthehardwaredesign,Fuzzy-PIDtemperaturecon
4、trollertakesSMCasthecoreofthecontrol,adoptsPt100asthetemperaturesensor,andhasdesignedthetemperaturesignalmeasurementandconvertcircuit;ADCTLC2543isusedtofinishithetemperaturedatagathering.Thefriendlyman-machineinterfacemoduleiscomposedofHD7279,whichcancarryonthefunctionsof
5、theinputofthetemperaturesettingvalueandtherealtimedisplayoftemperaturedata.TheoutputchanneliscomposedofDACandAD694,whichcanconvertthecontrolquantityintofieldbusstandardcurrentsignal4~20mA.Inthesoftwaredesign,thisdesignhascompletedthemainflowchartoftheparallelFuzzy-PIDcomp
6、oundcontrollerandeachsub-flowchart.Theprocedureofsoftwareisunmistakableaftercompilationandlink.Inthedesignprocess,itadoptsMultisimsoftwaretocarryonthesimulationofthePt100temperaturesignalmeasurementandconvertcircuit,andthedesignhasmettherequestsoftemperaturemeasurementpre
7、cision.TheFuzzy-PIDcontrollerinthisdesign,notonlyhasthecharactericsofflexibilityandadaptabilityofFuzzycontrol,whichdoesnotdependonthecontrolledobjectthathastheprecisemathematicalmodel,butalsohasadvantagesofhighprecisiontemperaturecontrol,andthegooddynamicperformance,which
8、isaffectedlittlebythechangeofsystemparameters.Keywords:Pt100;TemperatureControl;SMC;Fuzzy-PIDCon