项目编号:mcuclub-dz-311
设计简介:
项目名:农田智能灌溉(实物)
项目编号:mcuclub-dz-311
单片机类型:STM32F103C8T6
具体功能:
从机:
1、通过土壤湿度传感器测量土壤湿度值,当湿度值小于设置最小值,启动两个水泵灌溉;当湿度值在最小值和最大值之间,启动一个水泵灌溉,当湿度值大于设置最大值,停止灌溉
2、通过zigbee将测量的湿度值发送到主机端,并可以接收主机端下发的湿度最大值、最小值,以及主机端下发的手动控制灌溉指令和切换模式指令
主机:
1、通过zigbee接收从机端发送的湿度值
2、通过按键可设置湿度最大值、最小值,也可通过按键控制灌溉、切换模式,通过zigbee下发数据到从机端
3、通过wifi模块,手机端可实时获取湿度值,手机端可设置湿度最大值、最小值,也可通过手机端控制灌溉、切换模式,通过zigbee下发数据到从机端
总字数:11750
摘 要
农田灌溉是农业生产过程的重要环节,对提高粮食产量起到关键性作用。而我国水资源匮乏,大面积的浇水会造成严重的水资源浪费。近年来,虽然管道浇灌技术不断发展,但仍不能满足农户对农田灌溉系统的精确性和智能化的需求。
为了解决农田灌溉技术存在的关键问题,本设计提出了一种基于STM32主控芯片的智能农田灌溉系统。该系统包括主机和从机两部分,主机通过按键可设置土壤湿度阈值和模式切换,通过显示模块对实时土壤湿度值及设置阈值进行显示,通过zigbee下发数据到从机端,通过wifi模块将实时湿度值传送到手机端进行显示,从机通过土壤湿度传感器测量土壤湿度值,通过zigbee将测量的湿度值发送到主机端,通过继电器控制水泵的打开和关闭,当检测到农田的土壤湿度值小于设置的最小值,开启两个水泵进行灌溉,当湿度值在最小值和最大值之间,启动一个水泵灌溉,当湿度值大于设置最大值,停止灌溉。通过实物测试,该系统基本能实现系统所预期的功能,在节水增产方面具有一定的推广实用价值。
关键词:STM32;农田灌溉;水泵;传感器
ABSTRACT
Farmland irrigation is an important link in agricultural production process and plays a key role in increasing grain yield. However, the shortage of water resources in our country, the large area watering can cause the serious waste of water resources. In recent years, despite the continuous development of pipeline irrigation technology, but still can not meet the farmers’ demand for accuracy and intelligence of farmland irrigation system.
In order to solve the key problems existing in farmland irrigation technology, this design proposes an intelligent farmland irrigation system based on STM32 main control chip. The system consists of two parts: the host and the slave. The host can set the soil moisture threshold and mode switch by pressing the button, display the real-time soil moisture value and set the threshold through the display module, send the data to the slave through zigbee, transmit the real-time humidity value to the mobile phone for display through the wifi module, and measure the soil moisture value through the soil moisture sensor. The measured humidity value is sent to the host through zigbee, and the water pump is controlled to open and close through relay. When the soil moisture value is detected to be less than the set minimum value, two water pumps are started for irrigation; when the humidity value is between the minimum value and the maximum value, one water pump is started for irrigation; when the humidity value is greater than the set maximum value, irrigation is stopped. Through the real test, the system can basically achieve the expected function of the system, and has a certain practical value in the aspect of water saving and increasing production.
Key Words:STM32, Farmland irrigation,Water pump, sensor
目录
1绪论
2 系统设计方案
3硬件设计
4 系统程序设计
5实物测试
总结与展望
参考文献
致 谢