Chongqing Qingcheng Agricultural Science and Technology Co., Ltd
+8613983113012

Intelligent Greenhouse System Software Design

Feb 16, 2022

Intelligent Greenhouse System Software Design

Intelligent Greenhouse System Software Design

The system control software adopts the modular programming idea, divides the overall function of the system into different modules, each module is individually designed, programmed and debugged, and the overall joint debugging of the system is carried out after completion.

Intelligent Greenhouse

Intelligent Greenhouse Design

1. Greenhouse parameter acquisition subroutine: In the forward channel of the greenhouse data acquisition system, the input signal contains all kinds of noise and interference. In order to accurately measure and control the greenhouse environmental parameters, the de-extreme average filtering method is used in the software design. to remove noise and interference. Use 10 times for each sensor, remove the maximum value and the minimum value, and average the remaining 8 times of sampling data to obtain the effective sampling value.

2. Data storage subroutine: The analysis and processing of various data information collected by the greenhouse control system is an important link, so the data storage program must be designed. In the software design, the greenhouse environmental parameters (temperature, humidity, illuminance and carbon dioxide concentration) collected by the greenhouse and the state of the actuator are stored every ten minutes, occupying 1, 1, 2, 2, 1 byte. At the same time, in order to clearly determine the time of the collected data, the time is also stored. Here, only the day, hour, and minute are stored, each occupying 1 byte in the memory.

3. Data control processing subroutine: Because crops in the greenhouse are often not very sensitive to changes in environmental parameters, and considering the cost and versatility of the system, this system adopts a simple threshold control algorithm. That is, at the beginning, the system will preset parameter thresholds (upper and lower limits) according to the most suitable environment for different crops, and then the system will collect data on environmental parameters through sensors. When the collected environmental parameters are not within the threshold range, The system will control the corresponding actuator to change the environmental parameters of the greenhouse until the parameters return to the threshold range.