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.
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.






