当前位置:
文档之家› 基于STM32的温湿度监测..
基于STM32的温湿度监测..
和硬件电路设计思路,实现了温湿度数据实时准确的测量;之后阐述了系统各
个部分的软件设计思路;最后对系统在实际应用中采集到的数据进行了处理,
分析了误差产生的原因,并通过分段线性插值算法对系统非线性误差进行了校
准,同未校准时采集的数据相比,校准后的数据准确度更高,稳定性更好。 在
保证测量效果的基础上,本系统设计中充分考虑到性价比和再次开发周期性等,
《物联网工程设计与实施》项目设计
项目课题:
基于 STM32 的温湿度检测
院 系:
计算机科学与技术学院ຫໍສະໝຸດ 专 业:物联网工程
项目经理:
于渊
学号: 123921043
副 经 理: 谢金光
学号: 123921024
项目成员: 李周恒
学号: 123921002
项目成员:
袁桃
学号: 123921048
项目成员:
颉涛
4.1 STM32 模块 ........................................................................................................................5 4.2 AM2302 介绍 ......................................................................................................................6
具有成本低、设计开发方便、通用性强等特点,不仅适用于现代农业生产中,
还能用于其它工业控制、机械制造等其它领域,具有一定的市场推广价值。
【关键词】:
嵌入式技术,电路设计,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
湿度的采集是作为自动化科学中一个必须掌握的检测技术,也是一项比较实用
的技术。本次实验主要作了如下几个方面工作:首先通过对实时性、准确性、
经济性和可扩展性等四个方向的分析比较之后,选择了 STM32F103VE 微控制器
作为主控芯片和 AM2303 温湿度传感器来实现对温湿度数据进行采集;在
Nokia5110 显示屏上显示出温度和湿度,然后详细介绍了各个模块的工作原理
学号: 123921054
项目成员 项目成员 项目成员 指导教师:
肖青 冯锦荣 唐敏
学号: 学号: 学号:
123921025 123921011 123921023
2014 年 12 月
目录
摘要....................................................................................................................................................2 Absract ...............................................................................................................................................3 一.设计目标....................................................................................................................................4 二.设计方案....................................................................................................................................4 三.实验所需器材............................................................................................................................5 四.设计内容....................................................................................................................................5
5.3.1 显屏程序.................................................................................................................19 六.作品实物展示..........................................................................................................................27 七.设计总结..................................................................................................................................28
4.2.1 产品概述..................................................................................................................6 4.2.2 应用范围..................................................................................................................7 4.2.3 产品亮点..................................................................................................................7 4.2.4 单总线接口定义......................................................................................................7 4.2.5 传感器性能..............................................................................................................8 4.2.6 单总线通信..............................................................................................................9 4.3 Nokia 5110 介绍...............................................................................................................10 4.3.1 SPI 接口时序写数据/命令.....................................................................................11 4.3.2 显示汉字................................................................................................................11 4.3.4 显示图形................................................................................................................11 4.4 原理图设计.......................................................................................................................11 4.5 PCB 板设计 .......................................................................................................................13 五.实验软件设计..........................................................................................................................13