Intelligent switch control circuit and wall intelligent switch

By introducing intelligent control circuits into the electronically controlled switches, the signal measurement points and the controller accurately control the switching time, the problem of the electronically controlled switch ignition and arcing at the peak and valleys of the AC electric wave is solved, extending the service life and reducing electromagnetic wave interference.

CN118981176APending Publication Date: 2024-11-19BEIJING XSMART CENTURY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411054709.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

Existing electrically controlled switches are prone to ignition and arcing at the peaks or valleys of AC current, which affects the service life and may cause electromagnetic interference.

Method used

Design an intelligent switch control circuit. By setting the switch in the electronic control switch to connect the power acquisition chip and auxiliary circuit, the signal measurement point and the controller are used to accurately control the opening and closing time of the electronic control switch to avoid peaks or troughs of AC current. Perform operations to reduce the occurrence of ignition and arcing.

Benefits of technology

It effectively extends the service life of the electronically controlled switch, reduces electromagnetic wave interference, and improves the stability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981176A_ABST
    Figure CN118981176A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an intelligent switch control circuit and a wall intelligent switch, a signal measurement point is arranged between the other end of an electric control switch and a switch communication electricity taking chip, and the signal measurement point is connected with a preset pin of a controller. The controller can determine the first response time of the electric control switch according to the first moment when the electric signal for controlling the electric control switch to be closed is sent to the electric control switch and the second moment when the signal value of the signal at the signal measuring point reaches the preset signal value. Therefore, the switching-on and / or switching-off time of the electric control switch can be accurately controlled according to the first response time, so that the electric control switch is prevented from being switched on and / or switched off at the wave crest or the wave trough of the alternating current, ignition and arc discharge of the electric control switch are avoided, and the service life of the electric control switch is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of intelligent control technology, and in particular to an intelligent switch control circuit and a wall intelligent switch. Background Art

[0002] An electric control switch (such as an electromagnetic relay, the relay is used as an example below) is an electronic control device. It has a control system (input circuit) and a controlled system (output circuit). It is usually used in automatic control circuits. It uses a smaller current and a lower voltage to control a larger current and a higher voltage. It is a switch control method that plays the role of automatic adjustment, safety protection, and circuit conversion in the circuit.

[0003] A large number of smart home devices use relays, such as smart wall switches. The service life of relays is an important factor affecting the life of home appliances.

[0004] However, in AC circuits, the contacts of relays often spark and arc. The higher the voltage and the greater the current, the more obvious the spark is when the contacts are in contact. Contact sparking occurs when the contacts are closed. Since there is high voltage between the two contacts of the relay, when the contacts are closed and the distance between the contacts is very short, it will break through the space and produce sparks. This spark is particularly obvious at the peak or trough of the AC current, when the spark is the largest. Different loads will also affect the severity of the spark. For example, many of the LED lamps commonly used now are capacitive loads. When in contact, the capacitor of the lamp will be charged, and the instantaneous current is hundreds of times the stable current, which aggravates the loss of contact protection materials and may generate electromagnetic interference, affecting the normal operation of the device itself or nearby electronic equipment. It can be seen that this arc discharge will generate high temperature, burn contacts, shorten the life of the relay, and may generate electromagnetic interference, affecting the normal operation of nearby electronic equipment. Summary of the invention

[0005] The embodiments of the present disclosure provide an intelligent switch control circuit and a wall intelligent switch, which are used to solve the problem that the existing electric control switches are prone to sparking and arcing at the peak or trough of alternating current, which affects their service life.

[0006] Based on the above problems, in the first aspect, an intelligent switch control circuit is provided, comprising: an electric control switch, a switch-connected power-taking circuit, a switch device and a controller are arranged between two connection terminals; the switch-connected power-taking circuit comprises: a switch-connected power-taking chip and its auxiliary circuit;

[0007] One end of the electric control switch is connected to one end of the two wiring terminals; the other end of the electric control switch is respectively connected to the corresponding pin of the switch connected to the power-taking chip and one end of the switch device; the other end of the switch device is connected to the other end of the two wiring terminals; the control end of the switch device is connected to the first control pin of the switch connected to the power-taking chip; the control end of the electric control switch and the power output end of the switch connected to the power-taking circuit are respectively connected to the controller;

[0008] A signal measurement point determined between the other end of the electric control switch and the switch connected to the power-taking chip is connected to a preset pin of the controller;

[0009] The controller is used for, after receiving an instruction indicating that the electric-controlled switch is to be closed, sending an electric signal for controlling the closing of the electric-controlled switch to a control end of the electric-controlled switch at a first moment; and determining a second moment when the signal value of the signal at the signal measurement point reaches a preset signal value; and determining the time difference between the first moment and the second moment as a first response time of the electric-controlled switch, so as to control the closing and / or disconnecting time of the electric-controlled switch according to the first response time.

[0010] In combination with the first aspect, in a possible implementation, the switch connected to the power-taking chip includes a power pin and a voltage-dividing detection pin; the other end of the electronically controlled switch is connected to the power pin of the switch connected to the power-taking chip; the auxiliary circuit includes a first voltage-dividing resistor and a second voltage-dividing resistor connected in series; one end of the first voltage-dividing resistor is respectively connected to the other end of the electronically controlled switch and the power pin of the switch connected to the power-taking chip; the other end of the first voltage-dividing resistor is connected to one end of the second voltage-dividing resistor; the other end of the second voltage-dividing resistor is set to an equipotential; a first voltage-dividing point between the first voltage-dividing resistor and the second voltage-dividing resistor is connected to the voltage-dividing detection pin; the first voltage-dividing point is connected to a preset pin of the controller as the signal measurement point; the controller is used to send an electrical signal for controlling the closing of the electronically controlled switch to the control end of the electronically controlled switch at a first moment after receiving an instruction indicating that the electronically controlled switch is closed; and determine a second moment when the voltage value at the first voltage-dividing point reaches a preset voltage threshold, or a second moment when a signal sent by the voltage-dividing detection pin indicating that the voltage at the first voltage-dividing point reaches a preset voltage threshold is received; and the time difference between the first moment and the second moment is determined as the first response time of the electronically controlled switch.

[0011] In combination with the first aspect, in a possible implementation, the circuit also includes: a third voltage-dividing resistor and a fourth voltage-dividing resistor connected in series; one end of the third voltage-dividing resistor is respectively connected to the other end of the electric-controlled switch and the power pin of the switch connected to the power-taking chip; the other end of the third voltage-dividing resistor is connected to one end of the fourth voltage-dividing resistor; the other end of the fourth voltage-dividing resistor is set to the same potential; the second voltage-dividing point between the third voltage-dividing resistor and the fourth voltage-dividing resistor is connected to the preset pin of the controller as the signal measurement point; the controller is used to send an electrical signal for controlling the closing of the electric-controlled switch to the control end of the electric-controlled switch at a first moment after receiving an instruction indicating that the electric-controlled switch is closed; and determine the second moment when the voltage value at the second voltage-dividing point reaches the preset voltage value; and determine the time difference between the first moment and the second moment as the first response time of the electric-controlled switch.

[0012] In combination with the first aspect, in a possible implementation, an AC signal is input between the two terminals; the controller is used to determine whether a first time period between a current moment and a moment when the nearest second half cycle arrives is greater than an estimated value of a first response time when an instruction representing closing the electric-controlled switch is received within a first half cycle; if so, the controller is used to extend the first preset time to send an electric signal for controlling the closing of the electric-controlled switch to the control end of the electric-controlled switch, so that the closing time of the electric-controlled switch is in the nearest second half cycle; when an instruction representing closing the electric-controlled switch is received within a second half cycle, the controller determines whether a second time period between a current moment and a moment when the nearest first half cycle arrives is not greater than an estimated value of the first response time; if so, the controller is used to extend the second preset time to send an electric signal for controlling the closing of the electric-controlled switch to the control end of the electric-controlled switch, so that the closing time of the electric-controlled switch is in the next second half cycle; wherein the first half cycle includes a half cycle in the AC signal cycle in which no signal recognized by the controller can be generated at the signal measurement point, and the second half cycle includes another half cycle in the AC signal cycle except the first half cycle; the first half cycle includes a positive half AC signal cycle or a negative half AC signal cycle.

[0013] In combination with the first aspect, in a possible implementation, the switch connected to the power-taking chip also includes: an AC signal detection pin and a zero-crossing signal pin; the AC signal detection pin is connected to one end of the electric-controlled switch for receiving an AC signal; the zero-crossing signal pin is connected to the corresponding pin of the controller for outputting a zero-point signal obtained by analyzing the AC signal to the controller; the controller is also used to determine, after receiving an instruction representing the closing of the electric-controlled switch, a first time difference between a third moment of receiving the instruction and a first zero-point moment to be determined by the zero-crossing signal pin; and determine the moment of sending an electrical signal to the electric-controlled switch to control the closing of the electric-controlled switch based on the first time difference and the first response time of the electric-controlled switch, so as to ensure that the electric-controlled switch is closed at the first zero-point moment or after the first zero-point moment with a delay of a preset time.

