Invention content
It is an object of the invention to overcome used temperature control system is not high to temperature controlled precision at present to lack
It falls into, a kind of farm's automatic temperature control system is provided.
The purpose of the present invention is achieved through the following technical solutions:A kind of farm's automatic temperature control system, mainly by micro-
Controller, the display being connected respectively with microcontroller, heater control electromagnetic switch, air-blower control electromagnetic switch and letter
Number processing unit, the heater being connected with heater control electromagnetic switch, the wind turbine being connected with air-blower control electromagnetic switch,
The analog-to-digital conversion module being connected with signal processing unit and the temperature sensor being connected with analog-to-digital conversion module composition;
The signal processing unit is by processing chip U, and cathode is connected with the IN1+ pins of processing chip U, anode and analog-to-digital conversion mould
The capacitance C1 that block is connected, anode connect power supply, cathode ground connection capacitance C4, anode is connected with the anode of capacitance C4, cathode and
The capacitance C3 that the cathode of capacitance C4 is connected, the resistance being serially connected between the anode of capacitance C4 and the VCC pins of processing chip U
R3, N pole are connected after resistance R4 with the anode of capacitance C4, P poles are connected after resistance R5 with the GND pins of processing chip U
Diode D1, one end is connected with the P poles of diode D1, the other end after potentiometer R1 with the IN- pin phases of processing chip U
The resistance R2 of connection, the electricity that anode is connected with the control terminal of potentiometer R1, cathode is connected with the OUT1 pins of processing chip U
Hold C2, the signal amplification circuit being connected respectively with the anode of the OUT1 pins of processing chip U and capacitance C4 and put with signal
The trigger circuit composition that big circuit is connected;The VCC pins of the processing chip U connect power supply, GND pins ground connection.
Further, the signal amplification circuit is by triode VT1, triode VT2, the OUT1 of anode and processing chip U
Capacitance C5, the P pole and the cathode phase of capacitance C5 that pin is connected, cathode is connected after capacitance C7 with the base stage of triode VT1
Diode D2, the N pole that connection, N poles are grounded is connected with the cathode of capacitance C5, two poles that P poles are connected with the N poles of diode D2
Pipe D3, the capacitance C9 that anode is connected with the emitter of triode VT1, cathode is connected with the N poles of diode D2, with capacitance C9
The resistance R7 being in parallel, the resistance R9 being serially connected between the emitter of triode VT2 and the cathode of capacitance C9, anode and triode
Capacitance C11, the N pole that the emitter of VT2 is connected, cathode is connected with the cathode of capacitance C9 is connected with the N poles of diode D2,
The diode D4 that P poles are connected after resistance R8 with the collector of triode VT2, anode are connected with the collector of triode VT1
It connects, the capacitance C8 that cathode is connected with the base stage of triode VT2 and anode is connected with the anode of capacitance C4, cathode is through electricity
The capacitance C6 compositions being connected after resistance R6 with the collector of triode VT1;The collector of the triode VT2 respectively with capacitance C6
Cathode and trigger circuit is connected, its emitter is then connected with trigger circuit.
The trigger circuit is by triode VT3, and triode VT4, anode is connected with the emitter of triode VT2, cathode
The capacitance C10 being connected with the base stage of triode VT3, be serially connected in triode VT3 collector and triode VT2 collector it
Between resistance R10, the resistance R12 being serially connected between the collector of triode VT3 and the base stage of triode VT4, one end and three poles
The resistance R11 and P poles that the emitter of pipe VT3 is connected, the other end is connected after resistance R13 with the base stage of triode VT4
It is connected with the emitter of triode VT4, the diode D5 compositions that N poles are connected with microcontroller;The resistance R11 and resistance
The tie point ground connection of R13;The emitter of the triode VT4 is connected with the emitter of triode VT3, the collection of triode VT4
Collector of the electrode then with triode VT2 is connected.
The processing chip U is LM324 integrated chips.
The present invention compared with the prior art, has the following advantages and advantageous effect:
The present invention can be handled detection signal, detection signal be made more to stablize, so as to allow microcontroller more
Accurately detection signal is identified and compared, improves control accuracy of the present invention to temperature in farm.
Embodiment
As shown in Figure 1, the present invention is mainly by microcontroller, display, heater control electromagnetic switch, air-blower control electromagnetism
Switch, heater, wind turbine, signal processing unit, analog-to-digital conversion module and temperature sensor composition.
The temperature sensor is set in farm, for acquiring the temperature in farm and exporting corresponding analog signal
To analog-to-digital conversion module, use the FST600-101 types temperature sensor that Hunan Fierst sensor Co., Ltd produces come
It realizes.The analog-to-digital conversion module is exported for the analog signal that temperature sensor exports to be converted to digital signal to signal processing
Unit, the analog-to-digital conversion module realize that the VIN+ of the AD7810 modulus conversion chips is managed using AD7810 modulus conversion chips
Foot and VIN- pins are connected with the signal output interface of temperature sensor, DOUT pins then with the signal of signal processing unit
Input terminal is connected.The signal processing unit can be handled digital signal, so as to improve the present invention to temperature controlled
Precision.
The microcontroller as the present invention control centre, be internally provided with the permitted maximum temperature value of farm and
Lowest temperature angle value, which detection temperature can be compared with the temperature value of its inner setting, and export corresponding
Signal is controlled to control electromagnetic switch or air-blower control electromagnetic switch to heater, controls heater or blower fan work as needed;
The microcontroller can also be shown the real time temperature of farm by display by detection signal transmission to display;
The microcontroller realized using AT89S51 microcontrollers, the P1.0I/O interfaces and signal processing unit of the AT89S51 microcontrollers
Output terminal be connected, P2.0I/O interfaces are connected with display, P2.1I/O interfaces then with heater control electromagnetism open
The input terminal of pass is connected, and input terminal of the P2.2I/O interfaces then with air-blower control electromagnetic switch is connected.Heater control electricity
The output terminal of magnetic switch is then connected with the power cord of heater, for controlling the conducting of the power supply of heater and shutdown.The wind turbine
The output terminal of control electromagnetic switch is then connected with the power cord of wind turbine, for controlling the conducting of the power supply of wind turbine and shutdown.
During work, the real time temperature signal in temperature sensor acquisition farm, and corresponding analog signal is exported to mould
Number modular converter.The analog-to-digital conversion module, which is converted analog signals into after digital signal, is transferred to signal processing unit, at signal
Reason unit is transferred to microcontroller after digital signal is handled.The microcontroller digital signal is identified and in it
The temperature value of portion's setting is compared, and when the temperature of detection is less than the lowest temperature angle value set, microcontroller gives heater control
Electromagnetic switch processed sends out signal, is closed heater control electromagnetic switch, so as to which heater be made to work, heats to farm;When
When temperature is within the scope of set temperature in farm, heater and wind turbine do not work;When in farm temperature higher than setting
During fixed maximum temperature value, microcontroller fan control electromagnetic switch sends signal, is closed air-blower control electromagnetic switch, from
And make blower fan work, cool down to farm.
In order to preferably handle detection signal, as shown in Fig. 2, the signal processing unit is by processing chip U, cathode
It is connected with the IN1+ pins of processing chip U, the capacitance C1 that anode is connected with the DOUT pins of analog-to-digital conversion module, anode connects
Power supply, the capacitance C4 of cathode ground connection, the capacitance that anode is connected with the anode of capacitance C4, cathode is connected with the cathode of capacitance C4
C3 is serially connected in resistance R3, the N pole between the anode of capacitance C4 and the VCC pins of processing chip U after resistance R4 with capacitance C4's
The diode D1 that anode is connected, P poles are connected after resistance R5 with the GND pins of processing chip U, one end is with diode D1's
The resistance R2 that P poles are connected, the other end is connected after potentiometer R1 with the IN- pins of processing chip U, anode and potentiometer R1
Control terminal be connected, the capacitance C2 that cathode is connected with the OUT1 pins of processing chip U, respectively with the OUT1 of processing chip U
The signal amplification circuit and the trigger circuit group being connected with signal amplification circuit that pin is connected with the anode of capacitance C4
Into;The VCC pins of the processing chip U connect power supply, GND pins ground connection.
The processing chip U, capacitance C2 and potentiometer R1 form a signal follower, which can be to letter
Number waveform be adjusted, so as to make the waveform of signal more stablize, that is, improve detection signal stability, so as to microcontroller
Device can preferably be compared detection signal, so as to preferably heater or wind turbine be controlled to carry out the temperature in farm
Control, improves temperature controlled precision;Adjusting potentiometer R1 then can make the waveform of detection signal reach optimum state.At this
It is LM324 integrated chips to manage chip U, and the maximum value of potentiometer R1 is 50K Ω, and the resistance value of resistance R2 ~ R5 is 10 K Ω,
The capacitance of capacitance C2 is 0.1 μ F, and the capacitance of capacitance C1 is that the capacitance of 0.01 μ F, capacitance C3 and capacitance C4 are 470 μ F, diode
D1 is then 1N4001 type diodes.
The signal amplification circuit can be amplified processing to the processing chip U detection signals exported, by triode
VT1, triode VT2, capacitance C5, capacitance C6, capacitance C7, capacitance C8, capacitance C9, capacitance C11, diode D2, diode D3, two
Pole pipe D4, resistance R6, resistance R7, resistance R8 and resistance R9 are formed.
During connection, the anode of capacitance C5 is connected with the OUT1 pins of processing chip U, cathode after capacitance C7 with triode
The base stage of VT1 is connected.The P poles of diode D2 are connected with the cathode of capacitance C5, N poles ground connection.The N poles of diode D3 and capacitance
The cathode of C5 is connected, and P poles are connected with the N poles of diode D2.The anode of capacitance C9 is connected with the emitter of triode VT1
It connects, cathode is connected with the N poles of diode D2.Resistance R7 is in parallel with capacitance C9.Resistance R9 is serially connected in the transmitting of triode VT2
Between the cathode of pole and capacitance C9.The anode of capacitance C11 is connected with the emitter of triode VT2, and cathode is negative with capacitance C9's
Pole is connected.The N poles of diode D4 are connected with the N poles of diode D2, collector of the P poles after resistance R8 with triode VT2
It is connected.The anode of capacitance C8 is connected with the collector of triode VT1, and cathode is connected with the base stage of triode VT2.Capacitance
The anode of C6 is connected with the anode of capacitance C4, and collector of the cathode with triode VT1 after resistance R6 is connected.Three pole
The collector of pipe VT2 is connected respectively with the cathode of capacitance C6 and trigger circuit, and emitter is then connected with trigger circuit.
The detection signal of processing chip U outputs is input to after diode D2 and diode D3 carries out amplitude limit by triode
The amplifier that VT1, triode VT2, capacitance C8, resistance R9, resistance R7 and capacitance C9 are formed is amplified processing.By putting
Detection signal after big is more clear, so as to which microcontroller be enable preferably to be identified, compare to detection signal, so as to more
Good controls temperature.The model of the model 3AX31 of triode VT1, triode VT2 are then 2SC1815, capacitance
The capacitance of C5, capacitance C7 and capacitance C8 are 0.01 μ F, and the capacitance of capacitance C6, capacitance C9 and capacitance C11 is 470 μ F, and two
The model of pole pipe D2 and diode D3 are 1N4148, and the model of diode D4 is then 1N4001.The resistance value of resistance R6 is 100 K
The resistance value of Ω, resistance R8 are that the resistance value of 4.7 K Ω, resistance R7 and resistance R9 are 470 K Ω.
In addition, the trigger circuit can carry out further Shape correction to the detection signal that signal amplification circuit exports,
It is by triode VT3, triode VT4, capacitance C10, resistance R10, resistance R11, resistance R12, resistance R13 and diode D5 groups
Into.
Wherein, the anode of capacitance C10 is connected with the emitter of triode VT2, and cathode is connected with the base stage of triode VT3
It connects.Resistance R10 is serially connected between the collector of triode VT3 and the collector of triode VT2.Resistance R12 is serially connected in triode
Between the collector of VT3 and the base stage of triode VT4.One end of resistance R11 is connected with the emitter of triode VT3, another
The base stage with triode VT4 after resistance R13 is held to be connected.The P poles of diode D5 are connected with the emitter of triode VT4, N
Pole is connected with the P1.0I/O interfaces of microcontroller.The tie point ground connection of the resistance R11 and resistance R13.The triode
The emitter of VT4 is connected with the emitter of triode VT3, the collector of triode VT4 then with the collector phase of triode VT2
Connection.
The triode VT3, triode VT4, resistance R12, resistance R13 and resistance R11 collectively form a Schmidt and touch
Device is sent out, which can carry out further shaping to the waveform for detecting signal, waveform is avoided to be distorted, so as to
Microcontroller preferably can be identified and compare to detection signal, so as to improve the present invention to temperature controlled precision.It should
The model of triode VT3 and triode VT4 are 3DG12C, and the capacitance of capacitance C10 is 0.1 μ F, resistance R10 and resistance R12
The resistance value that resistance value is 1 K Ω, resistance R11 and resistance R13 is 22 K Ω, and diode D5 is then 1N4001 type diodes.
Detection signal becomes more stable after signal processing unit processes, so as to allow microcontroller more accurately
Detection signal is identified and compared, improves control accuracy of the present invention to temperature in farm.
As described above, the present invention can be realized well.