CN103118453A - Light emitting diode (LED) tandem driving control circuit based on microcontroller and programming method of microcontroller - Google Patents

Light emitting diode (LED) tandem driving control circuit based on microcontroller and programming method of microcontroller Download PDF

Info

Publication number
CN103118453A
CN103118453A CN2011103832754A CN201110383275A CN103118453A CN 103118453 A CN103118453 A CN 103118453A CN 2011103832754 A CN2011103832754 A CN 2011103832754A CN 201110383275 A CN201110383275 A CN 201110383275A CN 103118453 A CN103118453 A CN 103118453A
Authority
CN
China
Prior art keywords
microcontroller
input
circuit
led
effect transistor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011103832754A
Other languages
Chinese (zh)
Inventor
金德奎
Original Assignee
金德奎
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 金德奎 filed Critical 金德奎
Priority to CN2011103832754A priority Critical patent/CN103118453A/en
Publication of CN103118453A publication Critical patent/CN103118453A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a light emitting diode (LED) tandem driving control circuit based on a microcontroller and a programming method of the microcontroller. The LED tandem driving control circuit based on the microcontroller comprises a switch electricity taking unit and a control unit with the microcontroller, wherein the switch electricity taking unit is connected with an LED load with a constant current driving circuit in series and then connected to a direct current electrical source, and the control unit with the microcontroller is connected with the switch electricity taking unit. The microcontroller judges that if light up information is received, then a pulse width modulation (PWM) signal is sent to a switch circuit in the switch electricity taking unit. A duty ratio of the PWM signal is close to 100%, less than 100% and is 95%, 96%, 97%, 98% or 99%, and a preferred value of the duty ratio is 99%. According to the LED tandem driving control circuit based on the microcontroller and the programming method of the microcontroller, the problem that the prior art can not be used on the existing laid two-wire system illuminating lines is resolved. Meanwhile the heat dissipation problem of the LED load is resolved by the tandem driving control circuit with a power supply separated from the LED load, but also the opening or closing of the LED load can be controlled. Furthermore, the LED load can be in PWM lighting adjustment. Use is more convenient, and popularization of the LED illumination is promoted under the existing conditions.

Description