[0014] In combination with the first aspect, in a possible implementation manner, the controller is used to, when the first time difference is greater than or equal to the first response time of the electronically controlled switch, send an electrical signal for controlling the closing of the electronically controlled switch to the control end of the electronically controlled switch at a fourth moment of the first response time before the first zero moment, or at a fifth moment less than a preset time of the first response time before the first zero moment, when the first time difference is less than the first response time of the electronically controlled switch; send an electrical signal for controlling the closing of the electronically controlled switch to the control end of the electronically controlled switch at a sixth moment of the first response time before a second zero moment, or at a seventh moment less than a preset time of the first response time before the second zero moment, when the first time difference is less than the first response time of the electronically controlled switch; or send an electrical signal for controlling the closing of the electronically controlled switch to the control end of the electronically controlled switch at an eighth moment of the first response time before an intermediate zero moment between the first zero moment and the second zero moment, or at a ninth moment less than a preset time of the first response time before the intermediate zero moment; the second zero moment is the next zero moment of the first zero moment.

[0015] In combination with the first aspect, in a possible implementation, the switch connects the voltage divider detection pin of the power-taking chip to the corresponding pin of the controller; the controller is also used to determine the second time difference between the tenth moment of receiving the instruction and the upcoming third zero moment after receiving the instruction representing disconnecting the electric-controlled switch; determine the moment of sending the electrical signal to the electric-controlled switch to control the disconnection of the electric-controlled switch according to the second time difference and the second response time of the electric-controlled switch; wherein the third zero moment is determined based on the time when the voltage divider detection pin provides the voltage divider detection signal; and the second response time is determined based on the first response time.

[0016] In combination with the first aspect, in a possible implementation manner, the controller is used to, when the second time difference is greater than or equal to the second response time of the electronically controlled switch, send an electrical signal for controlling the electronically controlled switch to be disconnected to the control end of the electronically controlled switch at an eleventh moment of the second response time before the third zero hour, or at a twelfth moment less than a preset time of the second response time before the third zero hour, when the second time difference is less than the second response time of the electronically controlled switch; send an electrical signal for controlling the electronically controlled switch to be disconnected to the control end of the electronically controlled switch at a thirteenth moment of the second response time before the fourth zero hour, or at a fourteenth moment less than a preset time of the second response time before the fourth zero hour, when the second time difference is less than the second response time of the electronically controlled switch; or send an electrical signal for controlling the electronically controlled switch to be disconnected to the control end of the electronically controlled switch at a fifteenth moment of the second response time before an intermediate zero hour between the third zero hour and the fourth zero hour, or at a sixteenth moment less than a preset time of the second response time before the intermediate zero hour; the fourth zero hour is the next zero hour of the third zero hour.

[0017] In combination with the first aspect, in a possible implementation, the number of the electrically controlled switches is at least two; one end of the at least two electrically controlled switches is respectively connected to the wiring terminal corresponding to the load controlled by each; the other ends of the at least two electrically controlled switches are respectively connected to the corresponding pins of the switch connected power-taking chip and one end of the switch device; the control ends of the at least two electrically controlled switches are respectively connected to the controller; the signal measurement point determined between the other end of the at least two electrically controlled switches and the switch connected power-taking chip is connected to a preset pin of the controller; the controller is used to send an electrical signal for controlling the closing of any electrically controlled switch to the control end of any electrically controlled switch at a first moment after receiving an instruction representing the closing of any electrically controlled switch when the at least two electrically controlled switches are both disconnected; and determine a second moment when the signal value of the signal at the signal measurement point reaches a preset signal value; determine the time difference between the first moment and the second moment as the first response time of any electrically controlled switch, so as to control the closing and / or disconnection time of any electrically controlled switch according to the first response time.

[0018] In combination with the first aspect, in a possible implementation, the switch connected to the power-taking chip also includes: an AC signal detection pin and a zero-crossing signal pin; the AC signal detection pin is connected to one end of the at least two electrically-controlled switches for receiving an AC signal; the zero-crossing signal pin is connected to the corresponding pin of the controller for outputting a zero-point signal obtained by analyzing the AC signal to the controller; the controller is also used to determine, after receiving an instruction representing the closing of any one of the at least two electrically-controlled switches, a first time difference between a third moment of receiving the instruction and a first zero-point moment to be determined by the zero-crossing signal pin; based on the first time difference and the first response time of any one of the electrically-controlled switches, determine the moment of sending an electrical signal to control the closing of any one of the electrically-controlled switches to ensure that any one of the electrically-controlled switches is closed at the first zero-point moment or after the first zero-point moment with a delay of a preset time.

[0019] In combination with the first aspect, in a possible implementation, the switch connected to the power-taking chip further includes: an AC signal detection pin and a zero-crossing signal pin; the AC signal detection pin is connected to one end of the at least two electrically controlled switches for receiving an AC signal; the zero-crossing signal pin is connected to a corresponding pin of the controller for outputting a zero-point signal obtained by parsing the AC signal to the controller; the voltage-dividing detection pin of the switch connected to the power-taking chip is connected to a corresponding pin of the controller; the controller is further configured to, after receiving an instruction indicating that any of the at least two electrically controlled switches is disconnected, determine a second time difference between a tenth moment of receiving the instruction and a third zero-point moment to be reached; determine a moment of sending an electrical signal to control the disconnection of any of the at least two electrically controlled switches according to the second time difference and a second response time of the any electrically controlled switch; wherein, in the case that any of the at least two electrically controlled switches is disconnected, the third zero-point moment is determined by the zero-crossing signal pin; in the case that the at least two electrically controlled switches are both closed, the third zero-point moment is determined based on the time when the voltage-dividing detection pin provides a voltage-dividing detection signal; and the second response time is determined based on the first response time.

[0020] In combination with the first aspect, in a possible implementation, the controller is used to redetermine the first moment and the second moment, and determine the first response time based on the redetermined first moment and second moment when at least one of the following conditions is met: environmental parameters of the environment in which the circuit is located are monitored, and the environmental parameters meet preset conditions; and / or the time interval from the last time the first response time was determined reaches a preset time interval; and / or the number of times the smart switch is used reaches a preset number of times; and / or the smart switch is restarted.

[0021] In a second aspect, a smart wall switch is provided, comprising: a switch panel, wherein the wall covered by the switch panel is provided with a smart switch control circuit as provided in the first aspect or in combination with any possible implementation of the first aspect.

[0022] The beneficial effects of the embodiments of the present disclosure include:

[0023] An intelligent switch control circuit and a wall intelligent switch provided by the embodiments of the present disclosure include: an electric switch, a switch-connected power-taking circuit, a switch device and a controller are arranged between two wiring terminals; the switch-connected power-taking circuit includes: a switch-connected power-taking chip and its auxiliary circuit; one end of the electric switch is connected to one end of the two wiring terminals; the other end of the electric switch is respectively connected to the corresponding pins of the switch-connected power-taking chip and one end of the switch device; the other end of the switch device is connected to the other ends of the two wiring terminals; the control end of the switch device is connected to the first control pin of the switch-connected power-taking chip; the control end of the electric switch and the switch-connected power-taking circuit The power output ends of the electric switch are respectively connected to the controller; the signal measurement point determined between the other end of the electric switch and the switch connected to the power-taking chip is connected to the preset pin of the controller; the controller is used to send an electric signal for controlling the closing of the electric switch to the control end of the electric switch at a first moment after receiving an instruction representing the closing of the electric switch when the switch device is in an open state; and determine a second moment when the signal value of the signal at the signal measurement point reaches a preset signal value; determine the time difference between the first moment and the second moment as the first response time of the electric switch, so as to control the closing and / or disconnection time of the electric switch according to the first response time. In the disclosed embodiment, a signal measurement point is set between the other end of the electric control switch and the power-taking chip connected to the switch, and the signal measurement point is connected to a preset pin of the controller. The controller can determine a first response time of the electric control switch based on a first moment when an electric signal for controlling the closing of the electric control switch is sent to the electric control switch and a second moment when the signal value of the signal at the signal measurement point reaches a preset signal value. In this way, the opening and / or closing time of the electric control switch can be accurately controlled according to the first response time to avoid opening and / or closing the electric control switch at the peak or trough of the alternating current, thereby avoiding sparking and arcing of the electric control switch and extending the service life of the electric control switch. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is one of the structural schematic diagrams of an intelligent switch control circuit provided in an embodiment of the present disclosure;

