A kind of LED driving power and light adjusting system
Technical field
The present invention relates to a kind of LED driving power and light adjusting system, belonged to especially field of switch power of electronic technology.
Background technology
LED is the cold light source of new generation that grows up the nineties in 20th century, have the unrivaled advantage of conventional light source: for example conversion efficiency is high, caloric value low (there is no radiation), power consumption is little, the life-span reaches 100,000 hours, reaction speed fast (but high-frequency operation), environmental protection (shatter-proof, shock-resistant be difficult for broken, discarded object is recyclable, pollution-free), volume little (many, multiple combination), easy exploiting become thin short and small product, LED light source be called as after incandescent lamp, fluorescent lamp and high-intensity-gas lamp the 4th generation light source.And along with the raising of people's living standard and the development of electronic technology, people are more and more higher to the intelligent requirements of illuminator.
Because LED is responsive semiconductor device, negative temperature characteristic is arranged again, it drives design and just becomes very complicated, can not directly as conventional illumination device power with electric main.The performance of driver is directly connected to the luminous flux of LED, also affects the photoelectric conversion efficiency of lamp package, if driver is defective, the advantage of LED can not embody fully.Can say, the effect of driving power in whole light fixture is important as heart.It also affects the life-span of LED lighting apparatus in addition, and its high cost is also restricting LED in the large-scale application in general lighting field, so its structure and automatically controlled integration are one of problem demanding prompt solutions.
The mode of LED light modulation mainly is divided into linearity light adjusting, controllable silicon light modulation, three kinds of modes of PWM light modulation on the market at present.Linearity light adjusting is used simply inefficiency based on simple voltage divider principle; The operation principle of controllable silicon light modulation is to use tangential principle, reduces the effective value of output voltage, with this power that reduces normal load, is not suitable for being directly used in the LED product.The PWM light regulating technology is considered to the most promising LED light regulating technology at present, when carrying out pulse duration PWM light modulation, an extra pulse width modulation signal source need to be provided, the pulse signal duty of inputting by change is recently regulated the purpose by the LED size of current, and that the advantage of this light regulating technology is to use is simple, efficient is high, precision good, good dimming effect.
Single-chip microcomputer control technology is applied in Switching Power Supply, makes Switching Power Supply have stronger controllability, such as remote control light modulating, both solved the trouble of the switch on wall that gropes in the dark, solved again when the room rearranges due to the fixing worry of bringing in the position of the switch.Volume is little, low in energy consumption, function is strong, cost is low because infra-red remote control has, and has been most widely used a kind of communication at present and remote control means.
Summary of the invention
The present invention is poor mainly for common LED driving power man-machine interaction, and the digital intellectualization degree is low, and the shortcoming that dimming mode is single designs a kind of energy-saving and environmental protection, LED driving power and light adjusting system easily; LED driving power and light adjusting system that the present invention is designed can carry out man-machine interactive operation, set different brightness according to different environment or requirement; LED driving power and light adjusting system that the present invention is designed can produce two groups of PWM with the Infrared remote controller control single chip computer two LED lamps are carried out light modulation; LED driving power and light adjusting system that the present invention is designed, feedback circuit adopts three end off-line formula PWM switches, PWM controller in high frequency switch power and MOSFET power switch pipe are integrated on same chip, eliminated the high frequency radiation phenomenon, improve the Electro Magnetic Compatibility of power supply, reduced the requirement of device to circuit-board laying-out and input bus transition; LED driving power and light adjusting system that the present invention is designed adopt the TL431CLP chip that accurate reference voltage is provided, and have the characteristics such as little, the low dynamic output impedance of Voltage Reference error, low output noise voltage; The LED driving power that the present invention is designed adopts MAX16822 voltage-dropping type constant current high-brightness LED driver, and output current is arranged by a flash current sense resistor, and special-purpose PWM brightness regulation input can realize the pulsed LED brightness regulation of wide brightness range; LED driving power and light adjusting system that the present invention is designed to the power supply of LED lamp, also have the auxiliary output loop of two-way except one road main output, and one tunnel auxiliary output loop is powered to optocoupler, and one tunnel auxiliary output loop is powered to single-chip microcomputer; The LED light adjusting system that the present invention is designed also has LCD MODULE, can show the current brightness of LED lamp, temperature; The LED light adjusting system that the present invention is designed also has the temperature sampling module, gives the alarm by buzzer when exceeding alarm value.
According to technical scheme provided by the present invention, the design of described drive circuit, main circuit topological structure is the inverse-excitation type switch power-supply topological structure, and circuit comprises: the accessory power supply module that exchanges input rectifying filter unit, inverse-excitation converting unit, output filtering unit, constant current output unit, Voltage Feedback sampling unit, linear optical coupling isolated location, STC89C51 single chip control module, DS18B20 temperature measurement module, buzzer warning module, LCD MODULE, infrared output module, infrared receiving module, single-chip microcomputer; Described interchange input rectifying filter unit, inverse-excitation converting unit connects and the constant current output end successively, and in the constant current output end, one the tunnel is the LED power supply, and one the tunnel is the optocoupler power supply, and one the tunnel is the single chip control module power supply; The reference edge (Vref) that is input to TL431CLP after to voltage signal sampling by potential-divider network at LED master's output is controlled the shunting of this device from the negative electrode to the anode, this electric current is again the luminous component that directly drives optocoupler U3, so when output voltage has the main trend of change, Vref increases the electric current that causes flowing through TL431CLP thereupon and increases, so luminous reinforcement of optocoupler, the feedback voltage that the sensitization end obtains is also just larger, U2 is in the switching time of accepting will change after this becomes large feedback voltage MOSFET, and output voltage falls after rise with change; Also have temperature collect module on single-chip microcomputer, temperature collect module shows by single-chip microcomputer the temperature information that gathers on the LCD LCD screen; By hand-held remote controller formula infrared transmission module can differently according to the user require to control the PWM of output different duty can be respectively to two LED lamps brightness control, realize man-machine interaction.
The advantages such as described one-chip computer module adopts the STC89C51 single-chip microcomputer, has a cost low, exploits natural resources abundant, and bit addressing is convenient.And carry out software decode and output PWM with single-chip microcomputer, and the flexibility that has greatly improved circuit has reduced cost, only uses one or two button just can realize switch and the brightness regulation to a LED, and practicality is very strong.
Described temperature measurement module adopts the DS18B20 temperature sensor, DS18B20 only needs a line can realize the both-way communication of microprocessor and DS18B20 when adopting the interface mode of monobus to be connected with microprocessor, has cost low, antijamming capability is strong, the advantages such as the scene temperature that is suitable for adverse circumstances is measured, and is easy to use.When the LED temperature that collects surpasses the value that presets, the buzzer that is connected with single-chip microcomputer gives the alarm, remind timely power unit is carried out maintenance test, extend the working life of LED lamp and driving power thereof and reduce because the LED lamp damages the inconvenience that the Working Life to people brings.
Described human-computer interaction module adopts hand-held remote controller formula infrared transmission module and LCD LCD screen, realizes mutual between people and single-chip microcomputer.
Described infrared transmission module adopts utilization more extensive, the chip that decoding is relatively easy to uPD6121G chip transmitter code form forms radiating circuit, after the reflector button is pressed, namely there is remote control mode to send, the key of pressing is different, remote control coding is also different, and single-chip microcomputer can come remote control LED according to the PWM of the different coding generation different duty that receives.
Described infrared receiving module adopts integrative infrared receiver, it is a kind of infrared receiver and amplifying of integrating, without any need for outward element, just can complete from infrared receiver to the work of output with the signal of Transistor-Transistor Logic level signal compatibility, and volume is the same with common plastic packaging triode size, is suitable for the transmission of various infra-red remote controls and infrared data.
Described LED driving power and light adjusting system have three tunnel outputs, and one the tunnel is the LED module power supply of two parallel connections, and one the tunnel is the optocoupler power supply, and one the tunnel is the one-chip computer module power supply.
Described LED driving power and light adjusting system main circuit partly adopt TOPSwitch series single-chip switching, have greatly simplified the design of circuit, have shortened the design cycle.
Described LED driving power and light adjusting system adopt MAX16822 voltage-dropping type constant-current LED driver, special-purpose pulse-width modulation (PWM) input can realize the pulsed LED brightness regulation of wide region, flash current detecting and internal current arrange circuit and have reduced outer member quantity, and can provide ± average output current of 3% precision, in load transient and PWM brightness regulation process, the hysteresis control algolithm has guaranteed that excellent input power suppresses and the fast-response energy.
Described LED driving power and light adjusting system can be the LED lighting module power supply of two parallel connections, carry out PWM by single-chip microcomputer respectively and control.
The invention has the beneficial effects as follows:
(1) described a kind of LED driving power and light adjusting system, cost is low, and it is convenient to control, and peripheral circuit is simple, and is simple and reliable.
(2) described a kind of LED driving power and light adjusting system adopt the single-ended flyback LED drive circuit, and integrated chip makes circuit conversion efficient high.
(3) described a kind of LED driving power and light adjusting system, adopt Infrared Remote Control LED, infrared emission partly adopts the chip of uPD6121G chip transmitter code form to form radiating circuit, described infrared receiving module adopts integrative infrared receiver, integrate infrared receiver and amplify, man-machine interaction is simple and convenient, and is practical.
(4) described a kind of LED driving power and light adjusting system, adopting SMD STC89C51 single-chip microcomputer is control core, and intelligent degree is high, and wherein temperature detecting module Real-Time Monitoring LED temperature, produce in LED abnormality situation and report to the police.
(5) described a kind of LED driving power and light adjusting system can require the LED remote control light modulating according to the individual, and dimming scope is wide, is applicable to multiple occasion.
Description of drawings
Fig. 1 is LED driving power and light adjusting system overall structure block diagram.
Fig. 2 is LED driving power and light adjusting system main circuit.
Fig. 3 is LED driving power and light adjusting system feedback loop circuitry figure.
Fig. 4 is SMD main control chip STC89C51 minimum system figure.
Fig. 5 is the liquid crystal diagram.
Fig. 6 is the infrared transmission module circuit diagram.
Fig. 7 is the infrared receiving module circuit diagram.
Fig. 8 is LED temperature sampling module circuit diagram.
Fig. 9 is the buzzer warning module circuit diagram.
Figure 10 is infrared remote coding " 0 " and " 1 " schematic diagram.
Embodiment
The present invention will be further described below in conjunction with accompanying drawing.
As shown in Figure 1, circuit of the present invention comprises: exchange input rectifying filter unit, inverse-excitation converting unit, output filtering unit, constant current output unit, Voltage Feedback sampling unit, linear optical coupling isolated location, STC89C51 single chip control module, temperature sampling module, buzzer warning module, LCD MODULE, infrared sending module, infrared receiving module; Described interchange input rectifying filter unit, inverse-excitation converting unit is connected in the constant current output unit successively; There are 3 tunnel outputs inverse-excitation converting unit, the one tunnel for+52V voltage is the LED supply power voltage, the one tunnel be+12V voltage, the one tunnel for+5V voltage be that one-chip computer module is powered; The constant current output unit has 2, drives respectively the two paths of LED lamp; The reference edge (Vref) that is input to TL431CLP after voltage signal being sampled by potential-divider network at LED master's output is controlled the shunting of this device from the negative electrode to the anode, this electric current is again the luminous component that directly drives optocoupler U2, so when output voltage has the main trend of change, Vref increases the electric current that causes flowing through TL431CLP thereupon and increases, so the luminous reinforcement of optocoupler, the feedback voltage that the sensitization end obtains are also just larger.U2 is in the switching time of accepting will change after this becomes large feedback voltage MOSFET, and output voltage falls after rise with change, and then the closed-loop control that reaches voltage realizes voltage stabilizing output; And constant current output unit employing MAX16822 voltage-dropping type constant current high-brightness LED driver, output current is arranged by a flash current sense resistor, and special-purpose PWM brightness regulation input can realize the pulsed LED brightness regulation of wide brightness range; LCD MODULE shows the current ambient humidity, light and temperature of LED; Infrared transmission module adopts hand-held remote controller emission infrared coding to infrared receiving module; Infrared receiving module receives the infrared coding that launches and amplifies and modulate, and sends to single-chip microcomputer with the form of external interrupt; Single-chip microcomputer is controlled two LED lamps by the PWM by timer 1 and timer 2 generation duty ratio corresponding after software decode after receiving different infrared codings.
As shown in Figure 2, in main circuit, 165V~265V alternating current is the access single-phase rectification bridge behind overcurrent fuse F1 and piezo-resistance RZ1, EMI unit (electromagnetic interference inhibition unit).Wherein, the EMI unit, comprise CX2, L3 and CX1, L3 is become to be connected on respectively on the live wire and zero line in primary input loop by two inductive bank, meet filter capacitor C7 after single-phase rectification bridge, an input of capacitor C 7 one termination rectifier bridges, an other end of another termination rectifier bridge and ground connection (GND1).Circuit is wiring voltage detecting resistance R 6 after filtering, the line voltage detecting pin (L) of another termination of R6 TOP246Y chip.The R6 back connects the RCD buffer circuit, wherein the RCD buffer circuit is comprised of R3, C3, D3, CY1, receives the negative electrode of D3 after R3 and C3 parallel connection, and the anode of D3 is received the drain lead (D) of TOP246Y chip, 1 pin of CY1 one termination transformer T1,8 pin of a termination T1.The upper end of RCD is 1 pin of the upper termination transformer T1 of R3.4 pin of T1 and 5 pin form one tunnel auxiliary winding, the voltage of output one tunnel+12V after the 5 pin process D5 of T1, C13 rectification, filtering.The secondary of T1 has 7,8,9,10 4 pins, and wherein the winding of 7 pins and 8 pins formation is that main output circuit winding is the power supply of LED lamp, the voltage of output+52V.7 pins of T1 are connected with the parallel network that R1, C1, D2 form, and this network is connected rear with C1 by R1 and D2 composes in parallel, and the anode of D2 is connected with 7 pins of T1.The negative electrode of D2 connects the positive pole of polar capacitor C4, and the negative pole of C4 is received 8 pin of T1.The positive pole of the C4 inductance L 1 of then connecting, then a polar capacitor C5 in parallel and capacitor C 6 again in main output circuit, wherein the positive pole of C5 is connected with the L1 other end, the minus earth of C5 (GND2).C6 one terminates to the positive pole of C5, other end ground connection (GND2).Winding generation+5V the voltage that 9 pin of transformer T1 and 10 pin form is the single-chip microcomputer power supply.9 pin of T1 and the positive pole of receiving C10 after the anode of D4 is connected, 10 pin of the negative pole of C10 and T1 are received ground (GND2) simultaneously.An end and the DZ1 of C9 receive the negative electrode of receiving afterwards together D4, simultaneously the anode of DZ1 be connected with C9 the other end connects and receive (GND2).The outside ductility limit pin (X) of TOP246Y is received an end of resistance R 13, the other end ground connection (GND1) of R13.The frequency pin (F) of TOP246Y and source lead (S) be ground connection (GND1) simultaneously.Feedback signal is received the control pin (C) of TOP246Y and the parallel network that is made of R11, C15, C16, this parallel network is by R11 and the C16 series connection is rear and C15 is formed in parallel, feedback signal is received the end of R11, the R11 other end is received the positive pole of C16, and the negative pole of C16 and the C15 other end be ground connection (GND1) together.Main output circuit produces+and 52V voltage is connected to the end of inspection leakage resistance R2, and the R2 other end is received No. 1 pin of first MAX16822 (U1), receives simultaneously the anode of first LED.The voltage of+52V is received the negative electrode of D1, and the anode of D1 is received 5, No. 6 pins of U1.5, No. 6 pins of U1 are also received the negative terminal that is connected to first LED after an inductance L 2.The voltage of+52V is received No. 2 pins of U1.No. 2 pins of U1 are connected to pin 3, No. 4 after by capacitor C 8, simultaneously with 3, No. 4 pin ground connection (GND2).No. 7 pin inputs of U1 are from one group of PWM of single-chip microcomputer.No. 8 pins of U1 are received the end of C2 and R4 simultaneously, the other end ground connection (GND2) of C2 and R4.The voltage of+52V is received the negative pole of D6 and No. 2 pins of second MAX16822 (U5).The anode of D6 is received 5, No. 6 pins of U5.5, No. 6 pins of U5 are also received the negative terminal that an inductance L 4 is connected to second LED.Main output circuit produces+and 52V voltage is connected to the end of inspection leakage resistance R9, and the R9 other end is received No. 1 pin of U5, receives simultaneously the anode of second LED.No. 2 pins of U5 are received pin 3, No. 4 after by capacitor C 17, simultaneously with 3, No. 4 pin ground connection (GND2).No. 7 pin inputs of U5 are from another group PWM of single-chip microcomputer.No. 8 pins of U5 are received the end of C12, R12 simultaneously, the other end ground connection (GND2) of C12 and R12.
As shown in Figure 3, LED master exports feedback loop and mainly is comprised of TL431CLP, optocoupler PC817A and accessory circuit thereof.Obtain from main circuit+the 52V reference voltage, the voltage on R14 is delivered to the reference edge of TL431CLP after R8 and R14 dividing potential drop.The reference edge of TL431CLP is also received an end of capacitor C 14, and the C14 other end is received the end of R10 and C11.The other end of R10 and C11 is received the negative electrode of TL431CLP.The plus earth of TL431CLP (GND2).The negative electrode of TL431CLP is also received the negative electrode of the Light-Emitting Diode of photoelectrical coupler U3.From main circuit C4 anode sampling obtain+52V voltage, through receiving the anode of the Light-Emitting Diode of photoelectrical coupler U3 after resistance R 5.Also be connected to resistance R 7 between the negative electrode of the Light-Emitting Diode of photoelectrical coupler U3 and anode.The photistor collector electrode of U3 is connected on+the 12V power supply on, the emitter output feedback signal.
As shown in Figure 4, the minimum system of STC89C51 single-chip microcomputer is comprised of power unit, reset circuit and crystal oscillating circuit.Wherein the power circuit of 5V is produced by main circuit.The power supply of reset circuit 5V is received switch S 2 one ends, and switch S 2 other ends are by the rear ground connection of resistance R 21.The anode of capacitor C 21 is received No. 4 pins and the 5V power supply of single-chip microcomputer simultaneously.No. 38 pins of single-chip microcomputer are received the 5V power supply.16, No. 17 pin ground connection (GND2) of single-chip microcomputer.The two ends that 14, No. 15 pins of single-chip microcomputer are received respectively crystal oscillator Y1, Y1 also receives respectively at two ends the end of capacitor C 21 and C22 simultaneously, and the other end ground connection (GND2) of C1 and C2 consists of the crystal oscillator module.
As shown in Figure 5, the STC89C51 liquid crystal display circuit mainly is comprised of 12864 liquid crystal and accessory circuit thereof.1, No. 20 pin ground connection (GND2) of 12864 liquid crystal.No. 2 pin connects 5V power supply and 2K Ω slide rheostat one end, slide rheostat other end ground connection (GND2).No. 3 pins connect the slide plate of slide rheostat.No. 4 pins connect No. 11 pins of single-chip microcomputer.No. 5 pins connect No. 12 pins of single-chip microcomputer.No. 6 pins connect No. 10 pins of single-chip microcomputer.7,8,9,10,11,12,13, No. 14 pins of 12864 liquid crystal connect respectively 37,36,35,34,33,32,31,30 pins of single-chip microcomputer.No. 15 pins of 12864 liquid crystal connect No. 13 pins of single-chip microcomputer.16, No. 18 pins of 12864 liquid crystal are unsettled.17, No. 19 pins of 12864 liquid crystal connect the 5V power supply.No. 1 pin of exclusion P2 connects the 5V power supply.2,3,4,5,6,7,8,9 of P2 receives respectively 37,36,35,34,33,32,31,30 pins of single-chip microcomputer.
Infrared transmission module mainly forms the hand-held remote controller form by uPD6121G chip and auxiliary circuit thereof as shown in Figure 6.Remote controller adopts the button cell power supply of 3V, and the VDD pin of uPD6121G connects the 3V power supply, receives simultaneously the positive pole of capacitor C 18, the minus earth of C18.Meet crystal oscillator Y2 between the OSCI pin of uPD6121G and OSCO pin, simultaneously the Y2 two ends connect respectively ground connection after capacitor C 19 and C20.The SEL pin of uPD6121G is received the 3V power supply.The LMP pin of uPD6121G is received the negative electrode of light-emitting diode, and the anode of light-emitting diode is received the 3V power supply after receiving resistance R 18.The VSS pin ground connection of uPD6121G.The REM pin of uPD6121G is received the base stage of Q1, and the collector electrode of Q1 is received the negative electrode of infraluminescence diode, and the anode of infraluminescence diode is received the 3V power supply, and the emitter of Q1 is received R20 one end, the other end ground connection of R20.The KI pin of uPD6121G forms 4 * 8 coding corresponding to matrix keyboard with the KI/O pin.The CCS pin of uPD6121G is received the negative electrode of D7 and D8, and the anode of D7 and D8 is received respectively No. 0 pin and No. 3 pin of KI/O pin.No. 7 pin of KI/O pin are received the end of R19, and the R19 other end is received the 3V power supply.
Infrared receiving module mainly is comprised of 1838 integrated infrared receiving terminals and auxiliary circuit thereof as shown in Figure 7.1838 No. 1 pin is received No. 8 pin P3.2 mouths of single-chip microcomputer, No. 2 pin ground connection (GND2).The 5V power supply is received R25 one end, and the R2 other end is received the end of C23, receives simultaneously 1838 No. 3 pin, the other end ground connection (GND2) of C23.
Temperature collect module mainly is comprised of DS18B20 and auxiliary circuit thereof as shown in Figure 8.The 1 pin ground connection (GND2) of DS18B20 is connected to resistance R 22 between 2 pin and 3 pin, and 3 pin of DS18B20 connect 5V voltage, and then 2 pin of DS18B20 are connected on No. 12 pin P2.4 mouths of single-chip microcomputer.
The buzzer warning module mainly is comprised of buzzer BZ1 and warning circuit thereof as shown in Figure 9.No. 13 pin P2.3 mouths of single-chip microcomputer are by receiving the base stage of triode Q5 after R23.5V voltage is received the emitter of Q5, and the collector electrode of Q5 is received BZ1 one end, and the BZ1 other end is by ground connection (GND2) after R24.
" 0 " of the remote control coding of infrared transmission module and " 1 " as shown in figure 10.Infrared transmission module comprises keyboard matrix, coded modulation, LED infrared transmitter.We select more extensive, decoding is relatively easy to the uPD6121G chip and forms radiating circuit, after the reflector button is pressed, namely there is remote control mode to send, the key of pressing is different, remote control coding is also different, and this remote control mode adopts the serial code of pulse-width modulation, take pulsewidth as 0.565ms, interval 0.56ms, the combination of cycle as 1.125ms represent binary " 0 "; Take pulsewidth as 0.565ms, interval 1.685ms, the combination of cycle as 2.25ms represent binary " 1 ".