news 2026/6/10 15:07:40

【dz-701】基于单片机的农药存储环境监测系统设计

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
【dz-701】基于单片机的农药存储环境监测系统设计

摘要

传统农药存储管理依赖人工巡检,存在环境参数监测滞后、安全隐患响应不及时、存储时效管控粗放等问题,难以满足农药存储的安全性与规范性要求。​

基于 STM32F103C9T6 单片机的农药存储环境监测系统,整合了 DHT11 温湿度传感器、YS-17 火焰监测模块、MQ-135 有害气体传感器、MQ-2 烟雾传感器、AS608 指纹模块、DS1302 时钟模块、按键、OLED 显示屏、ESP8266 WiFi 模块及通风继电器、灭火继电器、电子锁等执行设备,实现了农药存储环境的自动化监测与智能管控。系统核心功能包括:通过 DHT11 监测环境湿度,超阈值时启动通风;YS-17 检测到火焰或 MQ-2 检测到烟雾超阈值时,触发灭火装置;MQ-135 监测有害气体浓度,超阈值时启动通风;AS608 指纹识别通过后解锁电子锁;借助 DS1302 设置农药保存时效,到期时通过 WiFi 模块向手机端推送提醒;支持按键设置各参数阈值、手动控制设备及管理指纹;OLED 实时显示监测数据与设备状态;WiFi 模块实现手机端远程监测、参数调节、设备控制及时效提醒。​

该系统的实现,提升了农药存储环境管理的自动化与智能化水平,强化了安全防护能力,确保存储参数稳定可控,为农药存储的安全性与规范性提供了可靠保障,同时为同类危险品存储监测设备的研发提供参考,具有较高的实际应用价值。

关键词:STM32F103C9T6;农药存储;环境监测系统;传感器;智能管控;WiFi 通信

ABSTRACT

With the rapid development of modern agriculture, precise control of pesticide storage environments is crucial for ensuring the effectiveness of pesticides and preventing safety hazards. Traditional manual management methods rely on empirical judgment, suffer from delayed responses, and have issues such as high labor intensity and inconsistent parameter control, making them unable to meet the needs of standardized and intelligent storage.​

The pesticide storage environment monitoring system based on the STM32F103C9T6 microcontroller integrates DHT11 humidity sensor, YS-17 flame monitoring module, MQ-135 harmful gas sensor, MQ-2 smoke sensor, DS1302 clock module, buttons, OLED display, ESP8266 WiFi module, and executive devices (ventilation relays, fire-extinguishing relays, locks, etc.), realizing automatic monitoring and intelligent management of the pesticide storage environment. The core functions of the system include: monitoring the humidity of the storage environment through DHT11, and controlling the ventilation relay to work when the humidity exceeds the set maximum value; using YS-17 to monitor the pesticide storage cabinet, and controlling the fire-extinguishing relay to operate when a flame is detected; detecting the concentration of harmful gases in the storage environment via MQ-135, and ventilating when the harmful gases exceed the set maximum value; monitoring smoke in the storage environment through MQ-2, and controlling the fire-extinguishing relay to work when the smoke exceeds the set maximum value; identifying users through the AS608 fingerprint module, and unlocking when the fingerprint comparison is correct; obtaining the current time through the DS1302 clock module, which can set the pesticide storage time, and sending a reminder to the mobile phone when the storage time is reached; supporting the setting of maximum values for humidity, harmful gases, and smoke through buttons, controlling the on/off of ventilation and fire-extinguishing relays, and adding or deleting fingerprints; displaying measurement values in real-time through the OLED display; sending measurement data to the mobile phone via the ESP8266 WiFi module, and the mobile phone can adjust various thresholds, control the on/off of ventilation and fire-extinguishing relays, set the pesticide storage time, and unlock the lock.​

The implementation of this system effectively improves the automation and intelligence level of pesticide storage environment management, reduces manual intervention, ensures the safety and stability of the storage environment, provides an efficient and reliable solution for standardized pesticide storage, and also offers a reference for the research and development of similar agricultural storage environment monitoring equipment, with high practical application value.

Keywords:STM32F103C9T6; pesticide storage; monitoring system; sensor; intelligent management; WiFi communication

目录

第1章 绪论

1.1 研究的目的及意义

1.2 国内外发展情况

