CN114340091B - Lighting double-control circuit and lighting control method - Google Patents

Lighting double-control circuit and lighting control method Download PDF

Info

Publication number
CN114340091B
CN114340091B CN202111629453.7A CN202111629453A CN114340091B CN 114340091 B CN114340091 B CN 114340091B CN 202111629453 A CN202111629453 A CN 202111629453A CN 114340091 B CN114340091 B CN 114340091B
Authority
CN
China
Prior art keywords
detection module
mos tube
level
state
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111629453.7A
Other languages
Chinese (zh)
Other versions
CN114340091A (en
Inventor
岑维
莫根成
吴豪明
周煊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Earda Technologies Co ltd
Original Assignee
Earda Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Earda Technologies Co ltd filed Critical Earda Technologies Co ltd
Priority to CN202111629453.7A priority Critical patent/CN114340091B/en
Publication of CN114340091A publication Critical patent/CN114340091A/en
Application granted granted Critical
Publication of CN114340091B publication Critical patent/CN114340091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The embodiment of the invention discloses an illumination double-control circuit and an illumination control method, wherein a first movable contact of a relay of a dimmer switch in the illumination double-control circuit is connected with a first output end of a mechanical switch through a first wire, a second movable contact is connected with a second output end of the mechanical switch through a second wire, a stationary contact is connected with an MOS tube, the MOS tube is connected with an illumination lamp, an input end of a first detection module and an input end of a second detection module are respectively connected with the first wire and the second wire, an output end of the first detection module and an output end of the second detection module are both connected with a processor, the first detection module and the second detection module output high-low level signals according to the existence of current input of the input ends, the relay action is consistent with the mechanical switch action, the output signals of the detection modules are not influenced by the conduction angle of the MOS tube, the detection accuracy of the mechanical switch action is high, the illumination lamp is turned on or off by controlling the MOS tube, and the double-control stability is improved.

Description

Lighting double-control circuit and lighting control method
Technical Field
The embodiment of the invention relates to the technical field of illumination control, in particular to an illumination double-control circuit and an illumination control method.
Background
The intelligent dimming switch is adopted to control the lighting lamp, so that the lighting lamp can be controlled to be turned on and off, the brightness of the lighting lamp can be regulated, the lighting lamp is controlled to be turned on and off conveniently, and the mechanical switch is added to cooperate with the intelligent dimming switch to perform double control on the lighting lamp.
As shown in fig. 1, the live wire L sequentially passes through the dimmer switch a and the mechanical switch B and then is connected with the bulb C, the dimmer switch a is provided with a MOS tube and a relay, the MOS tube is connected with the relay, the relay is connected with the mechanical switch B through a wire L1 and a wire L2, and the action of the mechanical switch B is detected by a first detection module and a second detection module, as shown in fig. 2, a circuit diagram of the first detection module and the second detection module is shown, an input end of the detection module is connected with the wire L1 or the wire L2, an output end S1/S2 is connected to the MCU, the MOS tube in the relay and the dimmer switch is controlled by the MCU, the detection module is further connected to the live wire L, the detection module controls the output end S1/S2 to output a control signal through a voltage difference between the live wire L and the wire L1 and the wire L2, when the bulb C is in an on state, when the conduction angle of the MOS tube increases due to dimming, a voltage waveform of the wire L1 or L2 is smaller than a current waveform close to the live wire L, a voltage difference between the wire L1 or L2 and the live wire L is reduced, a control signal is finally turned off, and the bulb C is not turned off.
Disclosure of Invention
The aim of the embodiment of the invention is that: the utility model provides a lighting double-control circuit and a lighting control method, which are used for solving the problem that the detection signal of the existing double-control circuit to the mechanical switch is influenced by the dimmer switch and the misjudgment of the action of the processor to the mechanical switch occurs.
To achieve the purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, there is provided an illumination dual control circuit comprising:
the mechanical switch comprises a first input end, a first output end and a second output end, and the first input end is connected with the live wire;
the dimming switch comprises a relay, an MOS tube and a processor, wherein the relay comprises a first movable contact, a second movable contact, a fixed contact and a control end, the first movable contact is connected with the first output end through a first wire, the second movable contact is connected with the second output end through a second wire, the fixed contact is connected with the MOS tube, the MOS tube is connected with a zero line through an illuminating lamp, and the processor is respectively connected with the control end and the grid electrode of the MOS tube;
the input end of the first detection module and the input end of the second detection module are respectively connected with the first lead and the second lead, the output end of the first detection module and the output end of the second detection module are both connected with the processor, and the first detection module and the second detection module are used for outputting low-level signals at the respective output ends when current is input at the respective input ends and outputting high-level signals at the respective output ends when no current is input at the respective input ends;
the processor is used for receiving the level signals output by the first detection module and the second detection module, determining a detection module outputting a low level signal from the first detection module and the second detection module, determining a target wire connected with the input end of the detection module outputting the low level signal, outputting a control signal to the control end to drive the fixed contact of the relay to be connected to a movable contact connected with the target wire, and controlling the MOS tube to be turned on or off.
Optionally, the MOS transistor includes a first MOS transistor and a second MOS transistor, and the first MOS transistor is connected to a gate of the second MOS transistor, and the gate is connected to the first MOS transistor
The first MOS tube is connected with the source electrode of the second MOS tube, the drain electrode of the first MOS tube is connected with the stationary contact of the relay, the drain electrode of the second MOS tube is connected with the illuminating lamp, and the common node of the grid electrodes of the first MOS tube and the second MOS tube is connected with the processor.
Optionally, the first detection module and the second detection module each include an optocoupler, the optocoupler includes a first end, a second end, a third end and a fourth end, the first end is connected with a cathode of the diode through a first resistor, an anode of the diode is used as an input end, the second end is connected with a source electrode of the MOS transistor, the third end is connected with a direct current power supply through a second resistor, the third end is grounded through a third resistor, the third resistor is connected with a capacitor in parallel, and a common node of the second resistor and the third resistor is used as an output end.
Optionally, the relay further includes a coil and a driving circuit, the driving circuit includes a diode and a triode, two ends of the diode are respectively connected with two ends of the coil, a cathode of the diode is connected with a direct current power supply, an anode of the diode is connected with a collector of the triode, an emitter of the triode is grounded, and the other ends of a base of the triode and a fourth resistor are used as control ends to be connected with the processor.
Optionally, the processor is further configured to:
judging whether the received first level signal output by the first detection module and the received second level signal output by the second detection module change or not;
determining the state of the MOS tube if the level state of the first level signal is changed from a first level state to a second level state and the level state of the second level signal is changed from the second level state to the first level state, wherein the second level state is a low level state when the first level state is a high level state and the second level state is a high level state when the first level state is a low level state;
judging whether the state of the MOS tube is a conducting state or not;
if yes, outputting a first control signal to control the MOS tube to be cut off;
if not, outputting a second control signal to control the MOS tube to be conducted.
Optionally, the dimmer switch is further provided with a communication module, the communication module is connected with the processor, and the processor is further configured to:
when a target instruction is received from the communication module, outputting a third control signal to control the MOS tube according to the target instruction;
the target instruction is one of a lamp turning-off instruction, a lamp turning-on instruction and a dimming instruction.
Optionally, the device further comprises an AC-DC module, wherein an input end of the AC-DC module is connected with the live wire, and an output end of the AC-DC module is connected with the processor, the first detection module, the second detection module and the relay to provide a direct current power supply.
In a second aspect, there is provided an illumination control circuit applied to the illumination double control circuit described in any one of the first aspects, including:
receiving level signals output by the first detection module and the second detection module, wherein the level signals comprise a high level signal and a low level signal;
determining a detection module for outputting a low-level signal from the first detection module and the second detection module;
determining a target wire connected with the input end of a detection module outputting a low-level signal;
outputting a control signal to the control terminal to drive the stationary contact of the relay to be connected to the movable contact connected to the target conductor;
and controlling the MOS tube to be turned on or turned off.
Optionally, the level signal includes a first level signal output by the first detection module and a second level signal output by the second detection module, and the determining the target conductor connected to the input end of the detection module outputting the low level signal includes:
when the first level signal is a low level signal, determining that the first wire is a target wire;
and when the second level signal is a low level signal, determining the second wire as a target wire.
Optionally, the method further comprises:
judging whether the received first level signal output by the first detection module and the received second level signal output by the second detection module change or not;
determining the state of the MOS tube if the level state of the first level signal is changed from a first level state to a second level state and the level state of the second level signal is changed from the second level state to the first level state, wherein the second level state is a low level state when the first level state is a high level state and the second level state is a high level state when the first level state is a low level state;
judging whether the state of the MOS tube is a conducting state or not;
if yes, outputting a first control signal to control the MOS tube to be cut off;
if not, outputting a second control signal to control the MOS tube to be conducted.
In the lighting dual-control circuit of the embodiment of the invention, the first detection module and the second detection module are used for outputting low-level signals at respective output ends when current is input to respective input ends, outputting high-level signals at respective output ends when no current is input to respective input ends, and the processor is used for receiving the level signals output by the first detection module and the second detection module, determining the detection module for outputting the low-level signals from the first detection module and the second detection module, determining a target wire connected with the input end of the detection module for outputting the low-level signals, outputting a control signal to a control end so as to drive a fixed contact of a relay to be connected with a movable contact connected with the target wire, and controlling the on or off of the MOS tube. The first detection module and the second detection module output high-low level signals according to the existence of current input at the input end, and the relay action is consistent with the mechanical switch action, so that one detection module outputs high-level signals, the other detection module outputs low-level signals, the output signals of the detection modules are not influenced by the conduction angle of the MOS tube in the dimming module, the detection accuracy of the mechanical switch action is high, the lighting lamp is turned on or off by controlling the conduction or the cut-off of the MOS tube, and the stability of double control is ensured.
Drawings
The invention is described in further detail below with reference to the drawings and examples.
Fig. 1 is a schematic diagram of a prior art dual control circuit.
FIG. 2 is a schematic circuit diagram of a prior art detection circuit;
FIG. 3 is a timing diagram of the control signal output by the detection circuit and the conduction angle of the MOS transistor in the prior art;
fig. 4 is a block diagram of a lighting dual-control circuit according to a first embodiment of the present invention.
Fig. 5 is a schematic circuit diagram of an illumination dual-control circuit according to a first embodiment of the present invention.
Fig. 6 is a schematic waveform diagram of the output signal of the output terminal S1 or S2 according to an embodiment of the invention.
Fig. 7 is a flowchart illustrating steps of a lighting control method according to a second embodiment of the present invention.
Detailed Description
In order to make the technical problems solved by the present invention, the technical solutions adopted and the technical effects achieved more clear, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
In the description of the present invention, unless explicitly stated and limited otherwise, the terms "connected," "connected," and "fixed" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
As shown in fig. 1, a live wire L sequentially passes through a dimming switch a and a mechanical switch B and then is connected with a bulb C, the dimming switch a is provided with a MOS tube and a relay, the MOS tube is connected with the relay, the relay is connected with the mechanical switch B through a wire L1 and a wire L2, the bulb C shown in fig. 1 is in a lighting state, an input end of a first detection module is connected to the wire L1, and an output end S1 outputs a square wave signal to an MCU, so that the MCU detects that the relay and the mechanical switch B are connected through the wire L1. However, as shown in fig. 3, when the conduction angle of the MOS tube increases when dimming is required, the sine wave ac signal on the live wire L is output to the wire L1 after passing through the MOS tube, the conduction angle of the MOS tube increases, so that the current signal of the wire L1 gradually tends to the sine ac signal, the current signal of the wire L1 is rectified by the diode D in the first detection module in fig. 2 and then is used as the signal of the input end L1 of the first detection module, as shown in fig. 3, as the conduction angle of the MOS tube increases, the signal waveform of the output end S1 of the first detection module is changed from a square wave signal to a straight line signal, and the signal waveform of the output end S1 of the first detection module is intentionally controlled to light the bulb C.
Example 1
Fig. 4 is a block diagram of a lighting dual-control circuit according to a first embodiment of the present invention, and as shown in fig. 4, the lighting dual-control circuit according to the embodiment of the present invention includes a dimmer switch 10, a mechanical switch 20, a first detection module 30, a second detection module 40 and an illumination lamp 50.
The mechanical switch 20 may be a conventional hand-pressed mechanical switch, and the mechanical switch 20 includes a first input terminal a, a first output terminal b, and a second output terminal c, where the first input terminal a is connected to the live wire L.
The dimmer switch 10 may be an electronic dimmer switch, and the dimmer switch 10 may control the illumination lamp 50 to be turned on or off, and may also adjust the brightness of the illumination lamp 50. The dimmer switch 10 comprises a relay 102, an MOS tube 101 and a processor 103, wherein the relay 102 comprises a first movable contact e, a second movable contact f, a fixed contact d and a control end, the first movable contact e is connected with a first output end b of the mechanical switch 20 through a first lead L1, the second movable contact f is connected with a second output end c of the mechanical switch 20 through a second lead L2, the fixed contact d is connected with the MOS tube 101, the MOS tube 101 is connected with a zero line through an illuminating lamp 50, and the processor 103 is respectively connected with the control end of the relay 102 and a grid electrode of the MOS tube 101.
The input end of the first detection module 30 is connected to the first wire L1, the output end S1 of the first detection module 30 is connected to the processor 103, the input end of the second detection module 40 is connected to the second wire L2, and the output end S2 of the second detection module 40 is connected to the processor 103. The first detection module 30 and the second detection module 40 may output a low-level signal at the output terminal when a current is input at the input terminal, whereas output a high-level signal at the output terminal when no current is input at the input terminal. Illustratively, when the first input terminal a of the mechanical switch 20 is connected to the first output terminal b, the output terminal S1 of the first detection module 30 outputs a low level signal, the output terminal S2 of the second detection module 40 outputs a high level signal, and when the first input terminal a of the mechanical switch 20 is connected to the second output terminal c, the output terminal S1 of the first detection module 30 outputs a high level signal, and the output terminal S2 of the second detection module 40 outputs a low level signal.
The processor 103 receives the level signals output by the first detection module 30 and the second detection module 40, determines a detection module outputting a low level signal from the first detection module 30 and the second detection module 40, determines a target wire connected to an input end of the detection module outputting the low level signal, outputs a control signal to a control end of the relay 102 to drive a fixed contact d of the relay 102 to be connected to a movable contact connected to the target wire, and controls the MOS transistor 101 to be turned on or off.
Specifically, the processor 103 determines whether the received first level signal output by the first detection module 30 and the received second level signal output by the second detection module 40 change, if the level state of the first level signal changes from the first level state to the second level state, and if the level state of the second level signal changes from the second level state to the first level state, the state of the MOS transistor 101 is determined, where the first level state is a high level state, the second level state is a low level state, and the first level state is a high level state, and further determines whether the state of the MOS transistor 101 is a conductive state, if yes, the first control signal is output to control the MOS transistor 101 to be turned off, and if not, the second control signal is output to control the MOS transistor 101 to be conductive.
For example, assuming that the lighting lamp 50 is in the on state as an example in the schematic diagram of fig. 4, the MOS transistor 101 is in the on state, the first input terminal a of the mechanical switch 20 is connected to the first output terminal b, the stationary contact d of the relay 102 is connected to the first movable contact e, at this time, the output terminal S1 of the first detection module 30 outputs a low level signal, and the output terminal S2 of the second detection module 40 outputs a high level signal. When a user performs a light-off operation through the mechanical switch 20, the first input end a of the mechanical switch 20 is connected to the second output end c, so that the live wire L is connected to the wire L2, the wire L1 is disconnected from the live wire L, at this time, the input end of the first detection module 30 has no current input from the wire L1, the output end S1 of the first detection module 30 outputs a high level signal, the input end of the second detection module 40 has a current input from the wire L2, the output end S2 of the second detection module 40 outputs a low level signal, the processor 103 detects that the output signals of the first detection module 30 and the second detection module 40 all change, it is determined that the mechanical switch 20 is in an on state, the lighting lamp 50 is turned on, which indicates that the user needs to turn off the light, the processor 103 outputs a control signal to control the MOS tube 101 to turn off, the lighting lamp 50 is turned off, meanwhile, the processor 103 determines that the second detection module 40 outputs a low level signal, and determines that the wire L2 is a target wire connected to the input end of the second detection module 40, the moving contact of the relay 102 and the wire L2 is a second moving contact 103, and the moving contact of the processor 102 controls the moving contact f.
In the lighting double-control circuit provided by the embodiment of the invention, the first detection module and the second detection module output high-low level signals according to the existence of current input at the input end, and the relay action is consistent with the mechanical switch action, so that one detection module outputs high-level signals, the other detection module outputs low-level signals, the output signals of the detection modules are not influenced by the conduction angle of the MOS tube in the dimming module, the detection accuracy of the mechanical switch action is high, the lighting lamp is turned on or off by controlling the conduction or the cut-off of the MOS tube, and the stability of double control is ensured.
In order to make the person skilled in the art more clearly understand the lighting dual-control circuit according to the embodiment of the present invention, the following description is given with reference to fig. 5:
as shown in fig. 5, in the dimmer switch 10, the MOS transistor 101 includes a first MOS transistor Q2 and a second MOS transistor Q3, the first MOS transistor Q2 is connected to the gate of the second MOS transistor Q3, the source of the first MOS transistor Q2 is connected to the source of the second MOS transistor Q3, the drain of the first MOS transistor Q2 is connected to the stationary contact d of the relay 102, the drain of the second MOS transistor Q3 is connected to the illumination lamp 50, and the common node between the gate of the first MOS transistor Q2 and the gate of the second MOS transistor Q3 is connected to the processor 103. The relay 102 further comprises a coil and a driving circuit, the driving circuit comprises a diode D2 and a triode Q1, two ends of the diode D2 are respectively connected with two ends (h, j) of the coil, a cathode of the diode D2 is connected with a direct current power supply VCC, an anode of the diode D2 is connected with a collector of the triode Q1, an emitter of the triode Q1 is grounded, and a base of the triode Q1 and the other end of the fourth resistor R4 are connected with the processor 103 as control ends.
The DC power VCC is a direct current output by the AC-DC module 60 connected to the live wire L, and the output end of the AC-DC module 60 is respectively connected to the processor 103, the first detection module 30, the second detection module 40, and the relay 102 to provide the DC power VCC, and specifically, the AC-DC module 60 may be a circuit for converting the AC power of the live wire L into the direct current and then adjusting the DC power to a specified voltage.
As shown in fig. 5, the circuit structures of the first detection module 30 and the second detection module 40 are the same, fig. 5 illustrates the first detection module 30, the first detection module 30 includes an optocoupler U1, the optocoupler U1 includes a first end m, a second end n, a third end Q, and a fourth end p, where the first end m is connected with a cathode of the diode D1 through the resistor R1, an anode of the diode D1 is connected with the wire L1 as an input end, the second end n is connected with a source of the MOS transistor Q2, the third end Q is connected with the dc power VCC through the resistor R3, the third end Q is further grounded through the resistor R2, the resistor R2 is connected with the capacitor C1 in parallel, and a common node of the resistor R3 and the resistor R2 is used as the output end S1.
The first detection module 30 and the second detection module 40 operate as follows:
as shown in fig. 5 and 6, taking the first detection module 30 as an example, when the first lead L1 connected to the first detection module 30 is connected to the live wire L, the current waveform passing through the diode D1 is as the waveform a in fig. 6, the first terminal m and the second terminal n of the optocoupler U1 are conducted, the third terminal q is conducted with the fourth terminal p, if there is no capacitor C1, the current waveform output by the output terminal S1 is as the pulse square wave as shown by the waveform B in fig. 6, after the capacitor C1 is connected, the capacitance value of the capacitor C1 is selected to be relatively large, so that the capacitor C1 starts to charge at the rising edge of the square wave in the waveform B until the falling edge of the square wave in the waveform B is still not fully charged, and finally, the signal as the waveform C in fig. 6 is output at the low level signal under the effect of the capacitor C1, conversely, if the first lead L1 connected to the first detection module 30 is not connected to the live wire L, the third terminal q and the fourth terminal p of the optocoupler U1 are not conducted, and the voltage dividing resistor R3 maintains the high level signal under the effect of the voltage dividing resistance of the operating power supply R2 and the voltage resistor R3.
As shown in fig. 5, the first input terminal a of the mechanical switch 20 is connected to the second output terminal c, the stationary contact d in the relay 102 is connected to the second movable contact f, the first MOS transistor Q2 and the second MOS transistor Q3 are turned on, the illumination lamp 50 is in an on state, at this time, the first wire L1 has no current, the first terminal m and the second terminal n of the optocoupler U1 in the first detection module 30 have no current, the third terminal Q and the fourth terminal P are turned off, the output terminal S1 outputs a high level signal, conversely, the second wire L2 is connected to the live wire L, the output terminal S2 of the second detection module 40 outputs a low level signal, the processor 103 outputs a high level signal to the base of the triode Q1 when receiving the low level signal from the second detection module 40, the triode Q1 is turned on, the current of the working power VCC flows through the coil (from j to h) and then flows into the ground, and the stationary contact d remains connected to the second movable contact f under the electromagnetic action of the coil.
When the first input terminal a of the mechanical switch 20 is connected to the first output terminal b, it indicates that the user turns off the illumination lamp 50 through the mechanical switch 20, at this time, the first wire L1 is connected to the fire wire L, the first detection module 30 inputs a current from the first wire L1, the light emitting diode between the first terminal m and the second terminal n of the optocoupler U1 is turned on to emit light, the photothyristor between the third terminal Q and the fourth terminal P is turned on under the action of light, so that the output terminal S1 is connected to the ground, the output terminal S1 outputs a low level signal to the processor 103, conversely, since the second wire L1 is disconnected from the fire wire L, the second detection module 40 outputs a high level signal to the processor 103, the processor 103 detects that the output signal of the first detection module 30 is turned from a high level signal to a low level signal, the output signal of the second detection module 40 is turned from a low level signal to a high level signal, and since the current is in the on state of the illumination lamp 50, it can be determined that the user needs to turn off the lamp, the first MOS transistor Q2 and the second MOS transistor Q3 are turned off, the illumination lamp 50 is turned off, and meanwhile, the processor 103 outputs a low level signal to the relay Q1, and the relay is turned off, and the relay is connected to the relay 102.
In one example, the dimmer switch 10 is further provided with a communication module, the communication module is connected to the processor 103, when the processor 103 receives a target instruction from the communication module, the processor 103 outputs a third control signal to control the MOS transistor according to the target instruction, wherein the target instruction is one of a lamp-off instruction, a lamp-on instruction and a dimming instruction, and illustratively, when receiving a shutdown instruction, the processor 103 controls the first MOS transistor Q2 and the second MOS transistor Q3 to be turned off, when receiving a shutdown instruction, the processor 103 controls the first MOS transistor Q2 and the second MOS transistor Q3 to be turned on, and when receiving a dimming instruction, the processor 103 controls the conduction angle of the first MOS transistor Q2 and the second MOS transistor Q3 to be large.
The first detection module and the second detection module realize the output of detection signals through the optocoupler, so that the first detection module and the second detection module can output low-level signals when current is input, otherwise, output high-level signals, the first detection module and the second detection module can detect the action of the mechanical switch without being influenced by the input signals, the robustness is high, the accuracy of the action of the mechanical switch is ensured, the accurate double control is realized, and the abnormal occurrence rate of the double control is reduced.
Example two
Fig. 7 is a flowchart illustrating steps of a lighting control method according to an embodiment of the present invention. The illumination control method of the embodiment of the present invention is applied to the illumination control circuit of the first embodiment, and specifically may include the following steps:
s601, receiving level signals output by the first detection module and the second detection module, wherein the level signals comprise a high level signal and a low level signal.
As shown in fig. 4, the lighting control circuit includes a dimmer switch 10, a mechanical switch 20, a first detection module 30, and a second detection module 40.
The mechanical switch 20 may be a conventional hand-pressed mechanical switch, and the mechanical switch 20 includes a first input terminal a, a first output terminal b, and a second output terminal c, where the first input terminal a is connected to the live wire L.
The dimmer switch 10 may be an electronic dimmer switch, and the dimmer switch 10 may control the illumination lamp 50 to be turned on or off, and may also adjust the brightness of the illumination lamp 50. The dimmer switch 10 comprises a relay 102, an MOS tube 101 and a processor 103, wherein the relay 102 comprises a first movable contact e, a second movable contact f, a fixed contact d and a control end, the first movable contact e is connected with a first output end b of the mechanical switch 20 through a first lead L1, the second movable contact f is connected with a second output end c of the mechanical switch 20 through a second lead L2, the fixed contact d is connected with the MOS tube 101, the MOS tube 101 is connected with a zero line through an illuminating lamp 50, and the processor 103 is respectively connected with the control end of the relay 102 and a grid electrode of the MOS tube 101.
The input end of the first detection module 30 is connected to the first wire L1, the output end S1 of the first detection module 30 is connected to the processor 103, the input end of the second detection module 40 is connected to the second wire L2, and the output end S2 of the second detection module 40 is connected to the processor 103. The first detection module 30 and the second detection module 40 may output a low-level signal at the output terminal when a current is input at the input terminal, whereas output a high-level signal at the output terminal when no current is input at the input terminal.
The first and second detection modules 30 and 40 may output a level signal including a high level signal and a low level signal in real time, and the second detection module 40 outputs a low level signal when the first detection module 30 outputs a high level signal and the second detection module 40 outputs a high level signal when the first detection module 30 outputs a low level signal, for example.
S602, determining a detection module outputting a low-level signal from the first detection module and the second detection module.
Specifically, the first detection module 30 and the second detection module 40 may be connected to the processor through different pins, and the processor may determine the detection module outputting the level signal through the pins, where the detection module outputs the low level signal, which indicates that the wire connected to the input end of the detection module has a current input, and the wire is connected to the fire wire.
S603, determining a target conductor connected with the input end of the detection module outputting the low-level signal.
As shown in fig. 4, when the first level signal output from the first detection module 30 is a low level signal, the first wire L1 is determined as a target wire, and when the second level signal output from the second detection module 40 is a low level signal, the second wire L2 is determined as a target wire.
S604, outputting a control signal to the control end to drive the fixed contact of the relay to be connected to the movable contact connected with the target wire.
Optionally, the processor may determine whether the received first level signal output by the first detection module and the received second level signal output by the second detection module change, and if the level state of the first level signal changes from the first level state to the second level state and the level state of the second level signal changes from the second level state to the first level state, determine the state of the MOS transistor, where the first level state is a high level state, the second level state is a low level state, and the first level state is a low level state, and the second level state is a high level state.
As shown in fig. 4, exemplarily, assuming that the illumination lamp 50 is in an on state in fig. 4 as an example, the MOS transistor 101 is in an on state, the first input terminal a of the mechanical switch 20 is connected to the first output terminal b, the stationary contact d of the relay 102 is connected to the first movable contact e, at this time, the output terminal S1 of the first detection module 30 outputs a low level signal, and the output terminal S2 of the second detection module 40 outputs a high level signal. When a user performs a light-off operation through the mechanical switch 20, a first input end a of the mechanical switch 20 is connected to a second output end c, so that a live wire L is connected to a wire L2, the wire L1 is disconnected from the live wire L, at this time, an input end of the first detection module 30 has no current input from the wire L1, an output end S1 of the first detection module 30 outputs a high-level signal, an input end of the second detection module 40 has a current input from the wire L2, an output end S2 of the second detection module 40 outputs a low-level signal, the processor 103 detects that the output signals of the first detection module 30 and the second detection module 40 all change, it is determined that the mechanical switch 20 acts, the MOS tube 101 is in a conducting state at present, the illumination lamp 50 is on, which indicates that the user needs to turn off the light, the processor 103 outputs a control signal to control the MOS tube 101 to be turned off, the illumination lamp 50 is turned off, meanwhile, the processor 103 determines that the second detection module 40 outputs a low-level signal, and determines that the wire L2 is a target wire connected to the input end of the second detection module 40, a moving contact connected to the wire L2 is a second moving contact f, and the relay 102 is a second moving contact f, and the processor 103 controls the moving contact f connected to the second moving contact f.
S605, controlling the MOS tube to be turned on or turned off.
When the level signals output by the first detection module and the second detection module are detected to change, the indication is used for turning off or turning on the lamp through a mechanical switch, and the indication can be determined according to the state of the current lamp, in an optional embodiment, whether the state of the MOS tube is in a conducting state can be judged, if so, the indication that the current lamp is in a lighting state, a first control signal is output to control the MOS tube to be turned off so as to turn off the lamp, and if not, the indication that the lamp is in a turning-off state, a second control signal is output to control the MOS tube to be turned on so as to turn on the lamp.
The lighting control method of the embodiment of the invention is applied to the lighting double-control circuit of the first embodiment, the first detection module and the second detection module are used for outputting low-level signals at respective output ends when current is input to respective input ends, outputting high-level signals at respective output ends when no current is input to respective input ends, the processor is used for receiving the level signals output by the first detection module and the second detection module, determining the detection module for outputting the low-level signals from the first detection module and the second detection module, determining a target wire connected with the input end of the detection module for outputting the low-level signals, outputting control signals to the control end to drive the fixed contact of the relay to be connected to a movable contact connected with the target wire, and controlling the MOS tube to be turned on or off. The first detection module and the second detection module output high-low level signals according to the existence of current input at the input end, and the relay action is consistent with the mechanical switch action, so that one detection module outputs high-level signals, the other detection module outputs low-level signals, the output signals of the detection modules are not influenced by the conduction angle of the MOS tube in the dimming module, the detection accuracy of the mechanical switch action is high, the lighting lamp is turned on or off by controlling the conduction or the cut-off of the MOS tube, and the stability of double control is ensured.
In the description herein, the terms "first," "second," and "second" are used merely to distinguish between the descriptions and have no special meaning.
In the description herein, reference to the term "one embodiment," "an example," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples.
Furthermore, it should be understood that although the present disclosure describes embodiments, not every embodiment is provided with a separate technical solution, and this description is provided for clarity only, and those skilled in the art should consider the disclosure as a whole, and the technical solutions in the embodiments may be appropriately combined to form other embodiments that can be understood by those skilled in the art.
The technical principle of the present invention is described above in connection with the specific embodiments. The description is made for the purpose of illustrating the general principles of the invention and should not be taken in any way as limiting the scope of the invention. Other embodiments of the invention will be apparent to those skilled in the art from consideration of this specification without undue burden.

Claims (9)

1. A lighting dual control circuit, comprising:
the mechanical switch comprises a first input end, a first output end and a second output end, and the first input end is connected with the live wire;
the dimming switch comprises a relay, an MOS tube and a processor, wherein the relay comprises a first movable contact, a second movable contact, a fixed contact and a control end, the first movable contact is connected with the first output end through a first wire, the second movable contact is connected with the second output end through a second wire, the fixed contact is connected with the MOS tube, the MOS tube is connected with a zero line through an illuminating lamp, and the processor is respectively connected with the control end and the grid electrode of the MOS tube;
the input end of the first detection module and the input end of the second detection module are respectively connected with the first lead and the second lead, the output end of the first detection module and the output end of the second detection module are both connected with the processor, and the first detection module and the second detection module are used for outputting low-level signals at the respective output ends when current is input at the respective input ends and outputting high-level signals at the respective output ends when no current is input at the respective input ends;
the processor is used for receiving the level signals output by the first detection module and the second detection module, determining a detection module outputting a low level signal from the first detection module and the second detection module, determining a target wire connected with the input end of the detection module outputting the low level signal, outputting a control signal to the control end to drive the fixed contact of the relay to be connected with a movable contact connected with the target wire, and controlling the MOS tube to be turned on or off;
the processor is further used for judging whether the received first level signal output by the first detection module and the received second level signal output by the second detection module change or not;
determining the state of the MOS tube if the level state of the first level signal is changed from a first level state to a second level state and the level state of the second level signal is changed from the second level state to the first level state, wherein the second level state is a low level state when the first level state is a high level state and the second level state is a high level state when the first level state is a low level state;
judging whether the state of the MOS tube is a conducting state or not;
if yes, outputting a first control signal to control the MOS tube to be cut off;
if not, outputting a second control signal to control the MOS tube to be conducted.
2. The illumination dual-control circuit of claim 1, wherein the MOS transistor comprises a first MOS transistor and a second MOS transistor, gates of the first MOS transistor and the second MOS transistor are connected, the MOS transistor comprising
The first MOS tube is connected with the source electrode of the second MOS tube, the drain electrode of the first MOS tube is connected with the stationary contact of the relay, the drain electrode of the second MOS tube is connected with the illuminating lamp, and the common node of the grid electrodes of the first MOS tube and the second MOS tube is connected with the processor.
3. The lighting dual-control circuit of claim 1, wherein the first detection module and the second detection module each comprise an optocoupler, the optocoupler comprises a first end, a second end, a third end and a fourth end, the first end is connected with a cathode of a diode through a first resistor, an anode of the diode is used as an input end, the second end is connected with a source of the MOS tube, the third end is connected with a direct current power supply through a second resistor, the third end is further grounded through a third resistor, a capacitor is connected in parallel with the third resistor, and a common node of the second resistor and the third resistor is used as an output end.
4. The lighting dual-control circuit of claim 1, wherein the relay further comprises a coil and a driving circuit, the driving circuit comprises a diode and a triode, two ends of the diode are respectively connected with two ends of the coil, a cathode of the diode is connected with a direct current power supply, an anode of the diode is connected with a collector of the triode, an emitter of the triode is grounded, and the other ends of the base of the triode and the fourth resistor are used as control ends to be connected with the processor.
5. A lighting dual control circuit as recited in any one of claims 1-4, wherein said dimmer switch is further provided with a communication module, said communication module being coupled to said processor, said processor further configured to:
when a target instruction is received from the communication module, outputting a third control signal to control the MOS tube according to the target instruction;
the target instruction is one of a lamp turning-off instruction, a lamp turning-on instruction and a dimming instruction.
6. A lighting dual control circuit as recited in any one of claims 1-4, further comprising an AC-DC module, an input of said AC-DC module being connected to said hot wire, an output of said AC-DC module being connected to said processor, said first detection module, said second detection module, and said relay to provide a DC power source.
7. A lighting control method, characterized by being applied to the lighting double control circuit as claimed in any one of claims 1 to 6, comprising:
receiving level signals output by the first detection module and the second detection module, wherein the level signals comprise a high level signal and a low level signal;
determining a detection module for outputting a low-level signal from the first detection module and the second detection module;
determining a target wire connected with the input end of a detection module outputting a low-level signal;
outputting a control signal to the control terminal to drive the stationary contact of the relay to be connected to the movable contact connected to the target conductor;
and controlling the MOS tube to be turned on or turned off.
8. The method of claim 7, wherein the level signal includes a first level signal output by a first detection module and a second level signal output by a second detection module, and the determining the target conductor to which the input terminal of the detection module outputting the low level signal is connected includes:
when the first level signal is a low level signal, determining that the first wire is a target wire;
and when the second level signal is a low level signal, determining the second wire as a target wire.
9. The method as recited in claim 7, further comprising:
judging whether the received first level signal output by the first detection module and the received second level signal output by the second detection module change or not;
determining the state of the MOS tube if the level state of the first level signal is changed from a first level state to a second level state and the level state of the second level signal is changed from the second level state to the first level state, wherein the second level state is a low level state when the first level state is a high level state and the second level state is a high level state when the first level state is a low level state;
judging whether the state of the MOS tube is a conducting state or not;
if yes, outputting a first control signal to control the MOS tube to be cut off;
if not, outputting a second control signal to control the MOS tube to be conducted.
CN202111629453.7A 2021-12-28 2021-12-28 Lighting double-control circuit and lighting control method Active CN114340091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111629453.7A CN114340091B (en) 2021-12-28 2021-12-28 Lighting double-control circuit and lighting control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111629453.7A CN114340091B (en) 2021-12-28 2021-12-28 Lighting double-control circuit and lighting control method

Publications (2)

Publication Number Publication Date
CN114340091A CN114340091A (en) 2022-04-12
CN114340091B true CN114340091B (en) 2023-09-08

Family

ID=81015226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111629453.7A Active CN114340091B (en) 2021-12-28 2021-12-28 Lighting double-control circuit and lighting control method

Country Status (1)

Country Link
CN (1) CN114340091B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003031376A (en) * 2001-07-12 2003-01-31 Matsushita Electric Works Ltd Dimmer switch
JP2008103357A (en) * 2008-01-10 2008-05-01 Matsushita Electric Works Ltd Discharge lamp lighting device and luminaire
JP2016001619A (en) * 2015-08-24 2016-01-07 パナソニックIpマネジメント株式会社 Two-line light control switch
CN105611684A (en) * 2015-11-09 2016-05-25 深圳市稳先微电子有限公司 Circuit for realizing light modulation via power switch and lamp
CN205594390U (en) * 2016-05-04 2016-09-21 黄可斌 Two accuse intelligence switch of pair and control system thereof
CN106982503A (en) * 2017-05-11 2017-07-25 麦康世 Single fiery dual control intelligent switch of compatible mechanical switch wiring
CN107197573A (en) * 2017-05-31 2017-09-22 Tcl-罗格朗国际电工(惠州)有限公司 Inductive switch control device
CN107664969A (en) * 2017-09-05 2018-02-06 普联技术有限公司 The control method that intelligent double-control switchs and control system and control system work
CN110336550A (en) * 2019-08-08 2019-10-15 东莞市迅迪电子有限公司 A kind of intelligent switch dual control circuit
CN111246636A (en) * 2019-11-26 2020-06-05 深圳市酷客智能科技有限公司 Double-control switch, double-control system and control method
CN112821888A (en) * 2019-11-18 2021-05-18 漳州立达信光电子科技有限公司 Switch control circuit and switch control device
CN213638284U (en) * 2020-10-16 2021-07-06 深圳市睿迈德科技有限公司 Double-control intelligent dimming switch
CN215181531U (en) * 2021-08-03 2021-12-14 深圳市欧瑞博科技股份有限公司 Intelligent switch and intelligent switch circuit

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003031376A (en) * 2001-07-12 2003-01-31 Matsushita Electric Works Ltd Dimmer switch
JP2008103357A (en) * 2008-01-10 2008-05-01 Matsushita Electric Works Ltd Discharge lamp lighting device and luminaire
JP2016001619A (en) * 2015-08-24 2016-01-07 パナソニックIpマネジメント株式会社 Two-line light control switch
CN105611684A (en) * 2015-11-09 2016-05-25 深圳市稳先微电子有限公司 Circuit for realizing light modulation via power switch and lamp
CN205594390U (en) * 2016-05-04 2016-09-21 黄可斌 Two accuse intelligence switch of pair and control system thereof
CN106982503A (en) * 2017-05-11 2017-07-25 麦康世 Single fiery dual control intelligent switch of compatible mechanical switch wiring
CN107197573A (en) * 2017-05-31 2017-09-22 Tcl-罗格朗国际电工(惠州)有限公司 Inductive switch control device
CN107664969A (en) * 2017-09-05 2018-02-06 普联技术有限公司 The control method that intelligent double-control switchs and control system and control system work
CN110336550A (en) * 2019-08-08 2019-10-15 东莞市迅迪电子有限公司 A kind of intelligent switch dual control circuit
CN112821888A (en) * 2019-11-18 2021-05-18 漳州立达信光电子科技有限公司 Switch control circuit and switch control device
CN111246636A (en) * 2019-11-26 2020-06-05 深圳市酷客智能科技有限公司 Double-control switch, double-control system and control method
CN213638284U (en) * 2020-10-16 2021-07-06 深圳市睿迈德科技有限公司 Double-control intelligent dimming switch
CN215181531U (en) * 2021-08-03 2021-12-14 深圳市欧瑞博科技股份有限公司 Intelligent switch and intelligent switch circuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于单火取电的触摸控制单路双控开关电路;王晓燕;;电子测试(第14期);90-91 *

Also Published As

Publication number Publication date
CN114340091A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN102752921B (en) Light-controlled switch
US8310163B2 (en) Microcontroller-based lighting control system and method for lighting control
US20120194088A1 (en) High brightness led driving circuit
CN111148320A (en) Light control circuit of LED lamp
CN102209409A (en) Light-controlled electronic switching circuit
CN102415217B (en) Method and apparatus for controlling brightness of light emitting diodes
CN109152184A (en) lamp control device and lighting system
CN112512178B (en) Control circuit for linear constant current driving PWM dimming quick response
CN114340091B (en) Lighting double-control circuit and lighting control method
CN102843809B (en) Human body movement induced dimming control device
CN105392247A (en) LED drive circuit
CN202172518U (en) Pulse width modulation burst dimming device
CN210469797U (en) Switching power supply type light-operated LED lamp circuit
CN204598440U (en) Novel index light adjusting circuit
CN104427686A (en) Lamp and control circuit thereof
CN115499966B (en) Inductor for constant current power supply tail end power taking
CN206993456U (en) A kind of LED can turn off light adjusting circuit
CN211184344U (en) L ED dimmer circuit and L ED lamps and lanterns
CN214381489U (en) Solar lamp automatic control circuit and solar lamp
CN214413081U (en) Brightness adjusting circuit of smoke ventilator lighting lamp
CN103974496A (en) LED (light emitting diode) lamp and light control circuit thereof
CN109302771A (en) LED constant current drive module
CN216057552U (en) Light-adjusting and color-temperature-adjusting phase-cut light-adjusting power supply
CN210579399U (en) Dimmer for lamp
CN217985491U (en) Light control circuit and foot lamp

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant