[embodiment]
The present invention includes at least two main lines and be connected in parallel on two groups of opposite polarity LED between the second end of any two main lines, every main line is connected with the first control switch and the second control switch, the first control switch be connected the input of control switch and be connected with the output of control unit, control unit is by exporting conducting or the disconnection that control signal is controlled the first control switch and the second control switch to the first control switch and the second control switch, like this by being connected with power end with the first control switch, main line by the second control switch ground connection can be connected or ground connection with power end, realizes the positive pole to every main line, the control of negative pole and off-state; The quantity that the main line that connects at the LED two ends from first to last adopts is consistent, and having avoided in the market, the circuit integral body of decorative lamp presents pyramidal structure; And the present invention adopts N root main line can realize N* (N-1) loop, greatly simplified circuit structure, also reduced the cost of product simultaneously; Adopt in addition less that circuit design of the present invention can make the controller of decorative lamp, controller is supported the use with the LED that is connected controller, make the profile coordination more attractive in appearance of decorative lamp, also greatly reduce the cost of product simultaneously.
Multiloop control circuit of the present invention, comprise the control unit that is used for the output control signal by the power input unit power supply, and at least two main lines, at least two the first control switchs and at least two the second control switchs, show four main lines such as Fig. 2, main line L1, main line L2, main line L3 and main line L4, and four the first control switchs and four the second control switchs; The first end of every main line is connected with power end by described the first control switch, by described the second control switch ground connection, between the second end of any two main lines, also be connected in parallel to two groups of opposite polarity LED, wherein between main line L1 and main line L2, be connected with LED 1 and LED 2, the polarity of LED 1 and LED 2 is opposite, between main line L1 and main line L3, be connected with LED 3 and LED 4, the polarity of LED 3 and LED 4 is opposite, between main line L1 and main line L4, be connected with LED 5 and LED 6, the polarity of LED 5 and LED 6 is opposite, between main line L2 and main line L4, be connected with LED 7 and LED 8, the polarity of LED 7 and LED 8 is opposite, between main line L2 and main line L3, be connected with LED 9 and LED A, the polarity of LED 9 and LED A is opposite, be connected with LED B and LED C between main line L3 and main line L4, the polarity of LED B and LED C is opposite; Described the first control switch be connected the control end of control switch and be connected with the output of described control unit respectively, described the first control switch and the second control switch receive the control signal of described control unit output, are in turned on or off according to described control signal.Each group LED such as figure can be comprised of a LED diode; Perhaps be composed in series by at least two LED diodes, the anode of one of them LED diode is connected with the negative electrode of another LED diode.
In described the first control switch conducting, when the second control switch disconnected, main line was connected with power supply by the first control switch, and this moment, this main line was in high-voltage state, i.e. anodal state; Disconnect at described the first control switch, during the second control switch conducting, main line is by the second control switch ground connection, and this moment, this main line was in low-voltage state, i.e. the negative pole state; When described the first control switch and the second control switch all disconnected, main line was not connected with power supply yet, does not have ground connection yet, and this moment, main line was in off-state.Like this by control unit to the first control switch be connected control switch output control signal and control the first control switch of being connected with at least two main lines and conducting or the disconnection of the second control switch, so that with the first control switch be connected at least two main lines that control switch is connected and be in positive pole, negative pole or off-state, when a main line is in anodal state therein, when an other main line is in the negative pole state, one group of LED that be connected between these two main lines this moment lights, and other one group of opposite polarity LED closes and goes out; A main line is in anodal state therein, and when an other main line also is in anodal state, go out in two groups of LED passes that are connected to this moment between these two main lines; When a main line and an other main line are in positive pole, negative pole or off-state simultaneously therein, go out in two groups of LED passes that are connected to this moment between these two main lines; A main line is in off-state therein, and the LED that be connected with this root main line this moment closes and goes out; Be connected to like this respectively organizing LED and can light or close according to the different conditions of the main line that connects and go out between the second end of any two main lines.This shows that the present invention adopts 4 main lines can realize 12 loops, namely N root main line can be realized N* (N-1) loop, has greatly simplified circuit structure, has also reduced the cost of the product of using this multiloop control circuit simultaneously.
In a preferred embodiment, described power input unit includes rectification unit, voltage regulation filtering unit and AC power, and the input of described rectification unit is connected with AC power, and the output of this rectification unit is connected with control unit by the voltage regulation filtering unit.
In a preferred embodiment, described the first control switch comprises first, the second triode, described the second control switch comprises the 3rd triode, the base stage of the base stage of described the first triode and described the 3rd triode is connected with the output of described control unit, the collector electrode of the first triode is connected with the base stage of the second triode, the emitter of the second triode is connected with described power end, the collector electrode of this second triode is connected the grounded emitter of the emitter of described the first triode and the 3rd triode with the collector electrode of described the 3rd triode with the first end of described main line.Need to prove, this moment, the control signal of described control unit output was high or low level signal, when the base stage of described the first triode receives high level signal, its conducting, simultaneously the second triode conducting, described the 3rd triode base stage when receiving low level signal, its disconnection, this moment, power supply was powered to main line by the second triode, made main line be in anodal state; When the base stage of described the first triode receives low level signal, its disconnection, the second triode also disconnects simultaneously, when the base stage of described the 3rd triode receives high level signal, its conducting, this moment, main line ground connection made main line be in the negative pole state.Certainly triode also can be other similar switching tube, such as metal-oxide-semiconductor.
In a preferred embodiment, above-mentioned the first control switch and the second control switch can also comprise the first current-limiting resistance, the second current-limiting resistance and divider resistance, one end of described the first current-limiting resistance is connected with the output of described control unit, the other end is connected with the base stage of described the first triode, one end of described the second current-limiting resistance is connected with the output of described control unit, and the other end is connected with the base stage of described the 3rd triode; Such the first current-limiting resistance and the second current-limiting resistance can carry out current limliting to described high level signal, so that the first triode and the second triode are protected; Described divider resistance is connected between the base stage of the collector electrode of described the first triode and described the second triode; Can play the effect of protection the 3rd triode.
This first control switch and the second control switch can also be designed to other similar circuit structure in addition, and in a preferred embodiment, this first control switch comprises the second triode, and described the second control switch comprises the 3rd triode; The base stage of the base stage of described the second triode and described the 3rd triode is connected with the output of described control unit respectively, the emitter of described the second triode is connected with described power end, the collector electrode of this second triode is connected the grounded emitter of the 3rd triode with the collector electrode of described the 3rd triode with the first end of described main line.Certainly triode also can be other similar switching tube, such as metal-oxide-semiconductor.
In a preferred embodiment, for the time of lighting that makes described LED different, in order to play the LED flicker, chase and snowy effect, described control unit can also comprise timer, this control unit arrives described the first control switch and the second control switch according to the time signal output time control signal of described timer output, and described the first control switch and the second control switch are in conducting or off-state according to the time control signal that receives.Timer can be set the different time periods, each time period then respectively to the control unit output time information, control unit can send time control signal to the first control switch and the second control switch according to this temporal information, to control conducting or the disconnection of the first control switch and the second control switch, so then can control lighting the time of LED.Be specifically as follows:
Described timer the very first time then, send very first time information to described control unit, described control unit according to this very first time information to two main lines that one group of LED wherein is connected on the first control switch and the second control switch send successively the level signal that this group of control LED lights, described timer the second time then, send the second temporal information to described control unit, described control unit according to this second temporal information to two main lines that other one group of LED is connected on the first control switch and the second control switch send successively this other one group of level signal that LED lights of control.
The present invention has also disclosed a kind of control method of multiloop control circuit, and described control circuit comprises control unit, at least two main lines, and the first end of every main line connects power supply, the second control switch ground connection by the first control switch respectively; Between the second end of any two main lines, also be connected in parallel to two groups of opposite polarity LED, the output of control unit respectively with each first control switch be connected the control end of the second control switch and be connected;
Described control method comprises:
Control unit sends control signal to the first control switch and the second control switch, control conducting or the disconnection of the first control switch and the second control switch, make with this first control switch be connected the main line that control switch is connected and be connected with power supply or ground connection or disconnection, namely control this root main line and be in positive pole, negative pole or off-state;
A main line is in anodal state therein, and when another root main line was in the negative pole state, the one group of LED that is connected between these two main lines lighted; When a main line and an other main line are in negative or positive electrode or off-state simultaneously therein, go out in the LED pass that is connected between these two main lines; When a main line was in off-state therein, the LED that is connected with this root main line closed and goes out.
The first control signal described above, the second control signal, the 3rd control signal or the 4th control signal can be high or low level signals.
Described control unit can also include timer, this control unit arrives described the first control switch and the second control switch according to the time signal output time control signal of described timer output, described the first control switch and the second control switch are in conducting or off-state according to described time control signal, the time signal that can send along with timer of LED time of lighting and changing can reach the effect that LED chases, glimmers, lights continuously like this.
Described control unit arrives described the first control switch and the second control switch according to the temporal information output time control signal of described timer output, is specifically as follows:
Described timer the very first time then, send very first time information to described control unit, described control unit according to this very first time information to two main lines that one group of LED wherein is connected on the first control switch and the second control switch send successively the level signal that this group of control LED lights, described timer the second time then, send the second temporal information to described control unit, described control unit according to this second temporal information to two main lines that other one group of LED is connected on the first control switch and the second control switch send successively this other one group of level signal that LED lights of control.
Below in conjunction with accompanying drawing specific embodiments of the invention are described in further details.Embodiment one:
Please refer to shown in Figure 3, among this embodiment, multiloop control circuit of the present invention, include the rectification unit 4 that is connected with alternating current AC_IN, four main line L1 that are connected respectively with the output of rectification unit 4, L2, L3, L4 and voltage regulation filtering unit 5, be connected in parallel on four main line L1, L2, L3, two groups of LED of one end of upper any two main lines of L4, wherein two groups of LED polarity are opposite, have 16 LED diode D1 to D16, at four main line L1, L2, L3, the other end of L4 also is connected with the first control switch 1 and the second control switch 2, the first control switch 1 be connected the input of control switch 2 and be connected with the output of control unit 3 respectively, the power end of 12V is connected with main line by the first control switch 1, main line is by the second control switch 2 ground connection, and this first control switch 1 and the second control switch 2 are in conducting or off-state according to the control signal of control unit 3 outputs; The first control switch 1 sends control signal control four main line L1, L2, L3, L4 by control unit 3 and is in positive pole or off-state, the second control switch 2 sends control signal control four main line L1, L2, L3, L4 by control unit 3 and is in negative pole or off-state, and same main line can only make this root main line be in single kind of state of positive pole, negative pole or disconnection by the first control switch and the second control switch.Control unit 3 adopts many pins CPU among this embodiment; Rectification unit 4 adopts the bridge rectifier of four diodes compositions, and is connected a fuse F1 with the input of bridge rectifier at alternating current AC_IN.Wherein voltage regulation filtering unit 5 comprises resistance R 1, voltage stabilizing didoe ZD1, electrochemical capacitor C2 and capacitor C 3, one end of this resistance R 1 is connected with the output of rectification unit 4, the other end of resistance R 1 is connected the negative pole of the anode of voltage stabilizing didoe ZD1, electrochemical capacitor C2 and the other end ground connection of capacitor C 3 with the negative electrode of voltage stabilizing didoe ZD1, the positive pole of electrochemical capacitor C2, an end and the power end VCC of capacitor C 3 respectively; Power end VCC is connected with the power positive end of CPU.The power-of CPU is extreme also to be connected with the negative pole end of alternating current AC-IN by resistance R 14.
Be connected with the first control switch 1 and the second control switch 2 on the main line L1, the first control switch 1 on the main line L1 comprises two triode Q1 and Q2, the second control switch 2 on the main line L1 comprises a triode Q3, the base stage of triode Q1 is connected a resistance R 2 afterwards and CPU pins 6, the IO mouth P64 that is CPU is electrically connected, its collector electrode is electrically connected with the base stage of triode Q2 after connecting a resistance R 3, the emitter of triode Q2 is electrically connected with the output DC of bridge rectifier source+12V place, the collector electrode of triode Q2 be electrically connected with the LED of main line L1 parallel connection again after the collector electrode of the triode Q3 of the second control switch 2 is electrically connected, the base stage of the triode Q3 of the second control switch 2 is electrically connected after the resistance R 4 and the pin 1 of CPU, the IO mouth P50 that is CPU is electrically connected, and the emitter of the triode Q3 of the emitter of the triode Q1 of the first control switch 1 and the second control switch 2 is ground connection respectively.
The triode Q1 of the first control switch 1 on the above-mentioned main line L1 and the triode Q3 of the second control switch 2 are the NPN pipe, and the triode Q2 of the first control switch 1 is the PNP pipe.
The first control switch 1 on the main line L2 comprises two triode Q4 and Q5, the second control switch 2 on the main line L2 comprises a triode Q7, the base stage of triode Q4 is connected a resistance R 5 afterwards and CPU pins 5, the IO mouth P65 that is CPU is electrically connected, its collector electrode is electrically connected with the base stage of triode Q5 after connecting a resistance R 6, the emitter of triode Q5 is electrically connected with the output DC of bridge rectifier source+12V place, the collector electrode of triode Q5 be electrically connected with the LED of main line L2 parallel connection again after the collector electrode of the triode Q7 of the second control switch 2 is electrically connected, the base stage of the triode Q7 of the second control switch 2 is electrically connected after the resistance R 7 and the pin 14 of CPU, the IO mouth P51 that is CPU is electrically connected, and the emitter of the triode Q7 of the emitter of the triode Q4 of the first control switch 1 and the second control switch 2 is ground connection respectively.
The triode Q4 of the first control switch 1 on the above-mentioned main line L2 and the triode Q6 of the second control switch 2 are the NPN pipe, and the triode Q7 of the first control switch 1 is the PNP pipe.
The first control switch 1 on the main line L3 comprises two triode Q8 and Q6, the second control switch 2 on the main line L3 comprises a triode Q10, the base stage of triode Q8 is connected a resistance R 8 afterwards and CPU pins 3, the IO mouth P66 that is CPU is electrically connected, its collector electrode is electrically connected with the base stage of triode Q6 after connecting a resistance R 9, the emitter of triode Q6 is electrically connected with the output DC of bridge rectifier source+12V place, the collector electrode of triode Q6 be electrically connected with the LED of main line L3 parallel connection again after the collector electrode of the triode Q10 of the second control switch 2 is electrically connected, the base stage of the triode Q10 of the second control switch 2 is electrically connected after the resistance R 11 and the pin 13 of CPU, the IO mouth P52 that is CPU is electrically connected, and the emitter of the triode Q10 of the emitter of the triode Q8 of the first control switch 1 and the second control switch 2 is ground connection respectively.
The triode Q8 of the first control switch 1 on the above-mentioned main line L3 and the triode Q10 of the second control switch 2 are the NPN pipe, and the triode Q6 of the first control switch 1 is the PNP pipe.
The first control switch 1 on the main line L4 comprises two triode Q12 and Q9, the second control switch 2 on the main line L3 comprises a triode Q11, the base stage of triode Q12 is connected a resistance R 13 afterwards and CPU pins 2, the IO mouth P67 that is CPU is electrically connected, its collector electrode is electrically connected with the base stage of triode Q9 after connecting a resistance R 10, the emitter of triode Q9 is electrically connected with the output DC of bridge rectifier source+12V place, the collector electrode of triode Q9 be electrically connected with the LED of main line L4 parallel connection again after the collector electrode of the triode Q11 of the second control switch 2 is electrically connected, the base stage of the triode Q11 of the second control switch 2 is electrically connected after the resistance R 12 and the pin 12 of CPU, the IO mouth P53 that is CPU is electrically connected, and the emitter of the triode Q11 of the emitter of the triode Q12 of the first control switch 1 and the second control switch 2 is ground connection respectively.
The triode Q12 of the first control switch 1 on the above-mentioned main line L4 and the triode Q11 of the second control switch 2 are the NPN pipe, and the triode Q9 of the first control switch 1 is the PNP pipe.
The control switch that arranges respectively on main line L2, L3 and the L4 is consistent with the control switch annexation of the upper setting of L1.Be described below: the first triode Q4 of the first control switch of main line L2, L3 and L4, the base stage of Q8, Q12 respectively behind corresponding series connection one resistance R 5, R8, the R13 again with pin 5,3, the 2 corresponding electrical connections of CPU, namely be electrically connected with IO mouth P65, P66, the P67 of CPU; Behind the corresponding series connection of triode Q7, the Q10 of the second control switch of main line L2, L3 and L4, the base stage of Q11 one resistance R 7, R11, the R12 again with pin 14,13, the 12 corresponding electrical connections of CPU, namely be connected with IO mouth P51, P52, the P53 of CPU; Main line L2, L3 are connected the emitter of the second triode Q5, Q6, Q9 of the first control switch and are connected with the output DC source of bridge rectifier+12V place respectively with L4, the collector electrode of the first triode Q4 of the first control switch of main line L2 is connected and is electrically connected with the base stage of the second triode Q5 after the resistance R 6, the collector electrode of the second triode Q5 of the first control switch be electrically connected with LED with main line L2 parallel connection again after the collector electrode of the triode Q7 of the second control switch is electrically connected; The collector electrode of the first triode Q8 of the first control switch of main line L3 is connected and is electrically connected with the base stage of the second triode Q6 after the resistance R 9, the collector electrode of the second triode Q6 of the first control switch be electrically connected with LED with main line L3 parallel connection again after the collector electrode of the triode Q10 of the second control switch is electrically connected; The first triode Q12 collector electrode of the first control switch of main line L4 is connected and is electrically connected with the base stage of the second triode Q9 after the resistance R 10, the collector electrode of the second triode Q9 of the first control switch be electrically connected with LED with main line L4 parallel connection again after the collector electrode of the triode Q11 of the second control switch is electrically connected.Triode Q7, the Q10 of the first triode Q4 of above-mentioned main line L2, L3, L4 the first control switch, the emitter of Q8, Q12 and the second control switch, the whole ground connection of emitter of Q11.Triode Q7, Q10, the Q11 of the first triode Q4, Q8, Q12 and second control switch of above-mentioned main line L2, L3, L4 the first control switch is the NPN pipe, and main line L2, L3, the second triode Q5 of L4 the first control switch, Q6, Q9 are the PNP pipe.
It is the control chip of 78P153 that above-described CPU can select model; also can adopt the control chip of other model; as long as can reach purpose of the present invention, no matter select the singlechip control chip of which kind of model or type all should belong to protection scope of the present invention.
The annexation of above-mentioned four main line L1, L2, L3, L4 and LED is with reference to Fig. 3, be connected with the LED lamp string that is connected in series by light-emitting diode D1 and D2 between main line L1 and the main line L2, reach the LED lamp string that is connected in series by light-emitting diode D7 and D8, the LED lamp string that this light-emitting diode D1 and D2 are connected in series is opposite with the polarity of the LED lamp string that light-emitting diode D7 and D8 are connected in series, and be connected in parallel between main line L1 and the main line L2, the polarity that namely is connected in parallel between two groups of LED on two main lines is opposite; Be connected with the LED lamp string that is connected in series by light-emitting diode D3 and D4 between main line L1 and the main line L3, reach the LED lamp string that is connected in series by light-emitting diode D13 and D14, wherein the polarity of the Series lamp string that is connected with D4 of the LED lamp string that is connected with D14 of light-emitting diode D13 and light-emitting diode D3 is opposite, and is connected in parallel between main line L1 and the main line L3; Be connected with the LED lamp string that is connected in series by light-emitting diode D5 and D6 between main line L1 and the main line L4, reach the LED lamp string that is connected in series by light-emitting diode D19 and D20, wherein the polarity of the LED lamp string that is connected with D6 of the LED lamp string that is connected with D20 of light-emitting diode D19 and light-emitting diode D5 is opposite, and is connected in parallel between main line L1 and the main line L4; Be connected with the LED lamp string that is connected in series by light-emitting diode D9 and D10 between main line L2 and the main line L3, reach the LED lamp string that is connected in series by light-emitting diode D15 and D16, wherein the polarity of the LED lamp string that is connected with D10 of the LED lamp string that is connected with D16 of light-emitting diode D15 and light-emitting diode D9 is opposite, and is connected in parallel between main line L2 and the main line L3; Be connected with the LED lamp string that is connected in series by light-emitting diode D11 and D12 between main line L2 and the main line L4, reach the LED lamp string that is connected in series by light-emitting diode D21 and D22, wherein the polarity of the LED lamp string that is connected with D12 of the LED lamp string that is connected with D22 of light-emitting diode D21 and light-emitting diode D11 is opposite, and is connected in parallel between main line L2 and the main line L4; Be connected with the LED lamp string that is connected in series by light-emitting diode D17 and D18 between main line L3 and the main line L4, reach the LED lamp string that is connected in series by light-emitting diode D23 and D24, wherein the polarity of the LED lamp string that is connected with D18 of the LED lamp string that is connected with D24 of light-emitting diode D23 and light-emitting diode D17 is opposite, and is connected in parallel between main line L3 and the main line L4.
Embodiment two
Please refer to accompanying drawing 4,5, shown in 6, the present invention also provides a kind of decorative lamp of the embodiment of employing one described multiloop control circuit, this decorative lamp comprises at least two main lines, controller 15, with the controller 15 outside power lines 60 that are connected and the fluorescent tube 22 that is connected with controller 15, comprise control circuit board 70 (this control circuit board is selectable unit (SU)) in the controller 15, and be arranged on control chip 75 on this control circuit board 70, it is the CPU of 78P153 that this control chip 75 can be selected model, this control chip 75 is the control unit 3 among the embodiment one, on control circuit board 70, also include the many groups control switch that is electrically connected with control unit 3, every group of control switch comprises the first control switch and the second control switch, and the first end of every main line is connected with power end by described the first control switch, by described the second control switch ground connection; Described the first control switch be connected the control end of control switch and be connected with the output of described control chip 75, described the first control switch and the second control switch are in conducting or off-state according to the control signal of described control chip 75 outputs; Wherein be provided with heart yearn 24 in the fluorescent tube 22, be arranged on four main line b1 in the heart yearn 24, b2, b3, b4, be connected in parallel on four main line b1, b2, b3, two groups of LED among the b4 on any two main lines, described two groups of LED polarity are opposite, four main line b1, b2, b3, b4 is connected with every group of control switch respectively, control switch is in positive pole by every main line of controller 3 controls, negative pole or off-state, in heart yearn 24, length aspect along heart yearn 24 is provided with longitudinal hole 25, longitudinally through hole 25 offers open slot 27, LED is arranged in the longitudinal hole 25, also coats one deck printing opacity crust 23 in the outside of heart yearn 24.
This shows, the decorative lamp among this embodiment only need can be realized 12 loops with four main lines in printing opacity crust 23, and required main line number is fewer; And the number of fluorescent tube required main line about in the of 22 is consistent, and having avoided in the market, the circuit integral body of decorative lamp presents pyramidal structure.
Wherein, heart yearn 24 is that flexible material is made; Heart yearn 24 and crust 23 also can all be that PVC flexible, that have printing opacity or elastomeric material are made, and can better uprightly finalize the design in order to make the ornamental lamp hole of making, in heart yearn 24, also be provided with a steel wire 28 along the longitudinal direction of heart yearn 24.
Every group of LED among above-mentioned two groups of LED can be that single LEDs diode forms, the LED lamp string that also can be formed by the plurality of LEDs diode or the one group of LED that is formed by multi-string LED lamp string, if every group of LED is comprised of the plurality of LEDs diode, these LED diodes are connected in series, and namely the anode of one of them LED diode is connected with the negative electrode of an adjacent LED diode.
With reference to Fig. 6, the control method of multi-loop circuit of the present invention is to send the high-low level signal by control chip 75, controls the first control switch on each root main line and the second control switch conducting or disconnects and realize lighting of multiloop LED.The control unit 3 that the present invention adopts is CPU, CPU sends high level or low level signal, the first control switch 1 and the second control switch 2 that connect respectively on four main line L1, L2, L3, the L4 are controlled, controlled four main line L1, L2, L3, L4 and be in respectively positive pole, negative pole or off-state; Concrete control is as follows: CPU sends high level signal to the first control switch 1 of a main line wherein, what then the second control switch 2 on the corresponding same main line sent must be low level signal, the first control switch 1 conducting this moment, the second control switch 2 disconnects, main line is connected with power end by the first control switch 1, and then this main line is in anodal state; CPU sends high level signal to the second control switch 2 of a main line wherein, then the first control switch 1 on the corresponding same main line must send low level signal, this moment first, control switch 1 disconnected, 2 conductings of the second control switch, main line is by the second control switch ground connection, and then this main line is in the negative pole state; CPU sends low level signal to the first control switch 1 and the second control switch 2 that arranges on the same main line, and this moment, the first control switch 1 and the second control switch 2 disconnected respectively, and then this root main line is in off-state; Be connected in parallel on two LED diodes are arranged on main line L1 and the L2, light-emitting diode D1 wherein, LED lamp string and light-emitting diode D7 that D2 forms, the LED lamp string polarity that D8 forms is opposite, when CPU pair of the first control switch that is connected with main line L1 sends respectively high level signal with the second control switch that is connected with main line L2, the IO mouth of the CPU that the first control switch 1 that wherein connects with main line L1 is corresponding is P64, the IO mouth of the second control switch 2 corresponding CPU that connect with main line L2 is P51, and CPU pair of the second control switch 2 that is connected with main line L1 be connected with main line L2 the first control switch send low level signal, the IO mouth of the second control switch 2 corresponding CPU that wherein connect with main line L1 is P50, the IO mouth of the first control switch 1 corresponding CPU that connects with main line L2 is P65, this moment, main line L1 was in anodal state, and main line L2 is in the negative pole state; The first control switch 1 and the second control switch 2 that be connected with main line L3, L4 this moment send respectively low level signal by CPU, the first control switch 1 that wherein connects with main line L3, the L4 respectively IO mouth of corresponding CPU is P66, P67, the second control switch 2 that connects with main line L3, the L4 respectively IO mouth of corresponding CPU is P52, P53, make main line L3, L4 be in off-state, at this moment, the LED lamp string that is comprised of light-emitting diode D1, D2 can be lighted.Adopt above-mentioned same principle, when the first control switch 1 of CPU pair of the second control switch 2 that is connected with main line L1 and main line L2 sends high level signal, and corresponding the first control switch 1 that is connected with main line L1 and the second control switch 2 that is connected with main line L2 send low level signal by CPU, this moment, main line L1 was in the negative pole state, and main line L2 is in anodal state, corresponding and main line L3, the first control switch 1 and the second control switch 2 that L4 connects send respectively low level signal by CPU, make main line L3, L4 is in off-state, at this moment, by light-emitting diode D7, the LED lamp string that D8 forms can be lighted.Following table is that four main line L1, L2, L3, L4 shown in Figure 3 realize the mode that every group of lamp string of ten secondary circuits lighted respectively:
Circuit design principle Fig. 3 and above-mentioned tabulation according to this embodiment can draw, can realize that equally two groups of LED lamp strings or three groups of LED lamp strings light simultaneously, simultaneously also can realize the state that orderly variation is lighted or random variation is lighted, realize which kind of lights effect and only the level signal of the IO mouth of the corresponding CPU of the first control switch on each main line and the second control switch need to be set and get final product, as: four pin P64 of high four the IO mouths of CPU, P65, P66, P67, when P64 is output as high level signal, the high level signal that is that the first control switch 1 of being connected with main line L1 receives is described, corresponding at this moment main line L1 is in anodal state, work as P65, P66, when P67 is output as low level signal, illustrate and main line L2, L3, what the first control switch 1 that L4 connects received is low level signal, corresponding at this moment main line L2, L3, L4 is in the negative pole state, so light-emitting diode D1 and D2, D3 and D4, the lamp string that D5 and D6 form respectively can be lighted simultaneously.
Control by CPU timer the time of delay of lighting of above-mentioned LED lamp string, and namely the level signal sent of CPU can be set according to the temporal information that timer sends, and when timer sent temporal information, CPU sent level signal according to the temporal information of sending again.When every group of LED lamp string will present snowing effect, can last group of lamp string and the convergence time lighted of rear one group of lamp string be set to 0.1~0.5 second, the set of time of lighting of every group of lamp string is 0.1~0.5 second, can be shorter or longer than the time that exemplifies previously with the convergence time of every group of lamp string and the set of time of lighting of every cluster of lamps, ornamental string also as required; When LED lamp string will present continuous state, can it be 0.01~0.1 second time with the set of time of lighting of every group of lamp string, the convergence time of lighting with last group of lamp string and rear one group of lamp string is set to 0.01~0.1 second equally simultaneously, because rapid, naked eyes can't be discovered, and have so just reached the continuous illuminating state of lamp string.
In addition, such as Figure 11, also many decorative lamps can be connected in parallel on two main traverse lines 90 of power supply, the power line of each decorative lamp is connected with two main traverse lines 90 of power supply respectively, namely these a plurality of decorative lamps are connected in parallel on the power supply, by many decorative lamps combined like this by controlling lighting the time of each decorative lamp this moment, can reach chase, the effect of flicker, flowing water.Need to prove, two main traverse lines can be arranged on the outer intracutaneous of printing opacity of each decorative lamp, the power input of the controller of each decorative lamp is connected with this main traverse line respectively, in disorder on can not occurring connecting up when these a plurality of decorative lamps connect like this, the wire layout comparison is neat, and plug can be connected with power supply on the termination of this main traverse line.
Embodiment three:
Please refer to shown in Fig. 7,8,9,10, the another kind of decorative lamp that adopts embodiment one described multiloop control circuit for the present invention, the present embodiment and embodiment two differences are, without the controller architecture that is installed among the embodiment two outside the fluorescent tube, but directly the control circuit board in the controller is installed in the fluorescent tube; Decorative lamp among this embodiment comprises control circuit board 70, four main lines 40 that are connected with control circuit board 70,41,42,43 and be connected in parallel on two groups of LED on any two main lines, the polarity of described two groups of LED is opposite, control circuit board 70 comprises control unit 3, the many groups control switch that is connected with control unit 3, every group of control switch comprises the first control switch and the second control switch, four main lines 40,41,42,43 are connected with every group of control switch respectively, and the first end of every main line is connected with power end by described the first control switch, by described the second control switch ground connection; Described the first control switch be connected the control end of control switch and be connected with the output of described control unit 3, described the first control switch and the second control switch are in conducting or off-state according to the control signal of described control unit 3 outputs; Control switch is in positive pole, negative pole or off-state by every main line of control unit 3 controls, control circuit board 70 and fluorescent tube 30 outsides also are equipped with light-transmission tube 20, port at light-transmission tube 20 is provided with the power line 60 that is connected with control circuit board 70, and power line 60 is fixedly connected with light-transmission tube 20 by fixture 80.Wherein, in a preferred embodiment, the marine glue (not shown) that fixture 80 can be fixed for spreading upon light-transmission tube 20 ports and power line 60; Fixture 80 also can be that beer is annotated the waterproof cover on power line 60, and wherein waterproof cover cooperates with described light-transmission tube 20 port sealings.Waterproof cover can adopt elastomeric material or PVC material to make.Light-transmission tube 20 can be the hollow pipe of both ends open, and the bottom port place of hollow pipe also is provided with tail plug 81.
See also shown in Figure 10, four main lines 40,41,42,43 wherein are connected in parallel to two groups of LED on any two, these two groups of LED polarity are opposite, one end of above-mentioned four main lines is electrically connected with respectively one group of control switch, control switch is according to the control signal that receives, control corresponding main line and be positive pole, negative pole or off-state, thereby the different illuminating states of LED are respectively organized in control.
Every group of LED among above-mentioned two groups of LED can be that single LEDs forms, the LED lamp string that also can be comprised of plurality of LEDs or the one group of LED that is comprised of multi-string LED lamp string.
In addition, such as Figure 11, also many decorative lamps can be connected in parallel on two main traverse lines 90 of power supply, the power line of each decorative lamp is connected with two main traverse lines 90 of power supply respectively, namely these a plurality of decorative lamps are connected in parallel on the power supply, by many decorative lamps combined like this by controlling lighting the time of each decorative lamp this moment, can reach chase, the effect of flicker, flowing water.Need to prove, such as Fig. 7, also the power line of these a plurality of decorative lamps can be connected in parallel, when needs are connected with power supply, the power line of one of them decorative lamp is received power supply by plug 85 and is got final product, so just do not need the power line of each decorative lamp is connected with power supply by plug respectively, reduced the number of times of line, connect up more neat yet.
Above-listed detailed description is that this embodiment limits claim of the present invention for the specifying of possible embodiments of the present invention, and the equivalence that all the present invention of disengaging do is implemented or change, all should be contained in the claim of this case.