SUMMERY OF THE UTILITY MODEL
The utility model discloses the main technical problem who solves of embodiment provides a lighting circuit, aims at solving and can only realize the circuit function through setting up the MOS pipe, and all need set up backward diode, leads to the comparatively complicated, the higher problem of cost of circuit structure.
In order to solve the above technical problem, the utility model discloses a technical scheme that embodiment adopted is: there is provided a lighting circuit comprising:
a power supply circuit;
a controller connected to the power supply circuit;
a first lighting group and a second lighting group, both connected to the positive pole of the power circuit;
the control end of the first switch tube is connected with the controller through the first resistor, the input end of the first switch tube is connected with the first lighting group, and the output end of the first switch tube is connected with the negative electrode of the power supply circuit;
the control end of the second switch tube is connected with the controller through the second resistor, the input end of the second switch tube is connected with the second lighting group, and the output end of the second switch tube is connected with the negative electrode of the power supply circuit;
and the first voltage sampling circuit is connected with the second switching tube.
Optionally, the first voltage sampling circuit is connected to the second lighting group and the input end of the second switching tube, respectively.
Optionally, the first switching tube includes an NPN triode, one end of the first resistor is connected to the controller, the other end of the first resistor is connected to a base of the NPN triode, a collector of the NPN triode is connected to the first lighting set, and an emitter of the NPN triode is connected to a negative electrode of the power circuit.
Optionally, the second switch tube includes a PNP triode, one end of the second resistor is connected to the controller, the other end of the second resistor is connected to the base of the PNP triode, the emitter of the PNP triode is connected to the second lighting group and the first voltage sampling circuit, respectively, and the collector of the PNP triode is connected to the negative electrode of the power supply circuit.
Optionally, the second voltage sampling circuit is connected to the first lighting group and the input end of the first switch tube, respectively.
Optionally, the first lighting group comprises a plurality of LEDs, and the second lighting group also comprises a plurality of LEDs.
Optionally, the first switch tube includes an NMOS tube, one end of the first resistor is connected to the controller, the other end of the first resistor is connected to a gate of the NMOS tube, a drain of the NMOS tube is connected to the first lighting group, and a source of the NMOS tube is connected to a negative electrode of the power circuit.
Optionally, the second switch tube is connected to the negative electrode of the power circuit through a third lighting group;
the second switch tube comprises a PMOS tube, one end of the second resistor is connected with the controller, the other end of the second resistor is connected with a grid electrode of the PMOS tube, a drain electrode of the PMOS tube is respectively connected with the second lighting group, and a source electrode of the PMOS tube is respectively connected with the third lighting group and the first voltage sampling circuit.
Optionally, the third lighting group also includes a plurality of LEDs.
Optionally, a third resistor and a fourth resistor;
one end of the third resistor is connected with the anode of the power circuit, the other end of the third resistor is connected with one end of the fourth resistor, the other end of the fourth resistor is connected with the cathode of the power circuit, and the input end of the first voltage sampling circuit is connected with the other end of the third resistor and one end of the fourth resistor respectively.
The utility model discloses embodiment's beneficial effect is: different from the prior art, in the embodiment of the present invention, the lighting circuit includes: a power supply circuit; a controller connected to the power supply circuit; a first lighting group and a second lighting group, both connected to the positive pole of the power circuit; the control end of the first switch tube is connected with the controller through the first resistor, the input end of the first switch tube is connected with the first lighting group, and the output end of the first switch tube is connected with the negative electrode of the power supply circuit; the control end of the second switch tube is connected with the controller through the second resistor, the input end of the second switch tube is connected with the second lighting group, and the output end of the second switch tube is connected with the negative electrode of the power supply circuit; and the first voltage sampling circuit is connected with the second switching tube. Therefore, the utility model discloses in, needn't set up devices such as diode in addition, simplify circuit structure, simultaneously, first switch tube and second switch tube can set up to the triode, reduce the device cost.
Detailed Description
In order to facilitate understanding of the present invention, the present invention will be described in more detail with reference to the accompanying drawings and embodiments. It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for descriptive purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
To better illustrate the technical effects of the present solution, please refer to fig. 1, in which fig. 1 is a lighting circuit 200 of a color-tunable LED lamp or a lamp for switching two color temperatures in the prior art, in which an anode of a switching power supply circuit 201 is respectively connected to an input terminal of a first lamp LED1, an input terminal of a second lamp LED2, one terminal of a fifth resistor R5, one terminal of a sixth resistor R6, one terminal of a seventh resistor R7, and one terminal of an eighth resistor R8, another terminal of the fifth resistor R5 is respectively connected to a control terminal of a control circuit 202, a gate of the first MOS transistor Q201, and one terminal of the ninth resistor R9, a drain of the first MOS transistor Q201 is respectively connected to another terminal of the sixth resistor R6, an output terminal of the first lamp LED1, an output terminal of a first diode D1, and one terminal of a tenth resistor R10, and another terminal of the seventh resistor R7 is respectively connected to an input terminal of a first diode D1, A gate of the second MOS transistor Q202 and one end of the eleventh resistor R11 are connected, a drain of the second MOS transistor Q202 is connected to the other end of the eighth resistor R8 and the output end of the second lamp LED2, respectively, and the other end of the ninth resistor R9, the source of the first MOS transistor Q201, the other end of the tenth resistor R10, the other end of the eleventh resistor R11, and the source of the second MOS transistor Q202 are connected to a negative electrode of the switching power supply circuit 201.
The control circuit 202 controls the on and off of the first MOS transistor Q201 through one path of PWM signal, controls the on and off of the first lamp LED1 connected to the path by using the first MOS transistor Q201, and controls the on and off of the second MOS transistor Q202 by using the first MOS transistor Q201, so as to control the on and off of the second lamp LED2 connected to the path, and finally achieve the purpose of implementing one path of PWM to control the switching of two color temperatures. In the prior art, the lighting circuit 200 must use MOS transistors, and cannot use triodes for replacement, assuming that the first MOS transistor Q201 and the second MOS transistor Q202 are both replaced by NPN triodes, when the PWM signal output by the control circuit 202 is high level, and the level applied to the base of the first MOS transistor Q201 is high level, at this time, the first MOS transistor Q201 is turned on, the first diode D1 is turned on, the voltage superimposed to the base of the second MOS transistor Q202 will be the sum of the turn-on voltage of the first MOS transistor Q201 and the forward turn-on voltage of the first diode D1, and the sum of the two voltages must turn on the second MOS transistor Q202, so that when the PWM signal output by the control circuit 202 is high level, the first MOS transistor Q201 and the second MOS transistor Q202 will be simultaneously turned on, and the purpose of complementary conduction cannot be achieved. The circuit only adopts MOS tubes, and also adopts diodes and a large number of resistors, so that the circuit structure is complex, and the device cost is increased.
Referring to fig. 2 and 3, fig. 2 is a block diagram of a lighting circuit according to an embodiment of the present invention, and fig. 3 is a circuit structure diagram of a lighting circuit according to an embodiment of the present invention, the lighting circuit 100 according to an embodiment of the present invention includes: the lighting system comprises a power supply circuit 10, a controller 20, a first lighting group 30, a second lighting group 40, a first resistor R1, a first switch tube 50, a second resistor R2, a second switch tube 60 and a first voltage sampling circuit 70.
Wherein the power circuit 10 is provided with a positive electrode V + and a negative electrode V-.
The controller 20 includes a single chip Microcomputer (MCU), etc., the controller 20 is connected to the power circuit 10, and the power circuit 10 can supply power to the controller 20.
The input end of the first lighting group 30 and the input end of the second lighting group 40 are both connected to the positive electrode V + of the power circuit 10, optionally, the first lighting group 30 includes a plurality of LEDs, and the second lighting group 40 also includes a plurality of LEDs; optionally, the light emitting colors of the LEDs in the first lighting group 30 are different from the light emitting colors of the LEDs in the second lighting group 40;
the control end of the first switch tube 50 is connected with the controller 20 through a first resistor R1, the input end of the first switch tube 50 is connected with the first lighting group 30, and the output end of the first switch tube 50 is connected with the negative pole V-of the power circuit 10; the control terminal of the second switching tube 60 is connected to the controller 20 through a second resistor R2, the input terminal of the second switching tube 60 is connected to the second lighting set 40, and the output terminal of the second switching tube 60 is connected to the negative electrode V-of the power circuit 10. The first voltage sampling circuit 70 is connected to the second switch tube 60. The controller 20 outputs a control signal through the output control terminal PWM to control the on/off of the first switch tube 50 and the second switch tube 60, and further control the on/off and light mixing of the first illumination group 30 and the second illumination group 40, so that it is not necessary to additionally provide devices such as diodes in the illumination circuit 100, the circuit structure is simplified, and at the same time, the first switch tube 50 and the second switch tube 60 can be set as triodes, thereby reducing the device cost.
Further, in some embodiments, the first switch tube 50 is an NPN transistor Q1, one end of the first resistor R1 is connected to the controller 20, the other end of the first resistor R1 is connected to a base of the NPN transistor Q1, a collector of the NPN transistor Q1 is connected to the first lighting group 30, and an emitter of the NPN transistor Q1 is connected to the negative electrode of the power circuit 10. The second switch tube 60 includes a PNP transistor Q2, one end of the second resistor R2 is connected to the controller 20, the other end of the second resistor R2 is connected to the base of the PNP transistor Q2, the emitter of the PNP transistor Q2 is connected to the second lighting bank 40 and the first voltage sampling circuit, respectively, and the collector of the PNP transistor Q2 is connected to the negative electrode V-of the power supply circuit 10. The first voltage sampling circuit 70 is respectively connected with the input ends of the second lighting group 40 and the second switch tube 60; optionally, the first voltage sampling circuit 70 is respectively connected to the second lighting group 40 and the emitter of the PNP transistor Q2.
In order to further explain the technical solution of the present invention, the following further explains the working principle of the embodiment of the present invention:
in the present embodiment, u2< u1+ Vce is realized by the first voltage sampling circuit 70, wherein u1 outputs the voltage value of the high level to the base of the PNP triode Q2 for the controller 20, Vce is the voltage drop of its emitter when the PNP triode Q2 is turned on, and u2 is applied to the voltage of the emitter of the PNP triode Q2. When the PWM control signal output by the controller 20 is at a high level, the voltages transmitted to the bases of the NPN transistor Q1 and the PNP transistor Q2 through the first resistor R1 and the second resistor R2 are both at a high level, and since the base voltage is higher than the emitter, the NPN transistor Q1 is turned on and the PNP transistor Q2 is turned off; when the base voltage is lower than the emitter voltage, the NPN transistor Q1 is turned off, and the PNP transistor Q2 is turned on. Therefore, when the PWM outputs a high level, the NPN transistor Q1 is turned on, and the PNP transistor Q2 is turned off. The first lighting group 30 connected with the path of the NPN triode Q1 lights up, and the second lighting group 40 connected with the path of the PNP triode Q2 does not light up; similarly, when the PWM outputs a low level, the voltages applied to the bases of the NPN transistor Q1 and the PNP transistor Q2 through the first resistor R1 and the second resistor R2 are zero, so that the NPN transistor Q1 is turned off, the PNP transistor Q2 is turned on, the first lighting group 30 connected to the path of the NPN transistor Q1 is not lit, and the second lighting group 40 connected to the path of the PNP transistor Q2 is lit. Therefore, only by arranging a proper voltage at the emitting electrode of the PNP triode Q2 through the first voltage sampling circuit 70, one path of PWM signal control two-path triode circuit can be completed, and one path of PWM output can be completed to output different duty ratios to mix light of different proportions to the first lighting group 30 and the second lighting group 40, and stepless color temperature regulation is achieved.
In some embodiments, please refer to fig. 4, fig. 4 is a circuit structure diagram of an embodiment of the lighting circuit of the present invention, since the voltage endurance of the transistor will affect the device cost, the higher the voltage endurance is, the higher the cost of the transistor is, so that if the requirement for the voltage endurance of the transistor can be effectively reduced, the cost of the transistor will be reduced. Therefore, the lighting circuit 100 further includes a second voltage sampling circuit 80, the second voltage sampling circuit 80 is respectively connected to the first lighting group 30 and the input end of the first switch tube 50, and since the collector voltage when the NPN transistor Q1 is turned off is assumed to be V + when the second voltage sampling circuit 80 is not present, and the collector voltage when the NPN transistor Q1 is turned off is clamped by the voltage sampled by the second voltage sampling circuit 80 after the second voltage sampling circuit 80 is provided, the second voltage sampling circuit 80 can reduce the requirement on the withstand voltage of the NPN transistor Q1, thereby effectively reducing the cost of the NPN transistor Q1. It is worth mentioning that: the NPN transistor Q1 is turned off and the PNP transistor Q2 may be connected in series to the upper, middle or lower ends of the first lighting group 30 and the second lighting group 40. The first switch tube 50 may be an NPN transistor or an NMOS tube.
In some embodiments, please refer to fig. 5, fig. 5 is a circuit structure diagram of a further embodiment of the lighting circuit of the present invention, wherein the lighting circuit 100 further includes a third lighting group 90, and the second switch tube 60 is connected to the negative electrode V-of the power circuit 10 through the third lighting group 90; further, the first switch tube 50 includes an NMOS tube Q3, one end of the first resistor R1 is connected to the controller 20, the other end of the first resistor R1 is connected to the gate of the NMOS tube Q3, the drain of the NMOS tube Q3 is connected to the first lighting group 30, the source of the NMOS tube Q3 is connected to the negative electrode V-of the power circuit 10, the second switch tube 60 includes a PMOS tube Q4, one end of the second resistor R2 is connected to the controller 20, the other end of the second resistor R2 is connected to the gate of the PMOS tube Q4, the drains of the PMOS tubes Q4 are respectively connected to the second lighting group 40, and the sources of the PMOS tubes Q4 are respectively connected to the third lighting group 90 and the first voltage sampling circuit 70. Optionally, the third lighting group also includes a plurality of LEDs.
It should be noted that: the utility model discloses in the embodiment, first switch tube 50 and second switch tube 60 do not only are limited to a triode or MOS pipe and just can realize, also can realize by a plurality of triodes, MOS nest of tubes combination the utility model discloses embodiment's scheme is not repeated here. Further, the voltage sampling manner of the first voltage sampling circuit 70 or the second voltage sampling circuit 80 can also be various, such as the following ways:
in a first manner, please refer to fig. 6, fig. 6 is a circuit diagram of voltage sampling of the first voltage sampling circuit 70 or the second voltage sampling circuit 80 according to the embodiment of the present invention, wherein the lighting circuit 100 further includes a third resistor R3 and a fourth resistor R4; one end of the third resistor R3 is connected to the positive electrode V + of the power supply circuit 10, the other end of the third resistor R3 is connected to one end of the fourth resistor R4, the other end of the fourth resistor R4 is connected to the negative electrode V-of the power supply circuit 10, and the input end of the first voltage sampling circuit 70 or the second voltage sampling circuit 80 is connected to the other end of the third resistor R3 and one end of the fourth resistor R4, respectively.
A second way, please refer to fig. 7, fig. 7 is a circuit diagram of voltage sampling of the first voltage sampling circuit 70 or the second voltage sampling circuit 80 according to the embodiment of the present invention, wherein the lighting circuit 100 further includes a third resistor R3 and a fourth resistor R4; the other winding of the transformer in the power circuit 10 is provided with a second positive pole V1+ and a second negative pole V1-, one end of a third resistor R3 is connected with a second positive pole V1+ of the power circuit 10, the other end of the third resistor R3 is connected with one end of a fourth resistor R4, the other end of the fourth resistor R4 is connected with a second negative pole V1-of the power circuit 10, and the input end of the first voltage sampling circuit 70 or the second voltage sampling circuit 80 is respectively connected with the other end of the third resistor R3 and one end of the fourth resistor R4.
In a third mode, the input end of the first voltage sampling circuit 70 or the second voltage sampling circuit 80 may be connected to other external sampling circuits, such as a capacitance-reducing voltage-reducing circuit or a linear circuit.
In an embodiment of the present invention, the lighting circuit 100 includes: the lighting system comprises a power supply circuit 10, a controller 20, a first lighting group 30, a second lighting group 40, a first resistor R1, a first switch tube 50, a second resistor R2, a second switch tube 60 and a first voltage sampling circuit 70. The controller 20 is connected to the power circuit 10, and both the input end of the first lighting group 30 and the input end of the second lighting group 40 are connected to the positive pole V + of the power circuit 10; the control end of the first switch tube 50 and the control end of the second switch tube 60 are both connected with the controller 20, the input end of the first switch tube 50 is connected with the first lighting group 30, the input end of the second switch tube 60 is connected with the second lighting group 40, and the output end of the first switch tube 50 and the output end of the second switch tube 60 are both connected with the negative pole V-of the power circuit 10; the first voltage sampling circuit 70 is connected to the second switch tube 60. The controller 20 outputs a control signal through the output control terminal PWM to control the on/off of the first switch tube 50 and the second switch tube 60, and further control the on/off and light mixing of the first illumination group 30 and the second illumination group 40, so that it is not necessary to additionally provide devices such as diodes in the illumination circuit 100, the circuit structure is simplified, and at the same time, the first switch tube 50 and the second switch tube 60 can be set as triodes, thereby reducing the device cost.
The above only is the embodiment of the present invention, not limiting the patent scope of the present invention, all the equivalent structures or equivalent processes that are used in the specification and the attached drawings or directly or indirectly applied to other related technical fields are included in the patent protection scope of the present invention.