Embodiment
The utility model is described in further detail below in conjunction with specific embodiment.
As shown in Figure 1, be complete machine block diagram of the present utility model, a kind of UPS remote controllers comprise the single-chip microcomputer as the master control chip, be used to the action button circuit that is provided with or inquires about, be used for the LCD display circuit that the UPS running status shows, be used to the warning circuit of warning the UPS operating state to change, be used to show the led state indicating circuit of ups power running status, be used to the program setting that the time of carrying out and work and rest are provided with, the accessory power supply that is used to realize the RS485 communicating circuit of telecommunication and is used to provide single-chip microcomputer and RS485 communicating circuit working power, above-mentioned each functional circuit is connected with the corresponding function port of single-chip microcomputer, single-chip microcomputer adopts the microprocessor MC9S08AW16 of FREESCALE company, this single-chip microcomputer of this single-chip microcomputer has the A/D of 88 passages, 34 I/O, 2 timers, peripheral circuit is simple.Wherein, serial communication interface realizes that single-chip microcomputer and UPS main frame carry out data communication; 8 buses realize the data communication of single-chip microcomputer and LCD LCD panel; Other mouth line is realized the various controls to circuit.
As shown in Figure 2, be auxiliary power circuit schematic diagram of the present utility model, accessory power supply comprises power supply CN1, fuse F1, switch S 1, rectifier bridge BR1, resistance R 1, R2, R15~R26, capacitor C 1~C10, diode D1~D4, field effect transistor Q3, TL431Q4, transformer T1, flow restricter RT1, photoelectrical coupler U4 and PWM integrated circuit U5.
Power supply is by civil power input power supply, described CN1-1 is the live wire of civil power input, connect switch S 1 after fuse F1 inserts 2 pin of rectifier bridge BR1, CN1-3 connects 3 pin of rectifier bridge BR1, the 4 pin ground connection of BR1,1 pin output direct current connect the positive pole of capacitor C 1 and an end of resistance R 1 simultaneously by flow restricter RT1, the minus earth of capacitor C 1, the other end of resistance R 1 insert the positive pole of capacitor C 4 and 7 pin of PWM integrated circuit U5, the minus earth of C4 simultaneously; 6 pin of PWM integrated circuit U5 connect the grid of field effect transistor Q3 through resistance R 19, and the source electrode of Q3 is through resistance R 26 ground connection, and the elementary winding of transformer T1 is sent in the drain electrode of Q3, and resistance R 23 connects source electrode and the grid of Q3; The positive pole of the secondary A winding one terminating diode D1 of transformer T1, the negative pole of diode D1 connects the positive pole of capacitor C 2, the other end ground connection of the negative pole of C2 and secondary A winding, the negative pole output voltage of diode D1 is as the operating voltage of single-chip microcomputer simultaneously; The secondary C winding of transformer T1 and diode D3, capacitor C 5 are to be connected with T1 level A winding, structure that D1, C2 are identical, and the negative pole output voltage of diode D3 provides the operating voltage of RS485 circuit; The secondary B winding of transformer T1 and diode D4, capacitor C 4 are to be connected with T1 level A winding, structure that D1, C2 are identical, the negative pole of diode D4 inserts 7 pin of PWM integrated circuit U5, concrete operation principle is: civil power was connected to rectifier bridge BR1 and is rectified into direct current when switch S 1 was closed behind the F1 fuse, by after the RT1 current limliting C1 filtering as the Switching Power Supply of PWM integrated circuit U5; R1 is a starting resistance, and C4 is a filter capacitor, gives the 7 pin power supply of U5, and the 6 pin output pwm signals of U5 drive the elementary winding that Q3 comes driving transformer T1 by R19, and secondary B winding feedback is powered to U5 by after the D4 rectification C4 filtering; Secondary A winding then by D1 rectification C2 filtering provide complete machine+5 direct currents, the power supply microcontroller control circuit; Secondary C winding by D3 rectification C5 filtering provide the RS485 circuit+the 5V working power.
PWM integrated circuit U5 inner integrated oscillating circuit saw-toothed wave generator, comparator, error amplifier, current amplifier and output start-up circuit, the pin division of labor of U5 is: 1 pin is the output of defeated error amplifier, 2 pin are the input of error amplifier, 3 pin are the current signal input pin, 4 pin are timing resistor, electric capacity pin, and 5 pin are power supply ground, and 6 pin are the drive signal output pin, 7 pin are supply pin, and 8 pin are internal reference power supply output pin.Capacitor C 6 and resistance R 16 1,2 pin that insert U5 arranged side by side; The 5V power supply connects an end of 8 pin, ground capacity C10 and the resistance R 21 of U5 simultaneously, and the other end of R21 meets 4 pin and the ground capacity C9 of U5 simultaneously; The 5V power supply of the secondary output of T1 connects the positive pole of light-emitting diode among the photoelectrical coupler U4 after by resistance R 15, the negative pole of light-emitting diode connects the negative electrode of Q4, the plus earth of Q4, the 5V power supply is successively by ground connection behind resistance R 20, the R25 simultaneously, capacitor C 7 and resistance R 22 are connected between the negative electrode and reference edge of Q4, and resistance R 17 is connected between the both positive and negative polarity of light-emitting diode among the U4.The operation principle of PWM integrated circuit U5 is: after the U5 start, 6 pin output square-wave signal, by transformer T1 conversion, the power supply that secondary commutation produces rises to+5V from 0V, 2.5V benchmark with Q4 inside after resistance R 20 and R25 dividing potential drop compares and enlarges, by Q4 output control U4 inside Light-Emitting Diode, the phototriode conducting of U4 inside, be connected to the 2 foot fault difference amplifier input terminal of U5 through R18, the error amplifier through inside amplifies, R16, C6 is a feedback compensation, compare through amplifying signal and inner sawtooth waveforms, produce pwm pulse width modulated square wave, the drive circuit through inside amplifies, from 6 pin output driving switch power tube Q3; If output is higher than 5V, then reduce to export the duty ratio of square wave, reduce output voltage; When being lower than the duty ratio that 5V then transfers wide output, improve voltage, instantaneous adjusting guarantees the stable of output voltage.
As shown in Figure 2, SCM peripheral circuit theory diagrams for utility model, single-chip microcomputer and peripheral circuit comprise single-chip microcomputer U6, resistance R 30, R38, R43, capacitor C 11, C16~C18, crystal oscillator Y1 and switch S 5, crystal oscillator Y1 connects an end that opens shake capacitor C 17, C18 respectively with two ends, resistance R 43 back in parallel, and the other end ground connection of C17, C18 is formed crystal oscillating circuit, insert 37,38 pin of single-chip microcomputer U6, the work clock of single-chip microcomputer is provided; The 5V power supply connects ground capacity C16 by resistance R 38 and constitutes reset circuit, insert 3 pin of single-chip microcomputer between R38 and the C16,3 pin of single-chip microcomputer connect an end of switch S 5 simultaneously, the other end ground connection of S5,3 pin are low level when powering on, 5V voltage charges to C16 by R38, and voltage slowly rises to threshold values, finishes to reset; K5 is a manual reset switch, and behind this switch of manual closing, 3 pin of single-chip microcomputer directly are communicated with ground, and voltage becomes 0V, and single-chip microcomputer enters reset mode, and all working procedures restart, and the displaying contents of display screen is reset to initial condition; The 5V power supply connects 2 pin of ground capacity C11 and single-chip microcomputer by resistance R 30, and 2 pin IRQ of single-chip microcomputer are the interrupt request singal control pin, and R30 is a supplying resistance, and C11 is a power filtering capacitor.Being connected of the corresponding port of each functional circuit and single-chip microcomputer U6, can be achieved as follows function: by RS485 to the ups power remote monitoring, remote on-off, the LED indication, LCD shows, buzzer warning, the demonstration of the demonstration of demonstration, cell voltage and the charging current of the demonstration of the electric voltage frequency of input and output, load size, demonstration, system operation and the setting of temperature value; Outside integrated circuit of clock and memory E2ROM can carry out data communication by the I2C bus and the single-chip microcomputer of single-chip microcomputer inside, and work and rest control operations such as switching on and shutting down, battery inversion test are carried out in realization to ups power.
As shown in Figure 4, display and peripheral circuit schematic diagram for utility model, display adopts 12864 LCD, peripheral circuit comprises resistance R 32, R36, R42, adjustable resistance W1, capacitor C 15 and triode Q9, LCD shows the job information of the long-range ups power mode by literal or figure intuitively, makes things convenient for the user to understand the operating state and the operating position of long-range ups power; CN1 is the insert row that is connected of LCD MODULE and PCB control board, mainly plays the transmission effect of data; The 5V power supply meets ground capacity C15 by resistance R 32 and forms reset circuit, inserts 17 pin of CN1 between resistance R 32 and the capacitor C 15; The base stage that connects triode Q9 behind the 32 pin connecting resistance R42 of single-chip microcomputer U6, the grounded emitter of Q9, collector electrode insert 20 pin of CN1.
The concrete function that connects insert row CN1 pin in the LCD is: 1 pin VSS is the ground of 5V supply voltage; 2 pin are the VDD supply pin, and the operating voltage of 5V is provided to LCD; 3 pin VO are the demonstration contrast adjustment end of LCD, and W1 is a contrast CONTROLLED POTENTIAL device, and 18 pin are the negative pressure signal that LCD MODULE is sent, and by the adjusting to W1, the contrast of liquid crystal display are changed; 4 pin RS be LCD MODULE command select signal end; 5 pin RW are the read-write end of LCD MODULE; 6 pin E are the enable signal end; 7---14 pin are 8 buses; 15 pin are the chip selection signal end on the CS1 LCD MODULE left side; 16 pin are the chip selection signal end on CS2 LCD MODULE the right; 17 pin are the RESET resetting pin, and R32 and C15 have formed reset circuit, marquis when start, 5V voltage is ground level through R32 to C15 charging 4 pin voltages this moment, and LCD is in reset mode, with the continuous charging of making C15, when the voltage of 4 pin rose to threshold values, LCD stopped to reset; 18,19 pin of LCD are the working power of LCD inside (LED lamp) backlight, R36 is the backlight electric power current-limiting resistance, Q9 is a backlight control triode backlight, backlight is lighted during conducting, by the time backlight closing, the power consumption that reduces power supply prolongs the useful life of backlight, as people's action button or when new state variation is arranged, backlight is opened automatically, and R42 is the base stage current-limiting resistance of backlight control signal to Q9.
As shown in Figure 5, RS485 communicating circuit schematic diagram for utility model, RS485 communicating circuit U2 adopts special circuit MAX1487E, and the peripheral circuit of RS485 comprises resistance R 3~R14, inductance L 1~L3, triode Q1, Q2, photoelectrical coupler U1, U3, TVS diode Z1, Z2.The 1 pin RO of RS485 communicating circuit U2 is signal output, connect the base stage that drives triode Q1 behind the connecting resistance R6, the grounded emitter of Q1, collector electrode connect the negative pole of light-emitting diode among the photoelectrical coupler U1, the 5V power supply passes through 1 pin that resistance R 4 inserts U2 simultaneously by the positive pole that resistance R 3 connects light-emitting diode among the U1, the collector electrode of photoinduction triode connects the 5V power supply among the triode photoelectrical coupler U1, and emitter meets 8 pin and the earth resistance R5 of single-chip microcomputer U6 simultaneously; The 4 pin DI of RS485 communicating circuit U2 are input signal, the 5V power supply connects the positive pole of light-emitting diode among the photoelectrical coupler U3 by resistance R 13, the negative pole of light-emitting diode inserts 9 pin of single-chip microcomputer U6, the grounded emitter of photoinduction triode, collector electrode connect 3 pin of U2 and an end of resistance R 10 simultaneously among the photoelectrical coupler U3, another termination 5V power supply of R10; 2,3 pin RE, the DE of RS485 communicating circuit U2 is respectively output enable signal and input enable signal, 2,3 pin of input U2 when the collector electrode that the 5V power supply connects triode Q2 by resistance R 8 is colluded, the grounded emitter of triode Q2, base stage isomorphism resistance R 14 connect 4 pin of U2; The 5 pin GND of RS485 communicating circuit U2 are power supply ground; The 6 pin A of RS485 communicating circuit U2 be RS485 output differential signal+, 6 pin meet pull-up resistor R7 and the filter inductance L1 output A (485+) that adds the 5V power supply after by current-limiting resistance R9 simultaneously; The 7 pin B of RS485 communicating circuit U2 be RS485 output differential signal-, 7 pin connect the leave behind resistance R 11 and the filter inductance L2 output B (485-) on ground after by current-limiting resistance R12 simultaneously; One end ground connection of inductance L 3, the other end connects the positive pole of TVS diode Z1, Z2 simultaneously, and the negative pole that the negative pole of Z1 meets B (485-), Z2 meets A (485+), and protection U2 is not subjected to the surge voltage signal corruption; The 8 pin VCC of RS485 communicating circuit U2 are power supply+5V.
As shown in Figure 6, warning and action button circuit theory diagrams for utility model, warning circuit comprises resistance R 31, triode Q5, diode D5 and buzzer BUZZ1, the 41 pin Buzz_alam of single-chip microcomputer U6 connect the base stage of triode Q5 by resistance R 31, the grounded emitter of Q5, buzzer BUZZ1 and positive pole after diode D5 is in parallel connect the collector electrode of Q5, and negative pole connects the 5V power supply; The action button circuit comprises resistance R 27~R29, switch S 2~S4 and capacitor C 12~C14, the end of 5V power supply connecting resistance R27, the other end of R27 inserts the 27 pin K5 of single-chip microcomputer U6, connects parallel circuits one end of capacitor C 13 and switch S 2 simultaneously, and the other end ground connection of column circuits; Resistance R 28, switch S 3 are connected with identical structure with above-mentioned R27, S2, C13 with capacitor C 12, insert the 28 pin K6 of single-chip microcomputer U6; Resistance R 29, switch S 4 are connected with identical structure with above-mentioned R27, S2, C13 with capacitor C 14, insert the 29 pin K7 of single-chip microcomputer U6.The concrete course of work of warning and action button circuit is: Buzz alam is the alarm control signal that single-chip microcomputer is sent, when being output as high level, drive triode Q5 conducting BUZZ1 buzzer call by R31, D5 is fly-wheel diode protection Q5, buzzer stops to pipe when control signal is low level, and reporting to the police by the sound of control different intervals is not both operating state; K5 is the increment key, when setting numeral, whenever increase by 1 by once digital, it when making cursor movement key UpArrow, the K5 signal is moved 5V on by R27 when not pressing S2, when pressing, be shorted to 0V, press for button when single chip computer measurement then allows when this mouth is low level, carry out operation accordingly; K6 is a cursor key during for cursor movement key left, be provided with or during query function for determining key, the K6 signal is moved 5V on by R28 when not pressing S3, is shorted to 0V when pressing, press for button when single chip computer measurement then allows when this mouth is low level, carry out operation accordingly; K7 is ESC Escape for turning over the screen key when setting or query function.The K7 signal is moved 5V on by R29 when not pressing S4, is shorted to 0V when pressing, and presses for button when single chip computer measurement then allows during for low level to this mouth, carries out operation accordingly.
As shown in Figure 7, led state indicating circuit schematic diagram for utility model, the led state indicating circuit comprises resistance R 33~R35, R39~R41, R44~R49, LED 1~LED6, triode Q6~Q8, Q10~Q12, the 5V power supply is by the positive pole of resistance R 33 sending and receiving optical diode LED, and the negative pole of LED1 connects the collector electrode of triode Q6, the grounded emitter of Q6, the base stage of Q6 meet the 21 pin mains of single-chip microcomputer U6 by resistance R 39; Resistance R 34, R41, LED 2, triode Q8 connect with identical structure with above-mentioned R33, R39, LED1, Q6, meet the 22 pin bypass of single-chip microcomputer U6; Resistance R 35, R40, LED 3, triode Q7 connect with identical structure with above-mentioned R33, R39, LED1, Q6, meet the 5 pin inverter of single-chip microcomputer U6; Resistance R 45, R47, LED 5, triode Q10 connect with identical structure with above-mentioned R33, R39, LED1, Q6, meet the 7 pin battery of single-chip microcomputer U6; Resistance R 44, R48, LED 4, triode Q11 connect with identical structure with above-mentioned R33, R39, LED1, Q6, meet the 40 pin overload of single-chip microcomputer U6; Resistance R 46, R49, LED 6, triode Q12 connect with identical structure with above-mentioned R33, R39, LED1, Q6, meet the 1 pin COMM-DIS of single-chip microcomputer U6.
The operation principle of led state indicating circuit is: the Mains signal is the normal indicator light of civil power, when civil power is just often sent high level, drives Q6 conducting LED1 by R39 and lights through the R33 current limliting; The bypass signal is the bypass run indicator, sends high level when UPS operates in bypass condition, drives Q8 conducting LED2 by R41 and lights through the R34 current limliting; The inveter signal is the inverter operation indicator light, sends high level when UPS operates in inverter mode, drives Q7 conducting LED3 by R40 and lights through the R35 current limliting; The battery signal is the normal indicator light of battery, when battery is just often sent high level, drives Q10 conducting LED5 by R47 and lights through the R45 current limliting; The overload signal is the output overloading indicator light, sends high level when the UPS output overloading, drives Q11 conducting LED4 by R48 and lights through the R44 current limliting; The COMM-DIS signal is the communication indicator light, sends high level normal time every one second when watch-dog and UPS communication, and it is glittering through the R46 current limliting to drive Q12 conducting LED6 by R49.