1.3 本文主要研究内容

第2章 设计思路与方案论证

2.1 主要元器件选择

2.1.1 主控芯片选择

2.1.2 湿度传感器选择

2.1.3 火焰检测模块选择

2.1.4 烟雾检测模块选择

2.1.5 有害气体检测模块选择

2.1.6 指纹识别模块选择

2.1.7 时钟模块选择

2.1.8 显示模块选择

2.1.9 无线通信模块选择

2.1.10 按键模块选择

2.1.11 执行设备驱动模块选择

2.2整体设计方案

第 3 章 硬件设计

3.1 主控电路模块

3.2 湿度传感器电路

3.3 火焰检测模块电路

3.4 烟雾检测模块电路

3.5 有害气体检测模块电路

3.6 指纹识别模块电路

3.7 时钟模块电路

3.8 显示模块电路

3.9 无线通信模块电路

3.10 按键模块电路

3.11 执行设备驱动电路

4 系统程序设计

4.1 编程软件介绍

4.2 系统主流程设计

4.3 独立按键

4.4 温湿度检测模块子流程

4.5 OLED显示流程设计

4.6 时钟模块子流程

4.7 WiFi模块子流程设计

第 5 章 实物测试

5.1 整体实物测试

5.2 温湿度传感器功能测试

5.3 烟雾与火焰检测模块功能测试

5.4 有害气体检测模块功能测试

5.5 指纹识别模块功能测试

5.6 时钟与过期提醒功能测试

5.7 WiFi 模块功能测试

5.8 执行设备功能测试

5.9 按键设置与显示功能测试

第6章 总结与展望

6.1 总结

6.2 展望

致谢

参考文献

附录

附录一:原理图

附录二:PCB

附录三:主程序

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/6 5:16:59

Xilinx FPGA ISERDES 使用详细介绍

Xilinx FPGA ISERDES 使用详细介绍 ISERDES(Input Serializer/Deserializer)是 Xilinx FPGA I/O 逻辑(IOLOGIC)中的一个专用硬核原语,用于实现高速串行数据到低速并行数据的转换。它是实现源同步接口(如 L…

作者头像 李华
网站建设 2026/5/23 11:34:24

编码驱动的提示注入攻防:Base64 核心绕过技术与全维度防御

提示注入(Prompt Injection)作为大语言模型(LLM)落地应用中最核心、最易被利用的安全风险,正随着LLM防护技术的迭代呈现出隐蔽化、技术化、复合化的发展趋势。Base64编码绕过并非简单的“编码转换指令隐藏”&#xff0…

作者头像 李华
网站建设 2026/6/10 0:44:34

Sora2政策收紧,AI漫剧创作者的破局之路:Veo 3.1能扛大旗吗?

2026年初,AI视频生成领域传来重磅消息:OpenAI拟调整Sora2免费策略,过往低门槛、低成本的创作模式将成为历史,批量账号运维成本大幅攀升。这一变化对正处于爆发期的AI漫剧行业而言,无疑是一场不小的冲击——要知道&…

作者头像 李华
网站建设 2026/6/5 14:47:52

智科毕设创新的课题集合

0 选题推荐 - 网络与信息安全篇 毕业设计是大家学习生涯的最重要的里程碑,它不仅是对四年所学知识的综合运用,更是展示个人技术能力和创新思维的重要过程。选择一个合适的毕业设计题目至关重要,它应该既能体现你的专业能力,又能满…

作者头像 李华
网站建设 2026/6/10 11:16:29

应对西门子官方合规审查的UG/NX专项准备

第一段:问题本质是什么? 作为一名在制造业摸爬滚打多年的技术工程师,我最近被西门子的官方合规审查打了个措手不及。说实话,这个词听起来挺吓人的,是像UG/NX这样的高端CAD软件,它本身已经是我们日常工作中最…

作者头像 李华
网站建设 2026/6/5 22:07:22

一遍搞定全流程!全网爆红的AI论文平台 —— 千笔写作工具

你是否曾为论文选题而发愁?是否在深夜里对着空白文档无从下笔?是否反复修改却仍不满意?论文写作的每一步都充满挑战,尤其是对于自考学生来说,时间紧张、资料繁杂、格式要求严格,让许多人苦不堪言。但如今&a…

作者头像 李华