Summary of the invention
In view of the above-mentioned problems existing in the prior art, a kind of control circuit adjusting LED current curve is now provided.
Specific technical solution is as follows:
A kind of control circuit adjusting LED current curve, a plurality of LED light of connecting in the control circuit, including:
One power supply module for providing supply voltage, and converts alternating current to direct current;
One adjustment module, the input terminal of the adjustment module are connect with the output end of the power supply module, the adjusting mould
Block is for adjusting the supply voltage and powering for the LED light;
One detection module, the input terminal of the detection module are connect with the output end of the power supply module, the detection mould
Block by divider resistance detects the supply voltage and according to the pressure difference of the supply voltage, to export an analog signal;
One control module, the signal acquisition terminal of the control module are connect with the output end of the detection module, the control
The power end of molding block connects the output end of the adjustment module, and the control module is for acquiring the analog signal, by institute
State analog signal and be converted to digital logic signal, and by calculation by program with control the unlatching of the LED light at any time with
It closes.
Preferably, the power supply module includes:
One first resistor is connected between firewire and the first input end of a rectifier bridge;
One first inductance is connected between zero curve and the second input terminal of the rectifier bridge.
Preferably, the adjustment module includes:
One first chip, first chip include seven pins, and the 4th pin of first chip connects ground terminal,
7th pin of first chip connects the output end of the power supply module;
One second resistance, by a 3rd resistor be connected to the power supply module output end and first chip the
Between one pin;
One first diode, by one the 4th resistance be connected to first chip the first pin and one first fulcrum it
Between;
One first capacitor is connected between the output end and ground terminal of the power supply module;
One the 5th resistance is connected between the second pin and ground terminal of first chip;
One second capacitor is connected between the third pin and ground terminal of first chip;
One third capacitor is connected between the 5th pin and ground terminal of first chip;
One the 6th resistance is connected between first fulcrum and ground terminal by one the 7th resistance;
One second diode is connected between the 6th pin and ground terminal of first chip by one the 8th resistance;
One the 9th resistance is connected between the 6th pin and ground terminal;
One first coil is connected between first fulcrum and ground terminal;
One first electrolysis is held, and is connected between first fulcrum and ground terminal;
1 the tenth resistance is connected between first fulcrum and ground terminal;
One eleventh resistor is connected between first fulcrum and ground terminal by a twelfth resistor;
One triode, the emitter of the triode are connect with the first pin of one second chip;
One thirteenth resistor, by 1 the 14th resistance be connected to the triode collector and first fulcrum it
Between;
One the 4th capacitor, is connected between the base stage and ground terminal of the triode;
One the 5th capacitor is connected between first fulcrum and the 7th pin of first chip;
One first zener diode, is connected between the base stage and ground terminal of the triode.
Preferably, the detection module includes:
One the 6th capacitor, is connected between the output end and ground terminal of the power supply module;
1 the 15th resistance is connected between the output end and ground terminal of the power supply module by 1 the 16th resistance;
One second zener diode is connected between the second pin and ground terminal of second chip.
Preferably, the control module includes:
The second pin of second chip is connect with one second fulcrum;
The third pin of second chip is connect with ground terminal;
One second electrolysis is held, and is connected between the emitter and ground terminal of the triode;
The grid of one first metal-oxide-semiconductor, first metal-oxide-semiconductor is drawn by 1 the 17th resistance with the 4th of second chip
Foot connection;The drain electrode of first metal-oxide-semiconductor is connect with the first light emitting diode;The source electrode and ground terminal of first metal-oxide-semiconductor connect
It connects;
1 the 18th resistance, is connected between the grid and ground terminal of the metal-oxide-semiconductor;
The grid of one second metal-oxide-semiconductor, second metal-oxide-semiconductor is drawn by 1 the 19th resistance with the 5th of second chip
Foot connection;The drain electrode of second metal-oxide-semiconductor is connect with one second light emitting diode;The source electrode and ground terminal of second metal-oxide-semiconductor
Connection;
One the 20th resistance is connected between the grid and ground terminal of second metal-oxide-semiconductor.
Preferably, the triode is NPN type triode.
Preferably, the rectifier bridge includes that four diodes join end to end.
Technical solution of the present invention beneficial effect is: the pressure difference of phases line voltage signal is acquired by programmable logic chip
With the zero passage detection sequential synthesis analog signal of ac voltage signal, digital logic signal is converted to, is driven with digital logic signal
Dynamic control LED any time is switched on and off.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without creative labor it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The present invention will be further explained below with reference to the attached drawings and specific examples, but not as the limitation of the invention.
The present invention includes a kind of control circuit for adjusting LED current curve, and connect a plurality of LED in the control circuit
Lamp, including:
One power supply module 1, for providing supply voltage, and converts alternating current to direct current;
The input terminal of one adjustment module 2, adjustment module 2 is connect with the output end of power supply module 1, and adjustment module 2 is for adjusting
It saves supply voltage and powers for LED light;
The input terminal of one detection module 3, detection module 3 is connect with the output end of power supply module 1, and detection module 3 is by dividing
Piezoresistance detects supply voltage and the pressure difference according to supply voltage, to export an analog signal;
The signal acquisition terminal of one control module 4, control module 4 is connect with the output end of detection module 3, control module 4
Power end connects the output end of adjustment module 2, and control module 4 converts analog signals into number and patrol for acquiring analog signal
Signal is collected, and by calculation by program to control the open and close of LED light at any time.
By the control circuit of above-mentioned adjusting LED current curve, as shown in Figure 1, power supply module 1 converts alternating current to
Direct current is supplied respectively to adjustment module 2 and detection module 3, finds that alternating voltage can be in 180 ° and 360 ° of phases by Fig. 2 and Fig. 3
When zero passage, the 60Hzd period be 0.083ms, so detection module 3 by the 15th resistance R15 and the 16th resistance R16 partial pressure inspection
Zero passage voltage is surveyed, the second chip U2 is recycled to program each period 0.083ms of timing, with the voltage change of adjustment module 2, the
Pressure difference between 15 resistance R15 and the 16th resistance R16 is different, so that analog signal is generated, 4 acquisition testing mould of control module
The analog signal that block 3 generates.
Further, the second chip U2 internal arithmetic by control module 4, collected analog signal is converted to
PWM logical signal exports PWM logical signal driving first by the 4th pin U24 and the 5th pin U25 of the second chip U2
Metal-oxide-semiconductor G1 and the second metal-oxide-semiconductor G2 are respectively turned on, and may finally realize that LED appoints by the different dimming mode of the second chip programming
The meaning time is switched on and off.
In a kind of preferably embodiment, power supply module includes:
One first resistor R1 is connected between firewire L and the first input end of a rectifier bridge Z1;
One first inductance L1 is connected between zero curve N and the second input terminal of the rectifier bridge Z1.
Specifically, rectifier bridge Z1 is as a kind of power component, widely, is applied to various power-supply devices, such as Fig. 1 institute
Show, rectifier bridge Z1 is mainly to realize that the alternating voltage input is converted into the direct current of output by bridge that four diodes form
Voltage, within each duty cycle of rectifier bridge, the same time only works there are two diode, passes through the unidirectional of diode
Function is connected, alternating current is converted into unidirectional DC pulse moving voltage.
In a kind of preferably embodiment, adjustment module 2 includes:
One first chip U1, the first chip U1 includes seven pins, and the 4th pin U14 connection of the first chip U1 is grounded
End, the output end of the 7th pin U17 connection power supply module 1 of the first chip U1;
One second resistance R2, by a 3rd resistor R3 be connected to power supply module 1 output end and the first chip U1
Between one pin U11;
One first diode D1 is connected to the first pin U11 and one first of the first chip U1 by one the 4th resistance R4
Between fulcrum F1;
One first capacitor C1, is connected between the output end of power supply module 1 and ground terminal GND;
One the 5th resistance R5 is connected between the second pin U12 and ground terminal CND of the first chip U1;
One second capacitor C2 is connected between the third pin U13 and ground terminal GND of the first chip U1;
One third capacitor C3, is connected between the 5th pin U15 and ground terminal GND of the first chip U1;
One the 6th resistance R6 is connected between the first fulcrum F1 and ground terminal GND by one the 7th resistance R7;
One second diode D2 is connected to the 6th pin U16 and ground terminal of the first chip U1 by one the 8th resistance R8
Between GND;
One the 9th resistance R9 is connected between the 6th pin U16 and ground terminal GND of the first chip U1;
One first coil T1 is connected between the first fulcrum F1 and ground terminal GND;
E1 is held in one first electrolysis, is connected between the first fulcrum F1 and ground terminal GND;
The a tenth resistance R10 is connected between the first fulcrum F1 and ground terminal GND;
One eleventh resistor R11 is connected between the first fulcrum F1 and ground terminal GND by a twelfth resistor R12;
One triode S, the emitter of triode S are connect with the first pin U21 of one second chip U;
One thirteenth resistor R13 is connected to the collector and the first fulcrum F1 of triode S by 1 the 14th resistance R14
Between;
One the 4th capacitor C4, is connected between the base stage of triode S and ground terminal GND;
One the 5th capacitor C5 is connected between the first fulcrum F1 and the 7th pin U17 of the first chip U1;
One first zener diode W1, is connected between the base stage of triode S and ground terminal GND.
Specifically, as shown in Figure 1, the first chip U1 of adjustment module is tunable optical step-down LED driver, the first chip
Buck or boost chopper (BUCK-BOOST circuit) is used inside U1, fixed DC voltage is converted into variable direct current
Pressure, for adjusting the brightness of the first Light-emitting diode LED 1 and the second Light-emitting diode LED 2.
Further, the electricity of the 15th resistance R15 and the 16th with the voltage change of adjustment module 2, in detection module 3
The pressure difference that resistance R16 is detected is different, so that analog signal is generated, after the second chip U2 internal arithmetic by control module 4, shape
It is respectively turned at PWM logical signal driving the first metal-oxide-semiconductor G1 and the second metal-oxide-semiconductor G2, two kinds of differences is programmed by the second chip U2
Pass-through mode distinguish available Fig. 4 and two kinds of LED current curves of Fig. 5, further realize and realize that LED appoints by programming
The meaning time is switched on and off.
In a kind of preferably embodiment, detection module 3 includes:
One the 6th capacitor C6, is connected between the output end of power supply module 1 and ground terminal GND;
The a 15th resistance R15 is connected to the output end and ground terminal GND of power supply module 1 by 1 the 16th resistance R16
Between;
One second zener diode W1 is connected between the second pin U22 and ground terminal GND of the second chip U2.
Specifically, as shown in Figure 1, the input terminal of detection module 3 is connect with the output end of power supply module 1, power supply module 1 will
Alternating current is converted to direct current, and the 6th capacitor C6 in detection module 3 is used to filter to direct current;As shown in Figures 2 and 3, it hands over
The size of galvanic electricity pressure changes with time and constantly changes, alternating voltage can in 180 ° and 360 ° of phases zero passage, 60Hzd period
For 0.083ms.
Further, by the 15th resistance R15 and the 16th resistance R16 partial pressure detection zero passage voltage, electricity is controlled in LED
The purpose that pressure regulation, light modulation are realized in road needs a datum mark as starting point, this starting point is exactly that AC supply voltage is
Moment when zero, detection zero passage voltage seek to issue an analog signal, the mould to control circuit when alternating voltage is zero
Quasi- signal is converted to PWM logical signal after the second chip U2 internal arithmetic, for driving the first metal-oxide-semiconductor G1 and the 2nd MOS
Pipe G2 is respectively turned on, detection zero passage voltage is exactly synchronizing function, 1 He of the first Light-emitting diode LED there are one important role
Second Light-emitting diode LED 2 is composed in series by a plurality of LED, and detection zero passage voltage can allow these LED bright or simultaneously simultaneously
Extinguish.
In a kind of preferably embodiment, control module 4 includes:
The second pin U22 of second chip U2 is connect with one second fulcrum F2;
The third pin U23 of second chip U2 is connect with ground terminal GND;
E2 is held in one second electrolysis, is connected between the emitter of triode S and ground terminal GND;
The grid of one first metal-oxide-semiconductor G1, the first metal-oxide-semiconductor G1 passes through the 4th of 1 the 17th resistance R17 and the second chip U2
Pin U24 connection;The drain electrode of first metal-oxide-semiconductor G1 is connect with the first Light-emitting diode LED 1;The source electrode of first metal-oxide-semiconductor G1 and ground connection
Hold GND connection;
The a 18th resistance R18 is connected between the grid and ground terminal GND of the first metal-oxide-semiconductor G1;
The grid of one second metal-oxide-semiconductor G2, the second metal-oxide-semiconductor G2 passes through the 5th of 1 the 19th resistance R19 and the second chip U2
Pin U25 connection;The drain electrode of second metal-oxide-semiconductor G2 is connect with one second Light-emitting diode LED 2;The source electrode of second metal-oxide-semiconductor G2 with connect
Ground terminal GND connection;
One the 20th resistance R20 is connected between the grid and ground terminal GND of the second metal-oxide-semiconductor G2.
Specifically, metal-oxide-semiconductor is metal (metal)-oxide (oxide)-semiconductor (semiconductor) field-effect
Transistor, as shown in Figure 1, the first metal-oxide-semiconductor G1 and the second metal-oxide-semiconductor G2 serve as the effect of switch in LED control circuit, for controlling
The turn-on and turn-off state of circuit processed, metal-oxide-semiconductor input resistance is high, noise is low, thermal stability is good, strong antijamming capability, it is low in energy consumption,
Small volume can use the opening and closing of voltage control metal-oxide-semiconductor.
Specifically, the second chip U2 is programmable logic chip, can be programmed by programmable logic chip U2 different
Dimming mode, Fig. 4 is the LED current curve that the first dimming mode obtains, and in the first dimming mode, dims ratio from most
Greatly when being transferred to 50%, the second metal-oxide-semiconductor G2 shutdown, when light modulator is closed to minimum, the first metal-oxide-semiconductor G1 shutdown;Fig. 5 is second of tune
The LED current curve that light mode obtains, in second of dimming mode, when light modulation ratio is transferred to 30% from maximum, the second metal-oxide-semiconductor
G2 shutdown, when light modulator is closed to minimum, the first metal-oxide-semiconductor G1 shutdown.
Further, different dimming modes is programmed by the second chip U2, realizes LED any time and opens and close
It is disconnected.
In a kind of preferably embodiment, triode S is NPN type triode.
In a kind of preferably embodiment, rectifier bridge includes that four diodes join end to end.
Technical solution of the present invention beneficial effect is: the pressure difference of phases line voltage signal is acquired by programmable logic chip
With the zero passage detection sequential synthesis analog signal of ac voltage signal, digital logic signal is converted to, is driven with digital logic signal
Dynamic control LED any time is switched on and off.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection model
It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.