Based on the LED tandem drive control circuit of microcontroller and the programmed method of microcontroller
Technical field
The present invention relates to a kind of control circuit and programmed method, particularly relate to a kind of LED tandem drive control circuit based on microcontroller and the programmed method of microcontroller.
Background technology
the microcontroller that prior art LED Drive and Control Circuit is used has a pwm signal output usually, this output is connected with the grid of a field effect transistor, the drain electrode of field effect transistor is connected with the negative pole of LED load, the source electrode of field effect transistor be connected with microcontroller ground and AC/DC driving power negative pole be connected publicly, the proper utmost point of the anodal direct current constant current output with the AC/DC driving power of LED load is connected, the power input of microcontroller is connected with the Vdd of AC/DC driving power, also has in addition the information input terminal of acceptable operating information, its mode of operation is generally touch or button, as shown in Figure 1.Producing duty ratio by microcontroller is that 100% pwm signal (high level) is to fet gate, field effect transistor drain electrode and the load of source electrode conducting driving LED are opened, not produce pwm signal (low level) to fet gate, field effect transistor drain electrode and the load of source electrode cut-off driving LED are closed, produce the adjustable pwm signal of duty ratio to fet gate, the break-make of field effect transistor drain electrode and source electrode two ends generation respective change responds the driving LED load to realize light modulation.The characteristic of this microcontroller and the characteristic of existing Drive and Control Circuit can not be used it on the existing two-wire system illuminating line that has laid, generally only can use in the Drive and Control Circuit such as desk lamp, otherwise need rewiring, and the circuit radical is many, cause thus inconvenience on using and the increase of use cost, hindered the universal of LED illumination.
In addition, existing LED illumination driving control circuit all is arranged in the LED load usually, comprises AC/DC translation circuit and drive circuit, and the opening and closing of LED load are that the switch of outer section is controlled.The heat that the heat that AC/DC translation circuit and drive circuit send and LED device itself send is superimposed, especially LED bulb lamp and LED fluorescent lamp, although profile is conducive to be had the public of traditional consciousness to accept with traditional incandescent lamp is similar with fluorescent lamp, but various parts have been crowded with in limited space, heat can not very effectively in time distribute and can cause fault to increase, accelerated the light decay of LED, reduced the life-span, this also becomes the universal large obstacle of LED.
Summary of the invention
The technical issues that need to address of the present invention are to provide a kind of LED tandem drive control circuit based on microcontroller and the programmed method of microcontroller, solve the LED illumination driving control circuit that has microcontroller in prior art and can not directly have the problem that use on the illuminating line that has laid now, and the heat dissipation problem of solution LED load, both can control the LED load opens or closes, can carry out the PWM brightness adjustment control to the LED load again, make the reliable and stable work of LED load, promote LED illumination popularizing under existence conditions.
Programmed method according to a kind of microcontroller that uses based on the LED tandem drive control circuit of microcontroller of above-mentioned purpose invention is characterized in that:
Step S01, microcontroller press some cycles and detect input message;
Step S02, microcontroller judge whether to receive the information of turning on light of input, as receive the information of turning on light, and turn step S03;
Step S03, microcontroller send pwm signal, and the duty ratio of this pwm signal approaches and less than 100% being 95%, 96%, 97%, 98% or 99%, preferred value is 99%, sends to switching circuit.
Further comprise:
Step S11, microcontroller press some cycles and detect input message;
Step S12, microcontroller judge whether to receive the light modulation information of input, as receive light modulation information, turn step S13;
Step S13, microcontroller send the pwm signal of corresponding duty ratio to switching circuit;
Further comprise:
Step S16, microcontroller press some cycles and detect input message;
Step S17 judges whether to receive the light modulation information change of input, as receives and turn step S18;
Step S18, microcontroller sends new pwm signal.
Further comprise:
Step S06, microcontroller press some cycles and detect input message;
Step S07 judges whether to receive the information of turning off the light of input, as receives and turn step S08;
Step S08, microcontroller stop sending pwm signal.
A kind of LED tandem drive control circuit based on microcontroller is characterized in that:
Comprise the LED load with constant-current drive circuit and the switch power taking unit with switching circuit and the control unit with described microcontroller;
Microcontroller comprises pwm signal output, information input terminal, power input, and the pwm signal output connects the signal input part of described switch power taking unit, the power output end of power input connecting valve power taking unit;
One end of switch power taking unit is connected with an end of LED load, and the other end of switch power taking unit is connected with an end of DC power supply, and the other end of DC power supply is connected with the other end of LED load.
Further comprise:
Switching circuit in switch power taking unit comprises at least one field effect transistor;
Switch power taking unit also comprises power-supply circuit and voltage stabilizing circuit;
Described power-supply circuit comprises diode, electrochemical capacitor and the field effect transistor that shares with switching circuit;
The drain electrode of described field effect transistor is connected with the negative pole of LED load as an end of switch power taking unit, the source electrode of field effect transistor is connected with the negative pole of DC power supply as the other end of switch power taking unit, the grid of field effect transistor is connected with the signal output part of control unit or the signal output part by the microcontroller in resistance and control unit is connected, and the positive pole of LED load is connected with the positive pole of DC power supply;
The anode of described diode is connected with the drain electrode of field effect transistor, the negative electrode of diode is connected with the input anodal and described voltage stabilizing circuit of described electrochemical capacitor, the output of voltage stabilizing circuit is connected with the power input of the power input of control unit and microcontroller, the ground end of the source electrode of field effect transistor, the negative pole of electrochemical capacitor, voltage stabilizing circuit and the ground end of control unit be connected publicly.
Further comprise:
Switching circuit in switch power taking unit comprises at least one field effect transistor, the first resistance, the second resistance, the 3rd resistance, triode;
Switch power taking unit also comprises power-supply circuit and voltage stabilizing circuit;
Described power-supply circuit comprises diode, electrochemical capacitor and the field effect transistor that shares with switching circuit;
the drain electrode of described field effect transistor is connected with the positive pole of described LED load as an end of switch power taking unit, the source electrode of field effect transistor is connected with the positive pole of DC power supply as the other end of switch power taking unit, the negative pole of LED load is connected with the negative pole of DC power supply, the grid of field effect transistor is connected with an end of described the first resistance, the other end of the first resistance is connected with the source electrode of field effect transistor, one end of described the second resistance is connected with the grid of field effect transistor, the other end of the second resistance is connected with the collector electrode of described triode, the base stage of triode is connected with an end of the 3rd resistance, the other end of the 3rd resistance is connected with the signal output part of microcontroller in control unit, the negative electrode of described diode is connected with the drain electrode of field effect transistor, the positive pole of described electrochemical capacitor is connected with the input of the source electrode of field effect transistor and described voltage stabilizing circuit, the output of voltage stabilizing circuit is connected with the power input of the power input of control unit and microcontroller, the emitter of triode, the anode of diode, the negative pole of electrochemical capacitor, the ground end of voltage stabilizing circuit and the ground end of control unit be connected publicly.
Further comprise:
At a described LED load two ends resistance in parallel;
The resistance of described resistance is calculated by R≤(U-Vc-Vd)/Is simplification, U is the input voltage of DC power supply, Vc is that the voltage stabilizing circuit input can be guaranteed the minimum voltage that works, Vd is the tube voltage drop of diode, and Is is the maximum current of control unit and voltage stabilizing circuit consumption and the electric current sum of loss when work.
Further comprise:
Described control unit also comprises MIM message input module, and its input pattern is key-press input pattern or touch input pattern or induction input pattern, and the signal output part of MIM message input module is connected with the defeated end of the signal of microcontroller.
Further comprise:
Described control unit also comprises wireless or infrared remote control reception circuit, and its signal output part is connected with the signal input part of microcontroller, and its power end is connected with the power output end of voltage stabilizing circuit.
because the LED tandem drive control circuit based on microcontroller of the present invention and LED load are connected on direct current supply line, and sent by the microcontroller by programmed method of the present invention and approach and supply with less than the pwm signal control switch power-supply circuit of the 100% preferred value 99% duty ratio required electric power of control unit of namely having realized turning on light when having realized turning on light, solved the problem that existing LED illumination driving control circuit can not directly use on the existing two-wire system illuminating line that has laid, the tandem drive control technology that power supply separates has solved the heat dissipation problem of LED load simultaneously, both can control the LED load opens or closes, can carry out the PWM brightness adjustment control to load again, use more convenient, make the reliable and stable work of LED load, promoted LED illumination popularizing under existence conditions.
Description of drawings
Fig. 1 is that prior art is based on the LED Drive and Control Circuit theory diagram of microcontroller.
Fig. 2 is theory diagram of the present invention.
Fig. 3 is that field effect transistor of the present invention is the theory diagram of N raceway groove embodiment.
Fig. 4 is that field effect transistor of the present invention is the theory diagram of P raceway groove embodiment.
Fig. 5 is LED load schematic diagram of the present invention.
Fig. 6 is that field effect transistor of the present invention is the schematic diagram of N raceway groove multiloop embodiment.
Fig. 7 is that field effect transistor of the present invention is the schematic diagram of P raceway groove multiloop embodiment.
Fig. 8 is the oscillogram of the present invention's pwm signal, field effect transistor D-S terminal voltage, power taking electric current and power taking voltage when closing the LED load.
Fig. 9 is the oscillogram of the present invention's pwm signal, field effect transistor D-S terminal voltage, power taking electric current and power taking voltage when opening the LED load.
Figure 10 is the oscillogram of the present invention's pwm signal, field effect transistor D-S terminal voltage, power taking electric current and power taking voltage during to LED load light modulation.
Figure 11 is of the present invention to turn on light and turns off the light flow chart.
Figure 12 light modulation flow chart of the present invention.
Embodiment
The present invention will be further described below in conjunction with drawings and embodiments.
Referring to Fig. 2 and Fig. 3, the present invention includes the LED load 30 with constant-current drive circuit and have the switch power taking unit 20 of switching circuit 20a and the control unit 10 with microcontroller 11;
Microcontroller 11 comprises pwm signal output P, information input terminal S, power input Vdd, and pwm signal output P connects the signal input part of described switch power taking unit, the power output end of power input Vdd connecting valve power taking unit;
One end of switch power taking unit 20 is connected with an end of LED load 30, and the other end of switch power taking unit 20 is connected with an end of DC power supply, and the other end of DC power supply is connected with the other end of LED load 30.
Because switch power taking unit 20 and LED load 30 are connected on direct current supply line, drive and control the LED load, therefore control circuit of the present invention is called as a kind of LED tandem drive control circuit based on microcontroller.
Field effect transistor of the present invention be N raceway groove embodiment as shown in Figure 2, the switching circuit 20a in switch power taking unit 20 comprises at least one N channel field-effect pipe Q21; Switch power taking unit 20 also comprises power-supply circuit 20b and voltage stabilizing circuit IC21; Described power-supply circuit 20b comprises diode D21, electrochemical capacitor C21 and the N channel field-effect pipe Q21 that shares with switching circuit 20a; The drain electrode of described N channel field-effect pipe Q21 is connected with the negative pole of LED load 30 as an end of switch power taking unit 20, the source electrode of N channel field-effect pipe Q21 is connected with the negative pole of DC power supply as the other end of switch power taking unit 20, the grid of N channel field-effect pipe Q21 is connected with the signal output part P of microcontroller 11 or is connected with the signal output part P of microcontroller 11 by resistance, and the positive pole of LED load 30 is connected with the positive pole of DC power supply; The anode of described diode D21 is connected with the drain electrode of field effect transistor Q21, the negative electrode of diode D21 is connected with the input anodal and described voltage stabilizing circuit IC21 of described electrochemical capacitor C21, the output of voltage stabilizing circuit IC21 is connected with the power input of control unit 10 and the power input Vdd of microcontroller 11, the ground end of the negative pole of the source electrode of field effect transistor Q21, electrochemical capacitor C21, the ground end of voltage stabilizing circuit IC21 and microcontroller 11 be connected publicly.
field effect transistor of the present invention be N raceway groove embodiment as shown in Figure 3, the switching circuit 20a in switch power taking unit 20 comprises at least one P-channel field-effect transistor (PEFT) pipe Q21, the first resistance R 21, the second resistance R 22, the 3rd resistance R 23, triode Q22, switch power taking unit 20 also comprises power-supply circuit 20b and voltage stabilizing circuit IC21, described power-supply circuit 20b comprises diode D21, electrochemical capacitor C21 and the field effect transistor Q21 that shares with switching circuit 20a, the drain electrode of described P-channel field-effect transistor (PEFT) pipe is connected with the positive pole of described LED load 30 as an end of switch power taking unit 20, the source electrode of P-channel field-effect transistor (PEFT) pipe is connected with the positive pole of DC power supply as the other end of switch power taking unit 20, the negative pole of LED load 30 is connected with the negative pole of DC power supply, the grid of P-channel field-effect transistor (PEFT) pipe is connected with an end of described the first resistance R 21, the other end of the first resistance R 21 is connected with the source electrode of P-channel field-effect transistor (PEFT) pipe, one end of described the second resistance R 22 is connected with the grid of P-channel field-effect transistor (PEFT) pipe, the other end of the second resistance R 22 is connected with the collector electrode of described triode Q22, the base stage of triode Q22 is connected with an end of the 3rd resistance R 23, the other end of the 3rd resistance R 23 is connected with the signal output part P of microcontroller 11 in control unit 10, the negative electrode of described diode D21 is connected with the drain electrode of P-channel field-effect transistor (PEFT) pipe, the positive pole of described electrochemical capacitor C21 is connected with the source electrode of P-channel field-effect transistor (PEFT) pipe and the input of described voltage stabilizing circuit IC21, the output of voltage stabilizing circuit IC21 is connected with the power input of control unit 10 and the power input Vdd of microcontroller 11, the emitter of triode Q22, the anode of diode D21, the negative pole of electrochemical capacitor C21, the ground end of voltage stabilizing circuit IC21 and the ground end of microcontroller 11 be connected publicly.Triode Q22 in the present embodiment also available N channel field-effect pipe substitutes.
Field effect transistor of the present invention be P raceway groove embodiment as shown in Figure 9,
The schematic diagram of LED load 30 of the present invention as shown in Figure 5, the resistance R 31 in parallel at LED load two ends.Its purpose one is to provide electric power to switch power taking unit 20 and control unit 10 when LED load 30 is closed, the 2nd, to 10 1 by-pass shunts of LED load, make the major part resistance R 31 of flowing through, and the electric current of the LED load of flowing through is extremely small, prevents that LED from little flashing occurring and resembling.
The resistance R of resistance R 31D≤(U-Vc-Vd)/Is, U is the input voltage of DC power supply, Vc is that voltage stabilizing circuit IC21 input can be guaranteed the minimum voltage that works, Vd is diode D21 tube voltage drop, Is is the maximum current of control unit 10 and voltage stabilizing circuit IC21 consumption and the electric current sum of loss when work, and the capacity loss of electrochemical capacitor C21 and C22 and so on can be ignored.For example, if Is is 700 μ A, U=20V, Vc=5V, Vd=0.7V, R≤(U-Vc-Vd)/Is=(20-5-0.7)/0.0007=20428.6 Ω, R ≈ 20k.The resistance of the resistance 20k energy that consume in parallel with the LED load only is 0.002W, if be that 6W calculates by the LED load, during lighting, the LED load only accounts for 0.3/1000 loss, this and the electric power that can adopt the present invention and rapid replace incandescent and electricity-saving lamp to save in existing circuit can be ignored.Moreover in multiloop use occasion, parallel resistance in major loop LED load only, the LED load of its cocircuit can be not also, and this just more can ignore this and small loss thereof.
Control unit 10 also comprises MIM message input module 12, and its input pattern is key-press input pattern or touch input pattern or induction input pattern,, can be also three kinds of pattern combination in any.The signal output part of MIM message input module 12 is connected with the signal input part S of microcontroller 11.Induction type can adopt infrared reflection type induction or baffle type induction, and this operator scheme is fit to kitchen, toilet or public place.Also can adopt human body heat-releasing electric induction, be fit to corridor and use.In the similar illumination occasion that needs emergency evacuation of corridor, the fire-fighting integrated wire need to be incorporated into control unit or switch power taking unit, like this when dangerous situation needs emergency evacuation by fire-fighting integrated wire road by control unit or switch power taking unit with LED load light fixture positive opening emergency lighting.
Control unit 10 also can comprise wireless or infrared remote control reception circuit, and its signal output part is connected with the signal input part of microcontroller 11, and its power input is connected with the power output end of voltage stabilizing circuit IC21.
Field effect transistor of the present invention be N raceway groove multiloop embodiment as shown in Figure 6, signal output part P1, the P2 of microcontroller 11 and P3 connect respectively the N channel field-effect pipe Q21 that controls LED load 31 loops, control the N channel field-effect pipe Q22 in LED load 32 loops and control the grid of the N channel field-effect pipe Q23 in LED load 33 loops, the diode of using as the power taking in LED load 31 loops has been saved in LED load 32 and 33 loops, can reliable and stable work.
Above-described embodiment is removable three tunnel control circuits independently that are divided into also, by three control units, field effect transistor is separately controlled respectively, the public connection of ground end, it is effective that the microcontroller that this adopts for control unit or integrated circuit only have the circuit of a pwm signal output interface.
Field effect transistor of the present invention be P raceway groove multiloop embodiment as shown in Figure 7, signal output part P1, the P2 of microcontroller 11 is connected resistance R 23, R26 and R29 and connects respectively the triode Q22 that controls LED load 31 loops, controls the triode Q24 in LED load 32 loops and control the base stage of the triode Q26 in LED load 33 loops with P3, the diode of using as the power taking in LED load 31 loops has been saved in LED load 32 and 33 loops, can reliable and stable work.
Above-described embodiment is removable three tunnel control circuits independently that are divided into also, by three control units, field effect transistor is separately controlled respectively, this is also effective for the framework that microcontroller or the integrated circuit of control unit employing only have a pwm signal output interface.
Control unit 10 also can arrange communication interface, can receive operation and control information from the outside.
Operation principle of the present invention is as follows:
Microcontroller in control unit is by the operation information of certain cycle detection input and produce corresponding control signal according to the information of turning on light that receives or turn off the light information and light modulation information and be transferred to switching circuit, switching circuit receives signal and is moved by the field effect transistor responding to switch, the driving LED load is lighted or is extinguished and light modulation, held concurrently during the turning on light effect of power taking and energy storage of field effect transistor and diode and electrochemical capacitor, the electric power of generation is supplied with the control unit normal operation.
Referring to the flow chart of turning on light and turn off the light that Figure 11 provides, the programmed method of the microcontroller of a kind of LED tandem drive control circuit based on microcontroller of the present invention comprises the following steps:
Step S01, the microcontroller in control unit press some cycles and detect input message;
Step S02, microcontroller judge whether to receive the information of turning on light of input, as do not receive the information of turning on light, and continue to detect, as receive the information of turning on light, and turn step S03;
Step S03, microcontroller send pwm signal, and the duty ratio of this pwm signal approaches and less than 100% being 95%, 96%, 97%, 98% or 99%, preferred value is 99%, sends to switching circuit;
Step S04, switching circuit receive this pwm signal and responding to switch action, driving LED load;
Step S05, the LED load is lighted;
Step S06, microcontroller continue to detect input message;
Step S07 judges whether to receive the information of turning off the light of input, as does not receive and turn step 03, as receives and turn step S08;
Step S08, microcontroller stop sending pwm signal;
Step S09, switching circuit is not received pwm signal, response is turn-offed;
Step S10, the LED load is extinguished.
During turning on light and turning off the light, electricity-fetching method is as follows:
Power on during turning off the light or initially, field effect transistor in switch power taking unit is in off state, the electric current of DC power supply through the resistance at LED load and load two ends and diode to electrochemical capacitor and voltage stabilizing circuit and control unit power supply, make the control unit normal operation, the waveform of each collection point as shown in Figure 8.
During turning on light, when the pwm signal that field effect transistor receives is in low level, field effect transistor is turn-offed, the electric current of DC power supply through the resistance at LED load and load two ends and diode to the electrochemical capacitor energy storage and to voltage stabilizing circuit and control unit power supply.Field effect transistor conducting when the pwm signal that field effect transistor receives is in high level, diode stop that electric current is reverse to be flowed into publicly by field effect transistor, keep power supply by the energy continuation that electrochemical capacitor stores to voltage stabilizing circuit and control unit.The waveform of each collection point illustrates control of the present invention and electricity-fetching method and principle take the pwm signal duty ratio as 99% as shown in Figure 9.
Referring to the light modulation flow chart that Figure 12 provides, the programmed method of the microcontroller of the LED tandem drive control circuit based on microcontroller of the present invention, further comprising the steps of:
Step S10, microcontroller press some cycles and detect input message;
Step S12, microcontroller judge whether to receive the light modulation information of input, as do not receive light modulation information, continue to detect, as receive light modulation information, turn step S13;
Step S13, microcontroller send corresponding duty ratio pwm signal to switching circuit;
Step S14, switching circuit receive this pwm signal and responding to switch action, driving LED load;
Step S15, LED load brightness is on request lighted;
Step S16, microcontroller continue to detect input message;
Step S17 judges whether to receive the light modulation information change of input, as does not receive and turn step 13, as receives and turn step S18;
Step S18, microcontroller sends new pwm signal;
Step S19, switching circuit receives new pwm signal, responds new switch motion;
Step S20, the LED load is luminous by the brightness after adjusting.
Carry out light modulation operating period, the power taking principle with turn on light during identical, the duty ratio of pwm signal difference just, the waveform of each collection point only illustrates control of the present invention and electricity-fetching method and principle take the light modulation duty ratio as 10% as shown in figure 10.
Should be noted that, the flow chart that above-mentioned steps provides in conjunction with Figure 11 and Figure 12 has only been described technical characteristics and step and the flow process of programmed method of the present invention, should be interrelated and interspersed by the real possible operation information of user between step S01 to S10 and step S11 to S20.Step S02 can occur proceeding to as actual operation and receive the light modulation information that microcontroller after the information of turning on light detects input, must respond this information like this and forward step S13 to.As after proceeding to step S20, microcontroller detects the information of turning off the light and judges, and makes an immediate response this information and forwards S08 to.These belong to prior art by the interrelated and conversion between the specific procedure of practical operation and use and each step, are that the ordinary procedure person of this area can complete smoothly, are not described in detail at this.
The key component of the programmed method of the microcontroller of the LED tandem drive control circuit based on microcontroller of the present invention is: step S02, microcontroller judge whether to receive the information of turning on light of input, as receive the information of turning on light, and turn step S03; Step S03, microcontroller send pwm signal, and the duty ratio of this pwm signal approaches and less than 100% being 95%, 96%, 97%, 98% or 99%, preferred value is 99%, sends to switching circuit.Main points of the present invention are that the pwm signal duty ratio of will originally turn on light is 100% to become less than 100%, preferred value 99%, this just makes microcontroller of the present invention use in LED load driving circuits of the present invention, realized supplying with to the required electric power of control unit during turning on light, and the duty ratio of prior art 100% is impossible realize.Experimental results show that, the LED of 12W loads on and uses 99% duty ratio only to have reduced by 1.3% than 100% duty ratio illumination under identical distance when turning on light, this small illumination reduces human eye and is difficult to discover, simultaneously power consumption has also reduced by 1.5% (because the error testing data of measuring instrument have small gap), the power that control unit and microcontroller consume and small, comparing the LED load can ignore, and therefore, the present invention can not bring the reduction of efficient.The invention solves the problem that existing LED illumination driving control circuit can not directly use on the existing two-wire system illuminating line that has laid, the tandem drive control technology that power supply separates with the LED load has solved the heat dissipation problem of LED load simultaneously, this revolutionary change will speed up the universal of LED illumination, this shows the marked improvement that the present invention obtains.
Dc supply input of the present invention connects the AC/DC power supply adaptor, AC is exchanged be converted to the DC direct current, and its output voltage is≤safe voltage of 36V.Dc supply input can also connect the AC/DC circuit in addition, AC220V or 110V alternating-current direct are switched through the direct current that is changed to identical voltage, this just requires the LED load is the high voltage direct current load, this method conversion efficiency is higher, but the requirement to the LED load is higher, fail safe is not as the former, therefore, general preferred the former.Due to the LED load that can adopt many loops of AC/DC adapter output DC control, power output is more much larger than AC/DC converter built-in in single led load, as everyone knows, the AC/DC adapter power is larger, the more cinch height of efficient, therefore, the present invention also can improve the efficient of LED illumination.
for the present invention in indoor application, the AC/DC converter can be arranged in distribution board or adopt wall-hanging installation aside, the live wire L of former illuminating line and zero line N are pulled down with the terminals of circuit breaker lower end in distribution board, the AC220V input of AC/DC converter directly is connected with the circuit breaker lower end, dc output end is connected with zero line N with the live wire L of the illuminating line of pulling down, single live wire switch on wall in original each room is pulled down, directly replace to the driving control switch with circuit of the present invention, again light fixture is replaced by LED load light fixture of the present invention, can realize the replacement original system of indoor LED illumination system.
The resistance in parallel with the LED load both can be connected in parallel in LED load light fixture built-in, also can be connected in parallel on the terminals of circuit and LED load light fixture external.For external resistance, can make the little module with leaded or terminal, so more be convenient to install.
Constant-current drive circuit in LED load described in the present invention is prior art, and Fig. 5 has also only provided a kind of constant-current circuit wherein, and the present invention is applicable equally for the constant-current circuit of other topological mode.
The PWM frequency that microcontroller adopts will select to discover the frequency less than glimmering and being harmless to the health, and usually selects in 100Hz~1000Hz, and this also belongs to the prior art category, does not do specifically at this and defines.
Above-described is only the preferred embodiment of the present invention, should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, and these all belong to protection scope of the present invention.

