- Home >> News >> Blog articles >> Internet of things
Design of Circuit Program for Greenhouse and Greenhouse System
In today's society, the market economy is developing rapidly, and more and more people like to breed some famous flowers. These precious flowers are usually southern varieties. Now these flowers are transplanted to the north to breed and it is extremely difficult. For winter, the north The temperature is low, and flowers need a certain temperature and humidity to survive. This requires us to reasonably control the temperature in the flower greenhouse system. In winter, it is more suitable for 12-15°C. At present, there are not many greenhouses on the market that apply intelligent control, and they are expensive, complicated to operate and unstable in performance, which are not suitable for the needs of the masses. Based on this condition, we propose a practical design method for greenhouse and greenhouse system. This method has simple control, high performance and low cost, and has certain application value in flower cultivation.
In line with the concept of innovation and practicality, we use HOLTEK MCU to replace the computer as the main controller, as the core control part of the greenhouse detection system, use the sensor to detect the temperature, humidity and light intensity, and set its range value, such as After exceeding the range, it can alarm and trigger the corresponding signal to adjust the environmental factors of the greenhouse, and can control the heating of the greenhouse temperature, use the air conditioner to adjust the humidity, and use the motor to adjust the sunshade net roller mechanism to adjust the light intensity.
1. The overall structure of the greenhouse system
The green house greenhouse system mainly includes power control part, temperature and humidity sensor acquisition module, photometry module, HOLTEK MCU data processing part, data display and storage part, and circuits for controlling peripheral temperature, humidity and light intensity. The core theory it adopts - embedded electronic technology and sensor technology.
1.1 Sensor acquisition system
The function of the sensor acquisition system is to convert climate parameters (temperature, humidity and light intensity) into voltage parameters. It is the main source of information for the greenhouse system and is related to the reliability and accuracy of the detection and control of the greenhouse system. The signal obtained by the sensor is transformed, A/D converted, and sampled, and the digital signal is input to the single-chip microcomputer.
1.2 Information processing system
The information processing system is the core part of the whole greenhouse system. HOLTEK MCU is mainly used as the main control chip, and the data collected by the sensor is stored in the single chip microcomputer, and then processed. The system mainly includes the preset setting of environmental factor parameters (including temperature, humidity and light intensity), signal processing and control three parts. Initially set the growth environment factors of flowers within a time range as required, then compare and analyze with the real-time monitored data to provide a basis for control, and finally send corresponding control signals (temperature, humidity and light intensity) to the control circuit.
1.3 Peripheral control execution system
This system mainly includes some equipment, including heaters, water pumps, air conditioners, ventilators and light adjustment devices (shade net roller mechanism and supplementary lighting equipment), which are the executive devices of the automatic control system.
2. Hardware circuit design of greenhouse system
This green house greenhouse system uses HOLTEK MCU as the main controller, communicates with the temperature and humidity sensor through a single bus, sends detection commands, and receives the detection results, and uses its own internal integrated AD conversion chip to convert the analog voltage signal of the light resistance that changes with the light. Digital signal, display the two detected results on the 12864 LCD, and then detect the keys through the input and output ports, and through the mutual cooperation of the 12864 LCD, the user can set the corresponding range value. Finally, the detection result is compared with the set value, and if it exceeds the range, an alarm will be issued and a corresponding signal will be triggered to automatically adjust the real-time parameter value.
2.1 Hardware design of sensor acquisition system
This system mainly uses the DHT11 digital temperature and humidity sensor, which is a temperature and humidity composite sensor with calibrated digital signal output. It applies dedicated digital module acquisition technology and temperature and humidity sensing technology. The sensor includes a resistive humidity sensing element and an NTC temperature measuring element, and is connected with a high-performance 8-bit microcontroller. Therefore, the product has the advantages of ultra-fast response, strong anti-interference ability, and high cost performance. Each DHT11 sensor is calibrated in an extremely precise humidity calibration chamber. The calibration coefficients are stored in the OTP memory in the form of a program, and these calibration coefficients are called in the sensor during the processing of the detection signal. Single-bus serial interface makes system integration easy and fast [1].
2.2 Microprocessor core module
The flower house and greenhouse system designed in this paper uses the 8-bit HOLTEK series single-chip microcomputer of Holtek single-chip company as the core module. Select the HT46R23 microprocessor as the main control chip.
The peripheral circuit mainly includes keyboard button control, switch button, microcontroller reset circuit, 12864 liquid crystal display circuit, temperature and humidity signal acquisition circuit. This device uses 32768 crystal oscillator to give clock signal and alarm circuit.
Among them, the temperature and humidity signal enters the PB0 port of the single-chip microcomputer, the button uses the PA4-PA7 port of the single-chip microcomputer, the alarm circuit uses the PA0 port, the indicator light uses the PA0-PA1 port, and the 12864 display chip uses PB4-PB7 and PC3, PC4 Port, AD conversion analog signal acquisition channel with PB0 port. The power supply adopts an AC power supply, and a DC power supply is obtained through a transformer and finishing.
3. Greenhouse and Greenhouse System Software Design
This device mainly includes data acquisition and input, data processing program, which is mainly completed by HOLTEK single-chip microcomputer, and displayed on 12864 liquid crystal, and can search for corresponding data through button control, and pre-set environmental factors through software, measured data and settings The data is compared to control the I/O port of the single-chip microcomputer, and realize alarm and other functions. The software system mainly includes:
(1) HOLTEK control program module: as the main control program module of the system, it controls the coordination of other program modules through programming; keyboard program module: used to realize the functions required by the project, so that the single-chip microcomputer can complete the corresponding control functions.
(2) Liquid crystal display program module: use a character liquid crystal display to display required information.
Summarize
The green house and greenhouse system designed in this paper has been tested and run, which proves that its performance is stable and reliable, and it can better control the temperature and humidity indicators. It mainly uses HOLTEK MCU as the main controller, which can control the temperature, humidity and light intensity. detection, and can set its range value, and can alarm and trigger the corresponding signal to adjust the greenhouse environmental factors after exceeding the range. It can be used for small-scale greenhouse flower cultivation, and provides a solution for some famous and precious varieties of flowers to be cultivated in the north, which enables them to be put into production practice to create favorable advantages.
The above is the example of greenhouse system development introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have bluetooth headset solution development needs, you can trust us. We represent a variety of single-chip microcomputers, voice chips, dual-mode Bluetooth ICs, and wifi chips. Brands include Songhan MCU, Yingguang MCU, Jerry Bluetooth, Ankai Bluetooth, Allwinner, and Realtek. Our technical services include: PCB design, microcontroller development, Bluetooth solutions, software and hardware custom development, APP development, small program development, WeChat official account development, etc. It can also undertake the design of intelligent electronic products, the development of living appliances, the research and development of beauty equipment, the application of Internet of things platform, the smart home control system, the development of TWS earphones, Bluetooth earphone speakers, the development of children's educational toys, the design of electronic education products, etc.
Proposal recommendation
- TOP