Lamp controller
11785685 ยท 2023-10-10
Assignee
Inventors
Cpc classification
H05B47/17
ELECTRICITY
International classification
Abstract
The present disclosure discloses a lamp controller, comprising a DC power supply, a control unit and a switch unit that is controlled to be turned on or turned off by the control unit, an output end of the DC power supply is electrically connected to the control unit and the switch unit in respective, wherein the switch unit comprises three sets of switch circuits, each set of switch circuit comprises a load connecting part as well as a first switch tube and a second switch tube that are independently controlled by the control unit, a first pin of the first switch tube is connected to an output end of the control unit, a second pin of the first switch tube is connected to the DC power supply.
Claims
1. A lamp controller, comprising a DC power supply (1), a control unit (2) and a switch unit (3) that is controlled to be turned on or turned off by the control unit (2), an output end of the DC power supply (1) is electrically connected to the control unit (2) and the switch unit (3) in respective, wherein the switch unit (3) comprises three sets of switch circuits, each set of switch circuit comprises a load connecting part (A, B, C) as well as a first switch tube (Q3, Q2, Q1) and a second switch tube (Q4, Q5, Q6) that are independently controlled by the control unit (2), a first pin of the first switch tube (Q3, Q2, Q1) is connected to an output end of the control unit (2), a second pin of the first switch tube (Q3, Q2, Q1) is connected to the DC power supply, a third pin of the first switch tube (Q3, Q2, Q1) is connected to a third pin of the second switch tube (Q4, Q5, Q6), a first pin of the second switch tube (Q4, Q5, Q6) is connected to the output end of the control unit (2), a second pin of the second switch tube (Q4, Q5, Q6) is grounded, and the load connecting part (A, B, C) is arranged at the connecting part of the third pin of the first switch tube (Q3, Q2, Q1) and the third pin of the second switch tube (Q4, Q5, Q6).
2. The lamp controller according to claim 1, further comprising an indicator (LED2) which is always on after being powered on, so as to indicate the position of the lamp controller, and the indicator (LED2) is electrically connected to the output end of the DC power supply (1).
3. The lamp controller according to claim 1, further comprising a mode selector which inputs a light flashing mode switching signal or a light timing signal to the control unit, and the mode selector is electrically connected to the control unit.
4. The lamp controller according to claim 3, further comprising: a timing indicator (LED1) for indicating a timing state after the control unit starts the light timing according to the input of the mode selector, and the timing indicator (LED1) is electrically connected to the control unit (2).
5. The lamp controller according to claim 3, wherein the mode selector comprises: a wireless signal transmitter; and a wireless signal receiver (U4) for receiving a signal output by the wireless signal transmitter, and the wireless signal receiver (U4) is connected to a pin of the control unit.
6. The lamp controller according to claim 3, wherein the mode selector is a key switch or a touch switch.
7. The lamp controller according to claim 1, further comprising a lamp, which comprises a first wire (4), a second wire (5), a third wire (6), a first LED lamp (7), a second LED lamp (8), a third LED lamp (9) and a fourth LED lamp (10), the first wire (4) is connected to the load connecting part (A) of the first set of switch circuit, the second wire (5) is connected to the load connecting part (B) of the second set of switch circuit, and the third wire (3) is connected to the load connecting part (C) of the third set of switch circuit; an anode end of the first LED lamp (7) is connected to the first wire (4), and a cathode end of the first LED lamp (7) is connected to the second wire (5); a cathode end of the second LED lamp (8) is connected to the first wire (4), and an anode end of the second LED lamp (8) is connected to the second wire (5); a cathode end of the third LED lamp (9) is connected to the second wire (5), and an anode end of the third LED lamp (9) is connected to the third wire (6); and an anode end of the fourth LED lamp (10) is connected to the second wire (5), and a cathode end of the fourth LED lamp (10) is connected to the third wire (6).
8. The lamp controller according to claim 7, further comprising a fifth LED lamp (11) and a sixth LED lamp (12), wherein an anode end of the fifth LED lamp (11) is connected to the first wire (4), and a cathode end of the fifth LED lamp (11) is connected to the third wire (6); and a cathode end of the sixth LED lamp (12) is connected to the first wire (4), and an anode end of the sixth LED lamp (12) is connected to the third wire (6).
9. The lamp controller according to claim 2, further comprising the lamp, which comprises the first wire (4), the second wire (5), the third wire (6), the first LED lamp (7), the second LED lamp (8), the third LED lamp (9) and the fourth LED lamp (10), the first wire (4) is connected to the load connecting part (A) of the first set of switch circuit, the second wire (5) is connected to the load connecting part (B) of the second set of switch circuit, and the third wire (3) is connected to the load connecting part (C) of the third set of switch circuit; an anode end of the first LED lamp (7) is connected to the first wire (4), and the cathode end of the first LED lamp (7) is connected to the second wire (5); a cathode end of the second LED lamp (8) is connected to the first wire (4), and the anode end of the second LED lamp (8) is connected to the second wire (5); a cathode end of the third LED lamp (9) is connected to the second wire (5), and the anode end of the third LED lamp (9) is connected to the third wire (6); and an anode end of the fourth LED lamp (10) is connected to the second wire (5), and the cathode end of the fourth LED lamp (10) is connected to the third wire (6).
10. The lamp controller according to claim 3, further comprising the lamp, which comprises the first wire (4), the second wire (5), the third wire (6), the first LED lamp (7), the second LED lamp (8), the third LED lamp (9) and the fourth LED lamp (10), the first wire (4) is connected to the load connecting part (A) of the first set of switch circuit, the second wire (5) is connected to the load connecting part (B) of the second set of switch circuit, and the third wire (3) is connected to the load connecting part (C) of the third set of switch circuit; an anode end of the first LED lamp (7) is connected to the first wire (4), and the cathode end of the first LED lamp (7) is connected to the second wire (5); a cathode end of the second LED lamp (8) is connected to the first wire (4), and the anode end of the second LED lamp (8) is connected to the second wire (5); a cathode end of the third LED lamp (9) is connected to the second wire (5), and the anode end of the third LED lamp (9) is connected to the third wire (6); and an anode end of the fourth LED lamp (10) is connected to the second wire (5), and the cathode end of the fourth LED lamp (10) is connected to the third wire (6).
11. The lamp controller according to claim 4, further comprising the lamp, which comprises the first wire (4), the second wire (5), the third wire (6), the first LED lamp (7), the second LED lamp (8), the third LED lamp (9) and the fourth LED lamp (10), the first wire (4) is connected to the load connecting part (A) of the first set of switch circuit, the second wire (5) is connected to the load connecting part (B) of the second set of switch circuit, and the third wire (3) is connected to the load connecting part (C) of the third set of switch circuit; an anode end of the first LED lamp (7) is connected to the first wire (4), and the cathode end of the first LED lamp (7) is connected to the second wire (5); a cathode end of the second LED lamp (8) is connected to the first wire (4), and the anode end of the second LED lamp (8) is connected to the second wire (5); a cathode end of the third LED lamp (9) is connected to the second wire (5), and the anode end of the third LED lamp (9) is connected to the third wire (6); and an anode end of the fourth LED lamp (10) is connected to the second wire (5), and the cathode end of the fourth LED lamp (10) is connected to the third wire (6).
12. The lamp controller according to claim 5, further comprising the lamp, which comprises the first wire (4), the second wire (5), the third wire (6), the first LED lamp (7), the second LED lamp (8), the third LED lamp (9) and the fourth LED lamp (10), the first wire (4) is connected to the load connecting part (A) of the first set of switch circuit, the second wire (5) is connected to the load connecting part (B) of the second set of switch circuit, and the third wire (3) is connected to the load connecting part (C) of the third set of switch circuit; an anode end of the first LED lamp (7) is connected to the first wire (4), and the cathode end of the first LED lamp (7) is connected to the second wire (5); a cathode end of the second LED lamp (8) is connected to the first wire (4), and the anode end of the second LED lamp (8) is connected to the second wire (5); a cathode end of the third LED lamp (9) is connected to the second wire (5), and the anode end of the third LED lamp (9) is connected to the third wire (6); and an anode end of the fourth LED lamp (10) is connected to the second wire (5), and the cathode end of the fourth LED lamp (10) is connected to the third wire (6).
13. The lamp controller according to claim 6, further comprising the lamp, which comprises the first wire (4), the second wire (5), the third wire (6), the first LED lamp (7), the second LED lamp (8), the third LED lamp (9) and the fourth LED lamp (10), the first wire (4) is connected to the load connecting part (A) of the first set of switch circuit, the second wire (5) is connected to the load connecting part (B) of the second set of switch circuit, and the third wire (3) is connected to the load connecting part (C) of the third set of switch circuit; an anode end of the first LED lamp (7) is connected to the first wire (4), and the cathode end of the first LED lamp (7) is connected to the second wire (5); a cathode end of the second LED lamp (8) is connected to the first wire (4), and the anode end of the second LED lamp (8) is connected to the second wire (5); a cathode end of the third LED lamp (9) is connected to the second wire (5), and the anode end of the third LED lamp (9) is connected to the third wire (6); and an anode end of the fourth LED lamp (10) is connected to the second wire (5), and the cathode end of the fourth LED lamp (10) is connected to the third wire (6).
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26)
(27)
(28)
(29)
(30)
(31)
(32)
(33)
(34)
(35)
(36)
(37)
(38)
(39)
(40)
(41)
(42)
DETAILED DESCRIPTION OF THE EMBODIMENTS
Embodiment 1
(43) As shown in
(44) As shown in
(45) As shown in
(46) As shown in
(47) As shown in
(48) As shown in
(49) As shown in
(50) As shown in
(51) As shown in
(52) As shown in
(53) As shown in
(54) As shown in
(55) As shown in
(56) A base electrode of the first triode is connected to an output end of the control unit 2, an emitting electrode of the first triode is configured to connect to the DC power supply, a collecting electrode of the first triode is connected to a collecting electrode of a second triode, a base electrode of the second triode is connected to the output end of the control unit 2, an emitting electrode of the second triode is grounded, and the load connecting part is arranged at the connecting part of the collecting electrode of the first triode and the collecting electrode of the second triode.
(57) As shown in
(58) As shown in
(59) As shown in
(60) As shown in
(61) As shown in
(62) As shown in
(63) As shown in
(64) As shown in
(65) As shown in
(66) As shown in
(67) As shown in
(68) As shown in
(69) As shown in
(70) As shown in
(71) As shown in
(72) As shown in
(73) In addition to connect to the three-wire and four-circuit lamp 3a in
Embodiment 2
(74) As shown in
(75) The difference between this embodiment and the embodiment 1 is that the voltage-stabilizing filter circuit is arranged between the output end V+ of the DC power supply and the control module U1A, namely, one end of the twelfth resistor R12 in the voltage-stabilizing filter circuit is connected to the output end V+ of the DC power supply, the other end of the twelfth resistor R12 is connected to the cathode end of the voltage-stabilizing diode ZD1, the anode end of the voltage-stabilizing diode ZD1 is grounded, one end of the sixth capacitor C6 is connected to the cathode end of the voltage-stabilizing diode ZD1, the other end of the sixth capacitor C6 is grounded, and the pin 1 of the microcontroller U2 is connected to one end of the sixth capacitor C6.
(76) In this embodiment, the second switch set includes a ninth triode Q9 and a tenth triode Q10, a base electrode of the ninth triode Q9 is connected to the output end of the control module U1A, the control module U1A is a chip, the base electrode of the ninth triode Q9 is connected to the pin 6 of the control module U1A through a thirteenth resistor R13, the base electrode of the ninth triode Q9 is also connected to one end of a twenty-first capacitor C21, the other end of the twenty-first capacitor C21 is grounded, an emitting electrode of the ninth triode Q9 is grounded, a collecting electrode of the ninth triode Q9 is respectively connected to a base electrode of the tenth triode Q10 and the output end of the DC power supply 1, a sixteenth resistor R16 is connected between the ninth triode Q9 and the output end V+ of the DC power supply 1, a sixteenth current-limiting resistor R16B is connected between the base electrode of the tenth triode Q10 and the output end V+ of the DC power supply 1, an emitting electrode of the tenth triode Q10 is connected to the output end V+ of the DC power supply 1, and the collecting electrode of the tenth triode Q10 is the output end of the second set of switch circuit. Based on the above structure, a deformed or replaced solution is that the ninth triode Q9 and the tenth triode Q10 may be replaced by the MOS tube.
(77) The working process of the second set of switch circuit is as follows: when the pin 6 of the control module U1A outputs high level, the high level is provided to the ninth triode Q9 after being subjected to current-limiting through the thirteenth resistor R13, so as to trigger the ninth triode Q9. Since the collecting electrode of the ninth triode Q9 is connected to the output end V+ of the DC power supply 1 through the sixteenth resistor R16, the ninth triode Q9 is turned on after the base electrode of the ninth triode Q9 is triggered. The emitting electrode of the ninth triode Q9 is grounded, so the collecting electrode of the ninth triode Q9 is lowered to the low level after the ninth triode Q9 is turned on, however the base electrode of the tenth triode Q10 is connected to the collecting electrode of the ninth triode Q9 and the emitting electrode of the tenth triode Q10 is connected to the output end V+ of the DC power supply 1, so when the base electrode of the tenth triode Q10 is the low level, the tenth triode Q10 is turned on, and then the collecting electrode of the tenth triode Q10 outputs high level, namely, the output end of the second set of switch circuit outputs high level.
(78) When the pin 6 of the control module U1A outputs low level, the ninth triode Q9 and the tenth triode Q10 are in a cut-off state, namely, the output end of the second set of switch circuit outputs low level.
(79) The first switch set includes a seventh triode Q7 and an eighth triode Q8, a base electrode of the seventh triode Q7 is connected to the output end of the control module U1A, the base electrode of the seventh triode Q7 is connected to the pin 7 of the control module U1A through a fourteenth resistor R14, the base electrode of the seventh triode Q7 is also connected to one end of the twenty-first capacitor C21, the other end of the twenty-first capacitor C21 is grounded, an emitting electrode of the seventh triode Q7 is grounded, a collecting electrode of the seventh triode Q7 is respectively connected to a base electrode of the eighth triode Q8 and the output end of the DC power supply 1, a fifteenth resistor R15 is connected between the seventh triode Q7 and the output end V+ of the DC power supply 1, a fifteenth current-limiting resistor R16B is connected between the base electrode of the eighth triode Q8 and the output end V+ of the DC power supply 1, an emitting electrode of the eighth triode Q8 is connected to the output end V+ of the DC power supply 1, and a collecting electrode of the eighth triode Q8 is electrically connected to a first toggle switch Q31 and a second toggle switch Q32 in respective. Based on the above structure, a deformed or replaced solution is that the seventh triode Q7 and the eighth triode Q8 may be replaced by the MOS tube.
(80) The working process of the second set of switch circuit is as follows: when the pin 7 of the control module U1A outputs high level, the high level is provided to the seventh triode Q7 after being subjected to current-limiting through the fourteenth resistor R14, so as to trigger the seventh triode Q7. Since the collecting electrode of the seventh triode Q7 is connected to the output end V+ of the DC power supply 1 through the fifteenth resistor R15, the seventh triode Q7 is turned on after the base electrode of the seventh triode Q7 is triggered. The emitting electrode of the seventh triode Q7 is grounded, so the collecting electrode of the seventh triode Q7 is lowered to the low level after the seventh triode Q7 is turned on, however the base electrode of the eighth triode Q8 is connected to the collecting electrode of the seventh triode Q7 and the emitting electrode of the eighth triode Q8 is connected to the output end V+ of the DC power supply 1, so when the base electrode of the eighth triode Q8 is the low level, the eighth triode Q8 is turned on, and then the collecting electrode of the eighth triode Q8 outputs high level, namely, the output end of the first set of switch circuit outputs high level.
(81) When the pin 7 of the control module U1A outputs low level, the seventh triode Q7 and the eighth triode Q8 are in a cut-off state, namely, the output end of the first set of switch circuit outputs low level.
(82) The pins 6 and 7 of the control module U1A output high level and low level alternately, so the first set of switch circuit and the second set of switch circuit output high level and low level alternately.
(83) The lamp controller further includes a control unit 2, and in this embodiment, the structure of the control unit 2 is the same as that of the embodiment 1, so the control unit 2 is not repeated herein.
(84) The control unit 2 is electrically connected to the switch unit 3, the switch unit 3 further includes a first toggle switch Q31 and a second toggle switch Q32, the first toggle switch Q31 forms the first set of switch circuit after being electrically connected to the output end of the first switch set and the control unit 2 in respective, and the second toggle switch Q32 forms the third set of switch circuit after being electrically connected to the output end of the first switch set and the control unit 2 in respective. In this embodiment, the first toggle switch Q31 and the second toggle switch Q32 are thyristors, wherein the pin 11 of the microcontroller U2 of the control unit 2 is connected to a gate electrode of the first toggle switch Q31 through the thirteenth current-limiting resistor R13B, and the pin 2 of the microcontroller U2 is connected to a gate electrode of the second toggle switch Q32 through the fourteenth current-limiting resistor R14B.
(85) The control unit 2 is configured to provide a trigger signal to the first toggle switch Q31 and the second toggle switch Q32, when the output end of the first switch set outputs high level, the first toggle switch Q31 or the second toggle switch Q32 is controlled to be turned on through the control unit 2, and when the output end of the first switch set outputs low level, the first toggle switch Q31 or the second toggle switch Q32 is turned off.
(86) For the above structure, the output end of the first toggle switch Q31 is the load connecting part A, the output end of the second set of switch circuit is the load connecting part B, the output end of the second toggle switch Q32 is the load connecting part C, the load connecting parts A, B and C are respectively connected to the lamps 3a shown in
(87) The switch unit 3 in the embodiment 2 can output higher voltage, for example, a circuit of 40V, namely, the output ends of the first set of switch and the second set of switch can output 40V, therefore a thirty-first current-limiting resistor R31 is connected between the output end of the second toggle switch Q32 and the output end of the second set of switch circuit, a thirty-second current-limiting resistor R32 is connected between the output end of the first toggle switch Q31 and the output end of the second set of switch circuit, the current is reduced through the current-limiting resistor, thereby avoiding damage on the lamp 3a connected later.
(88) This embodiment further includes a power supply circuit which supplies power to the control unit 2, the output end of the first switch set is also connected to the power supply circuit, and the power supply circuit is electrically connected to the control unit 2. Namely, this embodiment does not adopt the way preferentially that the DC power supply 1 supplies power to the control unit 2, and supplies power to the control unit 2 in an indirect way. In this embodiment, when the output end of the first switch set, namely, the collecting electrode of the eighth triode Q8 outputs high level, the power supply circuit is charged, and the power supply circuit discharges so as to supply power to the control unit 2.
(89) The power supply circuit includes an energy storage element C6B, a rectifier D30 and a thirtieth resistor R30, one end of the energy storage element G6B is electrically connected to the output end of the first switch set, namely, one end of the energy storage element C6B is respectively connected to the collecting electrode of the eighth triode Q8 and the pin 5 of the microcontroller U2, the other end of the energy storage element C6B is electrically connected to an anode end of the rectifier D30, a cathode end of the rectifier D30 is connected to one end of the thirtieth resistor R30, the other end of the thirtieth resistor R30 is electrically connected to the first switch set, namely, the other end of the thirtieth resistor R30 is connected to the collecting electrode of the seventh triode Q7.
(90) As for the power supply circuit, the current flowing path is as follows: the current is output from the eighth triode Q8, and then finally grounded through the energy storage element C6B, the rectifier D30, the thirtieth resistor R30, the collecting electrode of the seventh triode Q7 and the emitting electrode of the seventh triode Q7 in turn. During this process, the current is reduced through the current-limiting function of the thirtieth resistor R30.
(91) The power supply circuit further includes a voltage-stabilizing element ZD30, which is connected to the energy storage element C6B in parallel. The voltage-stabilizing element ZD30 enables the voltage of the power supply circuit to be a stable value.
(92) This embodiment further includes an indicator LED2 which is always on after being powered on, so as to indicate the position of the lamp controller, one end of the indicator LED2 is connected to the energy storage element C6B, and the other end of the indicator LED2 is grounded. Preferably, the indicator LED2 is connected to the energy storage element C6B through the nineteenth resistor R19. Users are convenient to find the position of the lamp controller in time through the indicator LED2.
(93) This embodiment further includes a mode selector which inputs a light flashing mode switching signal or a light timing signal to the control unit 2, and the mode selector is electrically connected to the control unit. The mode selector is the same as that in the embodiment 1, so it will not be repeated herein.
(94) This embodiment further includes a sampling circuit, which enables the control unit 2 to know whether the second set of switch circuit outputs high level or low level, one end of the sampling circuit is connected to the output end of the second set of switch circuit, and the other end of the sampling circuit is electrically connected to the control unit 2. The sampling circuit includes a thirty-third resistor R33 and a thirty-third capacitor C33, one end of the thirty-third resistor R33 is connected to the output end of the second set of switch circuit, namely, connected to the load connecting part B, the other end of the thirty-third resistor R33 is respectively connected to the pin 9 of the microcontroller U2 and one end of the thirty-third capacitor C33, and the other end of the thirty-third capacitor C33 is grounded. The thirty-third resistor R33 is used for limiting current, so as to reduce the current, and the thirty-third capacitor C33 is used for filtering.
(95) After acquiring the voltage output by the sampling circuit, the microcontroller U2 judges whether the output end of the second set of switch circuit outputs high level or low level in real time, so as to precisely output the trigger signal to the first toggle switch Q31 or the second toggle switch Q32.
(96) As shown in
(97) A plurality of selection buttons are arranged on the wireless signal transmitter, the wireless signal transmitter can send out a corresponding coded signal after operating each selection button, the coded signal corresponding to each button is inconsistent, the control unit 2 compares the received coded signals with the coded signal, so as to identify the specific mode corresponding to the coded signals, for example, the flashing mode or timing mode of the lamp 3a.
(98) If the wireless coded signal for switching the flashing mode is output by the wireless signal transmitter, the control unit 2 outputs the control signal for changing the flashing mode of the lamp 3a after receiving and identifying the wireless coded signal for switching the flashing mode sent by the wireless signal transmitter through the wireless signal receiver U4.
(99) S3: if the control unit 2 judges the switching signal input by the mode selector as the light timing signal, the control unit 2 controls the operation for outputting and timing the control signal according to the input of the mode selector, and when the timing is end, the control unit 2 stops outputting the control signal; and at this time, the lamp is extinguished.
(100) In S3, the basis that the control unit 2 judges the switching signal input by the mode selector as the light timing signal is as follows: the mode selector is pressed for several times in second time set by the control unit 2; for example, the key switch SW or the touch switch is pressed continuously twice within one second, namely, the second time is within one second. Therefore, the control unit 2 acquires two continuous signals for turning on the mode selector within one second, so as to judge that user makes the lamp enter the working mode of timing through the mode selector.
(101) In S3, the basis that the control unit 2 judges the switching signal input by the mode selector as the light timing signal may also be: the time for continuously pressing the model selector is greater than or equal to third time set by the control unit 2, for example, the time for continuously pressing the key switch SW is greater than two seconds, namely, the third time is greater than two seconds.
(102) After entering the timing mode, if the control unit 2 further receives a light flashing mode switching signal, the flashing mode is switched according to the way in S2 under the timing mode.
(103) After entering the timing mode in a case that the mode selector adopts the key switch SW or the touch switch, if the control unit 2 receives the switching signal input by the mode selector again as the light timing signal, the timing is turned off.
(104) If the timing mode is selected in a wireless manner, the control unit 2 receives the code for timing sent by the wireless signal transmitter through the wireless signal receiver U4, for example, the control unit 2 is used for starting timing after acquiring a second code and setting the time of the timing work, for example, the lamp 3a is extinguished after working for six hours. Certainly, a plurality of codes for timing may be sent through the wireless signal transmitter, for example, the wireless signal transmitter may also send a third code for timing, and the third code for timing enables the lamp 3a to be extinguished after working for eight hours. The control unit 2 starts timing after being used for the timing code, and the control unit 2 turns off timing after receiving the code signal for cancelling the timing.
(105) When
(106) The control method of the present disclosure is not limited to the above embodiments, for example: (a) In S2, the basis that the control unit 2 judges the switching signal input by the mode selector as the light timing signal is as follows: the mode selector is pressed for several times in the second time set by the control unit 2; for example, the key switch SW or the touch switch is pressed continuously twice within one second. (b) In S2, the basis that the control unit 2 judges the switching signal input by the mode selector as the light flashing mode switching signal is as follows: the time for continuously pressing the model selector is greater than or equal to the third time set by the control unit 2, for example, the time for continuously pressing the key switch SW is greater than two seconds. (c) In S3, the basis that the control unit 2 judges the switching signal input by the mode selector as the light timing signal is as follows: the mode selector is pressed once, and the pressing time is less than or equal to the first time set by the control unit 2. For example, the pressing time does not exceed one second.
(107) The above control method is based on the fact that the controller can respectively switch the light flashing mode switching signal and the light timing signal. Some controllers only need to switch the light timing, the light flashing mode is automatically achieved by the program, so switching is not required. For example, if eight flashing modes are available, the signal is output and circulated in turn according to the eight flashing modes after power-on. For this controller, the present disclosure further configures the following control method:
(108) After power-on, the control unit 2 outputs the control signal which enables the lamp to work, and the control signal has the eight inherent circular flashing modes illustrated above. If the control unit 2 receives the timing switching signal sent by the model selector, the control unit 2 switches the operation for outputting and timing the control signal according to the input of the mode selector, and when the timing is end, the control unit 2 stops outputting the control signal.
(109) The mode selector is the key switch SW or the touch switch connected to the control unit 2, the basis that the control unit 2 judges the timing switching signal sent by the mode selector is as follows: the mode selector is pressed once, and the pressing time is less than or equal to the first time set by the control unit 2, for example, the first time is within one second; or the mode selector is pressed for several times within the second time set by the control unit 2, for example, the key switch SW or the touch switch is continuously pressed twice within one second. Or the time for continuously pressing the model selector is greater than or equal to the third time set by the control unit 2, and the time for continuously pressing the key switch SW is greater than two seconds.
(110) Regardless of the working mode after power-on or the working mode entering the timing, the light brightness or the switch controller may also be switched by operating the key switch SW or the touch switch, for example, the mode selector is pressed once, and the pressing time is less than or equal to the first time set by the control unit 2, for example, the first time is within one second; or the mode selector is pressed for several times within the second time set by the control unit 2, for example, the key switch SW or the touch switch is continuously pressed twice within one second. Or the time for continuously pressing the model selector is greater than or equal to the third time set by the control unit 2, and the time for continuously pressing the key switch SW is greater than two seconds. For another example, the controller is turned on or turned off when the time for continuously pressing the mode selector is greater than or equal to the third time set by the control unit 2.
(111) The operation for the timing mode and the operation for switching the light brightness are achieved by operating the same key switch, but the signal sending mode is different. For example, when switching the brightness by pressing the mode selector once within the first time, the mode selector is pressed for several times within the second time set by the control unit 2, so as to enter or exit the timing mode, namely, the operations of timing, dimming and turning on/off the controller are not overlapped.
(112) Certainly, all the above operations may also adopt two key switches SW or two touch switches, one key switch SW or touch switch is used for switching the light brightness or turning on/off the controller, and the other key switch SW or touch switch is used for entering or exiting the timing.