资源描述:
《基于单片机的湿度控制器设计》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、毕业设计说明书基于单片机的湿度控制器设计专业电气工程及其自动化学生姓名班级学号指导教师完成日期2012年5月26日基于单片机的湿度控制器设计摘要:基于单片机AT89C52的湿度控制器的设计,采用电子电路实现对环境湿度的控制,其关键是将对环境采样得到的相对湿度数据转换成相应的电信号,再利用单片机的实时控制和数据处理功能,完成系统对环境湿度的控制,从而能够对环境的湿度进行精确的控制。其中湿度检测电路是由湿度传感器HIH-3610,单总线器件DS2438组成的。单总线器件DS2438在设计中的采用,弥补了以往湿度控制器只考虑湿度因素,而忽略了其他因素的影响,诸如:温度,电压等,从而使得对湿
2、度的控制更加及时,准确。湿度值,温度值适时的显示,使得结果一目了然,更加方便,容易操作。在控制器中,单总线上传输的温湿度信号是数字信号,克服了传统测量系统总线上传输模拟信号易受干扰的缺点,具有抗干扰能力强,成本低的优点。关键词:湿度检测;温度检测;单片机;单总线TheDesignofHumidityControllerBasedonSingleChipMicrocomputerAbstract:ThedesignhasintroducedthedevelopmentoftheprocessofhumiditycontrollerbasedontheSingleChipMicrocom
3、puternamedAT89C52,whichusestheelectroniccircuittorealizethecontrollingofhumidityofcondition,itskeyisthatthetherelativehumiditydatawhichobtainsfromthesamplingofconditionsconversetocorrespondingelectricalsignal,thenusesfunctionsofthereal-timecontrolofsinglechipmicrocomputerandthedataprocessing,co
4、mpletesthecontrollingofthesystemtothehumidityofconditions,thuscancarryontheprecisecontrollingtothehumidityofconditions.HumidityexaminationelectriccircuitarecomposedbyhumiditysensorHIH-3610andsinglebuscomponentDS2438.SinglebuscalledDS2438inthedesignusingmakesuptheformerhumiditycontrollerwhichcan
5、onlyconsiderthehumidityfactorsandneglecteotherinfluencesoffactors,suchas:temperature,voltageandsoon,sothehumiditycontrollingismoreprompt,accurate.Thehumidityvalueandtemperaturevaluearetimelydisplayed,whichcausestheresultclear,moreconvenient,easytooperate.Inthecontroller,thetemperatureandhumidit
6、ysignalisdigital,whichovercometheshortcomingsonthetraditionmeasurementsystembustotransmitthesimulatedsignalwhichareeasilydisturbed,andithasthemeritsofstronganti-interruptingabilityandlowcost.Keywords:Humidityexamination;temperatureexamination;singlechipmicrocomputer;singlebus目录1.概述11.1课题背景11.2课
7、题研究的目的和意义11.3国内外发展状况12.系统设计方案22.1系统控制结构组成22.2系统的性能特点22.3总体方案论证32.4系统硬件的总体实现33.系统的硬件设计33.1AT89C52单片机及时钟电路33.2温湿度检测电路设计63.3键盘与显示电路113.4加湿、除湿电路133.5复位电路144系统软件设计154.1主程序设计154.2读出温湿度子程序设计164.3计算温湿度子程序设计164.4温度转换子程序设计174.5显示数据刷新子程序设计18