基于单片机的温湿度实验箱设计.doc
上传人:天马****23 上传时间:2024-09-12 格式:DOC 页数:80 大小:2.3MB 金币:10 举报 版权申诉
预览加载中,请您耐心等待几秒...

基于单片机的温湿度实验箱设计.doc

基于单片机的温湿度实验箱设计.doc

预览

免费试读已结束,剩余 70 页请下载文档后查看

10 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

本科生毕业设计(论文)PAGEIV摘要温湿度实验箱在现实生活中有着广泛的应用,温湿度实验箱能够提供一个恒湿或恒温的环境,能够实现温度和湿度的连续可调,汽车摩托、航天航空、船舶兵器等都需要进行温度和适度的实验,以检验其各项性能指标的稳定性。本文设计系统分为现场设备和监控室设备两部分,对每一个部分都进行了软件和硬件的设计,本系统带有RS232通讯接口电路,CPU部分选用AT89S52单片机,温度传感器采用AD590温度传感器,湿度传感器采用霍尼韦尔的相对湿度传感器HIH-3610-1,通信模块采用CAN总线进行通信远传。监控室采用PC机进行显示并控制,在软件部分设计了下位机主程序、下位机信息采集子程序、下位机A/D转化子程序、CAN总线通信子程序等程序,对被控对象的控制设计了PID算法子程序进行控制,通过软件和硬件的设计,实现了一台实验箱对温度的调控功能并实现了实验箱内温湿度数据的远传和远程控制,使得监控室内的一台PC机能同时监控15台现场设备的运行状况。本设计实现了基于单片机温湿度试验箱的设计,采用该方案设计的温湿度试验箱具有低功耗、高效能等特点,具有很高的安全性、经济性和可靠性。关键词:温湿度;试验箱;单片机;CAN总线AbstractTemperatureandhumiditytestboxiswidelyusedinreallife,thetemperatureandhumiditytestboxcanprovideaconstanthumidityortemperatureenvironment,continuouslyadjustabletoachievetemperatureandhumidity,automobilemotor,aerospace,weapons,shipsneedexperimentaltemperatureandmoderate,totesttheirstabilitiesofvariousperformanceindicators.Inthispaper,thedesignsystemisdividedintoequipmentandcontrolroomequipmenttwoparts,toeverypartofthedesignofsoftwareandhardware,thesystemwithRS232communicationinterfacecircuit,CPUpartusesAT89S52microcontroller,temperaturesensorusingAD590temperaturesensor,humiditysensorusingtherelativehumiditysensorHIH-3610-1ofHoneywell,acommunicationmodulebasedonCANbuscommunicationtransmission.ThecontrolroombyPCfordisplayandcontrol,inthepartofsoftwaredesignofthemainprogram,thelowercomputerinformationacquisitionsubprogram,theA/Dconversionsubroutine,CANbuscommunicationsubroutineprogramtocontrolthecontrolledobject,designthePIDcontrolalgorithmsubroutine,throughthedesignofsoftwareandhardware,realizesthecontrolfunctiontableexperimentalboxonthetemperatureandtherealizationoftheexperimentalboxtemperatureandhumiditydatatelemeteringandremotecontrol,thecontrolroomandtheonePCfunctionatthesametime15theoperatingstatusofequipment.DesignandimplementationofthedesignofMCUtemperatureandhumiditytestchamberbasedonthetemperatureandhumiditytestchamber,theschemehaslowpowerconsumption,highefficiencyandothercharacteristics,andhastheadvantagesofsafety,economya