基于stm32的室内环境监测系统 9746字

本设计实现了基于STM32的室内环境监测系统,包括温度、湿度、烟雾和光照的监测。系统采用STM32F103C8T6芯片作为主控,搭配DHT11、MQ-2、光敏电阻等传感器采集数据,通过0.96OLED屏幕显示,并通过有源蜂鸣器和继电器模拟空调控制。软件设计包括监测、显示和报警功能,通过Keil5编写程序,实现了温湿度超过预设阈值时的报警和显示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

毕 业 设 计 说 明 书

课题名称

基于STM32的室内环境监测系统

院    系

计算机与软件学院

专    业

嵌入式技术与应用

班    级

嵌设1913

学    号

1902423134

学生姓名

刘倚帆

指导教师:

白顺科

2022 年  5 月  7 日

计算机与软件学院

毕业设计(论文)诚信承诺

    

我谨在此承诺:本人所写的毕业论文《基于STM32的室内环境监测系统》,由本人独立完成,没有抄袭行为,凡涉及其他作者的观点和材料,均作了注释与说明,若有不实,后果由本人承担。

承诺人(签名):

2022年  5月 7日

目录

1 绪论...........................................................1

    1.1 背景和意义.............................................1

    1.2系统设计目标..................................1

2 系统分析与设计.................................................2

3 硬件设计 ......................................................3

    3.1硬件总体设计............................................3

    3.2硬件选型.................................................4

     3.2.1 STM32F103C8T6最小系统..................4

     3.2.2 DHT11模块................................4

     3.2.3 MQ-2模块.....................................5

     3.2.4 光敏电阻模块................................6

     3.2.5  0.96OLED模块.........................7

     3.2.6有源蜂鸣器模块.........................8

     3.2.7 继电器模块...................................9

     3.3 小结..............................................10

4 软件设计.....................................................11

     4.1 软件总体设计..........................................11

     4.2 主程序设计............................................12

     4.3 温湿度监测设计........................................13

     4.4 烟雾监测设计..........................................15

     4.5 光照监测设计.........................................17

     4.6 屏幕显示设计.......................................18

5 系统实现与测试............................................20

     5.1 系统的实现..................................21

     5.2 系统的测试.....................................21

6 结论.......................................................23

致谢...........................................................24

参考文献................................................25

摘要

本课题旨在研究温湿度检测控制系统:通过DHT11温湿度传感器检测环境温湿度,将采集到的数据传给单片机进行处理,单片机处理后,当温湿度高于或者低于设定阀值后进行LED指示灯报警,实现自动化温湿度控制系统。采用STM32F103C8T6最小系统作为主控芯片实现最小系统、温湿度传感器、LED灯指示电路、程序下载电路组成,实现本次课题的硬件电路的设计与搭建。通过Keil5软件编写单片机程序,设置温湿度的阀值,采用Altium Designer设计绘制本次课题的原理图,软硬件结合设计,进行仿真实现本次课题的功能。本次课题使用到的技术:KEIL软件编译程序、Altium Designer设计原理图并仿真、温湿度传感器的使用、数码管驱动方法、单片机最小系统。

关键词:环境监测;光敏电阻模块;STM32F103C8T6芯片;DHT11模块; MQ-2模块

Summary

The purpose of this project is to study the temperature and humidity detection and control system: detect the ambient temperature and humidity through the DHT11 temperature and humidity sensor, transmit the collected data to the microcontroller for processing, and after the microcontroller is processed, when the temperature and humidity are higher or lower than the set threshold, the LED indicator alarm is carried out to realize the automatic temperature and humidity control system. The STM32F103C8T6 minimum system is used as the main control chip to realize the minimum system, temperature and humidity sensor, LED lamp indication circuit, and program download circuit to realize the design and construction of the hardware circuit of this project.Through Keil5 software, we write a microcontroller program, set the threshold of temperature and humidity, use Altium Designer design to draw the schematic of this project, comb

评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值