Joint control single live wire electronic switch and control method thereof

文档序号:989897 发布日期:2020-10-20 浏览:14次 中文

阅读说明:本技术 一种联控单火线电子开关及其控制方法 (Joint control single live wire electronic switch and control method thereof ) 是由 卢健华 何超平 于 2020-08-13 设计创作,主要内容包括:本发明公开了一种联控单火线电子开关及其控制方法,属于电子开关技术领域,包括用于控制负载输入端通断的单火开关和用于触发单火开关通断状态翻转的机械开关,所述单火开关包括开关量检测模块、微控制单元、电子开关模块和电源采集模块,所述开关量检测模块分别与火线L、机械开关和微控制单元连接,所述电子开关模块受控于微控制单元,并且通过机械开关的通断触发微控制单元控制电子开关模块切换状态从而控制负载所处回路的通断,通过开关量检测模块快速获取正确的机械开关状态,同步的实现智能化控制,只需要额外增加一路状态检测作为双控控制输入,方便扩展,远端开关采用物理电工开关,低成本,兼容绝大部分双控改造。(The invention discloses a joint control single-live wire electronic switch and a control method thereof, belonging to the technical field of electronic switches, comprising a single-live switch for controlling the on-off of a load input end and a mechanical switch for triggering the on-off state of the single-live switch to turn over, wherein the single-live switch comprises a switching value detection module, a micro control unit, an electronic switch module and a power supply acquisition module, the switching value detection module is respectively connected with a live wire L, a mechanical switch and the micro control unit, the electronic switch module is controlled by the micro control unit, the micro control unit is triggered by the on-off of the mechanical switch to control the on-off state of a loop where a load is positioned, the correct mechanical switch state is rapidly acquired by the switching value detection module, the intelligent control is synchronously realized, only one path of state detection needs to be additionally added as the control input, and the double control, the remote switch adopts a physical and electrical switch, is low in cost and is compatible with most double-control transformation.)

1. The joint control single-live-wire electronic switch is characterized by comprising a single-live-wire switch (1) for controlling the on-off of an input end of a load (3) and a mechanical switch (2) for triggering the on-off state of the single-live-wire switch (1) to overturn, wherein the single-live-wire switch (1) and the load (3) are connected in series in a loop;

the single-fire switch (1) comprises a switching value detection module (11), a micro control unit (12), an electronic switch module and a power acquisition module (16), wherein the switching value detection module (11) is respectively connected with the mechanical switch (2), the micro control unit (12) and the input end of one end of a loop where the load (3) is located;

the electronic switch module is controlled by the micro control unit (12), and the micro control unit (12) is triggered by the on-off of the mechanical switch (2) to control the switching state of the electronic switch module so as to control the on-off of a loop where the load (3) is located.

2. The jointly controlled single live wire electronic switch according to claim 1, wherein the single live wire switch (1) is connected in series with the mechanical switch (2) and then connected to the load (3);

the single-fire switch (1) is provided with at least one first interface end IN L at one end and at least one second interface end OUT A and one third interface end OUT B at the other end, the electronic switch module controls the on-off of a loop where the load (3) is located by controlling the on-off of the first interface end IN L and the third interface end OUT B, and the switching value detection module (11) is connected with the mechanical switch (2) through the second interface end OUT A.

3. The jointly controlled single live wire electronic switch according to claim 2, wherein the single live wire switch (1) and the mechanical switch (2) are connected in series and then connected to the load (3) in the following manner:

one end of the single-live-wire switch (1) is connected with a live wire L through a first interface end IN L, the other end of the single-live-wire switch is connected with a wiring end at one end of the mechanical switch (2) through a second interface end OUT A, a third interface end OUT B is connected with the load (3) IN series and then connected with a zero line N, and a wiring end at the other end of the mechanical switch (2) is connected with the load (3) IN series and then connected with the zero line N.

4. The jointly controlled single live wire electronic switch according to claim 2, wherein the single live wire switch (1) and the mechanical switch (2) are connected in series and then connected to the load (3) in the following manner:

one end of the mechanical switch (2) is connected with the live wire L, the other end of the mechanical switch (2) is connected with the second interface end OUT A of the single-fire switch (1), the single-fire switch (1) is connected with the live wire L through the third interface end OUT B, and the first interface end IN L of the other end is connected with the load (3) IN series and then connected with the zero line N.

