WO2020211114A1 - Flash switch control system and input flash detection circuit thereof - Google Patents

Flash switch control system and input flash detection circuit thereof Download PDF

Info

Publication number
WO2020211114A1
WO2020211114A1 PCT/CN2019/084484 CN2019084484W WO2020211114A1 WO 2020211114 A1 WO2020211114 A1 WO 2020211114A1 CN 2019084484 W CN2019084484 W CN 2019084484W WO 2020211114 A1 WO2020211114 A1 WO 2020211114A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
module
terminal
resistor
zero
Prior art date
Application number
PCT/CN2019/084484
Other languages
French (fr)
Chinese (zh)
Inventor
孙胜利
魏巍
姜兆宁
刘达平
Original Assignee
青岛亿联客信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201910319585.6A external-priority patent/CN109991535B/en
Priority claimed from CN201920546439.2U external-priority patent/CN210129019U/en
Application filed by 青岛亿联客信息技术有限公司 filed Critical 青岛亿联客信息技术有限公司
Publication of WO2020211114A1 publication Critical patent/WO2020211114A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/327Testing of circuit interrupters, switches or circuit-breakers
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H9/00Details of switching devices, not covered by groups H01H1/00 - H01H7/00
    • H01H9/54Circuit arrangements not adapted to a particular application of the switching device and for which no provision exists elsewhere
    • H01H9/56Circuit arrangements not adapted to a particular application of the switching device and for which no provision exists elsewhere for ensuring operation of the switch at a predetermined point in the ac cycle

