在利用大棚进行农作物培育时,土壤湿度是影响其生长、发育的关键因素之一,因此对大棚进行多点土壤湿度检测,根据各点土壤湿度对农作物实现精准灌溉显得尤为重要。本文设计了一种基于单片机的土壤多点灌溉控制系统。系统中选用SM2801B土壤水分传感器作为测量土壤湿度元件,以STM32F429单片机为控制核心,进行多点土壤湿度检测并以电磁阀为执行元件实现农作物的定点灌溉。同时,通过串口与PC机进行通信,并以VB编写的上位机界面将各点土壤湿度以曲线的形式显示出来,通过上位机界面进行远程定点灌溉操作。
In the use of greenhouses for crop cultivation,soil moisture is one of the key factors affecting its growth.Therefore,through multi-point soil moisture detection of greenhouses,it is particularly important for crops to implement precision irrigation according to soil moisture of each point.This paper designed a kind of soil multi-point irrigation control system based on single chip microcomputer.SM2801 B soil moisture sensor was chosen as the measured soil moisture components.STM32F429 was used as control core.Multi-point soil moisture detection and electromagnetic valve as executive element were used to realize fixed irrigation of crops.At the same time,communication was achieved through a serial port and PC.Soil humidity was displayed in the form of curve at various points in the PC interface of VB.Remote fixed-point irrigation operation was realized through the upper machine interface.