基于STM32的温湿度监测

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

《物联网工程设计与实施》项目设计

项目课题:基于STM32的温湿度检测

院系:计算机科学与技术学院

专业:物联网工程

项目经理:于渊学号:123921043

副经理:谢金光学号:123921024

项目成员:李周恒学号:123921002

项目成员:袁桃学号: 123921048 项目成员:颉涛学号: 123921054 项目成员肖青学号: 123921025 项目成员冯锦荣学号: 123921011 项目成员唐敏学号: 123921023 指导教师:

2014 年 12月

目录

摘要 (5)

Absract (7)

一.设计目标 (9)

二.设计方案 (9)

三.实验所需器材 (9)

四.设计内容 (9)

4.1 STM32模块 (9)

4.2 AM2302介绍 (11)

4.2.1 产品概述 (11)

4.2.2 应用范围 (12)

4.2.3 产品亮点 (12)

4.2.4 单总线接口定义 (12)

4.2.5 传感器性能 (13)

4.2.6 单总线通信 (13)

4.3 Nokia 5110 介绍 (15)

4.3.1 SPI接口时序写数据/命令 (15)

4.3.2 显示汉字 (15)

4.3.4 显示图形 (16)

4.4 原理图设计 (16)

4.5 PCB板设计 (17)

五.实验软件设计 (18)

5.1 温湿度传感器DHT22的程序 (18)

5.2 湿度显示函数 (21)

5.3主函数程序 (23)

5.3.1显屏程序 (23)

六.作品实物展示 (32)

七.设计总结 (33)

基于STM 32 的温湿度检测

摘要

随着现代社会的高速发展,越来越多的科学技术被应用于农业生产领域。在温室大棚中对温湿度、二氧化碳浓度等外部参数的实时准确的测量和调节更是保证农业高效生产的重要前提。本次课程设计中实现了一个基于STM32F103VET6的智能温湿度检测系统,目的是实现温湿度的采集和显示,温湿度的采集是作为自动化科学中一个必须掌握的检测技术,也是一项比较实用的技术。本次实验主要作了如下几个方面工作:首先通过对实时性、准确性、经济性和可扩展性等四个方向的分析比较之后,选择了STM32F103VE微控制器作为主控芯片和AM2303温湿度传感器来实现对温湿度数据进行采集;在Nokia5110显示屏上显示出温度和湿度,然后详细介绍了各个模块的工作原理和硬件电路设计思路,实现了温湿度数据实时准确的测量;之后阐述了系统各个部分的软件设计思路;最后对系统在实际应用中采集到的数据进行了处理,分析了误差产生的原因,并通过分段线性插值算法对系统非线性误差进行了校准,同未校准时采集的数据相比,校准后的数据准确度更高,稳定性更好。在保证测量效果的基础上,本系统设计中充分考虑到性价比和再次开发周期性等,具有成本低、设计开发方便、通用性强等特点,不仅适用于现代农业生产中,还能用于其它工业控制、机械制造等其它领域,具有一定的市场推广价值。

【关键词】:嵌入式技术,电路设计,STM32,AM2302温湿度采集,Nokia5110 显示屏,程序设计

Absract

In the design of the curriculum implements a smart temperature and humidity detection system based on STM32F103VET6, the purpose is to realize the acquisition and display of the temperature and humidity, temperature and humidity of the acquisition as a must master in automation science detection technology, is also a practical technology. This experiment mainly made the following several aspects work: first of all, based on the real-time, accuracy, economy and expansibility etc. After analysis and comparison of four directions, STM32F103VE micro-controller as the master control chip and AM2303 temperature and humidity sensors to achieve temperature and humidity data acquisition; On the Nokia5110 screen display the temperature and humidity, and then introduces in detail the working principle of each module and the hardware circuit design, realized the real-time accurate measurement of temperature and humidity data; Elaborated the system after each part of the software design idea; Finally, the system in the practical application of dealing with the data collected, analyzed the reasons of the error, and through the piecewise linear interpolation algorithm for system of nonlinear error calibration, compared with not calibration data, after calibration data with higher accuracy and better stability. Keywords: embedded technology, circuit design, STM32, collecting AM2302 temperature and humidity, Nokia5110 display, the program design

相关文档
最新文档