[0025] Figure 2a The second structural diagram of an intelligent switch control circuit provided by an embodiment of the present disclosure;

[0026] Figure 2b One of the timing diagrams of the alternating current waveform provided in the embodiment of the present disclosure;

[0027] Figure 3a The third structural diagram of an intelligent switch control circuit provided by an embodiment of the present disclosure;

[0028] Figure 3b The second schematic diagram of the timing sequence of the alternating current waveform provided by the embodiment of the present disclosure;

[0029] Figure 4 A fourth structural diagram of an intelligent switch control circuit provided in an embodiment of the present disclosure;

[0030] Figure 5 A fifth structural diagram of an intelligent switch control circuit provided in an embodiment of the present disclosure;

[0031] Figure 6 The third schematic diagram of the timing sequence of the alternating current waveform provided by the embodiment of the present disclosure;

[0032] Figure 7 A schematic diagram of the timing relationship between the AC signal and the FB signal provided in an embodiment of the present disclosure;

[0033] Figure 8 A sixth structural diagram of an intelligent switch control circuit provided in an embodiment of the present disclosure;

[0034] Fig. 9 The seventh structural diagram of an intelligent switch control circuit provided by an embodiment of the present disclosure;

[0035] Fig.10 The present invention provides a schematic diagram of the structure of an intelligent switch circuit with a lamp as an example load. DETAILED DESCRIPTION

[0036] The embodiments of the present disclosure provide an intelligent switch control circuit and a wall intelligent switch. The preferred embodiments of the present disclosure are described below in conjunction with the drawings of the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present disclosure, and are not used to limit the present disclosure. In addition, the embodiments and features in the embodiments of the present application can be combined with each other if there is no conflict.

[0037] The present disclosure provides an intelligent switch control circuit. Figure 1 As shown, it includes: an electric control switch 101, a switch-connected power-taking circuit 102, a switch device 103 and a controller 104 are arranged between two connection terminals L and L1; the switch-connected power-taking circuit 102 includes: a switch-connected power-taking chip 1021 and its auxiliary circuit 1022 (not shown in the figure);

[0038] One end of the electric control switch 101 is connected to one end L of the two wiring terminals; the other end of the electric control switch 101 is respectively connected to the corresponding pin of the switch connected power supply chip 1021 and one end of the switch device 103; the other end of the switch device 103 is connected to the other end L1 of the two wiring terminals; the control end of the switch device 103 is connected to the first control pin of the switch connected power supply chip 1021; the control end of the electric control switch 101 and the power output end of the switch connected power supply circuit 102 are respectively connected to the controller 104;

[0039] The other end of the electric control switch 101 is connected to the switch and the power-taking chip, and the signal measurement point a is determined to be connected to the preset pin of the controller 104;

[0040] The controller 104 is used to, after receiving an instruction indicating that the electric-controlled switch 101 is closed, send an electric signal for controlling the electric-controlled switch 101 to be closed to the control end of the electric-controlled switch 101 at a first moment; and determine a second moment when the signal value of the signal at the signal measurement point a reaches a preset signal value; determine the time difference between the first moment and the second moment as a first response time of the electric-controlled switch 101, so as to control the closing and / or disconnecting time of the electric-controlled switch 101 according to the first response time.

[0041] In the application scenario of a single live wire, a switch is usually set to connect the power circuit 102 and a switch is usually set to disconnect the power circuit in order to power the controller of the intelligent switch. Figure 1 (Omitted and not shown). The switch-connected power-taking circuit 102 is used to supply power to the controller 104 when the electric-controlled switch 101 is connected (i.e., when the load is working). During implementation, the switch-connected power-taking chip 1021 sends a connection or disconnection signal to the switch device 103 according to the current power acquisition situation. When it is necessary to obtain power, a disconnection signal is sent to the switch device 103, so that the electric-controlled switch 101 is connected to the switch-connected power-taking chip 1021. When the required power is quickly obtained and it is necessary to suspend the acquisition of power, a connection signal is sent to the switch device 103, so that the electric-controlled switch 101 is connected to the switch device 103. Correspondingly, the switch-disconnected power-taking circuit is used to supply power to the controller 104 when the electric-controlled switch 101 is disconnected (i.e., when the load stops working).

[0042] The user can issue an instruction to turn on or off the load through the button of the wall smart switch or the control program of the electronic device, and the controller 104 sends a corresponding electrical signal to the electric switch 101 according to the user's instruction to control the electric switch 101 to be connected or disconnected. However, since the time when the user issues the instruction is random, if the electric signal is sent to the electric switch 101 immediately after receiving the user's instruction, and the time when the electric switch 101 is turned on or off happens to be at the peak or trough of the alternating current, sparking and arcing may occur. Therefore, the controller 104 can determine the sending time of the control signal according to the current waveform of the alternating current signal, so that the opening or closing of the electric switch 101 avoids the peak or trough of the alternating current, and is as close to the zero point of the alternating current as possible, that is, zero point control is performed in the smart switch.

[0043] To achieve zero-crossing control, two time information needs to be determined: the zero position time of the alternating current and the response time of the electric switch 101. The zero position time of the alternating current can be obtained through relevant technologies, which will be introduced in the following relevant parts. As for the response time of the electric switch 101, take the implementation of the electric switch 101 through a relay as an example: each model of relay will have a corresponding response time range. The relay manufacturer may promise a response time of <10ms in the specification book. This range is very large, but in actual testing it may be 4ms±1.5ms, that is, between 2.5ms and 5.5ms. In related technologies, the response time of the relay used is usually estimated artificially based on the specification book, and the response time is used for zero-crossing control. However, for 50 Hz AC, one cycle takes only 20 ms, and from zero to the highest point takes only 5 ms. If the response time of the relay is inaccurate, the final control effect will be unsatisfactory. If the response time of the relay has a maximum deviation of ±1.5 ms, because 1.5 ms corresponds to 30°, then in the worst case, the voltage V when the relay is connected (i.e., the spring is attracted) is V=sin30°×350v=175v, so the relay will still spark and generate arcs at this time, affecting the service life of the relay. In addition, because the response time of relays of the same model will also have some deviations due to manufacturing consistency, even the response time of the same relay is greatly affected by the high or low voltage of its driving voltage, and will also be affected by temperature or other environmental factors. Therefore, for each intelligent switch, accurately measuring its response time using the electric control switch 101 is the key to achieving accurate zero crossing. After the intelligent switch is installed for the first time, a default response time can be set for the electric control switch 101. As mentioned above, this time may have a large deviation. After the first power-on, the response time of the electric control switch 101 can be started to measure. In addition, the closing response time and the opening response time of the electronically controlled switch 101 may be different. Hereinafter, the closing response time of the electronically controlled switch 101 is referred to as the first response time, and the opening response time is referred to as the second response time.

[0044] In the embodiment of the present disclosure, a circuit for measuring the first response time of the electric switch 101 is provided. During implementation, a signal measurement point a can be set between the other end of the electric switch 101 and the switch-connected power-taking chip 1021, and the signal measurement point a can be connected to a preset pin of the controller 104. The switch-connected power-taking circuit 102 is connected to the electric switch 101 after the electric switch 101 is closed, and there is transmission of electrical signals between the electric switch 101 and the switch-connected power-taking chip 1021. When selecting the signal measurement point a, the processing capability of the controller 104 can be combined, and auxiliary electronic devices (such as voltage-dividing resistors, etc.) can be adaptively added to the signal measurement point a. Furthermore, since the time from the closing of the electric switch 101 to the transmission of the electric signal from the electric switch 101 to the signal measurement point a is extremely short and almost negligible, the closing time of the electric switch 101 and the time when the signal value at the signal measurement point a reaches the preset signal value can be approximately the same time, that is, the controller 104 determines the first response time of the electric switch according to the first time when the electric signal for controlling the closing of the electric switch is sent to the electric switch 101 and the second time when the signal value at the signal measurement point a reaches the preset signal value. In this way, the closing time of the electric switch can be accurately controlled according to the first response time to avoid closing the electric switch at the peak or trough of the alternating current, thereby avoiding sparking and arcing of the electric switch and extending the service life of the electric switch.

[0045] It should be noted that according to the design principle of the intelligent switch power supply circuit, when the electric control switch 101 changes from a disconnected state to a connected state, the switch device 103 is usually in a disconnected state, and the electric control switch 101 is connected to the switch power supply circuit 102. It is more accurate to measure the first response time when the switch device 103 is in a disconnected state.