5. The jointly-controlled single-live-wire electronic switch according to any one of claims 1 to 4, wherein the switching value detection module (11) comprises a rectifier diode (D20), a photo-electric isolation coupler (Q5), a first triode (Q2) to a third triode (Q4), a first capacitor (C10) and a first resistor (R35) to a seventh resistor (R41), one end IN L of the second resistor (R36) is connected to a live power line L or a load (3), the other end IN L is connected to the cathode of the rectifier diode (D20) and the anode of a diode IN the photo-electric isolation coupler (Q5), the anode of the rectifier diode (D20) is connected to the cathode of a diode IN the photo-electric isolation coupler (Q5) and then connected to one end of the first resistor interface (R35), and the other end of the first resistor (R35) is connected to the signal value input end of the mechanical switch (2) through a second terminal OUT A, an emitter of a triode in the photoelectric isolation coupler (Q5) is respectively connected with one end of a fifth resistor (R39), an anode of a first capacitor (C10) and a base of a first triode (Q2), and a collector of a triode in the photoelectric isolation coupler (Q5) is respectively connected with one end of a third resistor (R37), one end of a fourth resistor (R38) and a collector of a third triode (Q4) and is connected to a VCC end of the micro-control unit (12);

an emitter of the first triode (Q2) is connected with an emitter of the second triode (Q3) and then connected with one end of the sixth resistor (R40), and a collector of the first triode (Q2) is respectively connected with a base of the second triode (Q3) and the other end of the third resistor (R37);

a collector of the second triode (Q3) is respectively connected with a base of the third triode (Q4) and the other end of the fourth resistor (R38), and an emitter of the third triode (Q4) is connected with one end of the seventh resistor (R41) and connected to a switching signal quantity detection pin Vol of the micro-control unit (12);

the other end of the fifth resistor (R39), the negative electrode of the first capacitor (C10), the other end of one end of the sixth resistor (R40) and the other end of the seventh resistor (R41) are connected and then grounded.

6. The jointly controlled single-live wire electronic switch according to any one of claims 1 to 4, wherein the switching value detection module (11) comprises a resistor R1, a resistor R2 and an operational amplifier, two ends of the resistor R1 are respectively connected with the second interface terminal OUT A and the non-inverting input terminal of the operational amplifier, two ends of the resistor R2 are respectively connected with the third interface terminal OUT B and the inverting input terminal of the operational amplifier, the output terminal of the operational amplifier is connected with the switching signal value detection pin Vol of the micro-control unit (12), the positive power terminal of the operational amplifier is connected with the VCC terminal of the micro-control unit (12), and the negative power terminal of the operational amplifier is grounded.

7. The jointly controlled single-live wire electronic switch according to claim 1, wherein the single-live wire switch (1) further comprises a communication module (13) and a local control module (15), and the signal output end of the micro control unit (12) is respectively connected with the communication module (13) and the local control module (15);

the local control module (15) comprises an indicator light and a key used for triggering the micro control unit (12) to control the switching state of the electronic switch module so as to control the on-off of a loop where the load (3) is located, the micro control unit (12) is in communication connection with an external terminal through a communication module (13), the communication module (13) adopts one or more of an infrared module, a low-power Bluetooth module and a WiFi module, and the external terminal comprises one or more of a remote controller and a mobile terminal with built-in APP;

the electronic switch module is one of a relay (14), a controllable silicon and a field effect tube.

8. The control method of the joint control single live wire electronic switch based on claim 1 is characterized by comprising the following steps:

s1, power-on initialization: the micro control unit (12) acquires a signal of the switching value detection module (11), records the signal to a temporary storage mark f1, and monitors the switching value at regular time;

s2, comparing signals of the switching value detection module (11): the micro control unit (12) compares the newly acquired signal of the switching value detection module (11) with a temporary storage mark f 1;

s3-1, mechanical switch (2) trigger response: if the signal of the switching value detection module (11) and the temporary storage mark f1 are turned over, triggering the micro control unit (12) to switch the state of the electronic switching module, thereby controlling the on-off of the input end of the load (3), recording the newly acquired signal of the switching value detection module (11) to the temporary storage mark f1, and if the signal of the switching value detection module (11) and the temporary storage mark f1 are not turned over, keeping the state of the electronic switching module and the temporary storage mark f1 unchanged;

s4, responding by the local control module (15): after the micro control unit (12) switches the state of the electronic switch module, the switching state of the indicator lamp in the local control module (15) is synchronously controlled, and the state is reported to an external terminal through the communication module (13).

9. The method for controlling a jointly controlled single live wire electronic switch according to claim 8, wherein in step S3-1, the signal of the switching value detection module (11) is triggered to be inverted by the mechanical switch (2).

10. The method for controlling the jointly controlled single live wire electronic switch according to claim 8, further comprising the steps of:

s3-2, controlling by the local control module (15): after detecting that the trigger signal of the key is received, the micro control unit (12) switches the state of the electronic switch module, so as to control the on-off of the input end of the load (3);

s3-3, external terminal control: after receiving a trigger signal of a remote controller or a mobile terminal with a built-in APP, the micro control unit (12) switches the state of the electronic switch module, so that the on-off of the input end of the load (3) is controlled.

Technical Field

The invention relates to the technical field of electronic switches, in particular to a joint control single-live-wire electronic switch which comprises a single-live-wire switch and a mechanical switch.

Background

The double-control switch is a switch with two contacts (namely a pair) which are normally open and normally closed at the same time. Two double-control switches are usually used to control a lamp or other electrical appliances, i.e. two switches can be used to control the switches of electrical appliances such as lamps. For example, the switch is turned on when going downstairs and turned off when going upstairs. If a conventional switch is adopted, the user needs to go downstairs to switch off the lamp when the lamp is required to be switched off, and the operation is quite troublesome. This can be avoided by using a double control switch.

Disclosure of Invention

Aiming at the defects of the prior art, the invention solves the technical problem of how to correctly acquire the state of the mechanical switch and feed the state back to a user so as to realize the purpose of intelligent control.

In order to solve the technical problem, the invention adopts the technical scheme that the joint control single-live-wire electronic switch comprises a single-live-wire switch and a mechanical switch, wherein the single-live-wire switch is used for controlling the on-off of the input end of a load, and the mechanical switch is used for triggering the on-off state of the single-live-wire switch to be turned over, and the single-live-wire switch and the load are connected in series in a loop;

the single live wire switch comprises a switching value detection module, a micro control unit, an electronic switch module and a power supply acquisition module, wherein the switching value detection module is respectively connected with the mechanical switch, the micro control unit and the input end of one end of a loop where a load is located, and the input end of the loop can be a live wire L or a zero line N;

the electronic switch module is controlled by the micro control unit, and the micro control unit is triggered by the on-off of the mechanical switch to control the switching state of the electronic switch module so as to control the on-off of a loop where the load is located.

Preferably, the single-fire switch is connected with the mechanical switch in series and then is connected with the load;

the single-fire switch is characterized IN that one end of the single-fire switch is provided with at least one first interface end IN L, the other end of the single-fire switch is provided with at least one second interface end OUT A and a third interface end OUT B, the electronic switch module controls the on-off of a loop where the load 3 is located by controlling the on-off of the first interface end IN L and the third interface end OUT B, and the switching value detection module is connected with the mechanical switch through the second interface end OUT A.

Preferably, in another aspect, the one-fire switch and the mechanical switch are connected in series and then connected to the load in the following manner:

one end of the single-live-wire switch is connected with the live wire L through a first interface end IN L, the other end of the single-live-wire switch is connected with a wiring end at one end of the mechanical switch through a second interface end OUT A, a third interface end OUT B is connected with the load IN series and then connected with the zero line N, and a wiring end at the other end of the mechanical switch is connected with the load IN series and then connected with the zero line N.

Preferably, the one-fire switch and the mechanical switch are connected in series and then connected to the load in the following manner:

the single-fire switch is connected with the live wire L through a third interface end OUT B, and the first interface end INL at the other end is connected with the load in series and then connected with the zero line N.

Preferably, the switching value detection module includes a rectifier diode, a photoelectric isolation coupler, first to third triodes, a first capacitor, and first to seventh resistors, one end inl of the second resistor is connected to a power supply live wire L or a load, the other end is connected to a cathode of the rectifier diode and an anode of a diode IN the photoelectric isolation coupler, an anode of the rectifier diode is connected to an anode of the diode IN the photoelectric isolation coupler and then to one end of the first resistor, the other end of the first resistor is connected to an input end of a mechanical switching signal value through a second interface end OUT a, emitters of the triodes IN the photoelectric isolation coupler are respectively connected to one end of the fifth resistor, an anode of the first capacitor, and a base of the first triode, and collectors of the triodes IN the photoelectric isolation coupler are respectively connected to one end of the third resistor, and the other end of the third resistor, One end of a fourth resistor and a collector of a third triode are connected and connected to a VCC end of the micro control unit;

the emitter of the first triode is connected with one end of the sixth resistor after being connected with the emitter of the second triode, and the collector of the first triode is respectively connected with the base of the second triode and the other end of the third resistor;

the collector of the second triode is respectively connected with the base of the third triode and the other end of the fourth resistor, and the emitter of the third triode is connected with one end of the seventh resistor and is connected with a switching signal quantity detection pin Vol of the micro control unit;

