摘要:为了确保给桌面花卉一个适宜生长的温湿度环境,本文主要介绍了一款温湿度自动控制装置的设计方案以及实现方法。该设计采用了STC89C52RC单片机作为控制器,传感器DHT11作为探头采集实时温湿度。以LCD1602液晶为显示器,用来分行显示实时温湿度和预设值上下限。报警采用了5V有源蜂鸣器,并以4个继电器分别驱动4个温湿度控制装置,实现升降温湿度。传感器采集实时温湿度信号,将数据传给单片机,单片机将采集到的温湿度值与设定值比较,一旦超过预设值便自动报警,并控制相应继电器驱动调节电路。除此之外,使用者可以方便地通过三个独立按键来修改温湿度预设值。最后通过软件对设计的系统进行了仿真,制作了实物,并调试成功。55740
毕业论文关键词:温湿度自动控制,STC89C52RC单片机,LCD1602显示屏,DHT11温湿度传感器
Abstract: To ensure a suitable environment for the growth of the desk flower, an automatic control device for temperature and humidity is introduced in this thesis. The design takes single chip STC89C52RC as controller. sensor DHT11 is used as probe to detect the real-time temperature and humidity. LCD1602 screen is used as display to show the real-time value and the default of temperature and humidity in two lines. The 5V voltage drives the alarm buzzer. Four electric relays respectively drive four devices to control temperature and humidity, so that the function of raising and reducing the temperature and humidity can be implemented. When the sensor has collected the value of the real time temperature and humidity, the data will be pasted to the single chip to be compared with the default. Once the value exceeds it, the speaker alarms. And the corresponding relay will be controlled to drive the circuit. Besides, the user can change the set temperature and humidity with three independent keys easily. After simulating the design by software, the design has been made and debugged successfully.
Key words:automatic control of temperature and humidity,SCM STC89C52RC, LCD1602 screen, Sensor DHT11
目录
1绪论 4
1.1背景 4
1.2现状 4
2总体概述 5
2.1主要功能 5
2.2总体设计框图 5
2.3 工作原理 5
3系统硬件设计 6
3.1主控制模块 6
3.1.1 STC89C52RC的主要性能参数 6
3.1.2 STC89C52RC各引脚功能介绍 6
3.1.3 单片机最小系统 7
3.2 DHT11传感器模块 9
3.2.1 DHT11传感器的主要性能 9
3.2.2 DHT11与单片机的通讯 9
3.3 LCD1602液晶显示模块 11
3.3.1 LCD1602液晶显示的主要性能 11
3.3.2 LCD1602液晶显示与单片机的接口电路 12
3.4按键模块 13
3.5报警模块 13
3.6输出电路设计 14
4系统软件设计 14
4.1主程序流程图 14
4.2 DHT11传感器模块程序流程图 15
4.3 按键扫描程序流程图 STC89C52RC单片机桌面花卉温湿度自动控制装置设计+电路图:http://www.youerw.com/zidonghua/lunwen_60101.html