[0046] Furthermore, L and L1 are the live wire and the neutral wire respectively (not specifically limited here), and a load can be connected between L and L1. When the electric control switch 101 is connected, the load is powered on and starts working, and when the electric control switch 101 is disconnected, the load is powered off and stops working.

[0047] In another embodiment provided by the present disclosure, Figure 2a to Figure 2b As shown, the switch connects the power chip 1021 including the power pin VIN and the voltage division detection pin FB;

[0048] The other end of the electric control switch is connected to the power pin VIN of the switch connected power chip 1021; the auxiliary circuit 1022 includes a first voltage-dividing resistor R1 and a second voltage-dividing resistor R2 connected in series; one end of the first voltage-dividing resistor R1 is respectively connected to the other end of the electric control switch 101 and the power pin VIN of the switch connected power chip 1021; the other end of the first voltage-dividing resistor R1 is connected to one end of the second voltage-dividing resistor R2; the other end of the second voltage-dividing resistor R2 is set to the same potential; the first voltage-dividing point between the first voltage-dividing resistor R1 and the second voltage-dividing resistor R2 is connected to the voltage-dividing detection pin FB; the first voltage-dividing point is connected to the preset pin of the controller 104 as the signal measurement point a;

[0049] The controller 104 is used for, after receiving an instruction indicating that the electric-controlled switch 101 is closed, sending an electrical signal to the control end of the electric-controlled switch 101 at a first moment to control the closing of the electric-controlled switch 101; and determining a second moment when the voltage value at the first voltage dividing point reaches a preset voltage threshold, or receiving a second moment when a signal sent by the voltage dividing detection pin FB indicating that the voltage at the first voltage dividing point a reaches the preset voltage threshold; and determining the time difference between the first moment and the second moment as the first response time of the electric-controlled switch 101.