Claims (10)

1. programmed method based on the microcontroller of the LED tandem drive control circuit of microcontroller is characterized in that:
Step S01, microcontroller press some cycles and detect input message;
Step S02, microcontroller judge whether to receive the information of turning on light of input, as receive the information of turning on light, and turn step S03;
Step S03, microcontroller send pwm signal, and the duty ratio of this pwm signal approaches and less than 100% being 95%, 96%, 97%, 98% or 99%, preferred value is 99%, sends to switching circuit.
2. the programmed method of the microcontroller of the LED tandem drive control circuit based on microcontroller as claimed in claim 1 characterized by further comprising:
Step S11, microcontroller press some cycles and detect input message;
Step S12, microcontroller judge whether to receive the light modulation information of input, as receive light modulation information, turn step S13;
Step S13, microcontroller send the pwm signal of corresponding duty ratio to switching circuit;
3. the programmed method of the microcontroller of the LED tandem drive control circuit based on microcontroller as claimed in claim 1 or 2 characterized by further comprising:
Step S16, microcontroller press some cycles and detect input message;
Step S17 judges whether to receive the light modulation information change of input, as receives and turn step S18;
Step S18, microcontroller sends new pwm signal.
4. the programmed method of the microcontroller of the LED tandem drive control circuit based on microcontroller as described in any one of claims 1 to 3 characterized by further comprising:
Step S06, microcontroller press some cycles and detect input message;
Step S07 judges whether to receive the information of turning off the light of input, as receives and turn step S08;
Step S08, MCU stop sending pwm signal.
5. LED tandem drive control circuit based on microcontroller is characterized in that:
Comprise the LED load with constant-current drive circuit and the switch power taking unit with switching circuit and the control unit with described microcontroller;
Microcontroller comprises pwm signal output, information input terminal, power input, and the pwm signal output connects the signal input part of described switch power taking unit, the power output end of power input connecting valve power taking unit;
One end of switch power taking unit is connected with an end of LED load, and the other end of switch power taking unit is connected with an end of DC power supply, and the other end of DC power supply is connected with the other end of LED load.
6. the LED tandem drive control circuit based on microcontroller as claimed in claim 5 is characterized in that:
Switching circuit in switch power taking unit comprises at least one field effect transistor;
Switch power taking unit also comprises power-supply circuit and voltage stabilizing circuit;
Described power-supply circuit comprises diode, electrochemical capacitor and the field effect transistor that shares with switching circuit;
The drain electrode of described field effect transistor is connected with the negative pole of LED load as an end of switch power taking unit, the source electrode of field effect transistor is connected with the negative pole of DC power supply as the other end of switch power taking unit, the grid of field effect transistor is connected with the signal output part of control unit or the signal output part by the microcontroller in resistance and control unit is connected, and the positive pole of LED load is connected with the positive pole of DC power supply;
The anode of described diode is connected with the drain electrode of field effect transistor, the negative electrode of diode is connected with the input anodal and described voltage stabilizing circuit of described electrochemical capacitor, the output of voltage stabilizing circuit is connected with the power input of the power input of control unit and microcontroller, the ground end of the source electrode of field effect transistor, the negative pole of electrochemical capacitor, voltage stabilizing circuit and the ground end of control unit be connected publicly.
7. the LED tandem drive control circuit based on microcontroller as claimed in claim 5 is characterized in that:
Switching circuit in switch power taking unit comprises at least one field effect transistor, the first resistance, the second resistance, the 3rd resistance, triode;
Switch power taking unit also comprises power-supply circuit and voltage stabilizing circuit;
Described power-supply circuit comprises diode, electrochemical capacitor and the field effect transistor that shares with switching circuit;
the drain electrode of described field effect transistor is connected with the positive pole of described LED load as an end of switch power taking unit, the source electrode of field effect transistor is connected with the positive pole of DC power supply as the other end of switch power taking unit, the negative pole of LED load is connected with the negative pole of DC power supply, the grid of field effect transistor is connected with an end of described the first resistance, the other end of the first resistance is connected with the source electrode of field effect transistor, one end of described the second resistance is connected with the grid of field effect transistor, the other end of the second resistance is connected with the collector electrode of described triode, the base stage of triode is connected with an end of the 3rd resistance, the other end of the 3rd resistance is connected with the signal output part of microcontroller in control unit, the negative electrode of described diode is connected with the drain electrode of field effect transistor, the positive pole of described electrochemical capacitor is connected with the input of the source electrode of field effect transistor and described voltage stabilizing circuit, the output of voltage stabilizing circuit is connected with the power input of the power input of control unit and microcontroller, the emitter of triode, the anode of diode, the negative pole of electrochemical capacitor, the ground end of voltage stabilizing circuit and the ground end of control unit be connected publicly.
8. as any one described LED tandem drive control circuit based on microcontroller of claim 5 to 7, it is characterized in that:
At a described LED load two ends resistance in parallel;
The resistance of described resistance is calculated by R≤(U-Vc-Vd)/Is simplification, U is the input voltage of DC power supply, Vc is that the voltage stabilizing circuit input can be guaranteed the minimum voltage that works, Vd is the tube voltage drop of diode, and Is is the maximum current of control unit and voltage stabilizing circuit consumption and the electric current sum of loss when work.
9. as any one described LED tandem drive control circuit based on microcontroller of claim 5 to 8, it is characterized in that:
Described control unit also comprises MIM message input module, and its input pattern is key-press input pattern or touch input pattern or induction input pattern, and the signal output part of MIM message input module is connected with the signal input part of microcontroller.
10. as any one described LED tandem drive control circuit based on microcontroller of claim 5 to 9, it is characterized in that:
Described control unit also comprises wireless or infrared remote control reception circuit, and its signal output part is connected with the signal input part of microcontroller, and its power end is connected with the power output end of voltage stabilizing circuit.
CN2011103832754A 2011-11-16 2011-11-16 Light emitting diode (LED) tandem driving control circuit based on microcontroller and programming method of microcontroller Pending CN103118453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103832754A CN103118453A (en) 2011-11-16 2011-11-16 Light emitting diode (LED) tandem driving control circuit based on microcontroller and programming method of microcontroller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103832754A CN103118453A (en) 2011-11-16 2011-11-16 Light emitting diode (LED) tandem driving control circuit based on microcontroller and programming method of microcontroller

