1、 I 摘摘 要要 本次设计是采用 MSC-51 系列单片机中的 AT89S51 和 DHT11 的低成本的温湿 度的检测系统。本设计主要包括硬件电路的设计和系统软件的设计。硬件电路主 要包括单片机、温湿度传感器、显示模块、报警器以及键盘等 5 部分,由 DHT11 温湿度传感器及 1602 字符型液晶模块构成系统显示模块,该系统电路简单、工 作稳定、集成度高,调试方便,测试精度高,具有一定的实用价值。其中测温湿 度控制电路由温湿度传感器和预设温度值比较报警电路组成, 用户根据需要预先 输入预设值,当实际测量的温湿度大于预设的温湿度数值时,发出报警信号(蜂 鸣器蜂鸣) 。软件部分包括了主程序、显
2、示子程序、测温湿度子程序。 本次设计采用的 DHT11 温湿度传感器是一款含有已校准数字输出的温湿度 复合传感器,传感器包括一个电阻式感湿原件和一个 NTC 测温元件,并与一个高 性能的 8 位单片机相连接。 因此该产品具有品质卓越、 超快响应、 抗干扰能力强、 性价比极高等优点。单片机 AT89S51 是一款低消耗、高性能的 CMOS8 位单片机, 由于它强大的功能和低价位,因此在很多领域都是用它。 【关键词】【关键词】 温度测量 湿度测量 AT89S51 DHT11 II ABSTRACT This design is the use of MSC-51 Series MCU AT89S5
3、1 and DHT11 in the low-cost temperature and humidity detection system. This design includes the design of hardware and system software design. Hardware circuit includes a microcontroller, temperature and humidity sensors, display module, the alarm and the keyboard 5, the DHT11 temperature and humidi
4、ty sensor and 1602 constitute a system of character LCD module display module, the system circuit is simple, stable, high integration, commissioning Convenient, high precision, has some practical value. Temperature and humidity control circuit in which the temperature and humidity sensors and compare the value of the preset temperature alarm circuit, the user input required pre-default value, when the actual temperature and humidity measurements of temperature and humidity is greater than