基于51单片机的温湿度,风速气象监测系统设计(定稿版)
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
15
3.1 主函数部分
16
3.2 温度湿度函数部分
18
3.3 风速传感器部分
22
3.4LCD1602 部分
26
第四章 系统调试
29
4.1 硬件调试
29
4.2 软件调试
30
摘要 本次设计是采用 MSC-51 系列单片机中的 AT89S51 和 DHTII 构成的低成本的温 湿度的检测控制系统。单片机 AT89S51 是一款低消耗、高性能的 CMOS8 位单 片机, 由于它强大的功能和低价位,冈此在很多领域都是用它。DHTII 温湿度传感器是 一款含有已校准数字输出的温湿度复合传感器,传感器包括一个电阻式感湿原件 和一个 NTC 测温元件,该产品具有品质卓越、超快响应、抗干扰能力强、性价 比 极高等优点。设计主要包括硬件电路的设计和系统软件的设计。
Βιβλιοθήκη Baidu
第一章 绪论
1.1 问题的提出
粮库已经被广泛的运用,是存储粮食的一个重要方式。是粮食仓库的简称, 是粮食仓储企业习惯称谓,属于全民所有制企业,是我国粮食企业的一个重要组 成部分,由粮食部门统一管理,担负着国家粮食储备、地方粮食储备、粮食流通 的主渠道作用,其主要任务是完成粮食的接受、保管和调运输送等粮食流通诸环 节。在不同季节内,尤其是不利于存储食物的季节内进行的一种保护措施。
[请 输 入 学 校 名 称 ]
[请输入专业]论文
基于 51 单片机的温湿度,风 速气象监测系统设计
姓 名: [请输入姓名] 学 号: [请输入学号] 指导教师:[请输入指导教师]
2015 年 7 月 5 日
第一章 绪论
5
1.1 问题的提出
5
1.2 国内外发展动态
5
1.3 研究内容
6
1.4.1 风速测量方法
软件部分包括了主程序、显示子程序、测温湿度子程序。 关键词:51 单片机;DHTII;温湿度传感器;风速传感器;
In this paper, This design is to use the MSC - 51 series microcontroller AT89S51 and DHTII temperature of low cost Humidity test control system.Single chip microcomputer AT89S51 is a low-cost, high-performance CMOS8 MCU,Due to its powerful function and low price, in many areas, this is done with it.DHTII temperature and humidity sensor is Compound containing a have calibration of digital output temperature and humidity sensors, sensor consists of a resistance type wet original And a NTC temperature measuring element, the product has excellent quality, super fast response, strong anti-jamming capability, cost performance Extremely higher benefits.Design mainly includes the design of hardware circuit and the design of system software. This paper introduces the monitoring of wind speed and direction with AT89S52 series single-chip microcomputer data collection and processing system, and display module.The system USES single-chip computer technology for wind speed.Pressure sensors to collect data to MCU processing, again by the LCD display shows the measured wind speed value.The system USES encoder for the wind in the 0-360.Within the scope of the measurement signal collection, in the case of multiple rotation can achieve zero lap automatic, gray code conversion through the single-chip microcomputer processing, measuring wind direction through digital tube display.The design of the software part adopts the module programming, convenient to maintain and improve in the future.Software part includes the main program, display a subroutine, temperature and humidity measurement subroutine.Key words: 51 single chip microcomputer;DHTII;Temperature and humidity;Wind speed sensor;In this paper, This design is to use the MSC - 51 series microcontroller AT89S51 and DHTII temperature of low cost Humidity test control system.Single chip microcomputer AT89S51 is a low-cost, high-performance CMOS8 MCU,Due to its powerful function and low price, in many areas, this is done with it.DHTII temperature and humidity sensor isCompound containing a have calibration of digital output temperature and humidity sensors, sensor consists of a resistance type wet originalAnd a NTC temperature measuring element, the product has excellent quality, super fast response, strong anti-jamming capability, cost performance Extremely higher benefits.Design mainly includes the design of hardware circuit and the design of system software.In this paper, the history of development of human society is closely related to the level of the development and utilization of energy, every new energy development makes the development of human economy produce a leap.In nature, and the wind is a renewable, no pollution and huge reserves of energy.As global warming and energy crisis, countries are stepping up the development and utilization of wind power, as far as possible to reduce carbon dioxide emissions of greenhouse gases, such as the protection and preservation of our earth. This paper introduces the monitoring of wind speed and direction with AT89S52 series single-chip microcomputer data collection and processing system, and display module.The system USES single-chip computer technology for wind speed.Pressure sensors to collect data to MCU processing, again by the LCD display shows the measured wind speed value.The system USES encoder for the wind in the 0-360.Within the scope of the measurement signal collection, in the case of multiple rotation can achieve zero lap automatic, gray code conversion through the single-chip microcomputer processing, measuring wind direction through digital tube display.The design of the software part adopts the module programming, convenient to maintain and improve in the future.Software part includes the main program, display a subroutine, temperature and humidity measurement subroutine. Key words: 51 single chip microcomputer;DHTII;Temperature and humidity;Wind speed sensor;
6
1.4.2 温度湿度测量方法
8
第二张 系统硬件电路分析
8
2.1 单片机部分
8
2.1.1 单片机型号
8
2.1.2 硬件系统的电路
9
2.2 风速测量部分
10
2.2.1 风速传感器
10
2.2.2 信号放大部分
10
2.2.3AD 转化器工作原理
10
2.3 温度湿度采集
12
2.4 显示部分
15
第三章 软件设计
人类社会发展的历史与能源的开发和利用水平密切相关,每一次新型能源的 开发都使人类经济的发展产生一次飞跃。在自然界中,风是一种可再生、无污染 而且储量巨大的能源。随着全球气候变暖和能源危机,各国都在加紧对风力的开 发和利用,尽量减少二氧化碳等温室气体的排放,保护我们赖以生存的地球。
本文介绍了用 AT89S52 系列单片机设计监测风速风向的数据采集处理系统 以及显示模块。对于风速该系统采用单片机技术。压力传感器采集的数据交给 单片机处理,再由液晶显示屏显示测量的风速值。对于风向该系统利用编码器 在 0-360。范围内进行测量收集信号,在多圈旋转的情况下能够实现单圈自动归 零,通过单片机进行格雷码转化处理,测量风向通过数码管显示。软件部分的设 计采用模块编程,方便今后的维护和改进。