没有合适的资源?快使用搜索试试~ 我知道了~
基于51单片机的大棚温湿度检测系统的设计与实现大学论文.doc
0 下载量 182 浏览量
2023-07-03
23:08:12
上传
评论
收藏 3.95MB DOC 举报
温馨提示
试读
50页
基于51单片机的大棚温湿度检测系统的设计与实现大学论文.doc
资源推荐
资源详情
资源评论
基于 51 单片机的大棚温湿度监测系统的设计与实现
摘 要:随着经济的快速发展,我国的农业产业结构发生了很大的变化,其中较
为突出的是温室大棚种植业。鉴于大棚种植业在不同的季节都有较大的产量,所
以越来越多的农民采用温室大棚种植蔬菜。温度、湿度和光照度的控制是温室大
棚得到高产量的关键要素。若要测量温湿度和光照度,对于大量的大棚而言,仅
靠温度测量计来实现,需要更多的人力和物力。随着农业的产业范围不断发展与
扩大,采用这种传统测量大棚温湿度的方法,具有很大的局限性和不足之处。如
今,自动监测棚内温湿度的装置被越来越多的用户采用。
本文设计了基于 STC89C52RC 单片机的温室大棚温湿度监测系统,主要包
括电路设计和软件设计等。该系统以单片机为核心通过数字温湿度传感器
DTH11 和光照传感器 BH1750 对大棚的温湿度和光照度进行数据采集。传感器
将采集的数据传输给单片机,单片机根据收到的数据做出相应的分析和处理,其
结果显示在 LCD1602 液晶显示屏上。如果超出预先设定的温湿度和光照度限制
范围,单片机控制开启指示灯,同时控制对应的继电器驱动打开设备工作,使大
棚温湿度值达到适宜的范围值。
关键字:STC89C52RC 单片机;数字温湿度传感器 DTH11;光照传感器 BH1750
FVI;LCD1602 液晶显示屏
Design and implementation of the greenhouse temperature
and humidity detection system based on 51 single chip
microcomputer
Abstract: With the development of economy, great changes have taken place in the
agricultural industry in our country, one of the more prominent changes is the
greenhouse planting. In different seasons, the greenhouse planting has a great
production, more and more farmers use greenhouses to grow vegetables. Controlling
of temperature, humidity and illumination are the key factors of high production in
greenhouse. If we need to measure the temperature and illumination, it will need more
man-power and material resources for a large number of greenhouses. With the
development and expansion of agricultural industry, the traditional methods of
measuring the temperature and humidity will has many limitations and shortcomings.
Now, the automatic monitoring device of temperature and humidity is adopted by
more and more farmer in the shed.
In this paper, the temperature and humidity monitoring system of greenhouse
based on STC89C52RC MCU are designed, mainly including circuit design and
software design. The system uses the single-chip microcomputer as the core through
the digital temperature and humidity sensor DTH11 and light sensor BH1750 to
collect the temperature and humidity and light intensity of the greenhouse. The data
are collected by the sensor feed back to the MCU for the corresponding analysis and
processing according to the received data, the results are shown on the LCD1602
liquid crystal display monitor. If beyond the preset temperature, humidity and light
intensity limit, the microcontroller control open indicator lamp, while controlling the
corresponding relay drive to open the equipment work, so that the greenhouse
temperature and humidity values to the appropriate range of value.
Keywords:-STC89C52RC-MCU;Digital-Temperature-and-Humidity-Sensor-DTH11;
Llight Sensor BH1750 FVI;LCD1602 Liquid Crystal Display Monitor
0
目 录
一、论文(设计)正文.................................................................................................1
1 绪论 ..............................................................3
1.1 选题背景与意义 ..............................................................................................3
1.2 国内外研究现状 ..............................................................................................4
1.3 主要研究内容 ..................................................................................................5
1.4 论文结构 ........................................................................................................5
2 总体分析与设计 ....................................................6
2.1 可行性分析 ......................................................................................................6
2.2 需求分析 ..........................................................................................................7
2.2.1 系统需求 ......................................................................................................8
2.2.2 用户需求 ......................................................................................................8
2.2.3 功能需求 ......................................................................................................8
2.2.4 性能需求分析 ..............................................................................................9
2.3 系统总体结构 ..................................................................................................9
2.3.1 系统设计要求 ..............................................................................................9
2.3.2 系统结构分析 ............................................................................................10
2.4 系统实现原理 ................................................................................................10
3 硬件部分设计 .....................................................11
3.1 STC89C52 单片机 .........................................................................................11
3.1.1 STC89C52 的主要特性 .............................................................................11
3.1.2 STC89C52 的引脚图 .................................................................................12
3.1.3 电源电路设计 ............................................................................................13
3.1.4 复位电路设计 ............................................................................................13
3.1.5 晶振电路设计 ............................................................................................14
3.1.6 按键电路设计 ............................................................................................15
1
3.1.7 控制电路设计 ............................................................................................15
3.2 温湿度传感器 ................................................................................................16
3.2.1 数字温湿度传感器简介 ............................................................................16
3.2.2 工作原理 ....................................................................................................17
3.2.3 温湿度传感器电路 ....................................................................................19
3.3 光照传感器 ....................................................................................................19
3.3.1 光照传感器的简介 ....................................................................................19
3.3.2 光照传感器的主要特性 ............................................................................20
3.3.3 光照传感器电路 ........................................................................................21
3.4 LCD1602 液晶显示屏 ...................................................................................21
3.4.1 LCD1602 简述 ...........................................................................................21
3.4.2 LCD1602 引脚 ...........................................................................................21
3.4.3 LCD1602 指令表 .......................................................................................22
4 软件部分设计 ....................................................25
4.1 程序语言及开发环境 ....................................................................................25
4.2 程序流程图 ....................................................................................................26
4.2.1 系统总体流程图 ........................................................................................26
4.2.2 温湿度控制流程图 ....................................................................................27
4.2.3 光照度控制流程图 ....................................................................................28
4.3 系统模块的代码实现 ....................................................................................29
4.3.1 按键模块 ....................................................................................................29
4.3.2 数据采集模块 ............................................................................................32
4.3.3 数据接收与显示模块 ...............................................................................33
4.3.4 指示灯与继电器模块 ...............................................................................34
5 系统功能实现与测试 ...............................................36
5.1 系统功能实现 ................................................................................................36
5.1.1 显示界面 ....................................................................................................36
2
5.1.2 温度湿度及光照度设置界面 ....................................................................37
5.2 系统测试 ........................................................................................................39
5.2.1 测试说明 ....................................................................................................39
5.2.2 测试结果 ....................................................................................................39
6 总结 .............................................................41
参考文献 ..........................................................42
谢 辞 ............................................................43
二、 附录 .........................................................44
宝鸡文理学院本科毕业设计开题报告 ..................................44
宝鸡文理学院本科毕业设计结题报告 ..................................45
宝鸡文理学院本科毕业设计答辩评分表 ................................47
宝鸡文理学院本科毕业设计答辩过程记录 ..............................48
剩余49页未读,继续阅读
资源评论
yyyyyyhhh222
- 粉丝: 412
- 资源: 6万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 部署yolov8的tensorrt模型支持检测分割姿态估计的C++源码+部署步骤.zip
- 以简单、易用、高性能为目标、开源的时序数据库,支持Linux及Windows, Time Series Database.zip
- python-leetcode面试题解之第198题打家劫舍-题解.zip
- python-leetcode面试题解之第191题位1的个数-题解.zip
- python-leetcode面试题解之第186题反转字符串中的单词II-题解.zip
- 一个基于python的web后端高性能开发框架,下载可用
- python-leetcode面试题解之第179题最大数-题解.zip
- python-leetcode面试题解之第170题两数之和III数据结构设计-题解.zip
- python-leetcode面试题解之第168题Excel表列名称-题解.zip
- python-leetcode面试题解之第167题两数之和II输入有序数组-题解.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功