Embodiment
Providing a most preferred embodiment below in conjunction with accompanying drawing is further described big lcd touch formula Programmable Temperature controller of the present invention.
A kind of big lcd touch formula Programmable Temperature controller of the present invention, its one-piece construction block diagram as shown in Figure 1, the hardware circuit of temperature controller adopts the form of standard special IC to design, its hardware circuit mainly contains by exchanging the system power supply circuit that 24 volts of power supply electronic circuits and battery power electronic circuit are formed, the MCU main control circuit, crystal oscillating circuit, temperature sensing circuit, by the touch-screen electronic circuit, people-machine display circuit that liquid crystal display electronic circuit and backlight screen electronic circuit are formed, stir the key circuit that the key electronic circuit is formed by three button key electronic circuits and two, the control output interface circuit, buzzer alarm circuit, the storage of subscriber data circuit, and the connecting circuit etc. of two circuit boards partly constitutes up and down.
A kind of big lcd touch formula Programmable Temperature controller of the present invention, its control principle as shown in Figure 2.
After big lcd touch formula Programmable Temperature controller brings into operation, can carry out the initialization of each several part hardware earlier, guarantee that can both operate as normal (there be any failure phenomenon in each circuit module as if controller in the controller, then provide failure code information, and be responsible for alarm by warning circuit), and the initialization state of automatic configuration system.After the controller initialization, if the user programmes the associated adjustment parameter is not set, temperature controller carries out work according to default setting so; If the user is according to the parameters of self wish programmed configurations controller, temperature controller will preferentially carry out work according to the parameter that arranges so.The user adopts the real-time status of people-machine display circuit management temperature controller, changes the control parameter at any time through key circuit and people-machine display circuit, thereby forms the control of an interior closed loop.MCU main control circuit output steering order instructs the control output interface circuit to regulate controlled device, the regulating and controlling temperature that output is actual.And temperature sensing circuit uses sensor to gather the actual temperature value of current environment, finish processing such as a series of sampling maintenance, comparison, storage by transferring to the MCU main control circuit after the A/D conversion again, real-time fiducial value according to current actual temperature and target temperature, it is temperature error values, carry out corresponding closed-loop control and regulate, make actual temperature remain near the target temperature.
A kind of big lcd touch formula Programmable Temperature controller of the present invention, its power circuit adopts the redundant cold standby mode of two electronic circuits to power to system, that is: exchange 24V (C line) power supply electronic circuit and battery power electronic circuit, like this She Ji purpose one be can the raising system reliability of power supply, the 2nd, can reduce controller to battery consumption, reduce the cost of use of controller.User's use for convenience, when interchange 24V power supply is unavailable, system will use the battery power power supply; Can use in case exchange the 24V power supply, then system will automatically switch and use interchange 24V power supply; If but the two time spent all, system can preferentially use and exchange the power supply of 24V power supply, to reduce the consumption to battery electric quantity, the use amount of saving consumptive material for the user.
As shown in Figure 3, big lcd touch formula Programmable Temperature controller can select to connect the secondary extension line (C line) of outside 24V AC transformer, controller is when effectively connecting interchange 24V external power source, and system will preferentially use interchange 24V (C line) power supply electronic circuit to finish the power supply to system.
Pass through by schottky diode D earlier from the external ac power source that the AC transformer secondary attracts
1~D
5, D
8~D
10, ZD
1, capacitor C
1~C
10, resistance R
1, R
2, and triode Q
1, Q
2Rectification, filtering circuit Deng the device composition, then arrive the input end of three-terminal voltage-stabilizing chip LM2950-3.0, here select for use LM2950 as the core of mu balanced circuit, mainly be to consider from energy-conservation angle, its static working current has only 75 μ A, can certainly use other model stabilivolt to constitute mu balanced circuit, the present invention is not restricted this during specific implementation.Through exporting V by 1 pin of chip after the voltage stabilizing
OUT, by schottky diode D
11With local decoupling capacitor C
9Finish secondary filtering, to output the VCC (=V of system
CBThe constant DC voltage of)=3.0V.Simultaneously, the V that comes out from LM2950
OUTPass through C
10Secondary filtering is by schottky diode D
13The VAC of output, VAC is mainly used in powering to backlight circuit.Why separately two cover supply lines design, and the one, consider from power supply " clean degree " design point of view, avoided the interference that produces mutually between the two; The 2nd, consider the aspect of simple design from power circuit, because backlight circuit is lower to the requirement of power supply, can directly draw VAC as power supply backlight.Under the situation of operate as normal, the output voltage of this controller power circuit will remain at V
The C line=3.0V, this moment, the battery power electronic circuit was not exported energy, made controller to use for a long time.
As shown in Figure 4, the battery power of big lcd touch formula Programmable Temperature controller only adopts two joints/group AA alkaline battery (1.5V/ joint) just can satisfy system to the demand of electric energy, but from the reliable power supply of system and the backlight circuit angle of power consumption comparatively, suggestion is used four joint (two groups) AA alkaline batteries to carry out the redundancy backup mode and is powered, to increase controller replacing interval time of battery in use.In the use of reality this is not done hard limit, the user can select flexibly according to s own situation.
The battery power electronic circuit mainly saves totally two couples of AA alkaline battery group (BT by four
1And BT
2, BT
3And BT
4), capacitor C
9, schottky diode D
12, D
19, D
14, D
20, and resistance R
3, R
4And R
5Constitute Deng device.Its concrete connected mode is: AA alkaline battery group BT
1And RT
2By schottky diode D
12Output to the CB end, AA alkaline battery BT
3And BT
4By schottky diode D
19Output to the CB end, the CB end connects filter capacitor C
9Be used for filtering clutter, steady electricity supply voltage; C herein
9The another one effect be to do holding discharge and hold C
9Even in the electric weight preserved can be under the situation that all power supplys all disconnect, controller also can enter dormant state/program, and makes the data of MCU inside be enough to keep more than two minutes by these remaining electric weight.The power supply V of output
CB(=VCC) supplied with whole digital circuit and adc circuit.AA alkaline battery group BT
1And BT
2By schottky diode D
14Output VAC; Equally, AA alkaline battery group BT
3And BT
4By schottky diode D20 output VAC, VAC provides power supply to backlight circuit; It is the operate as normal of disturbing adc circuit for fear of backlight circuit that VAC separates with VCC.
In the process of using electric battery to system's power supply, the electric quantity of power supply of electric battery can reduce gradually, until the system that can not offer with enough energy.Though single-chip microcomputer of the present invention still can be worked when being low to moderate 1.8V, but the people who in the system electric energy is had relatively high expectations-machine display circuit has surpassed the limit, especially wherein liquid crystal display electronic circuit, thereby according to wooden barrel principle (or claiming the short slab theory), here 2.6V is defined as the threshold voltage of controller operate as normal, 2.3V is defined as the twice gated service voltage of controller.
As 2.65V≤V
BATDuring≤3V, VCC=V is arranged
CB=V
BAT, system is in normal operating conditions;
As 2.3V≤V
BATDuring<2.65V, 2.3V≤VCC<2.65V is arranged, 2.3V≤VAC<2.65V, this moment, backlight screen can not normally show, liquid crystal display shows the short of electricity sign, and is interrupted demonstration failure code, reminding user to replace battery;
As 1.8V≤V
BATDuring<2.3V, 1.8V≤VCC<2.3V is arranged, this moment, liquid crystal display can not show normally that controller enters dormant state, must change battery;
As 0V≤V
BATDuring<1.8V, VCC<1.8V is arranged, controller quits work.
Can reliablely and stablely move in order to ensure system, design has the battery electric quantity detecting unit in the battery power electronic circuit.AA alkaline battery group BT
1And BT
2By diode D
17Output to resistor voltage divider network; AA alkaline battery group BT
3And BT
4By diode D
18With resistor voltage divider network R
4, R
5And R
3Output electric weight detection signal V
BAT_OFFHand over the fault detection module of single-chip microcomputer to handle.If U
1Be electric battery BT
1And BT
2Series voltage, U
2Be electric battery BT
3And BT
4Series voltage.Resistance R is arranged
4On voltage be
Resistance R
5On voltage be U
R5=U
2-U
D18(2)
Ignore diode D
18On pressure drop, can get U
R5≈ U
2(3)
Then
Get R
3=10K Ω, R
4=10K Ω
So
A kind of big lcd touch formula Programmable Temperature controller of the present invention, the CPU (central processing unit) of its MCU main control circuit adopts the H8/38024-RH microprocessor of Japanese Renesas company, this type single-chip microcomputer can be worked in the wide-voltage range from 1.8V to 5.5V, be particularly suitable for battery powered low energy consumption system (electric quantity of power supply successively decreases gradually with increasing service time), high performance MCU main control circuit is the prerequisite that temperature controller is realized response fast and accurate temperature control, also is the core of big lcd touch formula Programmable Temperature controller.The MCU main control circuit comprises that electric power loop module, sampling keep key modules such as module, A/D modular converter, memory module, comparison module, liquid crystal driver module, touch-screen driver module, fault detection module and debugging module.
As shown in Figure 5, the electric power loop module of MCU main control circuit is made of 1,8,11,49,50,51,52,53 pin, and wherein the pin 1,49,50,51 of single-chip microcomputer, 52 connects power supply V
CC, pin 8,11,53 ground connection.
Sampling keeps module to realize the integrality of sampled data, and temperature sensor is connected on 73 pin of single-chip microcomputer, and current ambient temperature signal is carried out the pressure sampling; Pin 71 passes through R
19Connect field effect transistor T
6, the signal sampling of control testing circuit is used for the make-and-break time of management and scheduling signals sampling constantly; The method that this temperature sensing circuit is only opened when the sampling module of MCU main control circuit need be sampled, the consumption of control system electric energy in signal sampling to greatest extent.
Mould/number conversion (A/D of MCU main control circuit, Analog to Digital converter) the built-in module unit of employing single-chip microcomputer, built-in 10 A/D modular converters have been realized the high precision conversion of sampled signal, mould/number conversion module adopts successive approximation method to produce binary data, convert sampled signal in the A/D conversion range digital quantity, and data are carried out linearization process, the data after the processing will deposit register in the sheet in.
The function of memory module is mainly finished by register in the sheet of single-chip microcomputer, be used for master control system and deposit and read various data parameters in, pin 13,14 connects SCL and the SDA end of storage of subscriber data circuit simultaneously, realize the exchanges data of memory module and storage of subscriber data circuit, this bipod is also multiplexing in E
2The communication of PROM.Data in the memory module are transferred to single-chip microcomputer and are carried out dynamic management after linearization process, and current actual temperature and target temperature are compared.
Comparison module is based on the principle of deviation control, obtains control signal by the processing to deviate, thereby realizes the accurate adjusting to temperature.Comparison module is taken a sample to reference power supply voltage by 74 pin of single-chip microcomputer, and it is connected resistance R
21With diode D
9The centre, be that the MCU main control circuit compares the benchmark of judging temperature variation.If have difference between the data in the memory module and this benchmark, then carry out corresponding adjustment according to the difference size, actual temperature is remained near the desired value; If it is there is not difference between the two, constant with regard to hold mode.
Liquid crystal driver module and touch-screen driver module are the built-in module of single-chip microcomputer, 17~48 pin of single-chip microcomputer are used for connecting the liquid crystal display electronic circuit, pin 45~48th, the common port of liquid crystal display electronic circuit, 13~44 connect each SEG end of liquid crystal display electronic circuit, and wherein 13~16 pin and I/O are multiplexing relation.The pin 54~59 of single-chip microcomputer and 77~80 is formed the rank scanning circuit, for detection of the input of touch-screen; Pin 54~59 connects touch-screen column scan circuit, and pin 77~80 is formed line-scan circuit.Pin 49,50,51 connects backlight circuit; Pin 62 connects the Enable Pin of the backlight driving chip CYT2507 in people-machine display circuit, is used for brightness and the break-make of control backlight circuit, and the control temperature controller is in the state working time of various low-power consumption and park mode, thus the energy consumption of saving controller.
Pin 72 connects the PROG pushbutton switch, and pin 75 connects the MENU pushbutton switch; Pin 72,75 is connected to the microswitch on the front plate, realizes input function in conjunction with touch- screen.Pin 2,3 connects the PUMP end of controlling output interface circuit and the FOSS end of wire jumper circuit respectively; Pin 4,5 mode selection switchs that connect in the key circuit receive refrigeration/thermal signal that the user sends.Pin 2,3,4,5, the 61 lower circuit plates by the 24V interface are connected to wire jumper circuit and key circuit, are used for detecting the parameter that the user arranges.
Fault detection module is used for the fault that timely discovery system may occur in the MCU main control circuit, and then provides the failure message warning, shortens the fault correction time of temperature controller, is the important component part of temperature controller reliability design.15 pin of single-chip microcomputer connect battery electric quantity detection signal BAT_OFF, and are when not connecting or changing battery, multiplexing in the replacing operation of real-time detection battery.Pin 63 output pulse width modulation signals (PWM, Pulse Width Modulation), the active hummer that is used for the control buzzer alarm circuit is sounded.Pin 76 connects the AC_SY signal, and the adhesive of pilot relay is used for AC 24V zero passage detection.
The debugging module of MCU main control circuit is mainly used in the on-line debugging of controller, makes things convenient for controller to use maintenance and the maintenance in
later stage.Pin 12,59,60,64,65,66 back-up systems reset/move/debugging mode, and wherein 12 pin connect reset signal
59 pin connect the P95 signal, and 64 pin connect the P33 signal, and 65 pin connect the P34 signal, and 66 pin connect the P35 signal; The resetting of they and 11,60 pin construction systems, operation and debug circuit.Pin 67~70 is by 4 PNP triode (D
6, D
7, D
15, D
16) drive the set/reset winding of two magnetic latching relays, realize most important 24V actuating mechanism circuit control.
High performance H8/38024-RH single-chip microcomputer is to make controller become the basis of collection temperature detection, information translation, control output trinity intelligent temperature controller, therefore for big lcd touch formula Programmable Temperature controller, the selection of single-chip microcomputer is most important in the MCU main control circuit.
The first, greatly the design of lcd touch formula Programmable Temperature controller has the operational mode of park mode and multiple low-power consumption, wider range of H8/38024-RH single-chip microcomputer operating voltage, and the operating voltage that is low to moderate 1.8 volts can be supported low-power consumption and super low-power consumption mode of operation, is equipped with capacitor C
9And C
10Constitute the electric power loop module of single-chip microcomputer, though the system that can guarantee under the situation of outage, single-chip microcomputer still can enter dormant state/program from duty arbitrarily, meets the designing requirement that battery supply set " green " is used fully.
The second, the H8/38024-RH single-chip microcomputer can provide accurate time clock for system, and it can support 32.768KHz RTC master clock source and the secondary two kinds of pulses in clock source of 4MHz, satisfies system to the harsh requirement of time clock.
Three, the H8/38024-RH single-chip microcomputer has high durable Flash/RAM storage unit, and wherein the RAM data space of the Flash flash memory of 32KB and 1KB can satisfy the needs that controller is stored data parameters just.Memory module is used the built-in flash cell of single-chip microcomputer, and data are kept among the RAM, do not adopt E
2The storer of PROM makes controller in the restriction that needn't be subjected to erasing and writing life aspect the data storage again, we can say the serviceable life that has prolonged product from another point of view.
The 4th, most A/D transfer processes are often very responsive to electrical noise, this inherent defect that exists in the A/D conversion, any noise that transfer process is occurred all can be involved in the sampled signal of gained, cause the data that are transformed into to lose credibility, cause all needing generally speaking sampled signal is calibrated, but increase the reliability that calibration circuit not only can reduce entire system, and increased the design complexities of system, strengthen and make, assembling and labour cost, and select for use the H8/38024-RH single-chip microcomputer with integrated A/D converter just can overcome this problem preferably.
Five, the electrochemical capacitor C of the built-in memory module of H8/38024-RH single-chip microcomputer and cheapness
9Combination, and be aided with the storage of subscriber data circuit, can be under-supply at battery electric quantity, under power circuit fault or any situation that causes the unexpected power down of power supply, the supplemental characteristic that the user is disposed continues to keep not losing in two minutes at least, the time that enough is used for battery altering or repairs the power circuit fault is provided, avoid allowing the user import the trouble of program parameters again, embodied the basic concept of this controller human oriented design.In addition, also save the higher nonvolatile memory of price, thereby reduced the cost of product.
Six, modern integrated circuits is complicated day by day, and reliability is Circuits System most important index request except function.Big lcd touch formula Programmable Temperature controller adopts touch-screen+liquid crystal board+backlight as the window of man-machine interaction, and liquid crystal display and touch control all need the driving circuit driving to use, the configuration liquid crystal display drive circuit not only will take this rare single-chip microcomputer pin resource separately in system, and increased the complexity of system, greatly increase cost of products in addition, but adopted the H8/38024-RH single-chip microcomputer with integrated liquid crystal driver module and touch-screen driver module then to solve this problem rightly.The H8/38024-RH single-chip microcomputer is powerful, integrated level is high, and single-chip microcomputer inside is integrated with 32 * 4 sections lcd drive chip, can directly drive liquid crystal display and backlight screen, has realized that comparatively economically people-machine shows control.
As shown in Figure 6, a kind of big lcd touch formula Programmable Temperature controller of the present invention, its crystal oscillating circuit is the system clock source (SCS of temperature controller entire circuit system, System Clock Selection), it provides a unified time clock for MCU main control circuit and peripheral circuit thereof, by resistance R
29, R
30, capacitor C
11~C
14Form with devices such as high frequency crystal oscillator Y1, Y2, connect and compose crystal oscillating circuit with 6,7,9,10 pins of single-chip microcomputer.Crystal oscillating circuit is divided into 4MHz major clock electronic circuit and 32.768KHz RTC clock source electronic circuit (secondary clock circuit) two parts, and wherein 4MHz major clock electronic circuit is by R
30, C
14, C
13Ceramic resonators Y with built-in capacitance
2Deng composition, 32768Hz clock source electronic circuit is by R
29, C
11, C
12With wristwatch crystal Y
1Deng composition.
As shown in Figure 7, a kind of big lcd touch formula Programmable Temperature controller of the present invention, its temperature sensing circuit is used for the current temperature value of the big lcd touch formula Programmable Temperature controller surrounding environment of monitoring, and temperature sensing circuit has been realized the high-precision temperature sampling of sensor strip switch control.Power supply V
CCBy P-channel field-effect transistor (PEFT) pipe T
6Be applied to by R
18With the resistor ladder upper end that RT1 constitutes, field effect transistor T
6Be the electronic switch in the temperature sensing circuit, its break-make and make-and-break time all are subjected to management and the scheduling of MCU main control circuit, T
6Conducting resistance have only 0.15 Ω, can effectively reduce and introduce the error that the resistor ladder circuit brings, the MCU main control circuit is by control T
6Break-make, realize the measurement of temperature signal to external world of control temperature sensing circuit.If ambient temperature changes, the resistance of thermistor RT1 just produces a variable quantity thereupon, pass through the pressure of sampling bleeder circuit again, convert the variation delta T of ambient temperature the voltage variety Δ U of thermistor to, voltage variety Δ U sends into the built-in mould of single-chip microcomputer/number conversion module and changes after keeping.
Sensor in the temperature sensing circuit is selected the NTC thermistor of glass-encapsulated for use, and (the thermosensitive resistance measurement temperature usually shows as has hysteresis quality for TH, Thermistor) RT1, and this characteristic can be described with the mathematical model (6) of single order link.Because there be to a certain extent non-linear in the resistance-temperature characteristics of thermistor, influenced the measuring accuracy of thermistor, this just need carry out the comprehensive linearization process of software and hardware to the temperature survey of thermistor.
y=1-e
αx (6)
In the formula: the time parameter of α-inertial element, demarcate value according to reality.
In order to improve the temperature-controlled precision of system, the algorithm design of software need be made linearization process, and software algorithm design ultimate principle can calculate the linearization corresponding relation of thermistor resistance and temperature according to formula (7).This formula is the conversion method of thermistor resistance and temperature, and by formula (7) and table 1 as can be known, NTC thermistor resistance and temperature are inversely proportional to, and the resistance of the more high then thermistor of temperature is more low, and output voltage is also more little; Otherwise the resistance of the more low then thermistor of temperature is more high, and output voltage is also more big.
In the formula: T
T0=t
0+ 273.15 (t wherein
0=25 ℃ is the benchmark room temperature), unit is K.
T
t=t
t+ 273.15 (wherein t is actual room temperature, unit be ℃), unit is K.
R
T0-environment t
0Nominal resistance in the time of=25 ℃, unit are k Ω; Be 10k Ω as can be known from Table 1.
Relation between table 1 temperature and the thermistor resistance
Temperature T (℃) |
0 |
5 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
Resistance R (k Ω) |
32.654 |
25.396 |
19.903 |
15.714 |
12.493 |
10 |
8.056 |
6.530 |
5.327 |
R
t-environment t
tResistance during=t, unit is k Ω.
The material constant of B-NTC thermistor, it is a constant of reflection negative temperature coefficient thermistor sensitivity, unit is ℃; The B value is more big, and the heat sensitivity of thermal resistor is more high, and its formula is shown in (8), and the thermistor material constant that calculating can this temperature controller be used is 3915.5K, as shown in Equation (9).
In the time of t=35 ℃, T is arranged
t=T
35 ℃=35+273.15K, T
T0=T
25 ℃=25+273.15K; As shown in Table 1, R
t=R
35 ℃=6.530k Ω, R
T0=R
25 ℃=10.000k Ω; Then
(9)
For the measured temperature that makes controller more accurate, except will be the enterprising line linearity processing of software algorithm, also to further carry out the linearization process of hardware to circuit, overcome the error that causes because of individual components and parts difference, with canonical measure equipment this value is demarcated, just can during normal use revise cell voltage with this value and change the temperature sampling error that causes.Secondly, room temperature is to be in metastable state in the ordinary course of things, and its fluctuation range is little, and thermistor all can remain under the minimum power as a rule, and this makes the changes delta RT1 of itself resistance just have certain linearity.
In addition, improve the accuracy of temperature detection, need also to guarantee that the Current Temperatures that records and the digital quantity that is transformed in the single-chip microcomputer are linear corresponding relation.Resistance R
21With diode D
9The reference circuit that is composed in series is by D
9Volt-ampere of characteristic diode a relatively stable pressure drop U is provided
CTAD(=U
D9≈ 0.7V), definition U
CTADBe the reference voltage that compares to determine.The use of battery can cause supply voltage that a decline process is arranged, and this reference voltage is then corresponding on the ADC measurement result to show as a value that increases gradually.The linearizing method of these temperature sensing circuits is not only simple and reliable, and response speed is fast, can realize the closed-loop control of temperature preferably.
∵
∵ again
Ignore the pressure drop on the field effect transistor T6, can get
U
RTAD=U
C5=U
RT1=VCC-U
T6-U
R18 (12)
When temperature changed, thermistor RT1 is corresponding to produce a resistance change Δ RT1, established the resistance of RT1 ' after for thermistor RT1 variation.Because electric capacity has the characteristic of handing over every direct transferring, so capacitor C
5Smoothly RT1 goes up the pressure drop Δ U that corresponding temperature changes, and makes its retention wire sexual intercourse of trying one's best, but not the sudden change of discrete type relation.
∴
∴
As shown in Figure 8, a kind of big lcd touch formula Programmable Temperature controller of the present invention, its people-machine display circuit is made of touch-screen electronic circuit, liquid crystal display electronic circuit, backlight screen electronic circuit three parts, mainly finish the user adjusts parameter or real time monitoring temperature control state according to wish function, according to the Ta Siding algorithm, its transport function can be represented with formula (15).
In the formula: the k-correction factor;
A (x), B (x)-its description form is relevant polynomial expressions such as the type, model of the controlled temperature programmed parameter that arranges with the user;
The x-Laplace operator;
τ-time delay.
Touch-screen electronic circuit (Touch) supports felt pen, finger even nail to operate, and the characteristics of high s/n ratio can make it reach the accuracy of identification of regulation in various noisy electromagnetic environments.The Petting Area of 4 * 5 scopes can be caught and identify to this touch-screen, as shown in table 2, if felt pen or finger drop on the touch-screen, then this touch-screen obtains corresponding click signal, and the corresponding relation that system just can provide according to truth table 2 is determined the coordinate parameters in clicked zone, thereby reach the purpose of addressing on touch-screen, the touch-screen electronic circuit is found out corresponding signal data rapidly, provides position signalling to the MCU main control circuit subsequently, so that controller is handled accordingly and controlled.
Table 2 touch screen signal truth table
PIN |
3 |
4 |
5 |
6 |
7 |
8 |
1 |
- |
B |
F |
H |
J |
L |
2 |
- |
A |
E |
G |
I |
K |
9 |
- |
C |
Q |
- |
O |
M |
10 |
- |
D |
- |
- |
P |
N |
Liquid crystal display electronic circuit (LCD, Liquid Crystal Display) mainly is made of liquid crystal display drive circuit and LCDs two parts.Big lcd touch formula Programmable Temperature controller is installed on the indoor wall on 1.5 meters on distance ground, and (128 segmentation LCDs of viewing area 118 * 68mm), the display screen truth table is as shown in table 3 therefore to adopt 12 view directions 121 * 77mm.Why adopt this design proposal that three kinds of reasons are arranged, the one, because the liquid crystal panel of field formula is conducive to satisfy product requirement attractive in appearance; The 2nd, because the liquid crystal display of field formula is conducive to reduce mass production cost; The 3rd, because the liquid crystal panel of field formula is conducive to reduce the power consumption of liquid crystal display, satisfy the designing requirement of environmental protection; The 4th, because this liquid crystal display can normally use, can meet temperature controller to the Design in Reliability index request in the environment of-20~60 ℃ of storages and-10~50 ℃.
The signal truth table of table 3 liquid crystal display
Backlight screen electronic circuit (backlight) is by white constant-current driven chip CYT2507 backlight, inductance L
1, diode D
6~D
8, resistance R
20, capacitor C
3~C
4Form Deng components and parts.Backlight screen place liquid crystal display under, this backlight screen can adapt to the designing requirement in-20~70 ℃ of storages and-10~60 ℃ of work.The real-time condition of utilizing backlight screen can make things convenient for the user to observe controller when light is more weak can be closelyed follow the development in science and technology trend again, is conducive to product requirement attractive in appearance.
The core that white constant-current driven chip CYT2507 backlight is the backlight screen electronic circuit, this driving chip is to be exclusively used in a kind of constant current DC/DC boost converter that drives white light LEDs, only use a pair of dry cell just can drive the LED lamp of four series connection, adopt series system to provide equal electric current for the LED lamp, can guarantee that every LED lamp all has under the prerequisite of equilibrium brightness, avoid additionally increasing necessity of steady resistance, thereby reduced the design complexities of backlight screen circuit, improved the reliability of circuit; The switch oscillation frequency of CYT2507 is 1.0MHz, and output capacitance can be used very little 1uF electric capacity, can save the space greatly and reduce cost of products; In addition, be low to moderate the feedback voltage of 95mV, reduced the power that consumes on the current setting resistor, also prolonged the service time of battery-powered mode, meet the designing requirement of Product Green environmental protection, improved the global reliability of system.
Shown in accompanying drawing 9,10,11, a kind of big lcd touch formula Programmable Temperature controller of the present invention, its key circuit divides three button key electronic circuits and two to stir the key electronic circuit, be master menu button (MENU) electronic circuit, user program button (PROG) electronic circuit, system's reset key (RESET) electronic circuit, and function is stirred the key electronic circuit and fan selects to stir the key electronic circuit.
Master menu button (MENU) electronic circuit is by S
2And R
27Constitute S
2Realize temperature control archives editting function; User program button (PROG) electronic circuit is by S
3And R
28Constitute S
3Realize the menu interface handoff functionality, referring to shown in Figure 9.
System's reset key (RESET) electronic circuit is mainly by resistance R
8, capacitor C
2Constitute with button, referring to shown in Figure 10.Reset key can make system operate again when deviation takes place in operation, when pressing the RESET key, and output TP3 signal.
Function is stirred the key of stirring that the key electronic circuit adopts 4P3T, and system is in which kind of state under three kinds of states of HEAT/OFF/COOL, stirs key by function and selects to realize, referring to shown in Figure 11.When mode selection switch placed COOL or HEAT position, system works was under the pattern of correspondence, and the COOL on the liquid crystal display or HEAT sign are lighted simultaneously.Press the homepage icon at other interface, then enter the COOL/HEAT state interface; If refrigerating/heating work is carried out, then Dui Ying COOL or HEAT sign can flicker.At this moment, the parameter under the stopped status interface can be set, transient target temperature or program control target temperature can also be set, and can utilize the HOLD function to make transient target temperature prioritised in program control target temperature.When mode selection switch placed the OFF position, refrigeration, heat-production functions did not all start.Then enter the stopped status interface at other interface by the homepage icon.Liquid crystal display only shows current indoor actual temperature, and the user can arrange current week, time, temperature demonstration demarcation, and system, Celsius/Fahrenheit temperature showed in changeable 12/24 hour.
Fan is selected to stir the key of stirring that key adopts 1P2T, and referring to shown in Figure 11, fan selects to stir the operator scheme that key can arrange fan, fan control is realized the selection of AUTO/ON.Automatic mode (AUTO) or continuous mode (ON).When selecting automatic mode (AUTO), fan will carry out work according to the preset parameters pattern; When selecting continuous mode (ON), then fan is worked always.
As shown in Figure 12, a kind of big lcd touch formula Programmable Temperature controller of the present invention, two circuit boards are responsible for different functions respectively about it, and connecting circuit is mainly by diode D
1~D
5, triode T
2~T
5And resistance R
10~R
12Etc. formation.The realization of temperature controller regulatory function need be cooperatively interacted by digital circuit board and two circuit boards of 24 volts of plates and finish, two circuit board connecting circuit adopt the winding displacement of band edge to flexibly connect, this flexibly connecting with being rigidly connected of board to board connector between the circuit board compared, anti-vibration and the impact property of system have not only been increased, promoted the reliability of system, and flexibly connect when keeping electrical communication and can test the circuit on two circuit board opposite faces, make debugging and the maintenance in later stage of temperature controller convenient flexibly, therefore controller has also had good testability and maintainability.
Two circuit boards of the big lcd touch formula Programmable Temperature controller separately purpose one of design are from electromagnetic interference (EMI)/compatible design point of view, with the 3VDC circuit board of 24VAC circuit board and digital circuit separately, avoid the interference problem that produces each other; The 2nd, from the angle of circuit arrangement simplified design, reduce the difficulty of circuit board wiring, reduce the complexity of circuit structure design; The 3rd, from the angle of product global design, so design can be dwindled the volume of product, and the product geometric shape is more become rationally, takes full advantage of space depth installation product in the body of wall.
As shown in Figure 13, a kind of big lcd touch formula Programmable Temperature controller of the present invention, its control output interface circuit is by electric capacity V
1~V
6, wire jumper P
1~P
5, diode D
6~D
7, D
15~D
16, main components and parts such as magnetic holding signal relay MRLY1 and MRLY2 form.The control output interface circuit is temperature controller and the part that load equipment directly links to each other, and is responsible for load is exported in the control information of temperature controller, and loading interfaces has 11 ports, and is as shown in table 4.
The definition of the big liquid crystal touch formula Programmable Temperature control unit interface of table 4
Annotate: 1.R
CWith R
HDo not link to each other mutually.2. in heat pump, if cable B and O exist, cable O is connected to terminal O, cable B can not be connected with terminal B, and cable B should be connected to terminal C, otherwise can damage outside 24VAC power supply.
In general, can not directly drive and control load from the digital signal of MCU main control circuit output, must design control output interface circuit as intergrade, convert the digital controlled signal of MCU main control circuit output to can directly drive load signal, guarantee to realize every control function of temperature controller.Solid-state relay has the advantages that directly drive large current load with small control signal, and here because the electric current of load is bigger, so select solid-state relay can allow main control circuit only need export pulse control signal, just the break-make of energy pilot relay constantly.Be the power consumption that reduces temperature controller and the working time that prolongs product, just need to adopt the twin coil magnetic holding signal relay of super low-power consumption as the core of loading interfaces circuit, when 67~70 pin output pulse signals of single-chip microcomputer, corresponding actions can be done in the contact of magnetic latching relay, and after pulse signal disappears, also can be retained in contact position, fully satisfied the control requirement of temperature controller.Magnetic latching relay MRLY1 and MRLY2 are low to moderate the 2.25VDC closure/release voltage of (wherein DC represents direct supply), and the super low-power consumption of 200mW, make big lcd touch formula Programmable Temperature controller can meet the designing requirement of green energy conservation, and reach 1 * 10
8The folding number of times make temperature controller satisfy the designing requirement of needs frequent movements again.
As shown in Figure 14, a kind of big lcd touch formula Programmable Temperature controller of the present invention, its buzzer alarm circuit is by resistance R
7, R
13, R
14, triode T
1, and hummer U1 forms.Alarm control signal BUZR is by the D/A modular converter (D/A of MCU main control circuit, Digital to Analog converter) output, the digital controlled signal BUZR of main control circuit output, can not the direct controlling and driving hummer, so alarm control signal must amplify through related circuit earlier.When control signal BUZR output high level, triode T
1Conducting, then power supply V
CCThrough resistance R
7, loudspeaker U1, triode T
1Constitute the loop to GND, make loudspeaker U1 send alerting tone.When control signal BUZR is low level, triode T then
1End, loudspeaker U1 does not work.
As shown in Figure 15, a kind of big lcd touch formula Programmable Temperature controller of the present invention, its storage of subscriber data circuit is by storer AT24C02 chip, capacitor C
1, resistance R
2And R
3Constitute.The two-way communication that the storage of subscriber data circuit adopts bus rule to connect is from the parameter data signal TP1 of MCU main control circuit output, through a pull-up resistor R
2The SCL data input pin of back connected storage AT24C02 is finished the storage of data by storer.The AT24C02 storer is the E of electric erasable programming
2PROM chip, pin SCL are used for connecting user's setup parameter input of TP1; Pin SDA is used for serial and exports saved various supplemental characteristic; Address input end A
0, A
1, A
2With the direct ground connection of GND; With pin WP ground connection, can make E
2The PROM chip can carry out read-write operation.The supplemental characteristic that is stored in the storage chip can be by SDA port serial output, user's setup parameter data TP2 returns the MCU main control circuit, thereby realize the data interaction between storage of subscriber data circuit and the MCU main control circuit, by the management of MCU main control circuit, the serial clock of storer and the clock module of system are consistent in the transmission of its data (receiving/send).
Above-described embodiment, the present invention embodiment a kind of more preferably just, the common variation that those skilled in the art carries out in the technical solution of the present invention scope and replacing all should be included in protection scope of the present invention.