[0050] In the embodiment of the present disclosure, as described above, when the electric control switch 101 is connected, the voltage detection pin FB detects the voltage at the first voltage division point. If the voltage reaches the preset voltage threshold, it means that the current power acquisition is completed, and the first control pin ( Figure 2a The GATE pin in the middle sends a control signal to connect the switch device 103. At this time, the electronically controlled switch 101 and the switch device 103 are connected, and the switch connects the power circuit 102 to suspend the acquisition of electric energy; and as the electric energy is consumed, when the voltage at the first voltage dividing point is detected by the voltage dividing detection pin FB to be less than the preset voltage threshold and meets the preset logic, the first control pin ( Figure 2a The GATE pin in the middle sends a control signal to disconnect the switch device 103, so that the switch is connected to the power-taking circuit 102 to obtain electric energy again, and controls the voltage division detection pin FB to monitor the situation of obtaining electric energy by detecting the voltage at the first voltage division point, and repeats this process.

[0051] It can be seen that the voltage value at the first voltage dividing point is a determinable value. In order to save costs and simplify the circuit structure, the original electronic components in the auxiliary circuit 1022 can be used to connect the first voltage dividing point as the signal measurement point a to the preset pin of the controller 104, and the moment when the voltage at the first voltage dividing point a reaches the preset voltage threshold is determined as the second moment. During implementation, the controller 104 can directly detect the voltage at the first voltage dividing point a to determine the second moment, or directly obtain the voltage dividing detection signal sent by the voltage dividing detection pin FB after voltage dividing detection (that is, FB detects that the voltage at the first voltage dividing point a reaches the preset voltage threshold) to determine the second moment.

[0052] In another embodiment provided by the present disclosure, Figure 3a to Figure 3b As shown, it also includes: a third voltage-dividing resistor R3 and a fourth voltage-dividing resistor R4 connected in series;

[0053] One end of the third voltage-dividing resistor R3 is respectively connected to the other end of the electric control switch 101 and the power pin VIN of the switch connected power chip 1021; the other end of the third voltage-dividing resistor is connected to one end of the fourth voltage-dividing resistor R4; the other end of the fourth voltage-dividing resistor R4 is set to the same potential; the second voltage-dividing point between the third voltage-dividing resistor R3 and the fourth voltage-dividing resistor R4 is connected to the preset pin of the controller 104 as the signal measurement point a;

[0054] The controller 104 is used to send an electrical signal for controlling the closing of the electronically controlled switch 101 to the control end of the electronically controlled switch 101 at a first moment after receiving an instruction indicating that the electronically controlled switch 101 is closed; and determine a second moment at which the voltage value at the second voltage dividing point reaches a preset voltage value; and determine the time difference between the first moment and the second moment as the first response time of the electronically controlled switch 101.

[0055] In the embodiment of the present disclosure, the voltage values ​​of the third voltage-dividing resistor R3 and the fourth voltage-dividing resistor R4 can also be determined according to the processing capacity of the controller 104 and the voltage value between the electric control switch 101 and the switch connected power supply chip 1021. And the second voltage-dividing point between the third voltage-dividing resistor R3 and the fourth voltage-dividing resistor R4 is connected to the preset pin of the controller 104 as the signal measurement point a. As the switch is connected to the power supply circuit 102 to take power each time, the voltage of the second voltage-dividing point will also change regularly, and the preset voltage value is determined according to the voltage change rule of the second voltage-dividing point. When setting the resistance values ​​of R3 and R4, the resistance values ​​of R1 and R2 can also be referred to, so that the resistance value of R3 is equal to the resistance value of R1, and the resistance value of R4 is equal to the resistance value of R2. Then the preset voltage value can be set to the preset voltage threshold.

[0056] In another embodiment provided by the present disclosure, Figure 4 As shown, an AC signal is input between the two terminals L and L1;

[0057] The controller 104 is configured to, when receiving an instruction indicating that the electric-controlled switch 101 is closed within the first half cycle, determine whether a first time period between the current moment and the moment when the nearest second half cycle arrives is greater than an estimated value of the first response time; if so, extend the first preset time period to send an electrical signal for controlling the closing of the electric-controlled switch 101 to the control end of the electric-controlled switch 101, so that the closing moment of the electric-controlled switch 101 is within the nearest second half cycle;

[0058] When receiving an instruction indicating that the electric-controlled switch 101 is closed in the second half cycle, determining whether the second time period between the current moment and the moment of the arrival of the nearest first half cycle is not greater than the estimated value of the first response time; if so, extending the second preset time to send an electrical signal for controlling the closing of the electric-controlled switch 101 to the control end of the electric-controlled switch 101, so that the closing moment of the electric-controlled switch 101 is in the next second half cycle;

[0059] Among them, the first half cycle includes a half cycle in the AC signal cycle in which no signal recognized by the controller can be generated at the signal measurement point a, and the second half cycle includes a half cycle in the AC signal cycle except the first half cycle; the first half cycle includes a positive half AC signal cycle or a negative half AC signal cycle.

[0060] As described above, according to the structural characteristics of the switch connected power circuit 102, taking the first voltage dividing point as point a as an example, Figure 4 As shown, the switch device 103 can be implemented using at least one metal-oxide-semiconductor field-effect transistor (MOSFET). The electric control switch 101 is implemented using a relay as an example. Since an AC signal is input between the two terminals L and L1, the current directions of the first half of the AC signal cycle and the second half of the AC signal cycle are different. Figure 4Taking the installation method of the MOS tube in the example, if the frequency of the alternating current is 50hz, and one cycle is 20ms, the time from 0 to 20ms can be regarded as an AC signal cycle, then the part above the horizontal reference line can be regarded as the upper half of the AC signal cycle, and the part below the horizontal reference line can be regarded as the lower half of the AC signal cycle. When the alternating current is in the negative half cycle (i.e., the first half cycle), the current is turned on through the diode next to the MOS tube, and the MOS tube cannot be disconnected. At this time, the voltage at the MOS tube is only a voltage difference of a diode compared to the ground GND, and the voltage is basically equal to 0. When it reaches the FB pin, no signal recognized by the controller 104 can be generated. Therefore, if the conduction of the electronically controlled switch 101 occurs in the negative half cycle of the alternating current (i.e., the contacts of the relay are energized in the negative half cycle of the alternating current), the first response time of the electronically controlled switch 101 cannot be accurately measured at this time. Therefore, when the controller 104 measures the first response time of the electric switch 101, it is necessary to make the conduction time of the electric switch 101 (i.e., the relay closing time) be in the positive half cycle (i.e., the second half cycle) of the AC power, which can be achieved by properly adjusting the delay in the controller 104. In other words, in the positive half cycle, the MOS tube can be turned off, and once the electric switch 101 is turned on, a signal that can be recognized by the controller 104 will be quickly generated at the signal measurement point a, that is, the signal value quickly reaches the preset signal value.

[0061] like Figure 4 The example shown is: assuming that the moment when the controller 104 detects the zero point is 0, and the moment when the user sends the instruction to close the electric switch 101 is 13ms, if an electric signal for controlling the electric switch 101 to close is immediately sent to the control end of the electric switch 101 at this time, assuming that the estimated value of the first response time of the electric switch 101 is 4±1.5ms, 13ms is 7ms away from the first period of the nearest positive half-cycle arrival time, which is greater than 4±1.5ms, then the controller 104 can delay 6ms (i.e., at 19ms) before sending the electric signal for controlling the electric switch 101 to close to the electric switch 101, then the closing time of the electric switch 101 will fall between 13+4±1.5+6=21.5~24.5ms, i.e., in the positive half-cycle of the alternating current. At this time, a signal that can be recognized by the controller 104 will be generated on the FB, i.e., the signal value of the signal at the signal measurement point is detected to reach the preset signal value, so that the measured first response time is more accurate.

[0062] Assume that the time when the user sends the instruction to close the electronic switch 101 is 8ms, and the second time period between the current time and the time when the nearest negative half cycle arrives (10ms time) is 2ms, which is less than 4±1.5ms. If an electrical signal for controlling the closing of the electronic switch 101 is immediately sent to the electronic switch 101, the closing time of the electronic switch 101 will fall between 8+4±1.5=10.5~13.5ms, that is, it is in the negative half cycle of the alternating current. At this time, FB cannot generate a signal that can be recognized by the controller 104, then the controller 104 can delay 11ms (that is, at 19ms) before sending the electrical signal for controlling the closing of the electronic switch 101 to the electronic switch 101, then the closing time of the electronic switch 101 will fall between 8+4±1.5+11=21.5~24.5ms, that is, it is in the positive half cycle of the alternating current.

[0063] It can be seen that the first preset time length and the second preset time length may not be fixed values, and need to be flexibly adjusted according to the moment when the user sends the instruction to close the electric switch 101, the current position of the first half cycle or the second half cycle, and the estimated value of the first response time. As long as the closing time of the electric switch 101 falls within the second half cycle of the alternating current after the delay corresponding to the preset time length, and will not be close to the position of the wave crest. In addition, in determining the estimated value of the first response time, if the first response time has been measured before, the first response time measured before can be used as the estimated value of this measurement. If it is the first measurement, the default value of the first response time can be determined as the estimated value of this measurement.

[0064] In another embodiment provided by the present disclosure, Figure 5 As shown, the switch connected to the power-taking chip 1021 also includes: an AC signal detection pin and a zero-crossing signal pin;

[0065] The AC signal detection pin is connected to one end of the electric switch 101 for receiving the AC signal; the zero-crossing signal pin is connected to the corresponding pin of the controller 104 for outputting the zero-point signal obtained by analyzing the AC signal to the controller 104;

[0066] The controller 104 is further used to determine, after receiving an instruction indicating that the electric-controlled switch 101 is to be closed, a first time difference between a third moment of receiving the instruction and a first zero moment to be determined by the zero-crossing signal pin; and determine, based on the first time difference and a first response time of the electric-controlled switch 101, a moment of sending an electrical signal to the electric-controlled switch 101 for controlling the closing of the electric-controlled switch 101, so as to ensure that the electric-controlled switch 101 is closed at the first zero moment or after the first zero moment with a delay of a preset time.

[0067] In the embodiment of the present disclosure, when the first response time is determined, after receiving an instruction indicating closing the electric-controlled switch 101 , the closing time of the electric-controlled switch 101 may be determined according to the first response time. Figure 5 In the example, the first voltage dividing point is still taken as point a, and the switch device 103 is implemented by using a MOS tube.

[0068] Further, Figure 6 Schematic diagram of AC signal waveform provided by the embodiment of the present disclosure. The zero point position of the AC signal can be the zero point of switching from the positive half cycle to the negative half cycle (such as Figure 6 The t5 moment shown in FIG. 1 may also be the zero point for switching from the negative half cycle to the positive half cycle (such as Figure 6 The time when the horizontal reference line intersects with the horizontal reference line can be regarded as the zero point of the alternating current. The zero point signal requires a zero crossing detection circuit to output a signal, which is generally a shaped high level or a pulse signal, and then the signal is detected by software and the time of the signal is recorded on the controller 104.

[0069] The controller 104 can obtain zero-time information through the zero-crossing signal pin. If the zero-time information provided by the zero-point signal pin is not direction-specific, that is, Figure 6 The t0 and t5 times shown are provided to the controller 104 as zero time points, and the controller 104 can use them directly. If the zero signal pin only determines the starting position of the complete cycle as the zero time point (t0 to t1 can be regarded as an AC signal cycle), that is, Figure 6 As shown in the figure, at the time t0 and the time t1, the controller 104 can obtain the zero point at the time t5 by calculation. After determining the first response time (assuming it is m milliseconds), at the time m milliseconds before the upcoming zero time, or at the time less than m milliseconds and w milliseconds before the upcoming zero time (i.e., mw milliseconds before the zero time), an electrical signal for controlling the closing of the electrical switch 101 is sent to the electrical switch 101, which can ensure that the electrical switch 101 is closed near the zero point, thereby reducing the occurrence of sparks or arcs.

[0070] In another embodiment provided by the present disclosure, Figure 5 As shown, the controller 104 is used to send an electrical signal to the control end of the electric control switch 101 to control the closing of the electric control switch 101 at a fourth moment of the first response time before the first zero time, or at a fifth moment less than a preset time of the first response time before the first zero time, when the first time difference is greater than or equal to the first response time of the electric control switch 101;

[0071] When the first time difference is less than the first response time of the electric-controlled switch 101, at the sixth moment of the first response time before the second zero moment, or at the seventh moment less than the preset time of the first response time before the second zero moment, an electric signal for controlling the closing of the electric-controlled switch 101 is sent to the control end of the electric-controlled switch 101; or at the eighth moment of the first response time before the middle zero moment between the first zero moment and the second zero moment, or at the ninth moment less than the preset time of the first response time before the middle zero moment, an electric signal for controlling the closing of the electric-controlled switch 101 is sent to the control end of the electric-controlled switch 101; the second zero moment is the next zero moment of the first zero moment.

[0072] Continue to refer Figure 6 , if the frequency of the alternating current is 50 Hz, and one cycle is 20 ms, assuming that the electric signal for controlling the electric switch 101 to close is received at time t2, at this time the first time difference (t4-t2) is greater than the first response time of the electric switch 101, and the delay T_delay=20 ms-(t2-t1)-first response time can be calculated according to the first response time of the electric switch 101 and the time t1, and assuming that T_delay is the period from t2 to t3, the electric switch 101 is turned on at the fourth time t3, and finally the electric switch 101 is pulled in near the zero point of t4. Alternatively, in order to further ensure that the moment of controlling the closing of the electric switch 101 is in the first half of the cycle of the alternating current signal, the delay time can be appropriately postponed by a preset time, that is, T_delay=20 ms-(t2-t1)-first response time+preset time, that is, the electric switch 101 is turned on at the fifth time t3+preset time, but the preset time cannot be set too long to avoid turning on the electric switch 101 at the peak.

[0073] Assuming that an electrical signal for controlling the closing of the electronically controlled switch 101 is received at time t3, and assuming that the first time difference (t4-t3) is less than the first response time of the electronically controlled switch 101, the next zero time (the second zero time) of the first zero time t4 is determined. If the zero-crossing signal pin obtains the zero time information as time t6 (the second zero time), the delay T_delay=20ms-(t3-t1)+20ms-first response time can be calculated. Assuming that t7 to t6 is the first response time, the sending of the electrical signal for controlling the closing of the electronically controlled switch 101 to the electronically controlled switch 101 is delayed to the sixth time t7. Alternatively, in order to further ensure that the moment of controlling the closing of the electronically controlled switch 101 is in the first half of the AC signal cycle, the delay time can be appropriately postponed to a preset time, that is, T_delay=20ms-(t3-t1)+20ms-first response time+preset time, that is, the electronically controlled switch 101 is turned on at the seventh time t7+preset time. In order to reduce the delay time, the middle zero point time t8 between the time t4 and the time t6 can be determined, and the delay time T_delay=20ms-(t3-t1)+10ms-first response time can be determined based on t8, and the electric signal for controlling the closing of the electric control switch 101 is sent to the electric control switch 101 at the eighth time; or T_delay=20ms-(t3-t1)+10ms-first response time+preset time, and the electric signal for controlling the closing of the electric control switch 101 is sent to the electric control switch 101 at the ninth time. If the zero point time information obtained by the zero-crossing pin is the time t8 (the second zero point time), the delay time can be directly determined based on t8, which will not be repeated here.

[0074] In another embodiment provided by the present disclosure, the switch connects the voltage-dividing detection pin FB of the power-taking chip 1021 to the corresponding pin of the controller 104;

[0075] The controller 104 is further used to determine, after receiving an instruction indicating that the electric-controlled switch 101 is to be disconnected, a second time difference between a tenth moment when the instruction is received and a third zero moment to be reached; and determine, based on the second time difference and a second response time of the electric-controlled switch 101, a moment of sending an electrical signal to the electric-controlled switch 101 for controlling the electric-controlled switch 101 to be disconnected; wherein the third zero moment is determined based on a time when the voltage-dividing detection pin FB provides a voltage-dividing detection signal; and the second response time is determined based on the first response time.

[0076] In the related art, zero-crossing detection is only provided when the electric control switch 101 is closed. Figure 5From the connection method of the AC signal detection pin, it can be seen that when the electric switch 101 is disconnected, the AC signal detection pin can obtain the AC signal and perform zero point analysis, so as to provide zero point information when the electric switch 101 is closed. When the electric switch 101 is closed, the AC signal cannot reach the AC signal detection pin, and zero point information cannot be provided when the electric switch 101 needs to be switched from closed to open. In addition, when the electric switch 101 is closed, the voltage divider detection pin FB will detect the voltage of the first voltage divider point between R1 and R2, and if Figure 7 As shown, FB will generate a voltage division detection signal (high level pulse signal S) when detecting that the first voltage division point reaches the preset voltage threshold. The signal is consistent with the frequency of the alternating current and is substantially different from the zero point of the alternating current by a constant interval k. It can be seen that the zero point of the alternating current in the closed state of the electric control switch 101 can be inferred through the voltage division detection signal. Assuming that the time when the voltage division detection signal is generated in a certain AC cycle of 20ms is k1, the next zero point time is: k1+20-k.

[0077] Since the second response time of disconnection of the electric switch 101 has a fixed linear relationship with the first response time of closing, such as 1.2 times or 0.8 times (different for different electric switches 101), under the two conditions of having a zero-point signal and a second response time of disconnection, the electric switch 101 can also be disconnected accurately near the zero point when it is closed. The method for determining the time of sending the electric signal to control the disconnection of the electric switch 101 according to the zero point and the second response time can refer to the above-mentioned method for determining the time of sending the electric signal to control the closing of the electric switch 101, which will not be repeated here.

[0078] In another embodiment provided by the present disclosure, Figure 5 As shown, the controller 104 is used to send an electrical signal for controlling the electric-controlled switch 101 to be disconnected to the control end of the electric-controlled switch 101 at an eleventh moment of the second response time before the third zero o'clock moment, or at a twelfth moment less than a preset time of the second response time before the third zero o'clock moment, when the second time difference is greater than or equal to the second response time of the electric-controlled switch 101;

[0079] When the second time difference is less than the second response time of the electric-controlled switch 101, at the thirteenth moment of the second response time before the fourth zero moment, or at the fourteenth moment less than the preset time of the second response time before the fourth zero moment, an electric signal for controlling the electric-controlled switch 101 to disconnect is sent to the control end of the electric-controlled switch 101; or at the fifteenth moment of the second response time before the middle zero moment between the third zero moment and the fourth zero moment, or at the sixteenth moment less than the preset time of the second response time before the middle zero moment, an electric signal for controlling the electric-controlled switch 101 to disconnect is sent to the control end of the electric-controlled switch 101; the fourth zero moment is the next zero moment of the third zero moment.

[0080] In this embodiment, the method for determining the time of sending the electrical signal to the electric switch to control the electric switch 101 to open is determined based on the zero time and the second response time. Please refer to the above-mentioned method for determining the time of sending the electrical signal to the electric switch to control the electric switch 101 to close, which will not be repeated here.

[0081] In another embodiment provided by the present disclosure, Figure 8 As shown, the number of the electric control switches 101 is at least two; one end of the at least two electric control switches 101 is respectively connected to the connection terminal corresponding to the load controlled by each; the other ends of the at least two electric control switches 101 are connected to the corresponding pins of the switch connected power chip 1021 and one end of the switch device 103; the control ends of the at least two electric control switches 101 are respectively connected to the controller 104; the signal measurement point a determined between the other ends of the at least two electric control switches and the switch connected power chip 1021 is connected to the preset pin of the controller 104;

[0082] The controller 104 is used for, when at least two of the electric-controlled switches 101 are disconnected, after receiving an instruction indicating that any of the electric-controlled switches is closed, sending an electric signal for controlling the closing of any of the electric-controlled switches 101 to the control end of the electric-controlled switch 101 at a first moment; and determining a second moment when the signal value of the signal at the signal measurement point a reaches a preset signal value; determining the time difference between the first moment and the second moment as the first response time of the electric-controlled switch 101, so as to control the closing and / or disconnecting time of the electric-controlled switch 101 according to the first response time.

[0083] In actual applications, users usually set up multiple independent loads, each of which is controlled by a corresponding switch. For example, a user sets up a smart light in each of two rooms, which are independently controlled by two electric switches. Figure 8Taking two loads controlled by two independent switches as an example, the first electronically controlled switch 101 for controlling load 1 is connected to the terminal L1 corresponding to load 1, and the second electronically controlled switch 102 for controlling load 2 is connected to the terminal L2 corresponding to load 2. The first electronically controlled switch 101 and the second electronically controlled switch 101 are connected in parallel. Figure 8 Taking the first voltage dividing point as the signal measurement point a as an example, at least two electrically controlled switches need to measure the corresponding first response time respectively. Since multiple electrically controlled switches 101 are arranged in parallel, as long as there is an electrically controlled switch 101 in a closed state, the switch connected to the power chip 101 is in a working state. On this basis, the electrically controlled switch 101 that is closed again cannot equate the closing time with the moment when the signal value at point a reaches the preset signal value. Therefore, for each electrically controlled switch 101 in at least two electrically controlled switches 101, it is necessary to receive an instruction representing the closing of any electrically controlled switch when all electrically controlled switches 101 are disconnected to perform the first response time measurement.

[0084] In addition, the measurement of the first response time of each electronically controlled switch 101 may be performed with reference to the aforementioned embodiment of measuring the response time of one electronically controlled switch 101 , which will not be described in detail here.

[0085] In another embodiment provided by the present disclosure, Fig. 9 As shown, the switch connected to the power-taking chip 1021 also includes: an AC signal detection pin and a zero-crossing signal pin;

[0086] The AC signal detection pin is connected to one end of at least two electric control switches 101 to receive the AC signal; the zero-crossing signal pin is connected to the corresponding pin of the controller 104 to output the zero-point signal obtained by analyzing the AC signal to the controller 104;

[0087] The controller 104 is further used to determine, after receiving an instruction indicating that any one of the at least two electrically controlled switches 101 is to be closed, a first time difference between a third moment of receiving the instruction and a first zero moment to be determined by the zero-crossing signal pin; and determine, based on the first time difference and a first response time of the any one of the electrically controlled switches, a moment of sending an electrical signal to control the closing of the any one of the electrically controlled switches, so as to ensure that the any one of the electrically controlled switches is closed at the first zero moment or after the first zero moment with a delay of a preset time.

[0088] Fig. 9Taking the example that two loads are controlled by two independent switches, the first electric switch 101 for controlling load 1 is connected to the terminal L1 corresponding to load 1, and the second electric switch 102 for controlling load 2 is connected to the terminal L2 corresponding to load 2. The first electric switch 101 and the second electric switch 101 are in parallel. One end of the first electric switch 101 and the second electric switch 102 are both connected to the AC signal detection pin. Multiple AC signals are usually merged into one input AC signal detection pin. The switch is connected to the power chip 1021 to analyze the AC signal to obtain the corresponding zero point analysis result. Assuming that the instruction to close the first electric switch 101 is received, the third moment of receiving the instruction and the first zero point moment of the AC signal are determined. Based on the first time difference between the two and the first response time of the first electric switch 101, the time of sending the electric signal to control the first electric switch 101 to close is determined. The specific determination method can refer to the aforementioned implementation method of determining the time of sending the closing electric signal for a single electric switch 101, which will not be repeated here.

[0089] In another embodiment provided by the present disclosure, Fig. 9 As shown, the switch connected to the power-taking chip 1021 also includes: an AC signal detection pin and a zero-crossing signal pin;

[0090] The AC signal detection pin is connected to one end of at least two electric control switches 101 to receive the AC signal; the zero-crossing signal pin is connected to the corresponding pin of the controller 104 to output the zero-point signal obtained by analyzing the AC signal to the controller 104;

[0091] The switch connects the voltage division detection pin of the power chip 1021 to the corresponding pin of the controller 104;

[0092] The controller 104 is further configured to, after receiving an instruction indicating that any one of the at least two electrically controlled switches 101 is to be disconnected, determine a second time difference between a tenth time when the instruction is received and a third zero time to be reached; and determine a time to send an electrical signal to the any one electrically controlled switch for controlling the disconnection of the any one electrically controlled switch according to the second time difference and a second response time of the any one electrically controlled switch;

[0093] Among them, when any of the at least two electrically controlled switches 101 is disconnected, the third zero point is determined by the zero-crossing signal pin; when at least two electrically controlled switches 101 are closed, the third zero point is determined based on the time when the voltage divider detection pin provides a voltage divider detection signal; and the second response time is determined based on the first response time.

[0094] In the embodiment of the present disclosure, when multiple electric control switches 101 are connected in parallel in the circuit, the method of obtaining the third zero point moment may be different according to the circuit connectivity. Among at least two electric control switches 101, as long as one electric control switch 101 is in the disconnected state, the AC signal detection pin can obtain the AC signal and output the zero-crossing signal detection result through the zero-crossing signal pin. If all the electric control switches 101 are in the connected state, the AC signal detection pin cannot obtain the AC signal, and the zero point moment can be determined by the aforementioned method of detecting the voltage division detection signal generated by the FB pin.

[0095] like Fig. 9 As shown, assuming that the first electric switch 101 is closed and the second electric switch 101 is open, at this time, an instruction to open the first electric switch 101 is received from the user. Since the second electric switch 101 is in an open state, the AC signal can be provided to the AC signal detection pin through the terminal L2, so that the third zero point can be determined through the zero-crossing signal pin; assuming that both the first electric switch 101 and the second electric switch 101 are closed, at this time, an instruction to open the first electric switch 101 is received from the user. Since all the electric switches 101 are in a closed state, the AC signal detection pin cannot obtain the AC signal. Then, the time when the voltage division detection signal is generated when the preset signal value is reached at the signal measurement point a according to FB can be detected, and the time interval k (such as Figure 7 As shown in FIG. 1 , the third zero point time is determined. The specific determination method for determining the time of sending the disconnection control signal to any of the electric control switches according to the second time difference and the second response time can refer to the aforementioned implementation method for determining the time of sending the disconnection signal for a single electric control switch 101, which will not be repeated here.

[0096] In another embodiment provided by the present disclosure, the controller 104 is configured to re-determine the first moment and the second moment when at least one of the following conditions is met, and determine the first response time according to the re-determined first moment and the second moment:

[0097] Monitoring environmental parameters of the environment where the circuit is located, and the environmental parameters meet preset conditions; and / or

[0098] The time interval from the last determination of the first response time reaches a preset time interval; and / or

[0099] The smart switch has been used a preset number of times; and / or

[0100] The Smart Switch restarts.

[0101] As mentioned above, the first response time of the electric switch 104 may change as the environment changes. In order to make the response time of the electric switch 104 more accurate, the first response time can be remeasured when the environment changes. Environmental parameters may include: ambient temperature, humidity, etc. It is also possible to periodically remeasure according to a certain usage time interval or number of uses (such as remeasurement after every 100 switches). In addition, if it is considered that the result of one measurement is not accurate enough as the final measurement result, the first response time can be measured each time the smart switch is restarted, and the average of multiple measurements is used as the final first response time value.

[0102] Fig.10 FIG. 1 is a schematic diagram of an intelligent switch circuit in the related art, taking a lamp as an example of a load. Fig.10 As shown, the electric control switch 101 is implemented as a relay, and the switch device 103 is implemented as a MOS tube. The auxiliary circuit 1022 of the switch-connected power-taking circuit 102 also includes a capacitor C. One end of the capacitor C is connected to the other end of the relay and the controller 104 (indirectly). The FB pin of the power-taking chip 1021 is connected to the switch to detect the voltage at the voltage dividing point to control the level of the GATE pin, thereby controlling the on and off of the MOS tube. When the MOS tube is disconnected, electricity is stored through the capacitor C. When the MOS tube is connected, the capacitor C acts as the power output end of the switch-connected power-taking circuit 102 to power the controller. The capacitor C1 connected to the VIN pin in the figure can be used to store electrical energy for the switch-connected power-taking chip, which will not be repeated here.

[0103] Based on the same disclosed concept, the disclosed embodiment also provides a wall smart switch. Since the principles of the problems solved by these wall smart switches are similar to those of the aforementioned smart switch control circuit, the implementation of the wall smart switch can refer to the implementation of the aforementioned circuit, and the repeated parts will not be repeated.

[0104] In an embodiment of the present disclosure, a wall smart switch is provided, comprising: a switch panel, wherein the smart switch control circuit described in any of the above embodiments is arranged inside the wall covered by the switch panel.

[0105] In the case where at least two electric control switches 101 are provided, each electric control switch 101 may be provided with a corresponding wall intelligent switch.

[0106] The embodiments of the present disclosure provide an intelligent switch control circuit and a wall intelligent switch, which enable the electric switch to accurately close the spring at the zero position, which can significantly improve the service life of the product and the stability of the system. This design ensures that the relay switches at the best time, thereby minimizing the possibility of damage and interference.

[0107] Through the description of the above implementation methods, those skilled in the art can clearly understand that the embodiments of the present disclosure can be implemented by hardware, or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.

[0108] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred embodiment, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present disclosure.

[0109] Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description of the embodiment, or can be changed accordingly and located in one or more devices different from the present embodiment. The modules in the above embodiment can be combined into one module, or can be further divided into multiple sub-modules.

[0110] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.

[0111] Obviously, those skilled in the art can make various changes and modifications to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.

Claims

1. An intelligent switch control circuit, characterized in that: include: An electric control switch, a switch connecting a power-taking circuit, a switch device and a controller are arranged between the two connection terminals; The switch connecting the power-taking circuit includes: the switch connecting the power-taking chip and its auxiliary circuit; One end of the electric control switch is connected to one end of the two wiring terminals; the other end of the electric control switch is respectively connected to the corresponding pin of the switch connected to the power-taking chip and one end of the switch device; the other end of the switch device is connected to the other end of the two wiring terminals; the control end of the switch device is connected to the first control pin of the switch connected to the power-taking chip; the control end of the electric control switch and the power output end of the switch connected to the power-taking circuit are respectively connected to the controller; A signal measurement point determined between the other end of the electric control switch and the switch connected to the power-taking chip is connected to a preset pin of the controller; The controller is used for, after receiving an instruction indicating that the electric-controlled switch is to be closed, sending an electric signal for controlling the closing of the electric-controlled switch to a control end of the electric-controlled switch at a first moment; and determining a second moment when the signal value of the signal at the signal measurement point reaches a preset signal value; and determining the time difference between the first moment and the second moment as a first response time of the electric-controlled switch, so as to control the closing and / or disconnecting time of the electric-controlled switch according to the first response time.

2. The circuit according to claim 1, characterized in that The switch is connected to the power chip including a power pin and a voltage division detection pin; The other end of the electric control switch is connected to the power pin of the power-taking chip connected to the switch; the auxiliary circuit includes a first voltage-dividing resistor and a second voltage-dividing resistor connected in series; one end of the first voltage-dividing resistor is respectively connected to the other end of the electric control switch and the power pin of the power-taking chip connected to the switch; the other end of the first voltage-dividing resistor is connected to one end of the second voltage-dividing resistor; the other end of the second voltage-dividing resistor is set to the same potential; the first voltage-dividing point between the first voltage-dividing resistor and the second voltage-dividing resistor is connected to the voltage-dividing detection pin; the first voltage-dividing point is connected to the preset pin of the controller as the signal measurement point; The controller is configured to send an electrical signal for controlling the closing of the electric-controlled switch to the control terminal of the electric-controlled switch at a first moment after receiving an instruction indicating that the electric-controlled switch is to be closed; And determine the second moment when the voltage value at the first voltage dividing point reaches a preset voltage threshold, or the second moment when a signal sent by the voltage dividing detection pin indicating that the voltage at the first voltage dividing point has reached a preset voltage threshold is received; and determine the time difference between the first moment and the second moment as the first response time of the electronically controlled switch.

3. The circuit according to claim 1, characterized in that Also includes: A third voltage-dividing resistor and a fourth voltage-dividing resistor connected in series; One end of the third voltage-dividing resistor is respectively connected to the other end of the electric-controlled switch and the power pin of the power-taking chip connected to the switch; the other end of the third voltage-dividing resistor is connected to one end of the fourth voltage-dividing resistor; the other end of the fourth voltage-dividing resistor is set to the same potential; the second voltage-dividing point between the third voltage-dividing resistor and the fourth voltage-dividing resistor is connected to the preset pin of the controller as the signal measurement point; The controller is configured to send an electrical signal for controlling the closing of the electric-controlled switch to the control terminal of the electric-controlled switch at a first moment after receiving an instruction indicating that the electric-controlled switch is to be closed; And determine a second moment when the voltage value at the second voltage dividing point reaches a preset voltage value; and determine a time difference between the first moment and the second moment as a first response time of the electronically controlled switch.

4. The circuit according to any one of claims 1 to 3, characterized in that: An AC signal is input between the two terminals; The controller is configured to, when receiving an instruction indicating that the electric-controlled switch is to be closed within a first half cycle, determine whether a first time period between the current moment and the moment when the nearest second half cycle arrives is greater than an estimated value of a first response time; if so, extend the first preset time period to send an electrical signal for controlling the closing of the electric-controlled switch to the control end of the electric-controlled switch, so that the closing moment of the electric-controlled switch is within the nearest second half cycle; When receiving an instruction indicating that the electric-controlled switch is to be closed in the second half cycle, determining whether a second time period between the current moment and the moment of the arrival of the nearest first half cycle is not greater than an estimated value of the first response time; if so, extending the second preset time period to send an electrical signal for controlling the closing of the electric-controlled switch to the control end of the electric-controlled switch, so that the closing moment of the electric-controlled switch is in the next second half cycle; Among them, the first half cycle includes a half cycle in the AC signal cycle in which the signal measurement point cannot generate a signal recognized by the controller, and the second half cycle includes the other half cycle in the AC signal cycle except the first half cycle; the first half cycle includes the positive half AC signal cycle or the negative half AC signal cycle.

5. The circuit according to any one of claims 1 to 3, characterized in that: The switch connected to the power-taking chip also includes: an AC signal detection pin and a zero-crossing signal pin; The AC signal detection pin is connected to one end of the electric control switch for receiving the AC signal; the zero-crossing signal pin is connected to the corresponding pin of the controller for outputting the zero-point signal obtained by analyzing the AC signal to the controller; The controller is further configured to, after receiving an instruction indicating that the electric-controlled switch is to be closed, determine a first time difference between a third moment of receiving the instruction and a first zero moment to be determined by the zero-crossing signal pin; and determine a moment of sending an electrical signal to the electric-controlled switch for controlling the closing of the electric-controlled switch based on the first time difference and a first response time of the electric-controlled switch, so as to ensure that the electric-controlled switch is closed at the first zero moment or after the first zero moment with a delay of a preset time.

6. The circuit according to claim 5, characterized in that The controller is configured to send an electrical signal for controlling the closing of the electronically controlled switch to the control terminal of the electronically controlled switch at a fourth moment of the first response time before the first zero point in time, or at a fifth moment of less than a preset time of the first response time before the first zero point in time, when the first time difference is greater than or equal to a first response time of the electronically controlled switch; In the case where the first time difference is less than the first response time of the electronically controlled switch, at a sixth moment of the first response time before a second zero moment, or at a seventh moment less than a preset time of the first response time before the second zero moment, an electric signal for controlling the closing of the electronically controlled switch is sent to the control end of the electronically controlled switch; or at an eighth moment of the first response time before a middle zero moment between the first zero moment and the second zero moment, or at a ninth moment less than a preset time of the first response time before the middle zero moment, an electric signal for controlling the closing of the electronically controlled switch is sent to the control end of the electronically controlled switch; the second zero moment is the next zero moment of the first zero moment.

7. The circuit according to any one of claims 1 to 3, characterized in that: The switch connects the voltage division detection pin of the power taking chip to the corresponding pin of the controller; The controller is further configured to, after receiving an instruction indicating that the electric-controlled switch is to be turned off, determine a second time difference between a tenth time at which the instruction is received and a third zero time to come; The time for sending an electrical signal to the electronically controlled switch for controlling the electronically controlled switch to disconnect is determined based on the second time difference and the second response time of the electronically controlled switch; wherein the third zero point time is determined based on the time when the voltage divider detection pin provides a voltage divider detection signal; and the second response time is determined based on the first response time.

8. The circuit according to claim 7, characterized in that The controller is configured to send an electrical signal to the control end of the electronically controlled switch to control the electronically controlled switch to be disconnected at an eleventh moment of the second response time before the third zero time, or at a twelfth moment less than a preset time of the second response time before the third zero time, when the second time difference is greater than or equal to the second response time of the electronically controlled switch; In the case where the second time difference is less than the second response time of the electronically controlled switch, at the thirteenth moment of the second response time before the fourth zero moment, or at the fourteenth moment less than the preset time of the second response time before the fourth zero moment, an electric signal for controlling the electronically controlled switch to disconnect is sent to the control end of the electronically controlled switch; or at the fifteenth moment of the second response time before the middle zero moment between the third zero moment and the fourth zero moment, or at the sixteenth moment less than the preset time of the second response time before the middle zero moment, an electric signal for controlling the electronically controlled switch to disconnect is sent to the control end of the electronically controlled switch; the fourth zero moment is the zero moment next to the third zero moment.

9. The circuit according to any one of claims 1 to 3, characterized in that: The number of the electronically controlled switches is at least two; one end of the at least two electronically controlled switches is respectively connected to the connection terminal corresponding to the load controlled by each; the other ends of the at least two electronically controlled switches are connected to the corresponding pins of the power-taking chip connected to the switch and one end of the switch device; the control ends of the at least two electronically controlled switches are respectively connected to the controller; the signal measurement point determined between the other ends of the at least two electronically controlled switches and the power-taking chip connected to the switch is connected to the preset pin of the controller; The controller is configured to, when the at least two electrically controlled switches are both in an open state, send an electrical signal for controlling the closing of any electrically controlled switch to a control terminal of the any electrically controlled switch at a first moment after receiving an instruction indicating that the any electrically controlled switch is to be closed; And determine the second moment when the signal value of the signal at the signal measurement point reaches the preset signal value; determine the time difference between the first moment and the second moment as the first response time of any one of the electronically controlled switches, so as to control the closing and / or disconnection time of any one of the electronically controlled switches according to the first response time.

10. The circuit according to claim 9, characterized in that The switch connected to the power-taking chip also includes: an AC signal detection pin and a zero-crossing signal pin; The AC signal detection pin is connected to one end of the at least two electric control switches to receive the AC signal; the zero-crossing signal pin is connected to the corresponding pin of the controller to output the zero-point signal obtained by analyzing the AC signal to the controller; The controller is further configured to, after receiving an instruction indicating closing any one of the at least two electrically controlled switches, determine a first time difference between a third moment of receiving the instruction and a first zero moment to be determined by the zero-crossing signal pin; and determine a moment of sending an electrical signal for controlling the closing of any one of the at least two electrically controlled switches to the any one of the electrically controlled switches based on the first time difference and a first response time of the any one of the electrically controlled switches, so as to ensure that the any one of the electrically controlled switches is closed at the first zero moment or after the first zero moment with a delay of a preset time.

11. The circuit according to claim 9, characterized in that The switch connected to the power-taking chip also includes: an AC signal detection pin and a zero-crossing signal pin; The AC signal detection pin is connected to one end of the at least two electric control switches to receive the AC signal; the zero-crossing signal pin is connected to the corresponding pin of the controller to output the zero-point signal obtained by analyzing the AC signal to the controller; The switch connects the voltage division detection pin of the power taking chip to the corresponding pin of the controller; The controller is further configured to, after receiving an instruction indicating that any one of the at least two electrically controlled switches is to be disconnected, determine a second time difference between a tenth time when the instruction is received and a third zero time to be reached; and determine a time to send an electrical signal to the any one electrically controlled switch to control the disconnection of the any one electrically controlled switch according to the second time difference and a second response time of the any one electrically controlled switch; Wherein, when any of the at least two electrically controlled switches is disconnected, the third zero point is determined by the zero-crossing signal pin; when the at least two electrically controlled switches are both closed, the third zero point is determined based on the time when the voltage divider detection pin provides a voltage divider detection signal; and the second response time is determined based on the first response time.

12. The circuit according to any one of claims 1 to 3, characterized in that: The controller is configured to re-determine the first moment and the second moment when at least one of the following conditions is met, and determine the first response time according to the re-determined first moment and second moment: Monitoring environmental parameters of the environment where the circuit is located, and the environmental parameters satisfy preset conditions; and / or The time interval from the last determination of the first response time reaches a preset time interval; and / or The number of times the intelligent switch is used reaches a preset number of times; and / or The intelligent switch restarts.

13. A wall intelligent switch, characterized in that: include: A switch panel, wherein the wall covered by the switch panel is provided with the intelligent switch control circuit as described in any one of claims 1 to 12.