The accumulated temperature controller that industrialized agriculture is energy-saving and cost-reducing and service system thereof
Technical field
Of the present inventionly relate to the energy-saving and cost-reducing accumulated temperature controller of a kind of industrialized agriculture and service system thereof, be arranged on industrialized agriculture environment as greenhouse, pig house, sheep hurdle, hen house etc., accumulated temperature control strategy is adopted to carry out environment temperature adjustment, the vegetables of plantation or the poultry of cultivation is made to live in the temperature range of adaptation, simultaneously, this service system can also provide required real-time Agricultural Information for user, belongs to agriculture measurement and control area.
Background technology
Along with the development of computer technology, infotech, the intelligence degree of modern installations agricultural is greatly improved.Temperature parameter in industrialized agriculture environment is the important indicator that crops and animal health are grown up, as in greenhouse, traditional chamber environment temperature control method controls to add gentle cooling system accordingly according to the bound of temperature, control device adopts temperature controller, this mode well meets the requirement of crop yield and quality in greenhouse, but there is the shortcoming that energy consumption is larger, add up according to the United Nations, in the whole world agricultural production of a year, the energy resource consumption of about 35% is on the heating of greenhouse, and energy resource consumption is the 15%-40% of crop production total expenses.In the industrialized agriculture such as pig house, sheep hurdle, need environment temperature to be controlled within certain scope, a kind of energy-conservation temperature controller of same needs.
Traditional temperature controller function singleness, whole realization constant temperature or bound temperature control, because temperature sensor generally adopts the output of analog quantity, the temperature sensor that controller carries is shorter by the general line of impact of signal transmission attenuation, can not realize temperature sensor and controller to be distributed in place apart from each other and to arrange, peasant household uses very inconvenient; In addition, peasant household relatively lags behind at acquisition agricultural, commodities market message context, more lack agricultural experts to the guiding opinion of proportion of crop planting, livestock culturing, on market, neither one temperature controller can carry the function of this high added value, and user very urgently obtains these Agricultural Information when planting and cultivate.
Agriculturally the summation of cumulative gained after the mean daily temperature meeting certain condition in section sometime directly cumulative or process is called accumulated temperature, be divided into active accumulated temperature and effective accumulated temperature, effective temperature refers to the difference of the lower limit temperature of active temperature and biological growth, therefore effective accumulated temperature refers to the summation of biological effective temperature within the time of infertility or in a certain growthdevelopmental stage.Concerning the most of crops in greenhouse, the growth of crop is relevant with the accumulated temperature of section sometime, and less with concrete temperature course relation, and crop not only has certain accumulated temperature requirement total growth period, and each growth phase also has certain accumulated temperature requirement.Utilize the accumulated temperature attribute of crop, accumulated temperature method is adopted to carry out temperature adjustment, make as much as possiblely utilize heat energy daytime, obtain higher average temperature value, night then regulates alap temperature, but the medial temperature in section is sometime still optimum temperature, that is to say the adjustment principle that accumulated temperature total amount is constant, adopting the control method of this accumulated temperature, reducing 10%-20% by making the energy consumption in greenhouse.
Summary of the invention
The accumulated temperature controller that a kind of industrialized agriculture provided by the invention is energy-saving and cost-reducing and service system thereof, can to industrialized agriculture as the environment temperature such as greenhouse, poultry house regulates, thermoregulator control program adopts effective accumulated temperature method, energy-saving and cost-reducing object can be reached, simultaneously, this service system can also provide real-time agricultural, commodities market information and expert's guiding opinion information etc., use simple, cost is low, be adapted at promoting in vast peasant household.Technical scheme of the present invention is: the accumulated temperature controller that a kind of industrialized agriculture is energy-saving and cost-reducing, comprise shell and hardware circuit in the enclosure and μ C/OS-II embedded OS are installed, described shell is provided with LCD liquid crystal display screen, pilot lamp and button, the end of described shell is provided with SIM card slot, power switch, power connection, with the aviation plug of air themperature sensing transducer line, the power supply terminal of warming-up device and the power supply terminal of cooling system, described LCD liquid crystal display screen, pilot lamp, button, SIM card slot, power switch, power connection, air themperature sensing transducer, the power supply terminal of warming-up device is all connected with the Micro-processor MCV of hardware circuit with the power supply terminal of cooling system, described μ C/OS-II embedded OS is by Micro-processor MCV startup optimization.
Described hardware circuit also comprises: RS485 RS 232 module, be responsible for the temperature data of air themperature sensing transducer to be sent by RS485 communications protocol to convert the transmission of RS232 communications protocol to, RS232 interface is connected with micro-MCU that processes, and is sent in operating system by temperature data and processes;
To heat relay, for connecting the power switch of warming-up device;
Cooling relay, for connecting the power switch of cooling system;
Two photoelectrical couplers, the weak electric signal being responsible for respectively being connected with micro-MCU of process with heat relay and the forceful electric power signal that relay is connected of lowering the temperature carries out thorough electrical isolation;
Clock, is responsible for providing system accurate clock, has chargeable button cell for subsequent use;
Whether watchdog reset circuit, be responsible for detecting μ C/OS-II embedded OS and crash, carry out reset rerun during deadlock to it;
Infrared remote control module, is responsible for the signal that reception Infrared remote controller sends, and can open and close relay of heating with cooling relay; Described Infrared remote controller has four buttons, be respectively open key of heating, close key of heating, cooling open key, cooling close key;
Controller supply module, be responsible for converting the electric main of 220V to direct current 9V power supply and 5V power supply, 9V power supply is responsible for powering to air themperature sensing transducer, and 5V power supply is responsible for powering to Micro-processor MCV;
Accumulated temperature control strategy module, the accumulated temperature value that some crops and domestic animal should reach at different growth phases has been preset in this module, by carrying out accumulated temperature calculating and temperature summation forecast to the environment temperature of industrialized agriculture, form accumulated temperature control strategy, within the accumulated temperature time of specifying, by controlling to heat, relay and cooling relay complete the accumulated temperature value of needs.
Parameter setting module, for arranging in industrialized agriculture the kind of the species of plantation or cultivation, the bound of temperature, the time of different phase accumulated temperature, accumulated temperature value, subscriber phone number information;
Alarm output module, when detect the temperature of air higher than the set temperature upper limit or lower than set temperature under report to the police in limited time, chimes of doom is sent by hummer;
Described button comprises LCD liquid crystal display screen control button, unlatching button of heating, closedown button of heating, cooling unlatching button and closedown button of lowering the temperature;
GPRS wireless communication module, inserts SIM card and can be connected to internet by GPRS network;
Air themperature sensing transducer, Micro-processor MCV sends temperature acquisition instruction by ModBus agreement to temperature sensing transmitter, for gathering the real time temperature data of air, and converts temperature data to digital quantity;
Described air themperature sensing transducer comprises single-chip microprocessor MCU, temperature sensor, RS485 interface and signal terminal, and the temperature gathering industrialized agriculture environment is responsible for by described temperature sensor, and sends in single-chip microprocessor MCU by temperature data; Described single-chip microprocessor MCU, is responsible for the conversion of temperature data, calibration, and is sent by temperature data; Photoelectric coupled circuit, carries out the electrical isolation of the signal of single-chip microprocessor MCU and RS485 interface; Signal terminal, the RS485 RS 232 module described in connection and photoelectric coupled circuit; Sensor power module, powers to the parts of whole air themperature sensing transducer, and its power supply terminal connects the 9V power supply of controller supply module, then carries out voltage stabilizing through mu balanced circuit.
What described LCD liquid crystal display screen control button comprised centre is ENTER key, makes the cursor on LCD liquid crystal display follow these four keys to move up and down at arrange up and down four buttons of ENTER key.
A kind of service system, comprise accumulated temperature controller, described accumulated temperature controller is several, each accumulated temperature controller is connected on internet by GPRS wireless communication module, the industrialized agriculture general character service platform having businessman to build on the internet, this platform gathers the agriculture relevant information of government, agriculture-related enterprise, expert, wholesale market, retail shop by internet, and industrialized agriculture general character service platform is issued peasant household after the information of collection being arranged.
Advantage of the present invention is: this accumulated temperature controller, with closely Infrared remote controller, can realize the opening and closing that add gentle cooling system by remote keying; The air themperature sensing transducer line that this accumulated temperature controller carries with it adopts RS485 interface, farthest can at a distance of 400 meters of distances, and as accumulated temperature controller is arranged in pulpit, and sensing transducer device is arranged in greenhouse or poultry house; When using in greenhouse, this accumulated temperature controller can adopt effective accumulated temperature control strategy to crops, carry out the High-efficient Production of crops, also can be arranged in the poultry house such as pig house, sheep hurdle breeding environment, by the bound of set temperature in the controller, adopt constant temperature or accumulated temperature control strategy, carry out the welfare cultivation of domestic animal; In the LCD liquid crystal display screen of this accumulated temperature controller, corresponding agricultural, commodities market information and expert's tutorial message can be shown according to the demand that arranges of peasant household, for numerous peasants and herdsmen provide comprehensive, reliable, in good time agricultural information service, promote that peasants and herdsmen's increases income the synergy with industrialized agriculture.
Accompanying drawing explanation
Fig. 1 is the hardware circuit fundamental diagram of accumulated temperature controller of the present invention;
Fig. 2 is the working principle of hardware figure of the air themperature sensing transducer of accumulated temperature controller of the present invention;
Fig. 3 is the shell encapsulation figure of accumulated temperature controller of the present invention;
Fig. 4 is the structural representation of service system of the present invention;
Fig. 5 is the workflow diagram of accumulated temperature controller of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples for illustration of the present invention, but are not used for limiting the scope of the invention.
See Fig. 1 to Fig. 3, the accumulated temperature controller that a kind of industrialized agriculture is energy-saving and cost-reducing, comprise shell 1 and the hardware circuit be arranged in shell 1 and μ C/OS-II embedded OS, described shell 1 is provided with LCD liquid crystal display screen 2, pilot lamp and button, the end of described shell 1 is provided with SIM card slot 9, power switch 17, power connection 13, aviation plug 14, the power supply terminal 15 of warming-up device and the power supply terminal 16 of cooling system, described LCD liquid crystal display screen 2, pilot lamp, button, SIM card slot 9, power switch 17, power connection 13, air themperature sensing transducer, the power supply terminal 15 of warming-up device is all connected with the Micro-processor MCV of hardware circuit with the power supply terminal 16 of cooling system, described μ C/OS-II embedded OS is by Micro-processor MCV startup optimization, described air themperature sensing transducer with (when being less than 400 meters) during Micro-processor MCV close together, can being connected with Micro-processor MCV by aviation plug 14, for gathering the real time temperature data of air, and converting temperature data to digital quantity,
Described button comprises LCD liquid crystal display screen control button 3, unlatching button 5 of heating, closedown button 6 of heating, cooling unlatching button 7 and closedown button 8 of lowering the temperature; What described LCD liquid crystal display screen control button comprised centre is ENTER key, makes the cursor on LCD liquid crystal display follow these four keys to move up and down at arrange up and down four buttons of ENTER key.
Described pilot lamp comprises heating opens pilot lamp 10, cooling unlatching pilot lamp 11 and power light 12.
Described hardware circuit also comprises: RS485 RS 232 module, be responsible for the temperature data of air themperature sensing transducer to be sent by RS485 communications protocol to convert the transmission of RS232 communications protocol to, RS232 interface is connected with micro-MCU that processes, and is sent into by temperature data in μ C/OS-II embedded OS and processes; To heat relay, for connecting the power switch of warming-up device; Cooling relay, for connecting the power switch of cooling system; Two photoelectrical couplers, the weak electric signal being responsible for respectively being connected with micro-MCU of process with heat relay and the forceful electric power signal that relay is connected of lowering the temperature carries out thorough electrical isolation; Clock, is responsible for providing system accurate clock, has chargeable button cell for subsequent use; Whether watchdog reset circuit, be responsible for detecting μ C/OS-II embedded OS and crash, carry out reset rerun during deadlock to it; Infrared remote control module, is responsible for the signal that reception Infrared remote controller sends, and can open and close relay of heating with cooling relay; Described Infrared remote controller has four buttons, be respectively open key of heating, close key of heating, cooling open key, cooling close key; Controller supply module, be responsible for converting the electric main of 220V to direct current 9V power supply and 5V power supply, 9V power supply is responsible for powering to air themperature sensing transducer, and 5V power supply is responsible for powering to Micro-processor MCV;
Accumulated temperature control strategy module, by carrying out accumulated temperature calculating and temperature summation forecast to the environment temperature of industrialized agriculture, forms accumulated temperature control strategy, within the accumulated temperature time of specifying, is completed the accumulated temperature value of needs by control to heat relay and cooling relay.Described accumulated temperature control strategy module is according to the accumulated temperature parameter arranged: accumulated temperature time, accumulated temperature value, upper temperature limit and lowest temperature etc. determine control strategy, and can predict according to the accumulated temperature value of current accumulated temperature value to follow-up time, accumulated temperature control strategy as much as possiblely by day can utilize heat energy, obtain higher average temperature value, night then regulates alap temperature, but the medial temperature in section is sometime still optimum temperature, and this control strategy can reach energy-saving and cost-reducing object.The accumulated temperature value that some crops and domestic animal should reach at different growth phases has been preset in accumulated temperature control strategy module, user can select to be the period residing for certain crop or poultry by button easily, system will provide best accumulated temperature value, user-friendly.
Parameter setting module, for arranging in industrialized agriculture the kind of the species of plantation or cultivation, the bound of temperature, the time of different phase accumulated temperature, accumulated temperature value, subscriber phone number information;
Alarm output module, when detect the temperature of air higher than the set temperature upper limit or lower than set temperature under report to the police in limited time, chimes of doom is sent by hummer; GPRS wireless communication module, inserts SIM card and can be connected to internet by GPRS network;
Described air themperature sensing transducer comprises single-chip microprocessor MCU, temperature sensor, RS485 interface and signal terminal, and the temperature gathering industrialized agriculture environment is responsible for by described temperature sensor, and sends in single-chip microprocessor MCU by temperature data; Described single-chip microprocessor MCU, is responsible for the conversion of temperature data, calibration, and is sent by temperature data; Photoelectric coupled circuit, carries out the electrical isolation of the signal of single-chip microprocessor MCU and RS485 interface; Signal terminal, the RS485 RS 232 module described in connection and photoelectric coupled circuit; Sensor power module, powers to the parts of whole air themperature sensing transducer, and its power supply terminal connects the 9V power supply of controller supply module, then carries out voltage stabilizing through mu balanced circuit.
The principle of work of accumulated temperature controller of the present invention is: after receiving the AC power of 220V, controller supply module is responsible for the direct current alternating current of 220V being converted to 9V and 5V, 9V powers to air themperature sensing transducer, 5V powers to other parts, Micro-processor MCV adopts RS485 interface to obtain data from air themperature sensing transducer, the temperature data of collection is shown in LCD liquid crystal display screen, air themperature sensing transducer is placed in thermometer screen, with Micro-processor MCV at a distance of reaching 400 meters, described temperature sensing transmitter adopts RS485 communications protocol, temperature data be transmitted as ModBus communication protocol, the temperature bound that Micro-processor MCV is arranged according to parameter setting module, accumulated temperature time and accumulated temperature value etc., call accumulated temperature control strategy module, to heating, relay makes corresponding action with cooling relay, simultaneously, when temperature value exceeds the temperature bound of setting, alarm output module will sound a buzzer to point out user, can also start GPRS wireless communication module and send alarming short message to user mobile phone, clock circuit provides precise time to show in LCD liquid crystal display screen to system, whether the real-time detection system of watchdog circuit crashes, and restarts if system in case of system halt will carry out reset to system, user can by the Infrared remote controller of accumulated temperature controller, closely opens and closes heat relay and cooling relay, and user can be inquired about the temperature data of history, accumulated temperature data by button, curve display.
Wherein, the temperature sensor of air themperature sensing transducer adopts the unibus DS18B20 of DALLAS company, has the advantages that wiring is simple, volume is little.That single-chip microprocessor MCU adopts is STC Corporation's low-power consumption, high performance 8 8-digit microcontroller STC89C52.That RS485 adopts is the MAX485 of Maxim company low-power consumption, and its structure and pin are all very simple, inner containing a driver and receiver, only needs to be connected with RXD with TXD of single-chip microcomputer respectively when being connected with single-chip microprocessor MCU.
Micro-processor MCV adopts 8051 kernel mixed signal microcontroller C8051F120 of Silicon Lab company, and have the encapsulation of 100 pins, comprise 128KB flash memory, 8448KB RAM, the peripheral hardware in sheet comprises 12 100kBPS ADC.Watchdog circuit adopts MAX813, connects the reset terminal of micro-process MCU, when " feeding dog " signal that detects that 1.6s does not have, resets to Micro-processor MCV.That clock circuit adopts is the DS1302 of DALLAS company, and adopting 32.768kHz crystal oscillator, is a kind of circuit with the thin current charges ability of tiny stream, and principal feature adopts serial data transmission, can be power down protection power supply and provide programmable charge function.LCD liquid crystal display screen adopts strange 3.5 cun of beautiful large dot matrix display screens of 320*480.
See Fig. 4, a kind of service system, comprise several accumulated temperature controller, the accumulated temperature controller of each peasant household is connected on internet by GPRS wireless communication module, the industrialized agriculture general character service platform having businessman to build on the internet, this platform gathers government by internet, agriculture-related enterprise, expert, wholesale market, the agriculture relevant information of retail shop, industrialized agriculture general character service platform is issued peasant household after the information of collection being arranged, make peasant household in LCD liquid crystal display screen, obtain real-time agricultural, commodities market information, expert advice information, weather forecast information etc.
Workflow of the present invention as shown in Figure 5, accumulated temperature controller after being powered up, system starts μ C/OS-II embedded real-time operating system, start multitask process, these tasks are followed successively by initialization LCD liquid crystal display screen, initialization GPRS wireless communication module, initialization connects the serial ports of temperature sensing transmitter, the task that following system cloud gray model four is parallel, respectively: (1) accumulated temperature controller is by the industrialized agriculture general character service platform on GPRS wireless communication module connecting Internet, if successful connection, server from internet is obtained Agricultural Information, then LCD liquid crystal screen display is delivered to, wait for 3 minutes and just again connect industrialized agriculture general character service platform obtaining information, if connect unsuccessful (as do not inserted SIM card, data traffic in SIM card is finished), industrialized agriculture general character service platform is connected after then directly waiting for 3 minutes.(2) user key-press operation waited for by accumulated temperature controller, if user is arranged by key panel Selection parameter, then can open the main interface of optimum configurations, user can arrange the accumulated temperature time, accumulated temperature value, temperature bound etc., carry out deposit after being provided with to preserve, just can close the main interface of optimum configurations, get back to and wait for user key-press mode of operation, if user selects to browse Agricultural Information by key panel, then open Agricultural Information browser interface, this information obtains from industrialized agriculture general character service platform, close Agricultural Information after browsing and browse main interface, turn back to and wait for user key-press mode of operation.(3) Micro-processor MCV sends temperature acquisition instruction by ModBus agreement to temperature sensing transmitter, wait for 1 minute, temperature sensor completed the collection of data and is transferred to the serial ports of Micro-processor MCV in 1 minute, if successfully reading temperature data from serial ports buffer memory, then temperature data is sent in LCD liquid crystal display screen and show, otherwise continue to send temperature acquisition instruction, next the temperature data that success is read can be saved in SD memory card, check after convenient, Micro-processor MCV can judge whether the temperature data gathered exceedes the upper limit of temperature, exceed the upper limit and will open cooling system, and send temperature over-range warning message by GPRS wireless communication module to user mobile phone, following wait is after 10 minutes, restart to send temperature acquisition instruction, if do not exceed the lower limit that the upper limit just judges whether to have exceeded temperature, when exceeding lowest temperature, temperature raising device will be opened, and send alarming short message to user, wait for and resend temperature data acquisition instruction after 10 minutes, when not exceeding lowest temperature, accumulated temperature controller will call accumulated temperature control strategy, the accumulated temperature value that this strategy predicts the same day according to the accumulated temperature value of nearest 3 days, when the accumulated temperature value of setting can not be obtained within the time of specifying, just need to open temperature raising device, if the accumulated temperature value of setting can be reached, without the need to opening temperature raising device, all that wait resend temperature data acquisition instruction after 10 minutes.(4) Micro-processor MCV detects user and whether presses power supply shutdown button, if not, wait for 3 seconds afterwards continue detect user whether press power supply shutdown button, if press power supply shutdown button, then close μ C/OS-II operating system, system finishing.