the other end of the fifth resistor, the negative electrode of the first capacitor, the other end of one end of the sixth resistor and the other end of the seventh resistor are connected and then grounded.

Preferably, in another technical solution, the switching value detecting module includes a resistor R1, a resistor R2, and an operational amplifier, two ends of the resistor R1 are respectively connected to the second interface terminal OUT a and the non-inverting input terminal of the operational amplifier, two ends of the resistor R2 are respectively connected to the third interface terminal OUT B and the inverting input terminal of the operational amplifier, an output terminal of the operational amplifier is connected to a switching signal value detecting pin Vol of the micro control unit, a positive power source terminal of the operational amplifier is connected to the VCC terminal of the micro control unit, and a negative power source terminal of the operational amplifier is grounded.

Preferably, the single fire switch further comprises a communication module and a local control module, and the signal output end of the micro control unit is respectively connected with the communication module and the local control module;

the local control module comprises an indicator light and a key used for triggering the micro control unit to control the switching state of the electronic switch module so as to control the on-off of a loop where a load is located, the micro control unit is in communication connection with an external terminal through a communication module, the communication module adopts one or more of an infrared module, a low-power Bluetooth module and a WiFi module, and the external terminal comprises one or more of a remote controller and a mobile terminal with built-in APP;

the electronic switch module is one of a relay, a silicon controlled rectifier and a field effect transistor.

A control method based on the joint control single-live wire electronic switch comprises the following steps:

s1, power-on initialization: the micro control unit acquires a switching value detection module signal, records the signal to a temporary storage mark f1, and monitors the switching value at regular time;

s2, comparing signals of the switching value detection module: the micro control unit compares the newly acquired switching value detection module signal with a temporary storage mark f 1;

s3-1, mechanical switch trigger response: if the switching value detection module signal and the temporary storage mark f1 are turned over, triggering the micro control unit to switch the state of the electronic switch module, so as to control the on-off of the load input end, recording the newly acquired switching value detection module signal to the temporary storage mark f1, and if the switching value detection module signal and the temporary storage mark f1 are not turned over, keeping the state of the electronic switch module and the temporary storage mark f1 unchanged;

s4, responding by the local control module: after the micro control unit switches the state of the electronic switch module, the indicating lamp in the local control module is synchronously controlled to switch the state, and the state is reported to an external terminal through the communication module.

Preferably, in step S3-1, the switching value detection module signal is inverted by a mechanical switch trigger.

Preferably, the method further comprises the following steps:

s3-2, controlling by a local control module: after detecting that the trigger signal of the key is received, the micro control unit switches the state of the electronic switch module, so that the on-off of the load input end is controlled;

s3-3, external terminal control: after receiving a trigger signal of a remote controller or a mobile terminal with a built-in APP, the micro control unit switches the state of the electronic switch module, so that the on-off of the input end of the load is controlled.

Compared with the prior art, the technical scheme of the invention has the beneficial effects that:

1. the accurate mechanical switch state is quickly acquired through the switching value detection module and fed back to the local control module and the external terminal, and intelligent control, including mechanical switch control, local control module control and external terminal control, is synchronously realized;

2. the single-live-wire switch only needs to additionally add one path of state detection as double-control input, so that the expansion is convenient;

3. the remote switch adopts a physical and electrical switch, so that the cost is low, and the remote switch is compatible with most double-control transformation; and by additionally adding 'OUT A', the single-fire switch can be upgraded to support three controls to N controls.

Drawings

FIG. 1 is a schematic view of the structural principle of the present invention;

FIG. 2 is a schematic diagram of a structure according to the present invention;

FIG. 3 is a second structural connection diagram of the present invention;

FIG. 4 is a circuit diagram of a switching value detecting module according to embodiment 1;

FIG. 5 is a circuit diagram of a switching value detecting module according to embodiment 2;

FIG. 6 is a circuit diagram of a micro control unit;

FIG. 7 is a relay circuit diagram;

FIG. 8 is a circuit diagram of the keys and indicator lights in the local control module;

FIG. 9 is a circuit diagram of a power acquisition module;

FIG. 10 is a flow chart of the present invention.

In the figure, the device comprises a single fire switch 1, a single fire switch 11, a switching value detection module 12, a micro control unit 13, a communication module 14, a relay 15, a local control module 16, a power acquisition module 2, a mechanical switch 3 and a load.

Detailed Description

The following further describes the embodiments of the present invention with reference to the drawings, but the present invention is not limited thereto.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:多电容触摸按键系统及补充按键单元

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类