设计简介:
项目编号:mcuclub-dz-306
单片机类型:STC89C52
具体功能:
1、通过DHT11实时监测车内温湿度
2、通过SGP30实时监测车内CO2浓度
3、通过人体热释电检测车内是否有人,如果有人,当温湿度超过上下限或CO2浓度超过上限值,则声光报警,并通过GSM发送短信“车内有人,请速速查看”
4、通过按键设置各阈值
5、通过LCD1602显示屏显示测量值
总字数:18585
摘 要
随着现代科学技术的发展与进步,汽车已经成为大部分年轻人们日常出行的首选。但是近年来儿童被锁车内至死的案例屡见不鲜,成为儿童乘车安全领域待解决的问题。本文通过查找已有的相关产品,总结儿童误锁车内的原因以及致死的主要因素。设计一款儿童误锁车内远程报警系统总体框架。
本文基于STM32单片机设计了一款儿童防窒息预警系统,通过3款不同种类的传感器分别对车内的温湿度、CO2浓度、是否有人等参数进行监测,并将监测到的数据传输到显示屏进行显示,如果检测到车内有人,当温湿度超过上下限或CO2浓度大于设置最大值,则声光报警,并通过GSM发送短信“车内有人,请速速查看”。
系统总体测试证明,将 GSM 技术以及单片机控制引入系统研究,不仅提高了系统的可靠性,还弥补了已有研究的不足,降低了数据传输延迟率。
关键词:STM32单片机;车内监测;传感器;儿童防窒息预警;GSM
Abstract
With the development and progress of modern science and technology, cars have become the first choice for most young People’s Daily travel. However, in recent years, the cases of children being locked in the car to death are common, which has become a problem to be solved in the field of children’s car safety. In this paper, by searching the existing related products, we summarize the reasons for children to lock the car by mistake and the main factors of death. This paper designs the overall framework of a remote alarm system for children mistakenly locking inside the car.
This paper designs an anti-asphyxiation warning system for children based on STM32 microcontroller. Three different kinds of sensors are used to monitor the temperature and humidity, CO2 concentration and whether there is someone in the car, and the monitored data is transmitted to the display screen for display. If someone is detected in the car, when the temperature and humidity exceed the upper and lower limits or CO2 concentration is greater than the set maximum, the temperature and humidity will increase and the CO2 concentration will increase. The sound and light alarm, and send a text message through GSM “There is someone in the car, please check quickly”.
The overall test of the system proves that the introduction of GSM technology and MCU control into the system research not only improves the reliability of the system, but also makes up for the shortcomings of the existing research and reduces the data transmission delay rate.
Key words: STM32 MCU; In-vehicle monitoring; Sensor; Anti-suffocation warning for children; GSM
目 录
1.绪论
1.1 研究背景及其研究意义
1.2 国内外研究现状
1.3 研究目标和组织结构
2.系统方案设计
2.1 整体方案设计
2.2 主要器件选型选择
2.2.1 主控芯片方案选择
2.2.2 显示模块方案选择
2.2.3 温湿度检测模块方案选择
2.2.4 CO2检测模块方案选
3.硬件电路设计
3.1单片机最小系统
3.1.1主控模块电路
3.1.2 晶振电路
3.1.3 复位电路
3.1.4 电源电路
3.1.5下载电路
3.2 CO2检测模块电路
3.3 DHT11温湿度检测模块电路
3.4 红外检测模块
3.5 GSM短信发送模块(SIM000A)
3.6 LCD1602显示模块电路
3.7 按键电路
3.8 声光报警报警提醒电路模块
4.系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 GSM模块子流程设计
4.5 LCD1602液晶显示子流程
5.仿真调试
5.1 仿真总体设计
5.2阈值设置仿真测试
5.4系统功能仿真测试
5.实物调试
6.1 实物总体设计
6.2阈值设置实物测试
6.4系统功能实物测试
总结与展望
参考文献
致谢
附录
附录A:原理图
附录B:PCB
附录C:程序