设计说明书
总字数:11000+
本项目名为“土壤温湿度”,采用STM32F103C8T6单片机作为控制中心,旨在实现对土壤温湿度的监测和控制。具体实现包括以下几个方面:首先通过防水式DS18B20传感器测量土壤温度,然后通过土壤湿度传感器测量土壤湿度,将两个参数传回单片机进行处理。当温度高于设置的最大值或湿度低于设置的最小值时,会触发声光报警,并启动水泵进行加水,当湿度大于设置的最大值时,关闭水泵。此外,用户可通过按键进行各阈值的设置。最后,通过OLED显示屏实时显示温湿度数据和相关控制信息。本项目具有实用性和可操作性,可广泛应用于农业和环境监测等领域。
关键词:土壤温湿度;STM32F103C8T6;防水式DS18B20;土壤湿度传感器;声光报警;水泵控制
The project, titled “Soil Temperature and Humidity,” utilizes the STM32F103C8T6 microcontroller as the control center to monitor and control soil temperature and humidity. The specific implementation includes the following aspects: firstly, the soil temperature is measured using a waterproof DS18B20 sensor, and then the soil humidity is measured using a soil humidity sensor. Both parameters are transmitted back to the microcontroller for processing. When the temperature exceeds the set maximum value or the humidity falls below the set minimum value, an audible and visual alarm is triggered, and the water pump is activated for irrigation. The water pump is deactivated when the humidity exceeds the set maximum value. Additionally, users can set various threshold values using buttons. Finally, the real-time temperature and humidity data, along with related control information, are displayed on an OLED screen. This project is practical, operational, and can be widely applied in fields such as agriculture and environmental monitoring.
Keywords: soil temperature and humidity, STM32F103C8T6, waterproof DS18B20, soil humidity sensor, audible and visual alarm, water pump control.
目 录
摘要
Abstract
第1章绪论
1.1研究背景及意义
1.2国内外研究现状
1.3论文的主要内容
第2章 系统总体设计方案
2.1系统总体设计
2.2主要模块方案选择
2.2.1主控模块方案选择
2.2.2温度监测模块方案选择
2.2.3土壤湿度监测模块方案选择
第3章硬件设计
3.1主控模块电路设计
3.2 土壤温度监测模块电路设计
3.3 土壤湿度监测模块电路设计
3.4 显示模块电路设计
3.5 独立按键模块电路
3.6 继电器模块电路设计
3.7 声光报警模块电路设计
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 温度检测模块子流程
4.4 独立按键
4.5 OLED显示流程设计
第5章 实物测试
5.1 整体实物焊接图
5.2土壤温度监测实物测试
5.3 土壤湿度检测实物测试
第6章 总结展望
参考文献
附录
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!