Definitions

  • This application relates to the field of smart home technology, and in particular to a flash switch control system and an input flash detection circuit.
  • the flash detection circuit is a circuit used to detect whether the flash switch is in action. It can use an isolated optocoupler device to perform flash detection on the basis of isolation. However, in the flash detection circuit of the prior art, the isolated optocoupler is in the conducting state most of the time, and its conducting current is at least 1 mA, which will generate high system power consumption. In view of this, it is urgent for those skilled in the art to provide a solution to the above technical problems.
  • the purpose of this application is to provide a flash switch control system and its input flash detection circuit, so as to effectively reduce the power consumption of the system and improve the economic benefits of the product.
  • this application discloses an input flicker detection circuit, including a zero-crossing comparison module, an output resistor, a discharge capacitor, an isolation photocoupler, and a switch detection module;
  • the first input terminal of the zero-crossing comparison module serves as the first input terminal of the input flicker detection circuit
  • the second input terminal of the zero-crossing comparison module serves as the second input terminal of the input flicker detection circuit
  • the output terminal of the zero-crossing comparison module is respectively connected to the first terminal of the output resistor and the cathode input terminal of the isolated optocoupler
  • the second terminal of the output resistor is respectively connected to the first terminal of the discharge capacitor
  • the anode input end of the isolated optocoupler is connected
  • the second end of the discharge capacitor is connected to the second input end of the zero-crossing comparison module
  • the input end of the switch detection module is connected to the output end of the isolated optocoupler Connected, the output terminal of the switch detection module is used as the output terminal of the input flicker detection circuit for outputting the on-off detection signal of the isolation optocoupler
  • the zero-crossing comparison module is used for zero-crossing the input signal Detect and provide a discharge circuit for the discharge capacitor when the input signal crosses
  • the conduction phenomenon of the isolated optocoupler indicates that the DC signal has flicker; if the input signal is an AC signal, when the conduction interval of the isolated optocoupler is longer than When the signal period of the AC signal, it indicates that the AC signal has flicker.
  • the switch detection module includes a pull-up resistor and a first power supply
  • the first output terminal of the isolation optocoupler is connected to the first power supply through the pull-up resistor and serves as the output terminal of the switch detection module, and the second output terminal of the isolation optocoupler is grounded.
  • the switch detection module further includes a protection capacitor connected between the first output terminal and the second output terminal of the isolated optocoupler.
  • it further includes an input resistance connected to the first input terminal of the zero-crossing comparison module.
  • it further includes a voltage regulator tube connected between the first input terminal and the second input terminal of the zero-crossing comparison module.
  • the zero-crossing comparison module includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first PMOS tube, a second PMOS tube, a first NMOS tube, a second NMOS tube, and a reference voltage source , Comparator and inverter; the first terminal of the first resistor, the source of the first PMOS tube, the source of the second PMOS tube, and the first power input terminal of the reference voltage source are all Are connected to each other and serve as the first input terminal of the zero-crossing comparison module; the second terminal of the first resistor, the first terminal of the second resistor, and the drain of the first PMOS transistor are all connected to each other; The second terminal of the second resistor, the first terminal of the third resistor, and the non-inverting input terminal of the comparator are all connected to each other; the output terminal of the reference voltage source is connected to the inverting input terminal of the comparator Terminal connection; the second terminal of the third resistor, the first terminal of the fourth resistor,
  • the present application discloses a flash switch control system, including a flash switch, a rectifier module, a voltage regulating module, a control module, a drive module, and any input flash detection circuit as described above;
  • the first end of the flash switch is used to connect to an AC power source, and the second end of the flash switch is respectively connected to the input end of the rectifier module and the input flash detection circuit; the output of the rectifier module The terminal is connected to the input terminal of the voltage regulation module and is used to rectify the alternating current to output direct current; the output terminal of the voltage regulation module is connected to the power supply terminal of the control module and is used to provide the control module with a corresponding operating voltage
  • the power supply end of the drive module is connected to the output end of the rectification module, the output end of the drive module is connected to the electrical equipment for driving the electrical equipment; the input end of the control module is connected to the The output terminal of the input flicker detection circuit is connected, and the output terminal of the control module is connected with the input terminal of the drive module, and is used to determine the flicker according to the on-off detection signal output by the input flicker detection circuit
  • it further includes a filter module, the input end of the filter module is connected to the output end of the rectification module, and the output end of the filter module is connected to the input end of the voltage regulation module.
  • the rectifier module is specifically a bridge rectifier module.
  • control module and the drive module both include a wireless communication unit, and the control module is specifically configured to send a wireless control instruction for state switching to the drive module according to the switching state of the flash switch .
  • the input flicker detection circuit includes a zero-crossing comparison module, an output resistor, a discharge capacitor, an isolation photocoupler, and a switch detection module; the first input terminal of the zero-crossing comparison module is used as the input flicker detection circuit The first input terminal, the second input terminal of the zero-crossing comparison module is used as the second input terminal of the input flicker detection circuit, and the output terminal of the zero-crossing comparison module is connected to the first terminal of the output resistor, The cathode input end of the isolated optocoupler is connected; the second end of the output resistor is connected to the first end of the discharge capacitor and the anode input end of the isolated optocoupler; the second end of the discharge capacitor is connected to The second input terminal of the zero-crossing comparison module is connected; the input terminal of the switch detection module is connected with the output terminal of the isolation optocoupler, and the output terminal of the switch detection module is used as the output of the input flicker detection circuit Terminal, used to output the on-off detection signal of the isolated optocoup
  • the input flicker detection circuit uses a specific connection structure of a zero-crossing comparison module, a discharge capacitor, and an isolated optocoupler, so that the discharge capacitor is only performed when the input signal drops to the reference voltage. Discharge, and use the isolation optocoupler to detect the discharge phenomenon of the discharge capacitor, which can realize the flash detection of the DC or AC input signal according to whether the discharge phenomenon occurs or its periodic law. Since the isolated optocoupler is only in the conducting state during a short discharge, the system power consumption is greatly reduced, and the product competitiveness and economic benefits are effectively improved.
  • the flash switch control system provided by the present application includes the above-mentioned input flash detection circuit, which also has the above-mentioned beneficial effects.
  • FIG. 1 is a schematic structural diagram of an input flicker detection circuit provided by this application in a specific embodiment
  • FIG. 2 is a schematic structural diagram of the input flicker detection circuit provided by this application in another specific embodiment
  • FIG. 3 is a circuit structure diagram of the zero-crossing comparison module provided by this application in a specific embodiment
  • FIG. 4 is a structural block diagram of a flash switch control system provided by this application in a specific embodiment
  • FIG. 5 is a structural block diagram of the flash switch control system provided by this application in another specific embodiment.
  • the core of this application is to provide a flash switch control system and its input flash detection circuit, so as to effectively reduce the power consumption of the system and improve the economic benefits of the product.
  • the flash switch can be a circuit switch that only causes the circuit to flash off for an instant after being touched, and then resumes.
  • a switching action of the flash switch will cause two switching of the circuit on and off states: when the flash switch is touched, the circuit switches from the on state to the off state, causing the voltage to drop or power off;
  • the flash switch is released at the end of the press, the circuit is switched to the on state to restore the voltage recovery.
  • the flash switch can be equipped with an automatic timing rebound structure. After the circuit is disconnected for a preset fixed time, The circuit is automatically restored and switched to the conducting state. Since the entire process of disconnecting and conducting the circuit takes a short time, the flash switch will cause the circuit to flash once every time it is touched.
  • the embodiment of the application discloses an input flicker detection circuit.
  • the circuit includes a zero-crossing comparison module, an output resistance Ro, a discharge capacitor Ci, an isolation optocoupler OC, and a switch detection module;
  • the first input terminal of the zero-crossing comparison module serves as the first input terminal of the input flicker detection circuit
  • the second input terminal of the zero-crossing comparison module serves as the second input terminal of the input flicker detection circuit
  • the output terminals of the zero-crossing comparison module are respectively Connected to the first end of the output resistor Ro and the cathode input end of the isolated optocoupler OC
  • the second end of the output resistor Ro is connected to the first end of the discharge capacitor Ci and the anode input end of the isolated optocoupler OC
  • the second terminal is connected with the second input terminal of the zero-crossing comparison module
  • the input terminal of the switch detection module is connected with the output terminal of the isolation optocoupler OC
  • the output terminal of the switch detection module is used as the output terminal of the input flash detection circuit for output Isolate the on-off detection signal of the optocoupler OC
  • the zero-crossing comparison module is used to detect the zero-crossing of the input signal and provide a discharge circuit for the discharge capacitor
  • the conduction phenomenon of the isolated optocoupler OC indicates that the DC signal has flickered; if the input signal Vin is an AC signal, when the conduction interval of the isolated optocoupler OC is longer than the signal period of the AC signal , It indicates that the AC signal has flickered.
  • the input flicker detection circuit specifically uses an isolated optocoupler OC to detect the discharge process of the discharge capacitor Ci, so as to realize the detection of the input signal flicker phenomenon.
  • the input signal Vin can be specifically an AC signal, such as a commercial power supply
  • the first input terminal of the input flicker detection circuit can be connected to the live wire
  • the second input terminal of the input flicker detection circuit can be connected to the neutral line
  • the input signal Vin can also be specifically a DC signal, and the first input terminal of the input flicker detection circuit can be connected to the positive phase terminal of the DC signal, and the second input terminal of the input flicker detection circuit can be grounded.
  • the zero-crossing comparison module can specifically use the built-in reference voltage source Ref and the comparator U to detect the zero-crossing of the input signal Vin, and can switch the conduction state of the internal circuit when the input signal Vin crosses zero, so as to provide the discharge capacitor Ci The discharge circuit, and then realize the flicker detection of the input signal Vin.
  • the input signal Vin input to the flicker detection circuit is an AC signal
  • the discharge capacitor Ci is in a charged state.
  • the light-emitting device in the isolated optocoupler OC (the light-emitting diode shown in Figure 1) is not turned on, so the photosensitive switch ( The photosensitive triode shown in Figure 1 is also in the off state.
  • the conduction structure of the internal circuit of the zero crossing comparison module is switched to provide a discharge circuit for the discharge capacitor Ci; at this time, since the voltage across the capacitor cannot change suddenly, the voltage at point B will Above the voltage at point A, the discharge capacitor Ci will discharge along the discharge circuit provided by the zero-crossing comparison module, making the isolated optocoupler OC conduct, and the conduction time of the isolated optocoupler OC depends on the duration of the discharge current of the discharge capacitor Ci duration.
  • the discharge of the discharge capacitor Ci occurs only once in one AC cycle, that is, when the input signal Vin drops to a certain degree, such as zero crossing. Therefore, correspondingly, The isolated optocoupler OC is only turned on once. Therefore, in the normal state, that is, no flicker occurs, the interval between two adjacent conductions of the isolated optocoupler OC is equal to the signal period of the AC input signal Vin.
  • the AC input signal Vin used is commercial power, and its signal period is 20 ms.
  • the input signal Vin has flickered, it will affect the continuity of the input signal Vin, and the conduction interval of the isolated optocoupler OC will inevitably be longer than the original fixed signal period. From this, it can be determined that the input signal Vin has flickered. Off.
  • the input signal Vin of the input flicker detection circuit is a DC signal
  • the voltage value of the input signal Vin is higher, and the voltage at point B is always not higher than the voltage at point A, so the isolated optocoupler OC is in Off state.
  • the discharge capacitor Ci will undergo a short discharge process during the flicker, and the isolated optocoupler OC will also have a short conduction phenomenon. Therefore, for the DC input signal Vin, when the conduction phenomenon of the isolation optocoupler OC is detected, it can be determined that the input signal Vin has flicker.
  • the input flicker detection circuit includes a zero-crossing comparison module, an output resistance Ro, a discharge capacitor Ci, an isolation photocoupler OC, and a switch detection module; the first input terminal of the zero-crossing comparison module is used as the first input of the input flicker detection circuit One input terminal, the second input terminal of the zero-crossing comparison module is used as the second input terminal of the input flicker detection circuit, and the output terminal of the zero-crossing comparison module is respectively connected with the first terminal of the output resistance Ro and the cathode input terminal of the isolated optocoupler OC Connection; the second end of the output resistor Ro is connected to the first end of the discharge capacitor Ci and the anode input end of the isolation optocoupler OC; the second end of the discharge capacitor Ci is connected to the second input end of the zero-crossing comparison module; switch detection The input end of the module is connected to the output end of the isolated optocoupler OC, and the output end of the switch detection module is used as the output end of the input flash detection circuit to output the on
  • the input flicker detection circuit utilizes the specific connection structure of the zero-crossing comparison module, the discharge capacitor, and the isolation optocoupler, so that the discharge capacitor is discharged only when the input signal drops to the reference voltage, and the isolation optocoupler is used
  • the discharge phenomenon of the discharge capacitor is detected, so that the flicker detection of the DC or AC input signal can be realized according to whether the discharge phenomenon occurs or its periodic law. Since the isolated optocoupler is only in the conducting state during a short discharge, the system power consumption is greatly reduced, and the product competitiveness and economic benefits are effectively improved.
  • FIG. 2 is a structural block diagram of the input flicker detection circuit provided by this application in another specific embodiment.
  • the switch detection module in this embodiment includes a pull-up resistor Rp and a first power supply Vcc; the first output terminal of the isolated optocoupler OC passes through the upper
  • the pull-up resistor Rp is connected to the first power supply Vcc and serves as the output terminal of the switch detection module, and the second output terminal of the isolation optocoupler OC is grounded.
  • the output of the switch detection module shown in Figure 2 is high due to the action of the pull-up resistor Rp; when the isolated optocoupler OC is turned on, the output of the switch detection module It is low level due to the grounding effect of the isolated optocoupler OC. Since the turn-on duration of the isolated optocoupler OC is very short relative to the turn-off duration, the low level corresponding to the turn-on state is reflected in the waveform as a negative pulse.
  • the switch detection module in this embodiment further includes a protection connected between the first output terminal and the second output terminal of the isolated optocoupler OC Capacitance Cs.
  • the input flicker detection circuit in this embodiment further includes an input resistor Ri connected to the first input terminal of the zero-crossing comparison module.
  • an input resistor Ri connected to the first input terminal of the zero-crossing comparison module.
  • the input flicker detection circuit in this embodiment further includes a circuit connected between the first input terminal and the second input terminal of the zero-crossing comparison module The voltage regulator tube D.
  • a voltage regulator tube D can be set to protect the comparator U.
  • the comparator U and the reference voltage source Ref can be specifically selected related packaged integrated chips.
  • the capacitance value of the discharge capacitor Ci is 56 nF; the resistance value of the output resistor Ro is 1.5 k ⁇ .
  • the discharge current and the discharge duration can be adjusted reasonably.
  • the rapid completion of the discharge process is beneficial to improve the detection speed and accuracy.
  • an embodiment of the present application discloses a circuit structure of a zero-crossing comparison module.
  • the zero-crossing comparison module includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first PMOS tube P1, a second PMOS tube P2, a first NMOS tube N1, and a second NMOS tube N2 , Reference voltage source Ref, comparator U and inverter;
  • the first end of the first resistor R1, the source of the first PMOS transistor P1, the source of the second PMOS transistor P2, and the first power input end of the reference voltage source Ref are all connected to each other, and serve as the first of the zero-crossing comparison module.
  • the reference voltage source Ref is used to output the reference voltage to the inverting input terminal of the comparator U, and the comparator U outputs the comparison result signal according to the voltage relationship between the positive and inverting input terminals.
  • the comparator U outputs a high level.
  • the second PMOS transistor P2 is turned on and the second NMOS transistor N2 is turned off.
  • the output resistance Ro and the discharging capacitor Ci are connected to the circuit through the second PMOS tube P2, and the discharging capacitor Ci is in a charged state.
  • the output of the comparator U is inverted and becomes a low level.
  • the second PMOS tube P2 is turned off and the second NMOS tube N2 is turned on, that is, the switching changes the internal circuit conduction structure of the zero-crossing comparison module, so that the second PMOS tube P2 cooperates with the isolated optocoupler OC in the subsequent circuit as a discharge capacitor Ci forms a discharge circuit, and then turns on the isolated optocoupler OC flowing through the discharge current.
  • Figure 4 is a structural block diagram of the flash switch control system provided by this embodiment in a specific implementation, including flash switch 1, rectifier module 2, voltage regulating module 3, control module 4, and drive module 5 and any input flicker detection circuit 6 as described above;
  • the first end of the flash switch 1 is used to connect to the AC power source, the second end of the flash switch 1 is connected to the input end of the rectifier module 2 and the input flash detection circuit 6 respectively; the output end of the rectifier module 2 is connected to the voltage regulating module
  • the input end of 3 is connected to rectify the alternating current to output direct current; the output end of the voltage regulating module 3 is connected to the power supply end of the control module 4 to provide the corresponding operating voltage for the control module 4;
  • the power supply end of the drive module 5 is connected to the rectifier
  • the output end of the module 2 is connected, the output end of the drive module 5 is connected to the electrical equipment, and is used to drive the electrical equipment;
  • the input end of the control module 4 is connected to the output end of the input flash detection circuit 6, and the output end of the control module 4 It is connected to the input end of the driving module 5 and is used to determine the switching state of the flash switch 1 according to the on-off detection signal output by the input flash detection circuit 6, and control the electrical equipment to switch the
  • the AC power supply usually uses mains power, and the flash switch 1 is connected to the mains power by connecting with the live wire.
  • the alternating current from the mains is rectified and regulated sequentially, and then used to supply the control module 4 and the drive module 5 to work.
  • the control module 4 is used to receive the on-off detection signal of the isolated optocoupler OC output by the input flicker detection circuit 6, so as to judge the action of the flash switch 1 according to the conduction of the isolated optocoupler OC, and then to The device performs state switching control. Since the flash switch 1 only flashes during its action and does not continuously cut off the power supply, the subsequent circuits such as the control module 4 can still supply power and work normally.
  • the control module 4 can specifically determine that the input signal to the flicker detection circuit 6 is caused by the flicker switch 1 when the conduction interval of the isolated optocoupler OC is longer than 20 ms. Flashing occurs due to the action, thereby controlling the electrical equipment such as smart lights to switch the state, for example, the electrical equipment can be switched from the on state to the off state, or from the off state to the on state, or by Switch from high power state to low power state, etc.
  • the control module 4 may specifically control the electrical equipment to perform state switching by sending corresponding instructions to the driving module 4.
  • the flash switch control system specifically adopts the input flash detection circuit described above, and uses a specific connection structure of a comparator, a discharge capacitor, and an isolated optocoupler, so that the discharge capacitor only occurs when the input signal drops to the reference voltage. Discharge, and use the isolated optocoupler to detect the discharge phenomenon of the discharge capacitor, so that the periodic law of the discharge phenomenon can be used to detect whether the flash switch is operating, and then the electrical equipment is controlled based on the switching state of the flash switch. Since the isolated optocoupler is only in the conducting state during a short discharge, the system power consumption is greatly reduced, and the product competitiveness and economic benefits are effectively improved.
  • FIG. 5 is a structural block diagram of the flash switch control system provided by this application in another specific embodiment.
  • the flash switch control system provided in this embodiment further includes a filter module 7, and the input end of the filter module 7 is connected to the output end of the rectifier module 2. , The output terminal of the filter module 7 is connected to the input terminal of the voltage regulation module 3.
  • a filter module 7 can also be provided to filter the direct current output from the rectifier module 2.
  • the rectifier module 2 is specifically a bridge rectifier module.
  • the rectifier module 2 is specifically a bridge rectifier module.
  • those skilled in the art can also choose other types of rectifier circuit structures according to actual usage conditions.
  • both the control module 4 and the drive module 5 include a wireless communication unit, and the control module 4 is specifically configured to send a wireless control of state switching to the drive module according to the switching state of the flash switch 1. instruction.
  • control module 4 may also specifically perform wireless communication with a matching smart electrical device through a wireless communication unit, so as to complete the state switching control of the electrical device.
  • the wireless communication unit may specifically include but is not limited to a WIFI communication unit or a Bluetooth communication unit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

An input flash detection circuit and a flash switch control system, the input flash detection circuit comprising a zero-crossing comparison module, an output resistor, a discharge capacitor, an isolation optocoupler and a switch detection module; an output end of the zero-crossing comparison module is connected to a first end of the output resistor and a cathode input end of the isolation optocoupler respectively; a second end of the output resistor is connected to a first end of the discharge capacitor and an anode input end of the isolation optocoupler respectively; a second end of the discharge capacitor is connected to a second input end of the zero-crossing comparison module; and an input end of the switch detection module is connected to an output end of the isolation optocoupler and is used for outputting an on-off detection signal of the isolation optocoupler; the connection of the isolation optocoupler indicates that a direct current input signal flashes off; and the connection interval time of the isolation optocoupler being greater than a signal period of an alternating current input signal indicates that the alternating current input signal flashes off. The present application effectively reduces the power consumption of a system, and increases product competitiveness and the economic benefits.

Description

一种闪断开关控制系统及其输入闪断检测电路A flash switch control system and its input flash detection circuit
本申请要求于2019年4月19日提交中国专利局、申请号为201910319585.6、专利名称为“一种闪断开关控制系统及其输入闪断检测电路”的中国专利申请的优先权,本申请还要求于2019年4月19日提交中国专利局、申请号为201920546439.2、专利名称为“一种闪断开关控制系统及其输入闪断检测电路”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Chinese Patent Office on April 19, 2019, the application number is 201910319585.6, and the patent title is "a flash switch control system and its input flash detection circuit". This application also Priority is required to file a Chinese patent application with the application number 2019205464392, patent titled "A flash switch control system and its input flash detection circuit" on April 19, 2019, to the Chinese Patent Office, the entire content of which is incorporated by reference Incorporated in this application.
技术领域Technical field
本申请涉及智能家居技术领域,特别涉及一种闪断开关控制系统及其输入闪断检测电路。This application relates to the field of smart home technology, and in particular to a flash switch control system and an input flash detection circuit.
背景技术Background technique
现有的传统开关如家用墙壁开关等在进行开关动作后往往只进行一次开关状态切换,即该类开关若在导通状态下被触按后,将切换并保持关断状态,直至下一次被触按。如此,传统开关将无法适用于智能家居中的智能控制方式。这是因为,在现代智能家居技术中,为方便用于使用,多采用WIFI等远程遥控方式来智能启动用电设备,而传统开关在关断后将切断整个电路的供电电源,使得WIFI模块自身无法上电工作,因而也无法启动用电设备。由此,需要利用一种与传统开关工作模式不同的闪断开关来实现现代智能家居控制。与传统开关不同,闪断开关被触按后仅仅会瞬间断电或者电压跌落,然后会令电压再恢复到原态,如此,用户触按闪断开关并未在线路上切断用电设备的电源,WIFI模块仍可进行工作,当检测到闪断开关被触按后即可通过远程遥控指令控制用电设备启动或者关闭。闪断检测电路是用于检测闪断开关是否发生动作的电路,其可利用隔离光耦器件在实现隔离的基础上进行闪断检测。然而,现有技术的闪断检测电路中,隔离光耦在大部分时间内是处于导通状态的,其导通电流至少为1mA,因此会产生较高的系统功耗。鉴于此,提供一种解决上述技术问题的方案是本领域技术人员所亟待关注的。Existing traditional switches, such as household wall switches, often only switch the switch state once after the switching action, that is, if this type of switch is touched in the on state, it will switch and remain off until the next time it is touched. Touch. As such, traditional switches will not be suitable for smart control methods in smart homes. This is because in modern smart home technology, in order to facilitate use, remote control methods such as WIFI are often used to intelligently start the electrical equipment, and the traditional switch will cut off the power supply of the entire circuit after it is turned off, making the WIFI module itself It cannot be powered on, and therefore cannot start the powered device. Therefore, it is necessary to use a flash switch with a different working mode from the traditional switch to realize modern smart home control. Unlike traditional switches, when the flash switch is touched, the power will only be cut off or the voltage will drop instantly, and then the voltage will be restored to its original state. In this way, the user touches the flash switch without cutting off the power of the electrical equipment on the line. The WIFI module can still work. When the flash switch is detected to be touched, it can start or shut down the electrical equipment through remote control commands. The flash detection circuit is a circuit used to detect whether the flash switch is in action. It can use an isolated optocoupler device to perform flash detection on the basis of isolation. However, in the flash detection circuit of the prior art, the isolated optocoupler is in the conducting state most of the time, and its conducting current is at least 1 mA, which will generate high system power consumption. In view of this, it is urgent for those skilled in the art to provide a solution to the above technical problems.
发明内容Summary of the invention
本申请的目的在于提供一种闪断开关控制系统及其输入闪断检测电路,以便有效地降低系统功耗,提高产品的经济效益。The purpose of this application is to provide a flash switch control system and its input flash detection circuit, so as to effectively reduce the power consumption of the system and improve the economic benefits of the product.
为解决上述技术问题,第一方面,本申请公开了一种输入闪断检测电路,包括过零比较模块、输出电阻、放电电容、隔离光耦和开关检测模块;In order to solve the above technical problems, in the first aspect, this application discloses an input flicker detection circuit, including a zero-crossing comparison module, an output resistor, a discharge capacitor, an isolation photocoupler, and a switch detection module;
所述过零比较模块的第一输入端作为所述输入闪断检测电路的第一输入端,所述过零比较模块的第二输入端作为所述输入闪断检测电路的第二输入端,所述过零比较模块的输出端分别与所述输出电阻的第一端、所述隔离光耦的阴极输入端连接;所述输出电阻的第二端分别与所述放电电容的第一端、所述隔离光耦的阳极输入端连接;所述放电电容的第二端与所述过零比较模块的第二输入端连接;所述开关检测模块的输入端与所述隔离光耦的输出端连接,所述开关检测模块的输出端作为所述输入闪断检测电路的输出端,用于输出所述隔离光耦的通断检测信号;所述过零比较模块用于对输入信号进行过零检测,并在所述输入信号过零时为所述放电电容提供放电回路;The first input terminal of the zero-crossing comparison module serves as the first input terminal of the input flicker detection circuit, and the second input terminal of the zero-crossing comparison module serves as the second input terminal of the input flicker detection circuit, The output terminal of the zero-crossing comparison module is respectively connected to the first terminal of the output resistor and the cathode input terminal of the isolated optocoupler; the second terminal of the output resistor is respectively connected to the first terminal of the discharge capacitor, The anode input end of the isolated optocoupler is connected; the second end of the discharge capacitor is connected to the second input end of the zero-crossing comparison module; the input end of the switch detection module is connected to the output end of the isolated optocoupler Connected, the output terminal of the switch detection module is used as the output terminal of the input flicker detection circuit for outputting the on-off detection signal of the isolation optocoupler; the zero-crossing comparison module is used for zero-crossing the input signal Detect and provide a discharge circuit for the discharge capacitor when the input signal crosses zero;
若所述输入信号为直流信号,则所述隔离光耦的导通现象标志所述直流信号发生闪断;若所述输入信号为交流信号,则当所述隔离光耦的导通间隔时间大于所述交流信号的信号周期时,标志所述交流信号发生闪断。If the input signal is a DC signal, the conduction phenomenon of the isolated optocoupler indicates that the DC signal has flicker; if the input signal is an AC signal, when the conduction interval of the isolated optocoupler is longer than When the signal period of the AC signal, it indicates that the AC signal has flicker.
可选地,所述开关检测模块包括上拉电阻和第一电源;Optionally, the switch detection module includes a pull-up resistor and a first power supply;
所述隔离光耦的第一输出端通过所述上拉电阻与所述第一电源连接,并作为所述开关检测模块的输出端,所述隔离光耦的第二输出端接地。The first output terminal of the isolation optocoupler is connected to the first power supply through the pull-up resistor and serves as the output terminal of the switch detection module, and the second output terminal of the isolation optocoupler is grounded.
可选地,所述开关检测模块还包括连接在所述隔离光耦的第一输出端和第二输出端之间的保护电容。Optionally, the switch detection module further includes a protection capacitor connected between the first output terminal and the second output terminal of the isolated optocoupler.
可选地,还包括与所述过零比较模块的第一输入端连接的输入电阻。Optionally, it further includes an input resistance connected to the first input terminal of the zero-crossing comparison module.
可选地,还包括连接在所述过零比较模块的第一输入端和第二输入端之间的稳压管。Optionally, it further includes a voltage regulator tube connected between the first input terminal and the second input terminal of the zero-crossing comparison module.
可选地,所述过零比较模块包括第一电阻、第二电阻、第三电阻、第四电阻、第一PMOS管、第二PMOS管、第一NMOS管、第二NMOS管、 基准电压源、比较器和反相器;所述第一电阻的第一端、所述第一PMOS管的源极、所述第二PMOS管的源极、所述基准电压源的第一电源输入端均相互连接,并作为所述过零比较模块的第一输入端;所述第一电阻的第二端、所述第二电阻的第一端、所述第一PMOS管的漏极均相互连接;所述第二电阻的第二端、所述第三电阻的第一端、所述比较器的正相输入端均相互连接;所述基准电压源的输出端与所述比较器的反相输入端连接;所述第三电阻的第二端、所述第四电阻的第一端、所述第一NMOS管的漏极均相互连接;所述第一PMOS管的栅极、所述第一NMOS管的栅极、所述比较器的输出端、所述反相器的输入端均相互连接;所述反相器的输出端、所述第二PMOS管的栅极、所述第二NMOS管的栅极均相互连接;所述第二PMOS管的漏极与所述第二NMOS管的漏极连接,并作为所述过零比较模块的输出端;所述基准电压源的第二电源输入端、所述第四电阻的第二端、所述第一NMOS管的源极、所述第二NMOS管的源极均相互连接,并作为所述过零比较模块的第二输入端。Optionally, the zero-crossing comparison module includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first PMOS tube, a second PMOS tube, a first NMOS tube, a second NMOS tube, and a reference voltage source , Comparator and inverter; the first terminal of the first resistor, the source of the first PMOS tube, the source of the second PMOS tube, and the first power input terminal of the reference voltage source are all Are connected to each other and serve as the first input terminal of the zero-crossing comparison module; the second terminal of the first resistor, the first terminal of the second resistor, and the drain of the first PMOS transistor are all connected to each other; The second terminal of the second resistor, the first terminal of the third resistor, and the non-inverting input terminal of the comparator are all connected to each other; the output terminal of the reference voltage source is connected to the inverting input terminal of the comparator Terminal connection; the second terminal of the third resistor, the first terminal of the fourth resistor, and the drain of the first NMOS tube are all connected to each other; the gate of the first PMOS tube, the first terminal of the first The gate of the NMOS tube, the output terminal of the comparator, and the input terminal of the inverter are all connected to each other; the output terminal of the inverter, the gate of the second PMOS tube, the second NMOS The gates of the tubes are all connected to each other; the drain of the second PMOS tube is connected to the drain of the second NMOS tube, and serves as the output terminal of the zero-crossing comparison module; the second power supply of the reference voltage source The input terminal, the second terminal of the fourth resistor, the source of the first NMOS transistor, and the source of the second NMOS transistor are all connected to each other and serve as the second input terminal of the zero-crossing comparison module.
第二方面,本申请公开了一种闪断开关控制系统,包括闪断开关、整流模块、调压模块、控制模块、驱动模块以及如上所述的任一种输入闪断检测电路;In the second aspect, the present application discloses a flash switch control system, including a flash switch, a rectifier module, a voltage regulating module, a control module, a drive module, and any input flash detection circuit as described above;
所述闪断开关的第一端用于与交流电源连接,所述闪断开关的第二端分别与所述整流模块和所述输入闪断检测电路的输入端连接;所述整流模块的输出端与所述调压模块的输入端连接,用于将交流电整流输出直流电;所述调压模块的输出端与所述控制模块的供电端连接,用于为所述控制模块提供对应的工作电压;所述驱动模块的供电端与所述整流模块的输出端连接,所述驱动模块的输出端与用电设备连接,用于驱动所述用电设备;所述控制模块的输入端与所述输入闪断检测电路的输出端连接,所述控制模块的输出端与所述驱动模块的输入端连接,用于根据所述输入闪断检测电路输出的所述通断检测信号确定所述闪断开关的切换状态,并根据所述切换状态控制用电设备进行状态切换。The first end of the flash switch is used to connect to an AC power source, and the second end of the flash switch is respectively connected to the input end of the rectifier module and the input flash detection circuit; the output of the rectifier module The terminal is connected to the input terminal of the voltage regulation module and is used to rectify the alternating current to output direct current; the output terminal of the voltage regulation module is connected to the power supply terminal of the control module and is used to provide the control module with a corresponding operating voltage The power supply end of the drive module is connected to the output end of the rectification module, the output end of the drive module is connected to the electrical equipment for driving the electrical equipment; the input end of the control module is connected to the The output terminal of the input flicker detection circuit is connected, and the output terminal of the control module is connected with the input terminal of the drive module, and is used to determine the flicker according to the on-off detection signal output by the input flicker detection circuit The switching state of the switch, and controlling the electrical equipment to switch the state according to the switching state.
可选地,还包括滤波模块,所述滤波模块的输入端与所述整流模块的输出端连接,所述滤波模块的输出端与所述调压模块的输入端连接。Optionally, it further includes a filter module, the input end of the filter module is connected to the output end of the rectification module, and the output end of the filter module is connected to the input end of the voltage regulation module.
可选地,所述整流模块具体为桥式整流模块。Optionally, the rectifier module is specifically a bridge rectifier module.
可选地,所述控制模块和所述驱动模块均包括无线通信单元,所述控制模块具体用于根据所述闪断开关的所述切换状态,向所述驱动模块发送状态切换的无线控制指令。Optionally, the control module and the drive module both include a wireless communication unit, and the control module is specifically configured to send a wireless control instruction for state switching to the drive module according to the switching state of the flash switch .
本申请所提供的输入闪断检测电路包括过零比较模块、输出电阻、放电电容、隔离光耦和开关检测模块;所述过零比较模块的第一输入端作为所述输入闪断检测电路的第一输入端,所述过零比较模块的第二输入端作为所述输入闪断检测电路的第二输入端,所述过零比较模块的输出端分别与所述输出电阻的第一端、所述隔离光耦的阴极输入端连接;所述输出电阻的第二端分别与所述放电电容的第一端、所述隔离光耦的阳极输入端连接;所述放电电容的第二端与所述过零比较模块的第二输入端连接;所述开关检测模块的输入端与所述隔离光耦的输出端连接,所述开关检测模块的输出端作为所述输入闪断检测电路的输出端,用于输出所述隔离光耦的通断检测信号;所述过零比较模块用于对输入信号进行过零检测,并在所述输入信号过零时为所述放电电容提供放电回路;若所述输入信号为直流信号,则所述隔离光耦的导通现象标志所述直流信号发生闪断;若所述输入信号为交流信号,则当所述隔离光耦的导通间隔时间大于所述交流信号的信号周期时,标志所述交流信号发生闪断。The input flicker detection circuit provided by this application includes a zero-crossing comparison module, an output resistor, a discharge capacitor, an isolation photocoupler, and a switch detection module; the first input terminal of the zero-crossing comparison module is used as the input flicker detection circuit The first input terminal, the second input terminal of the zero-crossing comparison module is used as the second input terminal of the input flicker detection circuit, and the output terminal of the zero-crossing comparison module is connected to the first terminal of the output resistor, The cathode input end of the isolated optocoupler is connected; the second end of the output resistor is connected to the first end of the discharge capacitor and the anode input end of the isolated optocoupler; the second end of the discharge capacitor is connected to The second input terminal of the zero-crossing comparison module is connected; the input terminal of the switch detection module is connected with the output terminal of the isolation optocoupler, and the output terminal of the switch detection module is used as the output of the input flicker detection circuit Terminal, used to output the on-off detection signal of the isolated optocoupler; the zero-crossing comparison module is used to detect the zero-crossing of the input signal, and provide a discharge circuit for the discharge capacitor when the input signal zero-crosses; If the input signal is a DC signal, the conduction phenomenon of the isolated optocoupler indicates that the DC signal has flicker; if the input signal is an AC signal, when the conduction interval of the isolated optocoupler is longer than When the signal period of the AC signal, it indicates that the AC signal has flicker.
可见,相比于现有技术,本申请所提供的输入闪断检测电路,利用过零比较模块、放电电容与隔离光耦的特定连接结构,使得放电电容仅在输入信号降低至基准电压瞬间进行放电,并利用隔离光耦对放电电容的放电现象进行检测,由此可根据放电现象是否产生或者其周期规律分别实现对直流或者交流输入信号的闪断检测。由于隔离光耦仅在短暂的放电过程中处于导通状态,因此极大地降低了系统功耗,有效地提高了产品竞争力和经济效益。本申请所提供的闪断开关控制系统包括上述输入闪断检测电路,同样具有上述有益效果。It can be seen that, compared with the prior art, the input flicker detection circuit provided by this application uses a specific connection structure of a zero-crossing comparison module, a discharge capacitor, and an isolated optocoupler, so that the discharge capacitor is only performed when the input signal drops to the reference voltage. Discharge, and use the isolation optocoupler to detect the discharge phenomenon of the discharge capacitor, which can realize the flash detection of the DC or AC input signal according to whether the discharge phenomenon occurs or its periodic law. Since the isolated optocoupler is only in the conducting state during a short discharge, the system power consumption is greatly reduced, and the product competitiveness and economic benefits are effectively improved. The flash switch control system provided by the present application includes the above-mentioned input flash detection circuit, which also has the above-mentioned beneficial effects.
附图说明Description of the drawings
为了更清楚地说明现有技术和本申请实施例中的技术方案,下面将对 现有技术和本申请实施例描述中需要使用的附图作简要的介绍。当然,下面有关本申请实施例的附图描述的仅仅是本申请中的一部分实施例,对于本领域普通技术人员来说,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图,所获得的其他附图也属于本申请的保护范围。In order to more clearly explain the prior art and the technical solutions in the embodiments of the present application, the following will briefly introduce the prior art and the drawings that need to be used in the description of the embodiments of the present application. Of course, the following drawings related to the embodiments of the present application describe only a part of the embodiments of the present application. For those of ordinary skill in the art, without creative work, other examples can be obtained according to the provided drawings. The drawings and other drawings obtained also belong to the protection scope of this application.
图1为本申请所提供的输入闪断检测电路在一具体实施方式中的结构示意图;FIG. 1 is a schematic structural diagram of an input flicker detection circuit provided by this application in a specific embodiment;
图2为本申请所提供的输入闪断检测电路在另一具体实施方式中的结构示意图;2 is a schematic structural diagram of the input flicker detection circuit provided by this application in another specific embodiment;
图3为本申请所提供的过零比较模块在一具体实施方式中的电路结构图;FIG. 3 is a circuit structure diagram of the zero-crossing comparison module provided by this application in a specific embodiment;
图4为本申请所提供的闪断开关控制系统在一具体实施方式中的结构框图;4 is a structural block diagram of a flash switch control system provided by this application in a specific embodiment;
图5为本申请所提供的闪断开关控制系统在另一具体实施方式中的结构框图。FIG. 5 is a structural block diagram of the flash switch control system provided by this application in another specific embodiment.
具体实施方式detailed description
本申请的核心在于提供一种闪断开关控制系统及其输入闪断检测电路,以便有效地降低系统功耗,提高产品的经济效益。The core of this application is to provide a flash switch control system and its input flash detection circuit, so as to effectively reduce the power consumption of the system and improve the economic benefits of the product.
为了对本申请实施例中的技术方案进行更加清楚、完整地描述,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行介绍。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to describe the technical solutions in the embodiments of the present application more clearly and completely, the technical solutions in the embodiments of the present application will be introduced below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
如前所述,闪断开关可以为在被触按后仅令电路发生瞬间闪断、而后又恢复的电路开关。具体来说,闪断开关进行一次开关动作将引发电路通断状态的两次切换:在闪断开关被触按时,电路由导通状态切换为关断状态,令电压跌落或者断电;在触按结束即闪断开关被松开时,电路切换为导通状态,令电压回升恢复,或者,闪断开关内部可设置有自动定时回弹 结构,在电路断开时间达到预设固定时长后,自动将电路恢复切换为导通状态。由于电路断开又导通的整个过程时间较短,因此,闪断开关在每次被触按后将令电路发生一次闪断。As mentioned above, the flash switch can be a circuit switch that only causes the circuit to flash off for an instant after being touched, and then resumes. Specifically, a switching action of the flash switch will cause two switching of the circuit on and off states: when the flash switch is touched, the circuit switches from the on state to the off state, causing the voltage to drop or power off; When the flash switch is released at the end of the press, the circuit is switched to the on state to restore the voltage recovery. Alternatively, the flash switch can be equipped with an automatic timing rebound structure. After the circuit is disconnected for a preset fixed time, The circuit is automatically restored and switched to the conducting state. Since the entire process of disconnecting and conducting the circuit takes a short time, the flash switch will cause the circuit to flash once every time it is touched.
本申请实施例公开了一种输入闪断检测电路,参照图1所示,该电路包括过零比较模块、输出电阻Ro、放电电容Ci、隔离光耦OC和开关检测模块;The embodiment of the application discloses an input flicker detection circuit. As shown in FIG. 1, the circuit includes a zero-crossing comparison module, an output resistance Ro, a discharge capacitor Ci, an isolation optocoupler OC, and a switch detection module;
过零比较模块的第一输入端作为输入闪断检测电路的第一输入端,过零比较模块的第二输入端作为输入闪断检测电路的第二输入端,过零比较模块的输出端分别与输出电阻Ro的第一端、隔离光耦OC的阴极输入端连接;输出电阻Ro的第二端分别与放电电容Ci的第一端、隔离光耦OC的阳极输入端连接;放电电容Ci的第二端与过零比较模块的第二输入端连接;开关检测模块的输入端与隔离光耦OC的输出端连接,开关检测模块的输出端作为输入闪断检测电路的输出端,用于输出隔离光耦OC的通断检测信号;过零比较模块用于对输入信号进行过零检测,并在输入信号过零时为放电电容Ci提供放电回路;The first input terminal of the zero-crossing comparison module serves as the first input terminal of the input flicker detection circuit, the second input terminal of the zero-crossing comparison module serves as the second input terminal of the input flicker detection circuit, and the output terminals of the zero-crossing comparison module are respectively Connected to the first end of the output resistor Ro and the cathode input end of the isolated optocoupler OC; the second end of the output resistor Ro is connected to the first end of the discharge capacitor Ci and the anode input end of the isolated optocoupler OC; The second terminal is connected with the second input terminal of the zero-crossing comparison module; the input terminal of the switch detection module is connected with the output terminal of the isolation optocoupler OC, and the output terminal of the switch detection module is used as the output terminal of the input flash detection circuit for output Isolate the on-off detection signal of the optocoupler OC; the zero-crossing comparison module is used to detect the zero-crossing of the input signal and provide a discharge circuit for the discharge capacitor Ci when the input signal crosses zero;
若输入信号Vin为直流信号,则隔离光耦OC的导通现象标志直流信号发生闪断;若输入信号Vin为交流信号,则当隔离光耦OC的导通间隔时间大于交流信号的信号周期时,标志交流信号发生闪断。If the input signal Vin is a DC signal, the conduction phenomenon of the isolated optocoupler OC indicates that the DC signal has flickered; if the input signal Vin is an AC signal, when the conduction interval of the isolated optocoupler OC is longer than the signal period of the AC signal , It indicates that the AC signal has flickered.
如图1所示,本申请所提供的输入闪断检测电路,具体是利用隔离光耦OC对放电电容Ci的放电过程进行检测,从而实现对输入信号闪断现象的检测。其中,所述输入信号Vin可具体为交流信号,例如市电,则可将输入闪断检测电路的第一输入端接入火线、将输入闪断检测电路的第二输入端接入零线;所述输入信号Vin也可具体为直流信号,则可将输入闪断检测电路的第一输入端接入直流信号的正相端,将输入闪断检测电路的第二输入端接地。As shown in FIG. 1, the input flicker detection circuit provided by the present application specifically uses an isolated optocoupler OC to detect the discharge process of the discharge capacitor Ci, so as to realize the detection of the input signal flicker phenomenon. Wherein, the input signal Vin can be specifically an AC signal, such as a commercial power supply, the first input terminal of the input flicker detection circuit can be connected to the live wire, and the second input terminal of the input flicker detection circuit can be connected to the neutral line; The input signal Vin can also be specifically a DC signal, and the first input terminal of the input flicker detection circuit can be connected to the positive phase terminal of the DC signal, and the second input terminal of the input flicker detection circuit can be grounded.
所述过零比较模块具体可利用内置的基准电压源Ref和比较器U对输入信号Vin进行过零检测,并可在输入信号Vin过零时切换内部电路导通状态,以便为放电电容Ci提供放电回路,进而实现对输入信号Vin的闪断检测。The zero-crossing comparison module can specifically use the built-in reference voltage source Ref and the comparator U to detect the zero-crossing of the input signal Vin, and can switch the conduction state of the internal circuit when the input signal Vin crosses zero, so as to provide the discharge capacitor Ci The discharge circuit, and then realize the flicker detection of the input signal Vin.
具体地,若输入闪断检测电路的输入信号Vin为交流信号,则在输入信号Vin的电压值较高时,放电电容Ci处于充电状态。在此期间,由于B点电压始终不高于A点电压,所以隔离光耦OC中的发光器件(图1中所示的发光二极管)没有导通,因此使得隔离光耦OC中的光敏开关(图1中所示的光敏三极管)也处于关断状态。而当输入信号Vin减小到一定程度例如过零时,过零比较模块内部电路的导通结构切换,为放电电容Ci提供放电回路;此时,由于电容两端电压不能突变,B点电压将高于A点电压,放电电容Ci将沿着过零比较模块提供的放电回路进行放电,使得隔离光耦OC导通,并且隔离光耦OC的导通时长取决于放电电容Ci的放电电流的持续时长。随着输入信号Vin的变化,当输入信号Vin再次增大时,放电电容Ci再次恢复充电状态,隔离光耦OC则依旧处于关断状态。Specifically, if the input signal Vin input to the flicker detection circuit is an AC signal, when the voltage value of the input signal Vin is high, the discharge capacitor Ci is in a charged state. During this period, since the voltage at point B is never higher than the voltage at point A, the light-emitting device in the isolated optocoupler OC (the light-emitting diode shown in Figure 1) is not turned on, so the photosensitive switch ( The photosensitive triode shown in Figure 1 is also in the off state. When the input signal Vin decreases to a certain extent, such as zero crossing, the conduction structure of the internal circuit of the zero crossing comparison module is switched to provide a discharge circuit for the discharge capacitor Ci; at this time, since the voltage across the capacitor cannot change suddenly, the voltage at point B will Above the voltage at point A, the discharge capacitor Ci will discharge along the discharge circuit provided by the zero-crossing comparison module, making the isolated optocoupler OC conduct, and the conduction time of the isolated optocoupler OC depends on the duration of the discharge current of the discharge capacitor Ci duration. With the change of the input signal Vin, when the input signal Vin increases again, the discharge capacitor Ci resumes the charging state, and the isolated optocoupler OC is still in the off state.
由上述过程分析可知,对于交流输入信号Vin,在其一个交流周期内,放电电容Ci的放电现象只出现一次,即发生在输入信号Vin降低到一定程度如过零的时刻,因此,相应地,隔离光耦OC也只导通一次,所以,在正常状态即没有闪断发生的情况下,隔离光耦OC的每相邻两次导通的间隔时间就等于交流输入信号Vin的信号周期。一般地,所采用的交流输入信号Vin为市电,其信号周期为20ms。然而,一旦输入信号Vin发生了闪断,影响了输入信号Vin的连续性,势必会令隔离光耦OC的导通间隔时间大于原本固定的信号周期,由此即可判定输入信号Vin发生了闪断。From the above process analysis, it can be seen that for the AC input signal Vin, the discharge of the discharge capacitor Ci occurs only once in one AC cycle, that is, when the input signal Vin drops to a certain degree, such as zero crossing. Therefore, correspondingly, The isolated optocoupler OC is only turned on once. Therefore, in the normal state, that is, no flicker occurs, the interval between two adjacent conductions of the isolated optocoupler OC is equal to the signal period of the AC input signal Vin. Generally, the AC input signal Vin used is commercial power, and its signal period is 20 ms. However, once the input signal Vin has flickered, it will affect the continuity of the input signal Vin, and the conduction interval of the isolated optocoupler OC will inevitably be longer than the original fixed signal period. From this, it can be determined that the input signal Vin has flickered. Off.
另一方面,若输入闪断检测电路的输入信号Vin为直流信号,则在正常状态下,输入信号Vin的电压值较高,B点电压始终不高于A点电压,所以隔离光耦OC处于关断状态。而一旦输入信号Vin发生闪断,则在闪断期间放电电容Ci将进行一次短暂的放电过程,同时隔离光耦OC也出现一次短暂的导通现象。由此,对于直流输入信号Vin,当检测到隔离光耦OC的导通现象时,即可判定输入信号Vin发生了闪断。On the other hand, if the input signal Vin of the input flicker detection circuit is a DC signal, under normal conditions, the voltage value of the input signal Vin is higher, and the voltage at point B is always not higher than the voltage at point A, so the isolated optocoupler OC is in Off state. Once the input signal Vin is flickered, the discharge capacitor Ci will undergo a short discharge process during the flicker, and the isolated optocoupler OC will also have a short conduction phenomenon. Therefore, for the DC input signal Vin, when the conduction phenomenon of the isolation optocoupler OC is detected, it can be determined that the input signal Vin has flicker.
还需要说明的是,无论是对于交流输入信号还是直流输入信号,在上述检测过程中,由于放电电容Ci的放电过程会很快结束,因此隔离光耦OC的导通状态是瞬间完成切换的,隔离光耦OC在大部分时间内均处于关断状态,没有导通电流,因此极大地降低了系统功耗。It should also be noted that whether for AC input signals or DC input signals, in the above detection process, since the discharge process of the discharge capacitor Ci will end quickly, the conduction state of the isolated optocoupler OC is switched instantly. The isolated optocoupler OC is in the off state most of the time, and there is no conduction current, so the system power consumption is greatly reduced.
此外,本领域技术人员可以自行选择并设计开关检测模块的具体电路结构,只要能够根据其输出的通断检测信号获取隔离光耦OC的导通状态即可,本申请对此并不进行限定。In addition, those skilled in the art can select and design the specific circuit structure of the switch detection module by themselves, as long as the conduction state of the isolation optocoupler OC can be obtained according to the on-off detection signal output by the switch detection module, which is not limited in this application.
本申请所提供的输入闪断检测电路包括过零比较模块、输出电阻Ro、放电电容Ci、隔离光耦OC和开关检测模块;过零比较模块的第一输入端作为输入闪断检测电路的第一输入端,过零比较模块的第二输入端作为输入闪断检测电路的第二输入端,过零比较模块的输出端分别与输出电阻Ro的第一端、隔离光耦OC的阴极输入端连接;输出电阻Ro的第二端分别与放电电容Ci的第一端、隔离光耦OC的阳极输入端连接;放电电容Ci的第二端与过零比较模块的第二输入端连接;开关检测模块的输入端与隔离光耦OC的输出端连接,开关检测模块的输出端作为输入闪断检测电路的输出端,用于输出隔离光耦OC的通断检测信号;过零比较模块用于对输入信号进行过零检测,并在输入信号过零时为放电电容Ci提供放电回路;若输入信号为直流信号,则隔离光耦OC的导通现象标志直流信号发生闪断;若输入信号为交流信号,则当隔离光耦OC的导通间隔时间大于交流信号的信号周期时,标志交流信号发生闪断。The input flicker detection circuit provided by this application includes a zero-crossing comparison module, an output resistance Ro, a discharge capacitor Ci, an isolation photocoupler OC, and a switch detection module; the first input terminal of the zero-crossing comparison module is used as the first input of the input flicker detection circuit One input terminal, the second input terminal of the zero-crossing comparison module is used as the second input terminal of the input flicker detection circuit, and the output terminal of the zero-crossing comparison module is respectively connected with the first terminal of the output resistance Ro and the cathode input terminal of the isolated optocoupler OC Connection; the second end of the output resistor Ro is connected to the first end of the discharge capacitor Ci and the anode input end of the isolation optocoupler OC; the second end of the discharge capacitor Ci is connected to the second input end of the zero-crossing comparison module; switch detection The input end of the module is connected to the output end of the isolated optocoupler OC, and the output end of the switch detection module is used as the output end of the input flash detection circuit to output the on-off detection signal of the isolated optocoupler OC; the zero-crossing comparison module is used to compare The input signal conducts zero-crossing detection, and provides a discharge circuit for the discharge capacitor Ci when the input signal crosses zero; if the input signal is a DC signal, the conduction phenomenon of the isolated optocoupler OC indicates that the DC signal has flickered; if the input signal is AC Signal, when the conduction interval of the isolated optocoupler OC is longer than the signal period of the AC signal, it indicates that the AC signal flashes off.
可见,本申请所提供的输入闪断检测电路,利用过零比较模块、放电电容与隔离光耦的特定连接结构,使得放电电容仅在输入信号降低至基准电压瞬间进行放电,并利用隔离光耦对放电电容的放电现象进行检测,由此可根据放电现象是否产生或者其周期规律分别实现对直流或者交流输入信号的闪断检测。由于隔离光耦仅在短暂的放电过程中处于导通状态,因此极大地降低了系统功耗,有效地提高了产品竞争力和经济效益。It can be seen that the input flicker detection circuit provided by this application utilizes the specific connection structure of the zero-crossing comparison module, the discharge capacitor, and the isolation optocoupler, so that the discharge capacitor is discharged only when the input signal drops to the reference voltage, and the isolation optocoupler is used The discharge phenomenon of the discharge capacitor is detected, so that the flicker detection of the DC or AC input signal can be realized according to whether the discharge phenomenon occurs or its periodic law. Since the isolated optocoupler is only in the conducting state during a short discharge, the system power consumption is greatly reduced, and the product competitiveness and economic benefits are effectively improved.
请参考图2,图2为本申请所提供的输入闪断检测电路在另一具体实施方式中的结构框图。Please refer to FIG. 2, which is a structural block diagram of the input flicker detection circuit provided by this application in another specific embodiment.
如图2所示,在上述内容的基础上,作为一种优选实施例,本实施例中的开关检测模块包括上拉电阻Rp和第一电源Vcc;隔离光耦OC的第一输出端通过上拉电阻Rp与第一电源Vcc连接,并作为开关检测模块的输出端,隔离光耦OC的第二输出端接地。As shown in Figure 2, on the basis of the foregoing, as a preferred embodiment, the switch detection module in this embodiment includes a pull-up resistor Rp and a first power supply Vcc; the first output terminal of the isolated optocoupler OC passes through the upper The pull-up resistor Rp is connected to the first power supply Vcc and serves as the output terminal of the switch detection module, and the second output terminal of the isolation optocoupler OC is grounded.
具体地,当隔离光耦OC处于关断状态时,图2所示开关检测模块的输出因上拉电阻Rp的作用而为高电平;当隔离光耦OC导通时,开关检测模块的输出因隔离光耦OC的接地作用而为低电平。由于隔离光耦OC的导通时长相对于关断时长非常短,因此,导通状态对应的低电平在波形上就体现为一个负脉冲。Specifically, when the isolated optocoupler OC is in the off state, the output of the switch detection module shown in Figure 2 is high due to the action of the pull-up resistor Rp; when the isolated optocoupler OC is turned on, the output of the switch detection module It is low level due to the grounding effect of the isolated optocoupler OC. Since the turn-on duration of the isolated optocoupler OC is very short relative to the turn-off duration, the low level corresponding to the turn-on state is reflected in the waveform as a negative pulse.
在上述内容的基础上,如图2所示,作为一种优选实施例,本实施例中的开关检测模块还包括连接在隔离光耦OC的第一输出端和第二输出端之间的保护电容Cs。On the basis of the above content, as shown in Figure 2, as a preferred embodiment, the switch detection module in this embodiment further includes a protection connected between the first output terminal and the second output terminal of the isolated optocoupler OC Capacitance Cs.
作为一种优选实施例,在上述内容的基础上,如图2所示,本实施例中的输入闪断检测电路还包括与过零比较模块的第一输入端连接的输入电阻Ri。至于输入电阻Ri的具体阻值大小,本领域技术人员可以根据实际使用情况而自行设计并实现,本申请对此并不进行限定。As a preferred embodiment, based on the above content, as shown in FIG. 2, the input flicker detection circuit in this embodiment further includes an input resistor Ri connected to the first input terminal of the zero-crossing comparison module. As for the specific resistance value of the input resistor Ri, those skilled in the art can design and implement it by themselves according to actual use conditions, which is not limited in this application.
在上述内容的基础上,如图2所示,作为一种优选实施例,本实施例中的输入闪断检测电路还包括连接在过零比较模块的第一输入端和第二输入端之间的稳压管D。On the basis of the above content, as shown in Figure 2, as a preferred embodiment, the input flicker detection circuit in this embodiment further includes a circuit connected between the first input terminal and the second input terminal of the zero-crossing comparison module The voltage regulator tube D.
具体地,可设置稳压管D对比较器U进行输入保护。此外,在实际应用中,比较器U和基准电压源Ref可具体选择相关封装好的集成芯片。Specifically, a voltage regulator tube D can be set to protect the comparator U. In addition, in practical applications, the comparator U and the reference voltage source Ref can be specifically selected related packaged integrated chips.
作为一种优选实施例,如图2所示,放电电容Ci的容值为56nF;输出电阻Ro的阻值为1.5kΩ。As a preferred embodiment, as shown in FIG. 2, the capacitance value of the discharge capacitor Ci is 56 nF; the resistance value of the output resistor Ro is 1.5 kΩ.
具体地,合理设置放电电容Ci与输出电阻Ro的参数大小,可对放电电流以及放电时长进行合理调节,其中,放电过程的快速完成有利于提高检测速度和精度。Specifically, by setting the parameters of the discharge capacitor Ci and the output resistance Ro reasonably, the discharge current and the discharge duration can be adjusted reasonably. Among them, the rapid completion of the discharge process is beneficial to improve the detection speed and accuracy.
参见图3,本申请实施例公开了一种过零比较模块的电路结构。所述过零比较模块包括第一电阻R1、第二电阻R2、第三电阻R3、第四电阻R4、第一PMOS管P1、第二PMOS管P2、第一NMOS管N1、第二NMOS管N2、基准电压源Ref、比较器U和反相器;Referring to FIG. 3, an embodiment of the present application discloses a circuit structure of a zero-crossing comparison module. The zero-crossing comparison module includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first PMOS tube P1, a second PMOS tube P2, a first NMOS tube N1, and a second NMOS tube N2 , Reference voltage source Ref, comparator U and inverter;
第一电阻R1的第一端、第一PMOS管P1的源极、第二PMOS管P2的源极、基准电压源Ref的第一电源输入端均相互连接,并作为过零比较模块的第一输入端;第一电阻R1的第二端、第二电阻R2的第一端、第一 PMOS管P1的漏极均相互连接;第二电阻R2的第二端、第三电阻R3的第一端、比较器U的正相输入端均相互连接;基准电压源Ref的输出端与比较器U的反相输入端连接;第三电阻R3的第二端、第四电阻R4的第一端、第一NMOS管N1的漏极均相互连接;第一PMOS管P1的栅极、第一NMOS管N1的栅极、比较器U的输出端、反相器的输入端均相互连接;反相器的输出端、第二PMOS管P2的栅极、第二NMOS管N2的栅极均相互连接;第二PMOS管P2的漏极与第二NMOS管N2的漏极连接,并作为过零比较模块的输出端;基准电压源Ref的第二电源输入端、第四电阻R4的第二端、第一NMOS管N1的源极、第二NMOS管N2的源极均相互连接,并作为过零比较模块的第二输入端。The first end of the first resistor R1, the source of the first PMOS transistor P1, the source of the second PMOS transistor P2, and the first power input end of the reference voltage source Ref are all connected to each other, and serve as the first of the zero-crossing comparison module. Input end; the second end of the first resistor R1, the first end of the second resistor R2, and the drain of the first PMOS transistor P1 are all connected to each other; the second end of the second resistor R2 and the first end of the third resistor R3 , The non-inverting input ends of the comparator U are connected to each other; the output end of the reference voltage source Ref is connected to the inverting input end of the comparator U; the second end of the third resistor R3, the first end of the fourth resistor R4, and the The drains of an NMOS tube N1 are all connected to each other; the gate of the first PMOS tube P1, the gate of the first NMOS tube N1, the output terminal of the comparator U, and the input terminal of the inverter are all connected to each other; The output end, the gate of the second PMOS tube P2, and the gate of the second NMOS tube N2 are all connected to each other; the drain of the second PMOS tube P2 is connected to the drain of the second NMOS tube N2, and serves as the zero-crossing comparison module Output terminal; the second power input terminal of the reference voltage source Ref, the second terminal of the fourth resistor R4, the source of the first NMOS tube N1, and the source of the second NMOS tube N2 are all connected to each other and serve as a zero-crossing comparison module The second input terminal.
具体地,基准电压源Ref用于输出基准电压至比较器U的反相输入端,比较器U根据其正、反相输入端的电压大小关系输出比较结果信号。当过零比较模块的输入信号Vin的电压较高时,比较器U输出高电平,经反相器反相后,第二PMOS管P2导通、第二NMOS管N2关断,后续电路中的输出电阻Ro与放电电容Ci通过第二PMOS管P2接入电路,放电电容Ci处于充电状态。当过零比较模块的输入信号Vin反向过零即由较高的电压值降低到一定阈值而过零时,比较器U的输出发生翻转,变成低电平,经反相器反相后,第二PMOS管P2关断、第二NMOS管N2导通,即切换改变了过零比较模块的内部电路导通结构,令第二PMOS管P2配合后续电路中的隔离光耦OC为放电电容Ci形成放电回路,进而令流经有放电电流的隔离光耦OC导通。Specifically, the reference voltage source Ref is used to output the reference voltage to the inverting input terminal of the comparator U, and the comparator U outputs the comparison result signal according to the voltage relationship between the positive and inverting input terminals. When the voltage of the input signal Vin of the zero-crossing comparison module is high, the comparator U outputs a high level. After the inverter is inverted, the second PMOS transistor P2 is turned on and the second NMOS transistor N2 is turned off. In the subsequent circuit The output resistance Ro and the discharging capacitor Ci are connected to the circuit through the second PMOS tube P2, and the discharging capacitor Ci is in a charged state. When the input signal Vin of the zero-crossing comparison module reverses zero-crossing, that is, when the higher voltage value is reduced to a certain threshold and zero-crossing, the output of the comparator U is inverted and becomes a low level. After being inverted by the inverter , The second PMOS tube P2 is turned off and the second NMOS tube N2 is turned on, that is, the switching changes the internal circuit conduction structure of the zero-crossing comparison module, so that the second PMOS tube P2 cooperates with the isolated optocoupler OC in the subsequent circuit as a discharge capacitor Ci forms a discharge circuit, and then turns on the isolated optocoupler OC flowing through the discharge current.
下面对本申请所提供的闪断开关控制系统进行介绍。The following describes the flash switch control system provided by this application.
请参阅图4,图4为本实施例所提供的闪断开关控制系统在一具体实施方式中的结构框图,包括闪断开关1、整流模块2、调压模块3、控制模块4、驱动模块5以及如上所述的任一种输入闪断检测电路6;Please refer to Figure 4. Figure 4 is a structural block diagram of the flash switch control system provided by this embodiment in a specific implementation, including flash switch 1, rectifier module 2, voltage regulating module 3, control module 4, and drive module 5 and any input flicker detection circuit 6 as described above;
闪断开关1的第一端用于与交流电源连接,闪断开关1的第二端分别与整流模块2和输入闪断检测电路6的输入端连接;整流模块2的输出端与调压模块3的输入端连接,用于将交流电整流输出直流电;调压模块3 的输出端与控制模块4的供电端连接,用于为控制模块4提供对应的工作电压;驱动模块5的供电端与整流模块2的输出端连接,驱动模块5的输出端与用电设备连接,用于驱动用电设备;控制模块4的输入端与输入闪断检测电路6的输出端连接,控制模块4的输出端与驱动模块5的输入端连接,用于根据输入闪断检测电路6输出的通断检测信号确定闪断开关1的切换状态,并根据切换状态控制用电设备进行状态切换。The first end of the flash switch 1 is used to connect to the AC power source, the second end of the flash switch 1 is connected to the input end of the rectifier module 2 and the input flash detection circuit 6 respectively; the output end of the rectifier module 2 is connected to the voltage regulating module The input end of 3 is connected to rectify the alternating current to output direct current; the output end of the voltage regulating module 3 is connected to the power supply end of the control module 4 to provide the corresponding operating voltage for the control module 4; the power supply end of the drive module 5 is connected to the rectifier The output end of the module 2 is connected, the output end of the drive module 5 is connected to the electrical equipment, and is used to drive the electrical equipment; the input end of the control module 4 is connected to the output end of the input flash detection circuit 6, and the output end of the control module 4 It is connected to the input end of the driving module 5 and is used to determine the switching state of the flash switch 1 according to the on-off detection signal output by the input flash detection circuit 6, and control the electrical equipment to switch the state according to the switching state.
具体地,所说的交流电源通常采用市电,闪断开关1通过与火线连接而接入市电。来自市电的交流电依次经过整流、调压后,用于供给控制模块4和驱动模块5工作。其中,控制模块4用于接收输入闪断检测电路6所输出的隔离光耦OC的通断检测信号,从而根据隔离光耦OC的导通情况判断闪断开关1的动作情况,进而对用电设备进行状态切换控制。由于闪断开关1进行动作时仅仅是闪断,并未持续将电源切断,因此后续电路如控制模块4等仍能正常供电和工作。Specifically, the AC power supply usually uses mains power, and the flash switch 1 is connected to the mains power by connecting with the live wire. The alternating current from the mains is rectified and regulated sequentially, and then used to supply the control module 4 and the drive module 5 to work. Among them, the control module 4 is used to receive the on-off detection signal of the isolated optocoupler OC output by the input flicker detection circuit 6, so as to judge the action of the flash switch 1 according to the conduction of the isolated optocoupler OC, and then to The device performs state switching control. Since the flash switch 1 only flashes during its action and does not continuously cut off the power supply, the subsequent circuits such as the control module 4 can still supply power and work normally.
由于市电是频率为50Hz的交流电,因此,此时控制模块4可具体在检测到隔离光耦OC的导通间隔时长大于20ms时,判定输入闪断检测电路6的输入信号因闪断开关1动作而发生了闪断,由此便可控制用电设备如智能灯等进行状态切换,例如具体可将用电设备由开启状态切换为关闭状态,或者由关闭状态切换为开启状态,又或者由高功率状态切换为低功率状态等。其中,控制模块4具体可以通过向驱动模块4发送对应的指令而控制用电设备进行状态切换。Since the commercial power is an alternating current with a frequency of 50 Hz, at this time, the control module 4 can specifically determine that the input signal to the flicker detection circuit 6 is caused by the flicker switch 1 when the conduction interval of the isolated optocoupler OC is longer than 20 ms. Flashing occurs due to the action, thereby controlling the electrical equipment such as smart lights to switch the state, for example, the electrical equipment can be switched from the on state to the off state, or from the off state to the on state, or by Switch from high power state to low power state, etc. Among them, the control module 4 may specifically control the electrical equipment to perform state switching by sending corresponding instructions to the driving module 4.
本申请所提供的闪断开关控制系统具体采用了前文所述的输入闪断检测电路,利用比较器、放电电容与隔离光耦的特定连接结构,使得放电电容仅在输入信号降低至基准电压瞬间进行放电,并利用隔离光耦对放电电容的放电现象进行检测,由此可利用放电现象的周期规律对闪断开关是否动作进行检测,进而基于闪断开关的切换状态控制用电设备。由于隔离光耦仅在短暂的放电过程中处于导通状态,因此极大地降低了系统功耗,有效地提高了产品竞争力和经济效益。The flash switch control system provided by this application specifically adopts the input flash detection circuit described above, and uses a specific connection structure of a comparator, a discharge capacitor, and an isolated optocoupler, so that the discharge capacitor only occurs when the input signal drops to the reference voltage. Discharge, and use the isolated optocoupler to detect the discharge phenomenon of the discharge capacitor, so that the periodic law of the discharge phenomenon can be used to detect whether the flash switch is operating, and then the electrical equipment is controlled based on the switching state of the flash switch. Since the isolated optocoupler is only in the conducting state during a short discharge, the system power consumption is greatly reduced, and the product competitiveness and economic benefits are effectively improved.
请参阅图5,图5为本申请所提供的闪断开关控制系统在另一具体实施方式中的结构框图。Please refer to FIG. 5, which is a structural block diagram of the flash switch control system provided by this application in another specific embodiment.
如图5所示,在上述内容基础上,作为一种优选实施例,本实施例所提供的闪断开关控制系统还包括滤波模块7,滤波模块7的输入端与整流模块2的输出端连接,滤波模块7的输出端与调压模块3的输入端连接。As shown in Figure 5, based on the above content, as a preferred embodiment, the flash switch control system provided in this embodiment further includes a filter module 7, and the input end of the filter module 7 is connected to the output end of the rectifier module 2. , The output terminal of the filter module 7 is connected to the input terminal of the voltage regulation module 3.
具体地,为了进一步提高直流电的供电质量,还可以设置滤波模块7对整流模块2输出的直流电进行滤波。Specifically, in order to further improve the quality of the direct current power supply, a filter module 7 can also be provided to filter the direct current output from the rectifier module 2.
其中,在上述内容基础上,作为一种优选实施例,整流模块2具体为桥式整流模块。当然,本领域技术人员也可以根据实际使用情况而选择其他类型的整流电路结构。Among them, on the basis of the above content, as a preferred embodiment, the rectifier module 2 is specifically a bridge rectifier module. Of course, those skilled in the art can also choose other types of rectifier circuit structures according to actual usage conditions.
在上述内容基础上,作为一种优选实施例,控制模块4和驱动模块5均包括无线通信单元,控制模块4具体用于根据闪断开关1的切换状态,向驱动模块发送状态切换的无线控制指令。Based on the above content, as a preferred embodiment, both the control module 4 and the drive module 5 include a wireless communication unit, and the control module 4 is specifically configured to send a wireless control of state switching to the drive module according to the switching state of the flash switch 1. instruction.
具体地,如前所述,在智能家居应用场景中,控制模块4具体还可通过无线通信单元与匹配的智能用电设备进行无线通信,从而完成对用电设备的状态切换控制。其中,所说的无线通信单元可具体包括但不限于WIFI通信单元或者蓝牙通信单元。Specifically, as described above, in a smart home application scenario, the control module 4 may also specifically perform wireless communication with a matching smart electrical device through a wireless communication unit, so as to complete the state switching control of the electrical device. Wherein, the wireless communication unit may specifically include but is not limited to a WIFI communication unit or a Bluetooth communication unit.
本申请所提供的闪断开关控制系统的具体实施方式与上文所描述的输入闪断检测电路可相互对应参照,这里就不再赘述。The specific implementation of the flash switch control system provided by the present application and the input flash detection circuit described above can be referred to each other, which will not be repeated here.
本申请中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。The various embodiments in this application are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other.
还需说明的是,在本申请文件中,诸如“第一”和“第二”之类的关系术语,仅仅用来将一个实体或者操作与另一个实体或者操作区分开来,而不一定要求或者暗示这些实体或者操作之间存在任何这种实际的关系或者顺序。此外,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、电路、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、电路、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、电路、物品或者设备中还存在另外的相同要素。It should also be noted that in this application, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and are not necessarily required Or it implies that there is any such actual relationship or sequence between these entities or operations. In addition, the terms "including", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, circuit, article, or device that includes a series of elements includes not only those elements, but also those that are not explicitly listed Other elements of, or also include elements inherent to such processes, circuits, objects or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, circuit, article, or equipment including the element.
以上对本申请所提供的技术方案进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的电路及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请的保护范围内。The technical solutions provided by this application are described in detail above. Specific examples are used in this article to describe the principles and implementations of the present application. The description of the above embodiments is only used to help understand the circuit and core ideas of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the protection scope of this application.

Claims (10)

  1. 一种输入闪断检测电路,其特征在于,包括过零比较模块、输出电阻、放电电容、隔离光耦和开关检测模块;An input flicker detection circuit, which is characterized by comprising a zero-crossing comparison module, an output resistance, a discharge capacitor, an isolation photocoupler, and a switch detection module;
    所述过零比较模块的第一输入端作为所述输入闪断检测电路的第一输入端,所述过零比较模块的第二输入端作为所述输入闪断检测电路的第二输入端,所述过零比较模块的输出端分别与所述输出电阻的第一端、所述隔离光耦的阴极输入端连接;所述输出电阻的第二端分别与所述放电电容的第一端、所述隔离光耦的阳极输入端连接;所述放电电容的第二端与所述过零比较模块的第二输入端连接;所述开关检测模块的输入端与所述隔离光耦的输出端连接,所述开关检测模块的输出端作为所述输入闪断检测电路的输出端,用于输出所述隔离光耦的通断检测信号;所述过零比较模块用于对输入信号进行过零检测,并在所述输入信号过零时为所述放电电容提供放电回路;The first input terminal of the zero-crossing comparison module serves as the first input terminal of the input flicker detection circuit, and the second input terminal of the zero-crossing comparison module serves as the second input terminal of the input flicker detection circuit, The output terminal of the zero-crossing comparison module is respectively connected to the first terminal of the output resistor and the cathode input terminal of the isolated optocoupler; the second terminal of the output resistor is respectively connected to the first terminal of the discharge capacitor, The anode input end of the isolated optocoupler is connected; the second end of the discharge capacitor is connected to the second input end of the zero-crossing comparison module; the input end of the switch detection module is connected to the output end of the isolated optocoupler Connected, the output terminal of the switch detection module is used as the output terminal of the input flicker detection circuit for outputting the on-off detection signal of the isolation optocoupler; the zero-crossing comparison module is used for zero-crossing the input signal Detect and provide a discharge circuit for the discharge capacitor when the input signal crosses zero;
    若所述输入信号为直流信号,则所述隔离光耦的导通现象标志所述直流信号发生闪断;若所述输入信号为交流信号,则当所述隔离光耦的导通间隔时间大于所述交流信号的信号周期时,标志所述交流信号发生闪断。If the input signal is a DC signal, the conduction phenomenon of the isolated optocoupler indicates that the DC signal has flicker; if the input signal is an AC signal, when the conduction interval of the isolated optocoupler is longer than When the signal period of the AC signal, it indicates that the AC signal has flicker.
  2. 根据权利要求1所述的输入闪断检测电路,其特征在于,所述开关检测模块包括上拉电阻和第一电源;The input flicker detection circuit according to claim 1, wherein the switch detection module comprises a pull-up resistor and a first power supply;
    所述隔离光耦的第一输出端通过所述上拉电阻与所述第一电源连接,并作为所述开关检测模块的输出端,所述隔离光耦的第二输出端接地。The first output terminal of the isolation optocoupler is connected to the first power supply through the pull-up resistor and serves as the output terminal of the switch detection module, and the second output terminal of the isolation optocoupler is grounded.
  3. 根据权利要求2所述的输入闪断检测电路,其特征在于,所述开关检测模块还包括连接在所述隔离光耦的第一输出端和第二输出端之间的保护电容。The input flicker detection circuit according to claim 2, wherein the switch detection module further comprises a protection capacitor connected between the first output terminal and the second output terminal of the isolated optocoupler.
  4. 根据权利要求3所述的输入闪断检测电路,其特征在于,还包括与所述过零比较模块的第一输入端连接的输入电阻。4. The input flicker detection circuit according to claim 3, further comprising an input resistor connected to the first input terminal of the zero-crossing comparison module.
  5. 根据权利要求4所述的输入闪断检测电路,其特征在于,还包括连接在所述过零比较模块的第一输入端和第二输入端之间的稳压管。The input flicker detection circuit according to claim 4, further comprising a voltage regulator tube connected between the first input terminal and the second input terminal of the zero-crossing comparison module.
  6. 根据权利要求1至5任一项所述的输入闪断检测电路,其特征在于,所述过零比较模块包括第一电阻、第二电阻、第三电阻、第四电阻、第一 PMOS管、第二PMOS管、第一NMOS管、第二NMOS管、基准电压源、比较器和反相器;The input flicker detection circuit according to any one of claims 1 to 5, wherein the zero-crossing comparison module includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first PMOS tube, The second PMOS tube, the first NMOS tube, the second NMOS tube, the reference voltage source, the comparator and the inverter;
    所述第一电阻的第一端、所述第一PMOS管的源极、所述第二PMOS管的源极、所述基准电压源的第一电源输入端均相互连接,并作为所述过零比较模块的第一输入端;所述第一电阻的第二端、所述第二电阻的第一端、所述第一PMOS管的漏极均相互连接;所述第二电阻的第二端、所述第三电阻的第一端、所述比较器的正相输入端均相互连接;所述基准电压源的输出端与所述比较器的反相输入端连接;所述第三电阻的第二端、所述第四电阻的第一端、所述第一NMOS管的漏极均相互连接;所述第一PMOS管的栅极、所述第一NMOS管的栅极、所述比较器的输出端、所述反相器的输入端均相互连接;所述反相器的输出端、所述第二PMOS管的栅极、所述第二NMOS管的栅极均相互连接;所述第二PMOS管的漏极与所述第二NMOS管的漏极连接,并作为所述过零比较模块的输出端;所述基准电压源的第二电源输入端、所述第四电阻的第二端、所述第一NMOS管的源极、所述第二NMOS管的源极均相互连接,并作为所述过零比较模块的第二输入端。The first end of the first resistor, the source of the first PMOS transistor, the source of the second PMOS transistor, and the first power input end of the reference voltage source are all connected to each other and serve as the overpass The first input terminal of the zero comparison module; the second terminal of the first resistor, the first terminal of the second resistor, and the drain of the first PMOS transistor are all connected to each other; the second terminal of the second resistor Terminal, the first terminal of the third resistor, and the non-inverting input terminal of the comparator are all connected to each other; the output terminal of the reference voltage source is connected to the inverting input terminal of the comparator; the third resistor The second end of the fourth resistor, the first end of the fourth resistor, and the drain of the first NMOS tube are all connected to each other; the gate of the first PMOS tube, the gate of the first NMOS tube, the The output terminal of the comparator and the input terminal of the inverter are all connected to each other; the output terminal of the inverter, the gate of the second PMOS transistor, and the gate of the second NMOS transistor are all connected to each other; The drain of the second PMOS tube is connected to the drain of the second NMOS tube and serves as the output terminal of the zero-crossing comparison module; the second power input terminal of the reference voltage source and the fourth resistor The second end of, the source of the first NMOS transistor, and the source of the second NMOS transistor are all connected to each other and serve as the second input end of the zero-crossing comparison module.
  7. 一种闪断开关控制系统,其特征在于,包括闪断开关、整流模块、调压模块、控制模块、驱动模块以及如权利要求1至6任一项所述的输入闪断检测电路;A flash switch control system, which is characterized by comprising a flash switch, a rectifier module, a voltage regulating module, a control module, a drive module, and the input flash detection circuit according to any one of claims 1 to 6;
    所述闪断开关的第一端用于与交流电源连接,所述闪断开关的第二端分别与所述整流模块和所述输入闪断检测电路的输入端连接;所述整流模块的输出端与所述调压模块的输入端连接,用于将交流电整流输出直流电;所述调压模块的输出端与所述控制模块的供电端连接,用于为所述控制模块提供对应的工作电压;所述驱动模块的供电端与所述整流模块的输出端连接,所述驱动模块的输出端与用电设备连接,用于驱动所述用电设备;所述控制模块的输入端与所述输入闪断检测电路的输出端连接,所述控制模块的输出端与所述驱动模块的输入端连接,用于根据所述输入闪断检测电路输出的所述通断检测信号确定所述闪断开关的切换状态,并根据所述切换状态控制用电设备进行状态切换。The first end of the flash switch is used to connect to an AC power source, and the second end of the flash switch is respectively connected to the input end of the rectifier module and the input flash detection circuit; the output of the rectifier module The terminal is connected to the input terminal of the voltage regulation module and is used to rectify the alternating current to output direct current; the output terminal of the voltage regulation module is connected to the power supply terminal of the control module and is used to provide the control module with a corresponding operating voltage The power supply end of the drive module is connected to the output end of the rectification module, the output end of the drive module is connected to the electrical equipment for driving the electrical equipment; the input end of the control module is connected to the The output terminal of the input flicker detection circuit is connected, and the output terminal of the control module is connected with the input terminal of the drive module, and is used to determine the flicker according to the on-off detection signal output by the input flicker detection circuit The switching state of the switch, and controlling the electrical equipment to switch the state according to the switching state.
  8. 根据权利要求7所述的闪断开关控制系统,其特征在于,还包括滤波模块,所述滤波模块的输入端与所述整流模块的输出端连接,所述滤波模块的输出端与所述调压模块的输入端连接。The flash switch control system according to claim 7, further comprising a filter module, the input end of the filter module is connected to the output end of the rectification module, and the output end of the filter module is connected to the adjustment module. The input terminal of the voltage module is connected.
  9. 根据权利要求8所述的闪断开关控制系统,其特征在于,所述整流模块具体为桥式整流模块。The flash switch control system according to claim 8, wherein the rectifier module is specifically a bridge rectifier module.
  10. 根据权利要求7至9任一项所述的闪断开关控制系统,其特征在于,所述控制模块和所述驱动模块均包括无线通信单元,所述控制模块具体用于根据所述闪断开关的所述切换状态,向所述驱动模块发送状态切换的无线控制指令。The flash switch control system according to any one of claims 7 to 9, wherein the control module and the drive module both comprise a wireless communication unit, and the control module is specifically configured to respond to the flash switch In the switching state, a wireless control instruction for state switching is sent to the drive module.
PCT/CN2019/084484 2019-04-19 2019-04-26 Flash switch control system and input flash detection circuit thereof WO2020211114A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201920546439.2 2019-04-19
CN201910319585.6A CN109991535B (en) 2019-04-19 2019-04-19 Flash switch control system and input flash detection circuit thereof
CN201910319585.6 2019-04-19
CN201920546439.2U CN210129019U (en) 2019-04-19 2019-04-19 Flash switch control system and input flash detection circuit thereof

Publications (1)

Publication Number Publication Date
WO2020211114A1 true WO2020211114A1 (en) 2020-10-22

Family

ID=72836902

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/084484 WO2020211114A1 (en) 2019-04-19 2019-04-26 Flash switch control system and input flash detection circuit thereof

Country Status (1)

Country Link
WO (1) WO2020211114A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210132149A1 (en) * 2019-11-01 2021-05-06 Beijing Xiaomi Mobile Software Co., Ltd. Flash switch on-off detection circuit and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346216A (en) * 2011-08-17 2012-02-08 佛山市中格威电子有限公司 Circuit capable of realizing accurate measurement of alternating current zero-crossing signal by using linear opticalcoupler
CN102435828A (en) * 2011-12-23 2012-05-02 华南理工大学 Isolated type circuit-voltage zero-crossing detecting circuit
CN103743940A (en) * 2014-01-24 2014-04-23 镇江天力变压器有限公司 Precise zero cross detection circuit for resonance current of high-frequency dedusting power supply
CN107942736A (en) * 2016-10-12 2018-04-20 佛山市顺德区美的电热电器制造有限公司 A kind of control method, main control device and zero-crossing detection circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346216A (en) * 2011-08-17 2012-02-08 佛山市中格威电子有限公司 Circuit capable of realizing accurate measurement of alternating current zero-crossing signal by using linear opticalcoupler
CN102435828A (en) * 2011-12-23 2012-05-02 华南理工大学 Isolated type circuit-voltage zero-crossing detecting circuit
CN103743940A (en) * 2014-01-24 2014-04-23 镇江天力变压器有限公司 Precise zero cross detection circuit for resonance current of high-frequency dedusting power supply
CN107942736A (en) * 2016-10-12 2018-04-20 佛山市顺德区美的电热电器制造有限公司 A kind of control method, main control device and zero-crossing detection circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210132149A1 (en) * 2019-11-01 2021-05-06 Beijing Xiaomi Mobile Software Co., Ltd. Flash switch on-off detection circuit and electronic device
US11874326B2 (en) * 2019-11-01 2024-01-16 Beijing Xiaomi Mobile Software Co., Ltd. Flash switch on-off detection circuit and electronic device

Similar Documents

Publication Publication Date Title
CN109991535B (en) Flash switch control system and input flash detection circuit thereof
US10666152B2 (en) Valley and peak detection for switching power converter
JP4735072B2 (en) Switching power supply
CN104883063B (en) Switching power unit
US10170975B1 (en) AC line detection and X capacitor discharge using a single terminal
US20180191254A1 (en) Sense resistor short detection for synchronous rectifier
CN203661377U (en) Dual-winding single-stage primary side feedback type LED lamp drive circuit
CN212568933U (en) Zero-crossing detection calibrating device and zero-crossing detection calibrating system
CN106803666A (en) Switching power supply control device and switching power supply
CN211656009U (en) Control device and chip of switching power supply and switching power supply
CN109963394A (en) A kind of flash switch detection circuit and Intelligent lamp
CN109768708A (en) Zero voltage switching control circuit for flyback type electric source supply circuit
TW201902103A (en) Power control device and power control system
CN104617558A (en) Power supply short circuit protection circuit
CN109890115B (en) Intelligent lamp control system and flashing control circuit thereof
CN103889114B (en) A kind of LED dimming driving circuit
US8272376B2 (en) Gas cooker control system
WO2020211114A1 (en) Flash switch control system and input flash detection circuit thereof
CN104980036B (en) A kind of inverse-excitation type switch power-supply circuit
CN106787636B (en) Synchronous rectification control circuit compatible with CCM (continuous current mode)
US9980355B2 (en) LED driver provided with time delay circuit
JP2014117088A (en) Control circuit for switching power unit
CN210129019U (en) Flash switch control system and input flash detection circuit thereof
CN104411035A (en) LED drive circuit without auxiliary winding for power supply
CN108347157B (en) Synchronous rectification control device and synchronous rectification control circuit thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19925386

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 05.04.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19925386

Country of ref document: EP

Kind code of ref document: A1