Publications (1)

Publication Number Publication Date
CN103118453A true CN103118453A (en) 2013-05-22

Family

ID=48416695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103832754A Pending CN103118453A (en) 2011-11-16 2011-11-16 Light emitting diode (LED) tandem driving control circuit based on microcontroller and programming method of microcontroller

Country Status (1)

Country Link
CN (1) CN103118453A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103298221A (en) * 2013-07-01 2013-09-11 湖南工业大学 Dimming circuit and method of LED (Light Emitting Diode) lighting lamp
CN104837241A (en) * 2015-04-15 2015-08-12 上海欣丰电子有限公司 Module and method for connecting constant-current source with wireless module in LED intelligent illuminating system
CN104837243A (en) * 2015-04-15 2015-08-12 上海欣丰电子有限公司 Module and method for connecting constant-voltage source with wireless module in LED intelligent illuminating system
CN105578671A (en) * 2014-10-14 2016-05-11 宁波高新区赛尔富电子有限公司 LED lamp
CN107453378A (en) * 2017-08-02 2017-12-08 四川赛科安全技术有限公司 The remote constant pressure method of supplying power to realized the method for fire-fighting bus output variable power and be made up of it
CN108770142A (en) * 2018-04-25 2018-11-06 丰唐物联技术(深圳)有限公司 A kind of list ignition circuit system
CN109041382A (en) * 2018-08-28 2018-12-18 宁波颐栎庭园用品有限公司 Two core wire RGB light adjusting circuit of outdoor low voltage

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742771A (en) * 2009-12-22 2010-06-16 海洋王照明科技股份有限公司 Portable type lamp, light dimming circuit and light dimming method
CN101765273A (en) * 2010-01-22 2010-06-30 海洋王照明科技股份有限公司 Stepless dimming LED drive circuit
CN201967185U (en) * 2010-10-28 2011-09-07 英飞特电子(杭州)有限公司 Light source control device and system
CN202353868U (en) * 2011-11-11 2012-07-25 金德奎 Driving and controlling circuit for illumination of LED (light-emitting diode)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742771A (en) * 2009-12-22 2010-06-16 海洋王照明科技股份有限公司 Portable type lamp, light dimming circuit and light dimming method
CN101765273A (en) * 2010-01-22 2010-06-30 海洋王照明科技股份有限公司 Stepless dimming LED drive circuit
CN201967185U (en) * 2010-10-28 2011-09-07 英飞特电子(杭州)有限公司 Light source control device and system
CN202353868U (en) * 2011-11-11 2012-07-25 金德奎 Driving and controlling circuit for illumination of LED (light-emitting diode)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103298221A (en) * 2013-07-01 2013-09-11 湖南工业大学 Dimming circuit and method of LED (Light Emitting Diode) lighting lamp
CN103298221B (en) * 2013-07-01 2015-01-07 湖南工业大学 Dimming circuit and method of LED (Light Emitting Diode) lighting lamp
CN105578671A (en) * 2014-10-14 2016-05-11 宁波高新区赛尔富电子有限公司 LED lamp
CN104837241A (en) * 2015-04-15 2015-08-12 上海欣丰电子有限公司 Module and method for connecting constant-current source with wireless module in LED intelligent illuminating system
CN104837243A (en) * 2015-04-15 2015-08-12 上海欣丰电子有限公司 Module and method for connecting constant-voltage source with wireless module in LED intelligent illuminating system
CN107453378A (en) * 2017-08-02 2017-12-08 四川赛科安全技术有限公司 The remote constant pressure method of supplying power to realized the method for fire-fighting bus output variable power and be made up of it
CN107453378B (en) * 2017-08-02 2020-06-16 四川赛科安全技术有限公司 Method for realizing variable power output of fire-fighting bus and remote constant-voltage power supply method
CN108770142A (en) * 2018-04-25 2018-11-06 丰唐物联技术(深圳)有限公司 A kind of list ignition circuit system
CN109041382A (en) * 2018-08-28 2018-12-18 宁波颐栎庭园用品有限公司 Two core wire RGB light adjusting circuit of outdoor low voltage

