毕业设计(论文)--数字温湿度计的设计
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
数字温湿度计的设计
摘要
温度和湿度是两个最基本的环境参数,人们生活与温湿度息息相关。在工农业生产、气象、环保、国防、科研等部门,经常需要对环境温度与湿度进行测量和控制。准确测量温湿度在生物制药、食品加工、造纸等行业更是至关重要的。因此研究温湿度的测量方法和控制具有重要的意义。
本论文介绍了一种以单片机AT89C52为主要控制器件,以DHT91为数字温湿度传感器的新型数字温湿度计。本设计主要包括硬件电路的设计和系统软件的设计。硬件电路主要包括主控制器,测温湿控制电路和显示电路等。主控制器采用单片机AT89C52,温湿度传感器采用盛世瑞恩半导体公司生产的DHT91,显示电路采用8位共阳极LED数码管,驱动电路用八个PNP型的小电压大电流三极管(S9012)。测温湿控制电路由温湿度传感器和预置温湿度值比较报警电路组成,当实际测量温湿度值大于预置温湿度值时,发出报警信号(发光二极管点亮)。软件部分主要包括主程序,测温湿度子程序,显示子程序和按键子程序等。
本次设计采用的DHT91数字温湿度传感器包括一个电容式聚合体测湿元件和一个能隙式测温元件,并与一个14位的A/D器以及串行接口电路在同一芯片上实现无缝链接,从而具有超快响应,抗干扰能力强,性价比高等优点。用DHT91与AT89C52做的数字温湿度计不仅外围电路简单,而且测量精度比较高。
关键词:温度测量, 湿度测量,AT89C52,DHT91
THE DESIGN OF DIGITAL
THERMOMETERS AND HYGROMETER
ABSTRACT
Temperature and humidity are two basic environmental parameters. people's lives are closely related to temperature and humidity. In the industrial and agricultural production, meteorology, environmental protection, national defense, scientific research, and other departments, we often need to ambient temperature and humidity measurements and control. Accurate measurement of temperature and humidity in the pharmaceutical, food processing, paper making and other sectors is essential. So the temperature and humidity control and measurement method is of great significance.
This paper presents a new design of digital thermometers and hygrometer. It includes a main control device-microcontroller AT89C52 and a digital temperature and humidity sensor. This design includes hardware and system software .The hardware design includes a main controller circuit, Temperature and Humidity measurement and control circuits and show circuit. Main controller uses SCM AT89C52.temperature and humidity sensor uses DHT91 which is yielded by Sensirion (a Semiconductor Corp). Show circuit is a total of eight circuits using digital LED of the anode. Driver show circuit uses eight of the PNP small voltage high current transistor (S9012). Temperature and Humidity control circuit includes the temperature and humidity sensor and preset temperature and humidity values compared alarm circuit. When the actual measurement of temperature or humidity values is greater than the preset temperature or humidity values, the alarm signal (Light emitting diode is lit) is sent. The major software includes the main routines, temperature and humidity routines, show routines and keys routines.
The digital temperature and humidity sensor (DHT91) in this design
includes a capacitive polymer sensing element for power consumption makes it the ultimate choice for even relative humidity and a band gap temperature sensor. Both the most demanding applications are seamlessly coupled to a 14bit analog to digital converter with a 14 and the A / D, as well as serial interface circuits in the same chip on the realization of a Gap link to a super-fast response, anti-interference capability and cost-effective advantages. The design of digital thermometers and hygrometer with AT89C52 and DHT91 not only has a simple external circuit, but also has a high-precision measurement.
KEY WORDS: temperature measurement, humidity measurements, AT89C52, DHT91