毕 业 论 文(设 计)
论文(设计)题目:大棚温湿自动控制系统
姓 名 李保峰 学 号 12042010115 院 系 机电工程学院 专 业 机械设计与制造及其自动化 年 级 10级本科(4)班 指导教师 贾蒙
2014年 06 月 25 日
目 录
摘 要 ..................................................... 1 ABSTRACT ................................................... 2 第一章 绪论 ................................................ 3 1.1 选题背景 .............................................. 3 1.2 选题意义 .............................................. 3 1.3 选题目的 .............................................. 4 第2章 整体设计 ............................................ 5 2.1设计总体介绍 .......................................... 5 2.2方案选择 .............................................. 5 2.3 仿真调试软件介绍 ...................................... 6 2.3.1 Proteus简介 ..................................... 6 2.3.2 KEIL C51 编译器简介 .............................. 7 第3章 硬件部分设计 ....................................... 10 3.1单片机片介绍 ......................................... 10 3.1.1单片机的功能特性描述 ............................ 10 3.1.2单片机的最小系统 ................................ 11 3.2 LCD1602介绍 ......................................... 13 3.2.1 LCD1602主要技术参数 ............................ 13 3.2.2 引脚功能说明 .................................... 13 3.2.3 LCD1602的指令说明及时序 ........................ 14 3.2.4 显示电路 ........................................ 16
1
3.3 SHT11温湿度传感器介绍 ............................... 16 3.3.1 SHT11介绍 ...................................... 16 3.3.2 SHT11引脚介绍及工作原理 ........................ 17 3.3.3 DHT11数据结构 .................................. 20 3.3.4 SHT11 应用设计 .................................. 21 3.4电路继电器控制电路 ................................... 25 3.5报警电路的设计 ....................................... 26 第4章 软件系统设计 ....................................... 28 4.1总体设计 ............................................. 28 4.2 SHT11测量流程 ....................................... 32 4.3 LCD1602显示流程 ..................................... 33 4.4 仿真与调试 ........................................... 34 总 结 .................................................... 38 致 谢 .................................................... 39 参考文献 .................................................. 40 附录一 .................................................... 41 附录二 .................................................... 42
2
新乡学院本科毕业论文(设计)
摘 要
本课题运用AT89C52单片机、SHT11温湿度传感器、继电器和M4QA045电动机、蜂鸣器等元器件,设计了温湿度报警电路、M4QA045电机驱动电路,实现了温室大棚中温度和湿度的控制和报警系统,解决了温室大棚人工控制测试的温度及湿度误差大,且费时费力、效率低等问题。该系统运行可靠,成本低。系统通过对温室内的温度与湿度参量的采集,并根据获得参数实现对温度和湿度的自动调节,达到了温室大棚自动控制的目的。促进了农作物的生长,从而提高温室大棚的产量,带来很好的经济效益和社会效益。
关键词: AT89C52单片机、SHT11温湿度传感器、 温室、自动控制、自动检测
1
新乡学院本科毕业论文(设计)
ABSTRACT
The paper use AT89C52 Single chip microcomputer, SHT11 Temperature and humidity sensor, Relay, M4QA045 motor, buzzer, and other components and parts, which design Temperature and humidity alarm circuit, M4QA045 Motor drive circuit and solve the error of Manual control Temperature and humidity test, meanwhile the problem of Time consuming, effort consuming, low efficiency. This system is reliable and low cost. The system has passed the collection of temperature and humidity parameters, and according to parameters to realize automatic adjustment of the temperature and humidity, thus can achieves the purposes of greenhouse automatic control. By doing so, which can promote the crops production and improve the greenhouse production, also bring good economic benefits and social benefits.
Key Words: AT89C52 Single chip microcomputer, SHT11 Temperature and humidity sensor, greenhouse, Automatic control, Automatic detection
2