Similar Documents

Publication Publication Date Title
CN103118453A (en) Light emitting diode (LED) tandem driving control circuit based on microcontroller and programming method of microcontroller
CN101657057B (en) LED power circuit
CN202340339U (en) LED (light-emitting diode) illumination power supply and drive control system
CN202353868U (en) Driving and controlling circuit for illumination of LED (light-emitting diode)
CN103167672B (en) Light-emitting diode (LED) illumination power supply and drive control system
CN103517524A (en) Led emergency controller
CN212344104U (en) LED fluorescent tube based on silicon controlled rectifier adjusts luminance
CN103108431B (en) A kind of LED illumination drive control circuit and its control method
CN107606498A (en) LED emergency lamps
CN102711311B (en) LED (Light Emitting Diode) driving circuit and lamp
CN201509348U (en) LED power circuit
CN205082002U (en) Emergent street lamp of intelligent transportation outage based on self -adaptation adjusting device
CN204681645U (en) A kind of manual air conditioning controller secondary lighting control circuit
CN203859905U (en) Two-wire system light dimming circuit
CN107071976A (en) LED intelligent dimming is switched
CN212064423U (en) Intelligent switch control management device suitable for street lamp
CN210928053U (en) Adjustable-light type built-in energy-splitting emergency output circuit and emergency device
CN203851314U (en) Far-infrared wireless light-adjusting wall-board switch
CN202551430U (en) Dimming lamp
CN203467043U (en) Led emergency controller
CN212970167U (en) Light source driving circuit capable of continuously dimming, light source driving device and lamp
CN208509334U (en) Alternating current-direct current switching circuit applied to lamp group
CN212785960U (en) LED drive circuit, on-off control circuit and intelligent home system
CN210536989U (en) LED drive circuit with little night-light function
CN211509363U (en) LED light-adjusting switch based on ZigBee communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130522