设计简介:
项目名:环境监测(实物)
项目编号:mcuclub-dz-107
单片机类型:STM32F103C8T6
具体功能:
1、通过DHT11检测温湿度,温度有显示提示(舒适、过低、过高),湿度有显示提示(舒适、干燥、潮湿),超过设置的上下限值,进行声光报警
2、通过SGP30检测CO2浓度,CO2浓度有显示提示(适宜、过高),超过设置的上限值,进行声光报警,并进行通风
3、通过内部的RTC获取时间,并可按键修正时间
4、通过按键可设置各阈值
5、通过OLED显示各数据
总字数:15046
实物链接:点击跳转
设计说明书链接:点击跳转
开题报告链接:点击跳转
答辩PPT链接:点击跳转
摘 要
此次设计一款基于STM32F103C8T6单片机的环境监测实物项目。该项目旨在实现温湿度和CO2浓度的实时监测,并根据预设的上下限值进行声光报警和相应的控制措施。具体功能包括温湿度检测并提供舒适、过低、过高、干燥和潮湿的显示提示,CO2浓度检测并提供适宜和过高的显示提示,以及超过设定上限值时触发声光报警和通风功能。系统使用DHT11传感器实时监测环境温湿度,并根据测量结果显示相应的舒适度状态,如舒适、过低或过高的温度,以及舒适、干燥或潮湿的湿度。当温湿度超出设定的上下限值时,系统将自动触发声光报警,提醒用户环境状态异常。同时,系统使用SGP30传感器检测CO2浓度,并根据测量结果显示适宜或过高的CO2浓度提示。当CO2浓度超过设定的上限值时,系统将触发声光报警,并启动通风措施,以确保环境中的CO2浓度得到有效控制。系统还具备时间校正功能,通过内部的RTC实时时钟获取时间,并通过按键实现时间修正,确保时间准确。用户可以通过按键设置各项阈值,以满足不同环境需求。最后,系统使用OLED显示屏展示各项测量数据,提供直观的信息展示,方便用户获取环境状态。该环境监测实物项目通过单片机的控制和传感器的测量,为用户提供了一个实时监测和控制环境参数的可靠系统,具有广泛的应用前景。。
关键词:环境监测;STM32F103C8T6;温湿度检测;CO2浓度检测;OLED显示屏
ABSTRACT
This project presents the design of an environment monitoring physical project based on the STM32F103C8T6 microcontroller. The main goal of this project is to achieve real-time monitoring of temperature, humidity, and CO2 concentration, and to trigger audio-visual alarms and corresponding control measures based on predefined upper and lower limits. The specific functionalities include temperature and humidity sensing with display prompts for comfort, too low, too high, dry, and humid conditions. Additionally, CO2 concentration is measured with display prompts for suitable and too high levels, and when exceeding the upper limit, the system triggers audio-visual alarms and initiates ventilation.The system uses the DHT11 sensor to continuously monitor ambient temperature and humidity, displaying corresponding comfort levels such as comfortable, too low, or too high temperatures, as well as dry or humid humidity conditions. When the temperature and humidity exceed the preset upper and lower limits, the system automatically triggers audio-visual alarms to alert users of abnormal environmental conditions.Furthermore, the system utilizes the SGP30 sensor to measure CO2 concentration, displaying prompts for suitable and too high levels. When the CO2 concentration exceeds the preset upper limit, the system triggers audio-visual alarms and initiates ventilation measures to effectively control CO2 levels in the environment.The system is also equipped with a time calibration function, using the internal RTC (Real-Time Clock) to acquire and calibrate time through button inputs, ensuring accurate timekeeping.Users can set various threshold values through buttons to cater to different environmental requirements.Finally, the system utilizes an OLED display screen to present all measured data, providing users with intuitive information feedback.This environment monitoring physical project, through the control of the microcontroller and measurements of sensors, offers users a reliable system for real-time monitoring and controlling environmental parameters, demonstrating broad potential applications.
Keywords: Environment Monitoring; STM32F103C8T6; Temperature and Humidity Sensing; CO2 Concentration Measurement; OLED Display Screen
目 录
摘 要
ABSTRACT
1 绪论
2 系统设计方案
3 硬件设计
4 系统程序设计
5 实物制作与调试过程
总结与展望
致谢
参考文献
附录