An anti-electric shock multi-channel output intelligent switch

By using the main control chip and circuit module in the intelligent switch to detect the zero-sequence current and voltage, quickly converting the live wire into the neutral wire, solving the problems of low sensitivity and complex installation in the existing technology, and achieving efficient anti-electric shock and multiple outputs. Reduces risks and wiring complexity in household electricity use.

CN113193862BActive Publication Date: 2024-12-10XIANGTAN DIANDAOFU ZIYUN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110478182.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-30
Publication Date
2024-12-10
Estimated Expiration
2041-04-30

AI Technical Summary

Technical Problem

The existing air switches and leakage protectors have low sensitivity, slow reaction time in household electricity use, and are complex in installation, which can easily cause fires and cannot effectively prevent electric shock accidents.

Method used

A multi-output intelligent switch for anti-electric shock is designed, using the main control chip STM32F103RCT6, conversion circuit module, fault detection circuit module and output circuit module. By detecting zero-sequence current and voltage, the live wire is quickly converted into neutral wire to avoid electric shock, and Supports multiple outputs of predetermined amounts of current, reducing wiring workload.

Benefits of technology

It realizes that the human body will not be electrocuted or tripped when touching a single live wire, avoid accidental electric shock accidents, automatically detect faults and quickly warning or power outage, reduce the risk of electric shock and fire, and meet users' classified control needs for household appliances.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113193862B_ABST
    Figure CN113193862B_ABST
Patent Text Reader

Abstract

The invention discloses an anti-electric shock multi-channel output intelligent switch, which relates to the field of intelligent switch circuit structure, and comprises a main control chip, a power circuit module, a conversion circuit module, a fault detection circuit module, an output circuit module, a first operational amplifier chip, and a second operational amplifier chip. After someone touches a single live wire of a household, the fault detection circuit module detects a zero-sequence current, and the main control chip quickly disconnects the main live wire from the first power wire of the household, and disconnects the main neutral wire from the second power wire of the household, and connects the main live wire to the second power wire of the household, and the main neutral wire to the first power wire of the household, so that the original live wire of the household becomes the neutral wire of the household, and the neutral wire of the household becomes the live wire of the household, so that the human body does not get an electric shock or trip when touching the single live wire, and multiple predetermined current outputs are realized through the output circuit module, so as to meet the user's demand for classified control of household electrical appliances.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of intelligent switch circuit structure, and in particular relates to an electric shock prevention multi-channel output intelligent switch. Background Art

[0002] With the rapid development of science and technology, there are more and more electrical equipment, and the number of accidents resulting in fires and even casualties due to electric shock remains high every year. Therefore, electricity safety has become a key concern in current electrical equipment. Among the electric shock accidents that have occurred, there are a large number of accidental electric shock accidents involving household electricity. For those skilled in the art, it is very necessary to invent an anti-electric shock and anti-fire electricity safety manager for household circuits to avoid accidental touching of the live wire and causing electric shock casualties. However, the existing air switches and leakage protectors are both mechanical switches with low sensitivity and slow response time. A switch box is composed of multiple switches and leakage protectors. The multiple wiring makes installation inconvenient, and poor contact and heating of the wires are prone to occur, which can easily cause fires. Therefore, the existing air switches or leakage protectors are not reliable enough to ensure the safety of household electricity. Summary of the invention

[0003] To solve the above problems, the purpose of the present invention is to provide an anti-electric shock multi-output intelligent switch, which is used in household circuits to prevent electric shock or tripping when a person touches a single live wire, thereby avoiding accidental electric shock accidents and not affecting the operation of household appliances.

[0004] Another object of the present invention is to provide an anti-electric shock multi-output intelligent switch, which has multiple output currents of predetermined sizes to meet the needs of users to classify and control household appliances. There is no need to use multiple air switches and leakage protectors in combination, which reduces the wiring workload and thus reduces the probability of poor contact.

[0005] To achieve the above object, the technical solution of the present invention is as follows:

[0006] The present invention provides an electric shock prevention multi-channel output intelligent switch, wherein a mains live wire and a mains neutral wire are connected to the intelligent switch, a first power line of a household and a second power line of a household are connected to the intelligent switch, the mains live wire is connected to the first power line of the household through the intelligent switch, and the mains neutral wire is connected to the second power line of the household through the intelligent switch, comprising:

[0007] The main control chip provides central control functions; the model of the main control chip is STM32F103RCT6;

[0008] A power circuit module provides working power for the intelligent switch;

[0009] The conversion circuit module disconnects the connection between the live wire of the mains and the first power wire of the household, and the connection between the neutral wire of the mains and the second power wire of the household, respectively, and connects the live wire of the mains and the second power wire of the household, and the neutral wire of the mains and the first power wire of the household according to the instruction of the main control chip;

[0010] A fault detection circuit module is connected to the first household power line and the second household power line respectively to detect fault conditions on the first household power line and the second household power line;

[0011] An output circuit module is connected to the first power line of the household and the second power line of the household respectively, and outputs current of a predetermined magnitude in multiple channels;

[0012] The first operational amplifier chip is connected to the fault detection circuit module and the main control chip, and amplifies the numerical value transmitted by the fault detection circuit module and transmits it to the main control chip; the model of the first operational amplifier chip is LM358;

[0013] The second operational amplifier chip is connected to the output circuit module and the main control chip, and amplifies the numerical operation transmitted by the output circuit module and transmits it to the main control chip; the model of the second operational amplifier chip is LM324.

[0014] Further, the conversion circuit module includes a first conversion transistor, a second conversion transistor, a first optocoupler, a second optocoupler, a third optocoupler, a fourth optocoupler, a first thyristor, a second thyristor, a third thyristor, a fourth thyristor, a first switch control resistor, a second switch control resistor, a third switch control resistor, and a fourth switch control resistor. The first optocoupler, the second optocoupler, the third optocoupler, and the fourth optocoupler are all MOC3083 models, the first thyristor, the second thyristor, the third thyristor, and the fourth thyristor are all BTA100 models, and the first conversion transistor and the second conversion transistor are all transistor 8050 models; the fifth of the main control chip Pin 2 is connected to the base of the first conversion transistor, the emitter of the first conversion transistor is grounded, the collector of the first conversion transistor is connected to the second pins of the first and third optocouplers, the 45th pin of the main control chip is connected to the base of the second conversion transistor, the emitter of the second conversion transistor is grounded, the collector of the second conversion transistor is connected to the second pins of the second and fourth optocouplers, the first pins of the first, second, third and fourth optocouplers are all connected to VCC, the sixth pins of the first and fourth optocouplers are all connected to the first power line of the home, the sixth pins of the second and third optocouplers are all connected to the second power line of the home; the fourth pin of the first optocoupler The first photocoupler is connected to the control electrode of the first thyristor, the first anode of the first thyristor is connected to the second power line of the home, the second anode of the first thyristor is connected to the neutral line of the mains, one end of the first switch control resistor is connected to the control electrode of the first thyristor, and the other end of the first switch control resistor is connected to the second anode of the first thyristor; the 4th foot of the second photocoupler is connected to the control electrode of the second thyristor, the first anode of the second thyristor is connected to the first power line of the home, the second anode of the second thyristor is connected to the neutral line of the mains, one end of the second switch control resistor is connected to the control electrode of the second thyristor, and the other end of the second switch control resistor is connected to the second anode of the second thyristor; the third photocoupler is connected to the control electrode of the second thyristor, the first anode of the second thyristor is connected to the first power line of the home, the second anode of the second thyristor is connected to the neutral line of the mains, one end of the second switch control resistor is connected to the control electrode of the second thyristor, and the other end of the second switch control resistor is connected to the second anode of the second thyristor; The 4th foot of the main control chip is connected to the control electrode of the third thyristor, the first anode of the third thyristor is connected to the first power line of the family, the second anode of the third thyristor is connected to the mains live wire, one end of the third switch control resistor is connected to the control electrode of the third thyristor, and the other end of the third switch control resistor is connected to the second anode of the third thyristor; the 4th foot of the fourth optocoupler is connected to the control electrode of the fourth thyristor, the first anode of the fourth thyristor is connected to the second power line of the family, the second anode of the fourth thyristor is connected to the mains live wire, one end of the fourth switch control resistor is connected to the control electrode of the fourth thyristor, and the other end of the fourth switch control resistor is connected to the second anode of the fourth thyristor. In the initial state, the 52nd foot of the main control chip is high level, and the 45th foot is low level. The main control chip controls the first and third optocouplers to turn on, and the second and fourth optocouplers to turn off, so that the first and third thyristors are turned on, and the second and fourth thyristors are turned off, so that the first power line of the family is connected to the mains live wire to become the family live wire, and the second power line of the family is connected to the mains neutral wire to become the family neutral wire.If someone touches the first power line of the household, the fault detection circuit module detects the zero-sequence current and transmits the fault condition to the first operational amplifier chip. The first operational amplifier chip transmits the zero-sequence current data to the main control chip after corresponding processing. The main control chip determines that someone is electrocuted according to the fault condition, that is, the leakage current value exceeds the set electric shock current value (which can be temporarily set to 20Ma), and then issues a circuit conversion instruction to make the 52nd foot of the main control chip low level and the 45th foot high level. The main control chip controls the first optical coupler and the third optical coupler to be disconnected, and the second optical coupler and the fourth optical coupler to be turned on, so that the first thyristor and the third thyristor are cut off, and the second thyristor and the fourth thyristor are turned on, so that the first power line of the household is connected to the main power neutral line to become the household neutral line, and the second power line of the household is connected to the main power live line to become the household live line. Conversely, when a person touches the single live line of the household, the live line is quickly converted to the neutral line. The intelligent switch uses the main control chip to control the sensitive response and fast conversion speed, thereby avoiding electric shock accidents, and does not trip or affect the operation of household appliances.

[0015] Furthermore, the power circuit module includes a rectifier, a power control chip of model ME8321A, a voltage regulator of model AMS1117-3.3, a first transformer of model BLW05T, a first resistor, a second resistor, a third resistor, a fourth resistor, a first rectifier diode, a second rectifier diode, a power light-emitting diode, a first capacitor, a second capacitor, a third capacitor, and a fourth capacitor. The rectifier input end is connected to the mains live wire and the mains neutral wire, the positive electrode of the first capacitor is connected to the positive electrode of the rectifier output end, one end of the first resistor is connected to the positive electrode of the rectifier output end, the other end of the first resistor and one end of the second capacitor are both connected to the 5th pin of the power control chip, one end of the second resistor is connected to the 8th pin of the power control chip, one end of the third resistor is connected to the 6th pin of the power control chip, the negative electrode of the first capacitor, the other end of the third resistor, the other end of the second resistor, and the other electrode of the second capacitor are connected to the negative electrode of the rectifier output end, and one end of the fourth resistor is connected to the power supply. The sixth pin of the control chip is connected, the other end of the fourth resistor is connected to the fourth pin of the first transformer, the positive electrode of the first rectifier diode is connected to the fourth pin of the first transformer, the negative electrode of the first rectifier diode is connected to the fifth pin of the power control chip, the fourth pin of the power control chip is connected to the negative electrode of the rectifier output terminal and the third pin of the first transformer, the first and second pins of the power control chip are connected to the second pin of the first transformer, the first pin of the first transformer is connected to the positive electrode of the rectifier output terminal, the fifth pin of the first transformer is connected to the positive electrode of the second rectifier diode, and the sixth pin of the first transformer is grounded; the negative electrode of the third capacitor is grounded, the positive electrode of the third capacitor is connected to the negative electrode of the second rectifier diode, the voltage input terminal of the regulator is connected to the negative electrode of the second rectifier diode, the voltage output terminal of the regulator is connected to the positive electrode of the fourth capacitor and the positive electrode of the power light emitting diode, the ground terminal of the regulator is grounded, the negative electrode of the fourth capacitor is grounded, and the negative electrode of the power light emitting diode is grounded. The working power supply adopts a power supply circuit composed mainly of the primary side feedback constant voltage and constant current power management chip ME8321A to provide working voltage and current for the main control chip, other chips, components and circuits.

[0016] Furthermore, the fault detection circuit module includes an LCD display module, a first zero-sequence current transformer, a second zero-sequence current transformer, a second transformer, a leakage indication light emitting diode, an over / under voltage indication light emitting diode, an overcurrent indication light emitting diode, a buzzer, and a buzzer transistor. The LCD display module is connected to the main control chip, the positive electrode of the leakage indication light emitting diode is connected to the 50th pin of the main control chip, the positive electrode of the over / under voltage indication light emitting diode is connected to the 51st pin of the main control chip, the positive electrode of the overcurrent indication light emitting diode is connected to the 4th pin of the main control chip, the base of the buzzer transistor is connected to the 3rd pin of the main control chip, the negative electrode of the leakage indication light emitting diode, the negative electrode of the over / under voltage indication light emitting diode, the negative electrode of the overcurrent indication light emitting diode, and the emitter of the buzzer transistor are all grounded, the collector of the buzzer transistor is connected to the negative electrode of the buzzer, and the positive electrode of the buzzer is connected to VCC; the primary coil of the first zero-sequence current transformer is connected to the second power line of the home. One end of the secondary coil of the first zero-sequence current transformer is connected to the third pin of the first operational amplifier chip, the other end of the secondary coil of the first zero-sequence current transformer is grounded, the primary coil of the second zero-sequence current transformer is connected to the first power line of the home, one end of the secondary coil of the second zero-sequence current transformer is connected to the fifth pin of the first operational amplifier chip, the other end of the secondary coil of the second zero-sequence current transformer is connected to VCC, the first pin of the first operational amplifier chip is connected to the eighth pin of the main control chip, the eighth pin of the first operational amplifier chip is connected to VCC, the second, fourth and sixth pins of the first operational amplifier chip are all grounded, the seventh pin of the first operational amplifier chip is connected to the ninth pin of the main control chip, one end of the primary coil of the second transformer is connected to the first power line of the home, the other end of the primary coil of the second transformer is connected to the second power line of the home, one end of the secondary coil of the second transformer is connected to the tenth pin of the main control chip, and the other end of the secondary coil of the second transformer is grounded. When the first power line of the household is the household live line, when a person touches the household live line, the second zero-sequence current transformer detects the zero-sequence current, and transmits the zero-sequence current data to the first operational amplifier chip, so that the main control chip controls the conversion circuit module to convert the first power line of the household into the household neutral line; when the second power line of the household is the household live line, when a person touches the household live line, the first zero-sequence current transformer detects the zero-sequence current, and transmits the zero-sequence current data to the first operational amplifier chip, so that the main control chip controls the conversion circuit module to convert the second power line of the household into the household neutral line, so that a person touches the household live line without being electrocuted or tripping.When the current and voltage between the home live wire and the home neutral wire change abnormally, the first zero-sequence current transformer and the second zero-sequence current transformer will transmit the detected current data to the main control chip after calculation and amplification through the first operational amplifier chip, and the second transformer will transmit the detected voltage signal to the main control chip. The main control chip will judge the specific situation of the fault according to the comparison between the current value, voltage value and the set value, make corresponding instructions, and control the corresponding warning components, namely the leakage indication LED, over / under voltage indication LED, overcurrent indication LED, and buzzer to warn. For example, when the maximum value of the voltage between the first power line and the second power line of the home is set to 265V and the minimum value is 165V, when the actual voltage value is higher than 265V or lower than 165V, the main control chip cuts off the power supply. The main control chip displays the corresponding current and voltage values ​​through the LCD display module.

[0017] Further, the output circuit module includes a first socket port, a second socket port, a third socket port, a fourth socket port, a fifth socket port, a sixth socket port, a first temperature sensor, a second temperature sensor, a first magnetic latching relay, a second magnetic latching relay, a third magnetic latching relay, a fourth magnetic latching relay, a fifth magnetic latching relay, a sixth magnetic latching relay, a first button, a second button, a third button, a fourth button, a fifth button, a sixth button, a first current transformer, a second current transformer, a third current transformer, a fourth current transformer sensor, the fifth current transformer, the sixth current transformer, the first transistor, the second transistor, the third transistor, the fourth transistor, the fifth transistor, the sixth transistor, the seventh transistor, the eighth transistor, the ninth transistor, the tenth transistor, the eleventh transistor, the twelfth transistor, the first indicator light emitting diode, the second indicator light emitting diode, the third indicator light emitting diode, the fourth indicator light emitting diode, the fifth indicator light emitting diode, and the sixth indicator light emitting diode; the number of the second operational amplifier chips is two, which are divided into a first four-operational amplifier chip and a second four-operational amplifier chip. Amplifier chip; one end of the first temperature sensor is connected to the 3rd pin of the No. 1 four operational amplifier chip, one end of the second temperature sensor is connected to the 5th pin of the No. 1 four operational amplifier chip, one end of the first button, the second button, the third button, the fourth button, the fifth button, and the sixth button are all connected to the 15th pin of the main control chip, and the other ends of the first temperature sensor, the second temperature sensor, the first button, the second button, the third button, the fourth button, the fifth button, and the sixth button are all grounded; the positive electrode of the first indicator light emitting diode is connected to the 42nd pin of the main control chip, the positive electrode of the second indicator light emitting diode is connected to the 43rd pin of the main control chip, the positive electrode of the third indicator light emitting diode is connected to the 44th pin of the main control chip, the positive electrode of the fourth indicator light emitting diode is connected to the 53rd pin of the main control chip, the positive electrode of the fifth indicator light emitting diode is connected to the 54th pin of the main control chip, the positive electrode of the sixth indicator light emitting diode is connected to the 55th pin of the main control chip, and the negative electrodes of the first indicator light emitting diode, the second indicator light emitting diode, the third indicator light emitting diode, the fourth indicator light emitting diode, the fifth indicator light emitting diode, and the sixth indicator light emitting diode are all grounded;The base of transistor No. 1 is connected to the 33rd pin of the main control chip, the base of transistor No. 2 is connected to the 41st pin of the main control chip, the base of transistor No. 3 is connected to the 34th pin of the main control chip, the base of transistor No. 4 is connected to the 40th pin of the main control chip, the base of transistor No. 5 is connected to the 28th pin of the main control chip, the base of transistor No. 6 is connected to the 39th pin of the main control chip, the base of transistor No. 7 is connected to the 27th pin of the main control chip, and the base of transistor No. 8 is connected to the 38th pin of the main control chip. The base of transistor No. 9 is connected to the 26th pin of the main control chip, the base of transistor No. 10 is connected to the 37th pin of the main control chip, the base of transistor No. 11 is connected to the 25th pin of the main control chip, and the base of transistor No. 12 is connected to the 36th pin of the main control chip; the collector of transistor No. 1 is connected to the closed end coil of the first magnetic latching relay, the collector of transistor No. 2 is connected to the disconnected end coil of the first magnetic latching relay, the collector of transistor No. 3 is connected to the closed end coil of the second magnetic latching relay, the collector of transistor No. 4 is connected to the disconnected end coil of the second magnetic latching relay, the collector of transistor No. 5 is connected to the closed end coil of the third magnetic latching relay, the collector of transistor No. 6 is connected to the disconnected end coil of the third magnetic latching relay, the collector of transistor No. 7 is connected to the closed end coil of the fourth magnetic latching relay, the collector of transistor No. 8 is connected to the disconnected end coil of the fourth magnetic latching relay, and the collector of transistor No. 9 is connected to the closed end coil of the fifth magnetic latching relay. The collector of transistor No. 10 is connected to the disconnection end coil of the fifth magnetic latching relay, the collector of transistor No. 11 is connected to the closing end coil of the sixth magnetic latching relay, and the collector of transistor No. 12 is connected to the disconnection end coil of the sixth magnetic latching relay; the emitters of transistor No. 1, transistor No. 2, transistor No. 3, transistor No. 4, transistor No. 5, transistor No. 6, transistor No. 7, transistor No. 8, transistor No. 9, transistor No. 10, transistor No. 11, and transistor No. 12 are all grounded;VCC is connected between the closed end coil and the disconnected end coil of the first magnetic holding relay, between the closed end coil and the disconnected end coil of the second magnetic holding relay, between the closed end coil and the disconnected end coil of the third magnetic holding relay, between the closed end coil and the disconnected end coil of the fourth magnetic holding relay, between the closed end coil and the disconnected end coil of the fifth magnetic holding relay, and between the closed end coil and the disconnected end coil of the sixth magnetic holding relay. The first magnetic holding relay is connected between the first power cord of the home and one end of the first socket port, and the other end of the first socket port is connected to the second power cord of the home. The second magnetic holding relay is connected between the first power cord of the home and one end of the second socket port. The other end of the second socket port is connected to the second power line of the home, the third magnetic latching relay is connected between the first power line of the home and one end of the third socket port, the other end of the third socket port is connected to the second power line of the home, the fourth magnetic latching relay is connected between the first power line of the home and one end of the fourth socket port, the other end of the fourth socket port is connected to the second power line of the home, the fifth magnetic latching relay is connected between the first power line of the home and one end of the fifth socket port, the other end of the fifth socket port is connected to the second power line of the home, the sixth magnetic latching relay is connected between the first power line of the home and one end of the sixth socket port, the other end of the sixth socket port is connected to the second power line of the home; The primary coil of the first current transformer is connected to the power line where the first socket port is located, the primary coil of the second current transformer is connected to the power line where the second socket port is located, the primary coil of the third current transformer is connected to the power line where the third socket port is located, the primary coil of the fourth current transformer is connected to the power line where the fourth socket port is located, the primary coil of the fifth current transformer is connected to the power line where the fifth socket port is located, the primary coil of the sixth current transformer is connected to the power line where the sixth socket port is located, one end of the secondary coil of the first current transformer is connected to the 3rd pin of the second quad operational amplifier chip, one end of the secondary coil of the second current transformer is connected to the 5th pin of the second quad operational amplifier chip, and the third One end of the secondary coil of the first current transformer is connected to the 10th pin of the second quad operational amplifier chip, one end of the secondary coil of the fourth current transformer is connected to the 12th pin of the second quad operational amplifier chip, one end of the secondary coil of the fifth current transformer is connected to the 12th pin of the first quad operational amplifier chip, one end of the secondary coil of the sixth current transformer is connected to the 10th pin of the first quad operational amplifier chip, and the other end of the secondary coil of the first current transformer, the other end of the secondary coil of the second current transformer, the other end of the secondary coil of the third current transformer, the other end of the secondary coil of the fourth current transformer, the other end of the secondary coil of the fifth current transformer, and the other end of the secondary coil of the sixth current transformer are all grounded;Pin 1 of the No. 1 quad operational amplifier chip is connected to pin 16 of the main control chip, pin 4 of the No. 1 quad operational amplifier chip is connected to VCC, pin 7 of the No. 1 quad operational amplifier chip is connected to pin 11 of the main control chip, pin 14 of the No. 1 quad operational amplifier chip is connected to pin 17 of the main control chip, pin 8 of the No. 1 quad operational amplifier chip is connected to pin 20 of the main control chip, pin 2, pin 6, pin 9, pin 11 and pin 13 of the No. 1 quad operational amplifier chip are grounded, pin 1 of the No. 2 quad operational amplifier chip is connected to pin 21 of the main control chip, pin 4 of the No. 2 quad operational amplifier chip is connected to VCC, pin 7 of the No. 2 quad operational amplifier chip is connected to pin 23 of the main control chip, pin 14 of the No. 2 quad operational amplifier chip is connected to pin 22 of the main control chip, pin 8 of the No. 2 quad operational amplifier chip is connected to pin 24 of the main control chip, and pin 2, pin 6, pin 9, pin 11 and pin 13 of the No. 2 quad operational amplifier chip are grounded. The main control chip controls the conduction and disconnection of the magnetic latching relay through the transistor. For example, if the main control chip controls the conduction of the emitter and collector of transistor No. 1 and the disconnection of the emitter and collector of transistor No. 2, the coil of the closed end of the first magnetic latching relay is energized, and the first magnetic latching relay is closed. The main control chip controls the conduction of the emitter and collector of transistor No. 2 and the disconnection of the emitter and collector of transistor No. 1, and the coil of the disconnected end of the first magnetic latching relay is energized, and the first magnetic latching relay is disconnected. The output of the household circuit is divided into six outputs, and the current value of each output has a set value. The output current on the corresponding line is detected by the current transformer on the corresponding line. The current transformer transmits the detected data to the second operational amplifier chip, and after amplification and calculation by the second operational amplifier chip, it is transmitted to the main control chip. The main control chip determines that when the current value exceeds the set value, it controls the corresponding magnetic latching relay to disconnect, so as to ensure the safety of household electricity. The user can operate the first button, the second button, the third button, the fourth button, the fifth button, and the sixth button. The main control chip controls the corresponding output of the corresponding circuit, and the main control chip controls the corresponding indicator light emitting diode for display. If the user presses the first button to make its contact conductive, the main control chip controls the first magnetic latching relay to be conductive, the corresponding socket port is in an available state, and the corresponding indicator LED lights up;The user presses the first button to disconnect its contacts, and the main control chip controls the first magnetic latching relay to disconnect. The corresponding socket port is in an unavailable state, and the corresponding indicator LED flashes twice per second, thus ensuring the safety of household electricity use. The first temperature sensor and the second temperature sensor transmit the temperature on the wire to the second operational amplifier chip, which amplifies and transmits it to the main control chip. The main control chip compares the current wire temperature value with the set safety temperature value to determine whether the current electricity use is safe. If the wire temperature exceeds the safety temperature value, the main control chip cuts off the power supply. The main control chip can also display the wire temperature value, the current value of each output, and the current and voltage values ​​on the household power bus through the LCD display module. The switching mode of each output can be set between automatic and manual modes. The automatic mode means automatic closing after power failure, and the manual mode means manual closing after power failure. ;

[0018] Furthermore, the smart switch also includes a first selection key, a second selection key, and a setting key, one end of each of which is connected to the 14th pin of the main control chip, and the other end of each of which is grounded. The user can set or adjust various current and voltage setting values ​​for the smart switch through the first selection key, the second selection key, and the setting key to ensure electricity safety.

[0019] Furthermore, the smart switch also includes a WIFI module, which is connected to pins 29 and 30 of the main control chip. Users can connect their mobile phones to the smart switch via WIFI, view the specific conditions of the smart switch on their mobile phones, such as current, voltage values, and fault conditions, and operate the smart switch via the corresponding APP to achieve remote control and monitoring functions.

[0020] The advantages of the present invention are as follows: compared with the prior art, in the present invention, the anti-electric shock multi-channel output intelligent switch is applied in the household circuit to achieve the goal that when a human body touches a single live wire, there will be no electric shock or tripping, thus avoiding accidental electric shock accidents and not affecting the operation of household appliances; multiple channels output currents of predetermined sizes to meet the needs of users to classify and control household appliances, without the need to combine multiple air switches and leakage protectors, thus reducing the wiring workload and thus reducing the probability of poor contact; it automatically detects household power line faults, and quickly warns or cuts off the power when a fault is found, effectively preventing electric shock and fire. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a structural block diagram of the present invention.

[0022] Figure 2 It is a circuit schematic diagram of the present invention.

[0023] Figure 3 It is an enlarged view of part A of the circuit of the present invention.

[0024] Figure 4 It is an enlarged view of part B of the circuit of the present invention.

[0025] Figure 5 It is an enlarged view of part C of the circuit of the present invention.

[0026] Figure 6 It is an enlarged view of part D of the circuit of the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0028] To achieve the above object, the technical solution of the present invention is as follows:

[0029] See also Figure 1-6 As shown, the present invention provides an anti-electric shock multi-channel output intelligent switch, the mains live wire L and the mains neutral wire N are connected to the intelligent switch, the home first power line FL and the home second power line SL are connected to the intelligent switch, the mains live wire L is connected to the home first power line FL through the intelligent switch, the mains neutral wire N is connected to the home second power line SL through the intelligent switch, including a main control chip U4, a power circuit module, a conversion circuit module, a fault detection circuit module, an output circuit module, a first operational amplifier chip U1, and a second operational amplifier chip.

[0030] The main control chip U4 provides a central control function; the model of the main control chip U4 is STM32F103RCT6; the power circuit module provides working power for the intelligent switch; the conversion circuit module disconnects the connection between the main power live wire L and the first power line FL of the home, and the connection between the main power neutral wire N and the second power line SL of the home according to the instruction of the main control chip U4, and connects the main power live wire L and the second power line SL of the home, and the main power neutral wire N and the first power line FL of the home; the fault detection circuit module is connected to the first power line FL of the home and the second power line SL of the home, respectively, to detect the faults of the first power line FL of the home and the second power line SL of the home Fault condition on the power line SL; the output circuit module is connected to the first power line FL and the second power line SL of the home respectively, and outputs current of predetermined size in multiple ways; the first operational amplifier chip U1 is connected to the fault detection circuit module and the main control chip U4, and amplifies the numerical operation transmitted by the fault detection circuit module and transmits it to the main control chip U4; the model of the first operational amplifier chip U1 is LM358; the second operational amplifier chip is connected to the output circuit module and the main control chip U4, and amplifies the numerical operation of the output circuit module and transmits it to the main control chip U4; the model of the second operational amplifier chip is LM324.

[0031] The conversion circuit module includes a first conversion transistor Q14, a second conversion transistor Q13, a first optical coupler MO1, a second optical coupler MO2, a third optical coupler MO3, a fourth optical coupler MO4, a first thyristor TR1, a second thyristor TR2, a third thyristor TR3, a fourth thyristor TR4, a first switch control resistor R21, a second switch control resistor R24, a third switch control resistor R26, and a fourth switch control resistor R28. The first optical coupler MO1, the second optical coupler MO2, the third optical coupler MO3, and the fourth optical coupler MO4 are all of model MOC3083, and the first thyristor TR1, the second thyristor TR2, the third thyristor TR3, and the fourth thyristor TR4 are all of model BTA100. The first conversion transistor Q14 and the second conversion transistor Q13 are both transistor 8050; the 52nd pin of the main control chip U4 is connected to the base of the first conversion transistor Q14, the emitter of the first conversion transistor Q14 is grounded, the collector of the first conversion transistor Q14 is connected to the second pins of the first optical coupler MO1 and the third optical coupler MO3, the 45th pin of the main control chip U4 is connected to the base of the second conversion transistor Q13, the emitter of the second conversion transistor Q13 is grounded, the collector of the second conversion transistor Q13 is connected to the second pins of the second optical coupler MO2 and the fourth optical coupler MO4, the first pins of the first optical coupler MO1, the second optical coupler MO2, the third optical coupler MO3, and the fourth optical coupler MO4 are all connected to VC C is connected, the 6th pins of the first optical coupler MO1 and the fourth optical coupler MO4 are connected to the first household power line FL, and the 6th pins of the second optical coupler MO2 and the third optical coupler MO3 are connected to the second household power line SL; the 4th pin of the first optical coupler MO1 is connected to the control electrode of the first thyristor TR1, the first anode of the first thyristor TR1 is connected to the second household power line SL, the second anode of the first thyristor TR1 is connected to the mains neutral line N, one end of the first switch control resistor R21 is connected to the control electrode of the first thyristor TR1, and the other end of the first switch control resistor R21 is connected to the second anode of the first thyristor TR1; the 4th pin of the second optical coupler MO2 is connected to the control electrode of the second thyristor TR2, and the second thyristor The first anode of TR2 is connected to the first power line FL of the home, the second anode of the second thyristor TR2 is connected to the mains neutral line N, one end of the second switch control resistor R24 ​​is connected to the control electrode of the second thyristor TR2, and the other end of the second switch control resistor R24 ​​is connected to the second anode of the second thyristor TR2; the fourth foot of the third optical coupler MO3 is connected to the control electrode of the third thyristor TR3, the first anode of the third thyristor TR3 is connected to the first power line FL of the home, the second anode of the third thyristor TR3 is connected to the mains live line L, one end of the third switch control resistor R26 is connected to the control electrode of the third thyristor TR3, and the other end of the third switch control resistor R26 is connected to the second anode of the third thyristor TR3;The fourth pin of the fourth optical coupler MO4 is connected to the control electrode of the fourth thyristor TR4, the first anode of the fourth thyristor TR4 is connected to the second power line SL of the home, the second anode of the fourth thyristor TR4 is connected to the mains live line L, one end of the fourth switch control resistor R28 is connected to the control electrode of the fourth thyristor TR4, and the other end of the fourth switch control resistor R28 is connected to the second anode of the fourth thyristor TR4. In the initial state, the 52nd pin of the main control chip U4 is high level, and the 45th pin is low level. The main control chip U4 controls the first optical coupler MO1 and the third optical coupler MO3 to turn on, and the second optical coupler MO2 and the fourth optical coupler MO4 to turn off, so that the first thyristor TR1 and the third thyristor TR3 are turned on, and the second thyristor TR2 and the fourth thyristor TR4 are turned off, so that the first power line FL of the home is connected to the mains live line L to become the home live line, and the second power line SL of the home is connected to the mains neutral line N to become the home neutral line. If someone touches the first power line FL of the home, the fault detection circuit module detects the zero-sequence current and transmits the fault condition to the first operational amplifier chip U1. The first operational amplifier chip U1 transmits the zero-sequence current data to the main control chip U4 after corresponding processing. The main control chip U4 determines that someone is electrocuted according to the fault condition, that is, the leakage current value exceeds the set electric shock current value (which can be temporarily set to 20Ma), and then issues a circuit conversion instruction to make the 52nd foot of the main control chip U4 low level and the 45th foot high level. The main control chip U4 controls the first optical coupler MO1 and the third optical coupler MO 3 is disconnected, the second optical coupler MO2 and the fourth optical coupler MO4 are turned on, so that the first thyristor TR1 and the third thyristor TR3 are turned off, and the second thyristor TR2 and the fourth thyristor TR4 are turned on, so that the first power line FL of the family is connected to the main power zero line N to become the family zero line, and the second power line SL of the family is connected to the main power live line L to become the family live line. Similarly, when a person touches the single live line of the family, the live line is quickly converted to the neutral line. The intelligent switch uses the main control chip U4 to control the sensitive response and fast conversion speed, avoiding electric shock accidents, and does not trip and affect the operation of household appliances. ;

[0032] The power circuit module includes a rectifier D3, a power control chip U6 of model ME8321A, a voltage regulator U5 of model AMS1117-3.3, a first transformer T1 of model BLW05T, a first resistor R41, a second resistor R42, a third resistor R43, a fourth resistor R44, a first rectifier diode D1, a second rectifier diode D2, a power light-emitting diode LED1, a first capacitor EC1, a second capacitor EC2, a third capacitor EC3, and a fourth capacitor EC4. The input end of the rectifier D3 is connected to the mains live wire L and the mains neutral wire N. The positive electrode of the first capacitor EC1 is connected to the positive electrode of the output terminal of the rectifier D3, one end of the first resistor R41 is connected to the positive electrode of the output terminal of the rectifier D3, the other end of the first resistor R41 and one end of the second capacitor EC2 are connected to the 5th pin of the power control chip U6, one end of the second resistor R42 is connected to the 8th pin of the power control chip U6, one end of the third resistor R43 is connected to the 6th pin of the power control chip U6, the negative electrode of the first capacitor EC1, the other end of the third resistor R43, the other end of the second resistor R42, and the other end of the second capacitor EC2 are all connected to the negative electrode of the output terminal of the rectifier D3, and the fourth One end of the resistor R44 is connected to the 6th pin of the power control chip U6, the other end of the fourth resistor R44 is connected to the 4th pin of the first transformer T1, the positive electrode of the first rectifier diode D1 is connected to the 4th pin of the first transformer T1, the negative electrode of the first rectifier diode D1 is connected to the 5th pin of the power control chip U6, the 4th pin of the power control chip U6 is connected to the negative electrode of the output end of the rectifier D3 and the 3rd pin of the first transformer T1, the 1st and 2nd pins of the power control chip U6 are connected to the 2nd pin of the first transformer T1, the 1st pin of the first transformer T1 is connected to the output of the rectifier D3 The positive pole of the first transformer T1 is connected, the 5th pin of the first transformer T1 is connected to the positive pole of the second rectifier diode D2, and the 6th pin of the first transformer T1 is grounded; the negative pole of the third capacitor EC3 is grounded, the positive pole of the third capacitor EC3 is connected to the negative pole of the second rectifier diode D2, the voltage input end of the voltage regulator U5 is connected to the negative pole of the second rectifier diode D2, the voltage output end of the voltage regulator U5 is connected to the positive pole of the fourth capacitor EC4 and the positive pole of the power light emitting diode LED1, the grounding end of the voltage regulator U5 is grounded, the negative pole of the fourth capacitor EC4 is grounded, and the negative pole of the power light emitting diode LED1 is grounded. The working power supply adopts a power supply circuit composed mainly of the primary feedback constant voltage and constant current power management chip ME8321A to provide working voltage and current for the main control chip U4, other chips, components and circuits.

[0033] The fault detection circuit module includes an LCD display module LCM, a first zero-sequence current transformer TL1, a second zero-sequence current transformer TL2, a second transformer T2, a leakage indication light emitting diode LED2, an over / under voltage indication light emitting diode LED3, an overcurrent indication light emitting diode LED4, a buzzer F, and a buzzer transistor Q15. The LCD display module LCM is connected to the main control chip U4, the positive electrode of the leakage indication light emitting diode LED2 is connected to the 50th pin of the main control chip U4, the positive electrode of the over / under voltage indication light emitting diode LED3 is connected to the main control chip The 51st pin of the chip U4 is connected, the positive electrode of the overcurrent indication light emitting diode LED4 is connected to the 4th pin of the main control chip U4, the base of the buzzer transistor Q15 is connected to the 3rd pin of the main control chip U4, the cathode of the leakage indication light emitting diode LED2, the cathode of the over / under voltage indication light emitting diode LED3, the cathode of the overcurrent indication light emitting diode LED4, and the emitter of the buzzer transistor Q15 are all grounded, the collector of the buzzer transistor Q15 is connected to the cathode of the buzzer F, and the anode of the buzzer F is connected to VCC; the first zero-sequence current transformer TL1 The primary coil is connected to the second power line SL of the home, one end of the secondary coil of the first zero-sequence current transformer TL1 is connected to the third pin of the first operational amplifier chip U1, and the other end of the secondary coil of the first zero-sequence current transformer TL1 is grounded. The primary coil of the second zero-sequence current transformer TL2 is connected to the first power line FL of the home, one end of the secondary coil of the second zero-sequence current transformer TL2 is connected to the fifth pin of the first operational amplifier chip U1, and the other end of the secondary coil of the second zero-sequence current transformer TL2 is connected to VCC, and the first pin of the first operational amplifier chip U1 is connected to the main control chip U1. 4, the 8th pin of the first operational amplifier chip U1 is connected to VCC, the 2nd, 4th and 6th pins of the first operational amplifier chip U1 are all grounded, the 7th pin of the first operational amplifier chip U1 is connected to the 9th pin of the main control chip U4, one end of the primary coil of the second transformer T2 is connected to the first household power line FL, the other end of the primary coil of the second transformer T2 is connected to the second household power line SL, one end of the secondary coil of the second transformer T2 is connected to the 10th pin of the main control chip U4, and the other end of the secondary coil of the second transformer T2 is grounded. When the first power line FL of the household is the household live wire, when a person touches the household live wire, the second zero-sequence current transformer TL2 detects the zero-sequence current and transmits the zero-sequence current data to the first operational amplifier chip U1, so that the main control chip U4 controls the conversion circuit module to convert the first power line FL of the household into the household neutral wire; when the second power line SL of the household is the household live wire, when a person touches the household live wire, the first zero-sequence current transformer TL1 detects the zero-sequence current and transmits the zero-sequence current data to the first operational amplifier chip U1, so that the main control chip U4 controls the conversion circuit module to convert the second power line SL of the household into the household neutral wire, so that a person touches the household live wire without being electrocuted or tripping.When the current and voltage between the household live wire and the household neutral wire change abnormally, the first zero-sequence current transformer TL1 and the second zero-sequence current transformer TL2 calculate and amplify the detected current data through the first operational amplifier chip U1 and transmit it to the main control chip U4. The second transformer T2 transmits the detected voltage signal to the main control chip U4. The main control chip U4 judges the specific situation of the fault according to the comparison between the current value, the voltage value and the set value, makes corresponding instructions, and controls the corresponding warning components, namely the leakage indication light emitting diode LED2, the over / under voltage indication light emitting diode LED3, the overcurrent indication light emitting diode LED4, and the buzzer F for warning. For example, when the maximum value of the voltage between the first household power line FL and the second household power line SL is set to 265V and the minimum value is 165V, when the actual voltage value is higher than 265V or lower than 165V, the main control chip U4 cuts off the power supply. The main control chip U4 displays the corresponding current and voltage values ​​through the LCD display module LCM.

[0034] The output circuit module includes a first socket port, a second socket port, a third socket port, a fourth socket port, a fifth socket port, a sixth socket port, a first temperature sensor RT1, a second temperature sensor RT2, a first magnetic latching relay J1, a second magnetic latching relay J2, a third magnetic latching relay J3, a fourth magnetic latching relay J4, a fifth magnetic latching relay J5, a sixth magnetic latching relay J6, a first button SW-K1, a second button SW-K2, a third button SW-K3, a fourth button SW-K4, a fifth button SW-K5, a sixth button SW-K6, a first current transformer KL1, a second current transformer KL2, a third current transformer KL3, a fourth current transformer KL4, a first Five-way current transformer KL5, sixth-way current transformer KL6, No. 1 transistor Q1, No. 2 transistor Q2, No. 3 transistor Q3, No. 4 transistor Q4, No. 5 transistor Q5, No. 6 transistor Q6, No. 7 transistor Q7, No. 8 transistor Q8, No. 9 transistor Q9, No. 10 transistor Q10, No. 11 transistor Q11, No. 12 transistor Q12, first indicator light emitting diode LK1, second indicator light emitting diode LK2, third indicator light emitting diode LK3, fourth indicator light emitting diode LK4, fifth indicator light emitting diode LK5, sixth indicator light emitting diode LK6; the number of the second operational amplifier chips is two, which are divided into No. 1 four operational amplifier chip U2 and No. 2 four operational amplifier chip U3; the first One end of the temperature sensor RT1 is connected to the 3rd pin of the No. 1 quad operational amplifier chip U2, one end of the second temperature sensor RT2 is connected to the 5th pin of the No. 1 quad operational amplifier chip U2, one end of the first button SW-K1, the second button SW-K2, the third button SW-K3, the fourth button SW-K4, the fifth button SW-K5, and the sixth button SW-K6 are all connected to the 15th pin of the main control chip U4, and the other ends of the first temperature sensor RT1, the second temperature sensor RT2, the first button SW-K1, the second button SW-K2, the third button SW-K3, the fourth button SW-K4, the fifth button SW-K5, and the sixth button SW-K6 are all grounded; the positive electrode of the first indicator light emitting diode LK1 is connected to the The 42nd pin of the main control chip U4 is connected, the anode of the second indicator light emitting diode LK2 is connected to the 43rd pin of the main control chip U4, the anode of the third indicator light emitting diode LK3 is connected to the 44th pin of the main control chip U4, the anode of the fourth indicator light emitting diode LK4 is connected to the 53rd pin of the main control chip U4, the anode of the fifth indicator light emitting diode LK5 is connected to the 54th pin of the main control chip U4, the anode of the sixth indicator light emitting diode LK6 is connected to the 55th pin of the main control chip U4, and the cathodes of the first indicator light emitting diode LK1, the second indicator light emitting diode LK2, the third indicator light emitting diode LK3, the fourth indicator light emitting diode LK4, the fifth indicator light emitting diode LK5, and the sixth indicator light emitting diode LK6 are all grounded;The base of transistor Q1 is connected to the 33rd pin of the main control chip U4, the base of transistor Q2 is connected to the 41st pin of the main control chip U4, the base of transistor Q3 is connected to the 34th pin of the main control chip U4, the base of transistor Q4 is connected to the 40th pin of the main control chip U4, the base of transistor Q5 is connected to the 28th pin of the main control chip U4, the base of transistor Q6 is connected to the 39th pin of the main control chip U4, the base of transistor Q7 is connected to the 27th pin of the main control chip U4, and the base of transistor Q8 is connected to the 38th pin of the main control chip U4. The base of transistor Q9 is connected to the 26th pin of the main control chip U4, the base of transistor Q10 is connected to the 37th pin of the main control chip U4, the base of transistor Q11 is connected to the 25th pin of the main control chip U4, and the base of transistor Q12 is connected to the 36th pin of the main control chip U4; the collector of transistor Q1 is connected to the closed end coil of the first magnetic latching relay J1, the collector of transistor Q2 is connected to the open end coil of the first magnetic latching relay J1, and the collector of transistor Q3 is connected to the closed end coil of the second magnetic latching relay J2 The collector of the fourth transistor Q4 is connected to the disconnected end coil of the second magnetic latching relay J2, the collector of the fifth transistor Q5 is connected to the closed end coil of the third magnetic latching relay J3, the collector of the sixth transistor Q6 is connected to the disconnected end coil of the third magnetic latching relay J3, the collector of the seventh transistor Q7 is connected to the closed end coil of the fourth magnetic latching relay J4, the collector of the eighth transistor Q8 is connected to the disconnected end coil of the fourth magnetic latching relay J4, the collector of the ninth transistor Q9 is connected to the closed end coil of the fifth magnetic latching relay J5, and the tenth transistor Q10 is connected to the disconnected end coil of the third magnetic latching relay J3. The collector of transistor Q11 is connected to the disconnected end coil of the fifth magnetic latching relay J5, the collector of transistor Q11 is connected to the closed end coil of the sixth magnetic latching relay J6, and the collector of transistor Q12 is connected to the disconnected end coil of the sixth magnetic latching relay J6; the emitters of transistors Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, and Q12 are all grounded;VCC is connected between the closed end coil and the open end coil of the first magnetic holding relay J1, between the closed end coil and the open end coil of the second magnetic holding relay J2, between the closed end coil and the open end coil of the third magnetic holding relay J3, between the closed end coil and the open end coil of the fourth magnetic holding relay J4, between the closed end coil and the open end coil of the fifth magnetic holding relay J5, and between the closed end coil and the open end coil of the sixth magnetic holding relay J6. The first magnetic holding relay J1 is connected between the first household power line FL and one end of the first socket port, and the other end of the first socket port is connected to the second household power line SL. The second magnetic holding relay J2 is connected between the first household power line FL and one end of the second socket port, and the second The other end of the socket port is connected to the second household power line SL, the third magnetic holding relay J3 is connected between the first household power line FL and one end of the third socket port, and the other end of the third socket port is connected to the second household power line SL, the fourth magnetic holding relay J4 is connected between the first household power line FL and one end of the fourth socket port, and the other end of the fourth socket port is connected to the second household power line SL, the fifth magnetic holding relay J5 is connected between the first household power line FL and one end of the fifth socket port, and the other end of the fifth socket port is connected to the second household power line SL, the sixth magnetic holding relay J6 is connected between the first household power line FL and one end of the sixth socket port, and the other end of the sixth socket port is connected to the second household power line SL;The primary coil of the first current transformer KL1 is connected to the power line where the first socket port is located, the primary coil of the second current transformer KL2 is connected to the power line where the second socket port is located, the primary coil of the third current transformer KL3 is connected to the power line where the third socket port is located, the primary coil of the fourth current transformer KL4 is connected to the power line where the fourth socket port is located, the primary coil of the fifth current transformer KL5 is connected to the power line where the fifth socket port is located, the primary coil of the sixth current transformer KL6 is connected to the power line where the sixth socket port is located, one end of the secondary coil of the first current transformer KL1 is connected to the 3rd pin of the No. 2 quad operational amplifier chip U3, one end of the secondary coil of the second current transformer KL2 is connected to the 5th pin of the No. 2 quad operational amplifier chip U3, the third current transformer KL4 is connected to the power line where the fourth socket port is located, the fifth current transformer KL5 is connected to the power line where the fifth socket port is located, the sixth current transformer KL6 is connected to the power line where the sixth socket port is located, One end of the secondary coil of the current transformer KL3 is connected to the 10th pin of the second quad operational amplifier chip U3, one end of the secondary coil of the fourth current transformer KL4 is connected to the 12th pin of the second quad operational amplifier chip U3, one end of the secondary coil of the fifth current transformer KL5 is connected to the 12th pin of the first quad operational amplifier chip U2, one end of the secondary coil of the sixth current transformer KL6 is connected to the 10th pin of the first quad operational amplifier chip U2, the other end of the secondary coil of the first current transformer KL1, the other end of the secondary coil of the second current transformer KL2, the other end of the secondary coil of the third current transformer KL3, the other end of the secondary coil of the fourth current transformer KL4, the other end of the secondary coil of the fifth current transformer KL5, and the other end of the secondary coil of the sixth current transformer KL6 are all grounded;The first pin of the quad operational amplifier chip U2 is connected to the 16th pin of the main control chip U4, the 4th pin of the quad operational amplifier chip U2 is connected to VCC, the 7th pin of the quad operational amplifier chip U2 is connected to the 11th pin of the main control chip U4, the 14th pin of the quad operational amplifier chip U2 is connected to the 17th pin of the main control chip U4, the 8th pin of the quad operational amplifier chip U2 is connected to the 20th pin of the main control chip U4, the 2nd, 6th, 9th, 11th and 13th pins of the quad operational amplifier chip U2 are grounded, Pin 1 of the second quad operational amplifier chip U3 is connected to pin 21 of the main control chip U4, pin 4 of the second quad operational amplifier chip U3 is connected to VCC, pin 7 of the second quad operational amplifier chip U3 is connected to pin 23 of the main control chip U4, pin 14 of the second quad operational amplifier chip U3 is connected to pin 22 of the main control chip U4, pin 8 of the second quad operational amplifier chip U3 is connected to pin 24 of the main control chip U4, and pin 2, pin 6, pin 9, pin 11 and pin 13 of the second quad operational amplifier chip U3 are grounded. The output of the household circuit is divided into six outputs, namely, the output of the air conditioner socket, the water heater socket, the kitchen socket, the ordinary power socket, the bathroom lighting output, and the ordinary lighting output. Each output current has a set value. The output current on the corresponding line is detected by the current transformer on the corresponding line. The current transformer transmits the detected data to the second operational amplifier chip, and after amplification and calculation by the second operational amplifier chip, it is transmitted to the main control chip U4. The main control chip U4 determines that when the current value exceeds the set value, it controls the corresponding magnetic latching relay to disconnect to ensure the safety of household electricity. The user can operate the first button SW-K1, the second button SW-K2, the third button SW-K3, the fourth button SW-K4, the fifth button SW-K5, and the sixth button SW-K6. The main control chip U4 controls the corresponding output of the corresponding circuit, and the main control chip U4 controls the corresponding indicator LED for display. If the user presses the first button SW-K1 to make its contact conductive, the main control chip U4 controls the first magnetic latching relay J1 to be conductive, the corresponding socket port is in an available state, and the corresponding indicator LED lights up;The user presses the first button SW-K1 to disconnect its contacts, and the main control chip U4 controls the first magnetic latching relay J1 to disconnect. The corresponding socket port is in an unavailable state, and the corresponding indicator LED flashes twice per second, thus ensuring the safety of household electricity use. The first temperature sensor RT1 and the second temperature sensor RT2 transmit the temperature on the wire to the second operational amplifier chip, which amplifies it and transmits it to the main control chip U4. The main control chip U4 compares the current wire temperature value with the set safety temperature value to determine whether the current electricity use is safe. If the wire temperature exceeds the safety temperature value, the main control chip U4 cuts off the power supply. The main control chip U4 can also display the wire temperature value, the current value of each output, the current value and the voltage value on the household power bus through the LCD display module LCM. The switch mode of each output can be set between automatic and manual modes. The automatic mode means automatic closing after power failure, and the manual mode means manual closing after power failure. It can also be set remotely through a mobile phone APP. ;

[0035] The intelligent switch also includes a first selection key SW-1, a second selection key SW-2, and a setting key SW-3. One end of the first selection key SW-1, the second selection key SW-2, and the setting key SW-3 are all connected to the 14th pin of the main control chip U4, and the other ends of the first selection key SW-1, the second selection key SW-2, and the setting key SW-3 are all grounded. The user can set or adjust the set value for each current and voltage of the intelligent switch through the first selection key SW-1, the second selection key SW-2, and the setting key SW-3.

[0036] The smart switch also includes a WIFI module, which is connected to the 29th and 30th pins of the main control chip U4. Users can connect their mobile phones to the smart switch via WIFI, view the specific conditions of the smart switch on their mobile phones, such as current, voltage values, and fault conditions, and operate the smart switch through the corresponding APP to achieve remote control and monitoring functions.

[0037] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An anti-electric shock multi-way output intelligent switch, the mains live wire and the mains neutral wire are connected to the intelligent switch, the first power line of the home and the second power line of the home are connected to the intelligent switch, the mains live wire is connected to the first power line of the home through the intelligent switch, and the mains neutral wire is connected to the second power line of the home through the intelligent switch, characterized in that: Includes a main control chip, providing central control functions; A power circuit module provides working power for the intelligent switch; The conversion circuit module disconnects the connection between the live wire of the mains and the first power wire of the household, and the connection between the neutral wire of the mains and the second power wire of the household, respectively, and connects the live wire of the mains and the second power wire of the household, and the neutral wire of the mains and the first power wire of the household according to the instruction of the main control chip; A fault detection circuit module is connected to the first household power line and the second household power line respectively to detect fault conditions on the first household power line and the second household power line; An output circuit module is connected to the first power line of the household and the second power line of the household respectively, and outputs current of a predetermined magnitude in multiple channels; A first operational amplifier chip is connected to the fault detection circuit module and the main control chip, and amplifies the numerical operation transmitted by the fault detection circuit module and transmits it to the main control chip; The second operational amplifier chip is connected to the output circuit module and the main control chip, and amplifies the numerical operation transmitted by the output circuit module and transmits it to the main control chip.

2. The anti-electric shock multi-channel output intelligent switch according to claim 1, characterized in that: The model of the main control chip is STM32F103RCT6, the model of the first operational amplifier chip is LM358, and the model of the second operational amplifier chip is LM324.

3. The anti-electric shock multi-channel output intelligent switch according to claim 2, characterized in that: The conversion circuit module includes a first conversion transistor, a second conversion transistor, a first optocoupler, a second optocoupler, a third optocoupler, a fourth optocoupler, a first thyristor, a second thyristor, a third thyristor, a fourth thyristor, a first switch control resistor, a second switch control resistor, a third switch control resistor, and a fourth switch control resistor. The first optocoupler, the second optocoupler, the third optocoupler, and the fourth optocoupler are all MOC3083; the 52nd pin of the main control chip is connected to the base of the first conversion transistor, the emitter of the first conversion transistor is grounded, the collector of the first conversion transistor is connected to the 2nd pins of the first optocoupler and the third optocoupler, the 45th pin of the main control chip is connected to the base of the second conversion transistor, and the second The emitter of the conversion transistor is grounded, the collector of the second conversion transistor is connected to the second pins of the second optocoupler and the fourth optocoupler, the first pins of the first optocoupler, the second optocoupler, the third optocoupler, and the fourth optocoupler are all connected to VCC, the sixth pins of the first optocoupler and the fourth optocoupler are all connected to the first power line of the home, and the sixth pins of the second optocoupler and the third optocoupler are all connected to the second power line of the home; the fourth pin of the first optocoupler is connected to the control electrode of the first thyristor, the first anode of the first thyristor is connected to the second power line of the home, the second anode of the first thyristor is connected to the neutral line of the mains, one end of the first switch control resistor is connected to the control electrode of the first thyristor, and the other end of the first switch control resistor is connected to the second anode of the first thyristor; The 4th pin of the second optical coupler is connected to the control electrode of the second thyristor, the first anode of the second thyristor is connected to the first power line of the home, the second anode of the second thyristor is connected to the neutral line of the mains, one end of the second switch control resistor is connected to the control electrode of the second thyristor, and the other end of the second switch control resistor is connected to the second anode of the second thyristor; The 4th pin of the third optocoupler is connected to the control electrode of the third thyristor, the first anode of the third thyristor is connected to the first household power line, the second anode of the third thyristor is connected to the mains live line, one end of the third switch controlled resistor is connected to the control electrode of the third thyristor, and the other end of the third switch controlled resistor is connected to the second anode of the third thyristor; the 4th pin of the fourth optocoupler is connected to the control electrode of the fourth thyristor, the first anode of the fourth thyristor is connected to the second household power line, the second anode of the fourth thyristor is connected to the mains live line, one end of the fourth switch controlled resistor is connected to the control electrode of the fourth thyristor, and the other end of the fourth switch controlled resistor is connected to the second anode of the fourth thyristor.

4. The anti-electric shock multi-channel output intelligent switch according to claim 3, characterized in that: The first thyristor, the second thyristor, the third thyristor and the fourth thyristor are all of BTA100 model, and the first conversion transistor and the second conversion transistor are both of transistor 8050 model.

5. The anti-electric shock multi-output intelligent switch according to claim 4, characterized in that: The power circuit module includes a rectifier, a power control chip of model ME8321A, a voltage regulator of model AMS1117-3.3, a first transformer of model BLW05T, a first resistor, a second resistor, a third resistor, a fourth resistor, a first rectifier diode, a second rectifier diode, a power light-emitting diode, a first capacitor, a second capacitor, a third capacitor, and a fourth capacitor. The rectifier input end is connected to the mains live wire and the mains neutral wire, the positive electrode of the first capacitor is connected to the positive electrode of the rectifier output end, one end of the first resistor is connected to the positive electrode of the rectifier output end, the other end of the first resistor and one end of the second capacitor are both connected to the 5th pin of the power control chip, one end of the second resistor is connected to the 8th pin of the power control chip, one end of the third resistor is connected to the 6th pin of the power control chip, the negative electrode of the first capacitor, the other end of the third resistor, the other end of the second resistor, and the other electrode of the second capacitor are connected to the negative electrode of the rectifier output end, and one end of the fourth resistor is connected to the power control chip. The fourth resistor is connected to the 6th pin of the first transformer, the other end of the fourth resistor is connected to the 4th pin of the first transformer, the anode of the first rectifier diode is connected to the 4th pin of the first transformer, the cathode of the first rectifier diode is connected to the 5th pin of the power control chip, the 4th pin of the power control chip is connected to the negative electrode of the rectifier output terminal and the 3rd pin of the first transformer, the 1st and 2nd pins of the power control chip are connected to the 2nd pin of the first transformer, the 1st pin of the first transformer is connected to the positive electrode of the rectifier output terminal, the 5th pin of the first transformer is connected to the positive electrode of the second rectifier diode, and the 6th pin of the first transformer is grounded; the negative electrode of the third capacitor is grounded, the positive electrode of the third capacitor is connected to the negative electrode of the second rectifier diode, the voltage input terminal of the regulator is connected to the negative electrode of the second rectifier diode, the voltage output terminal of the regulator is connected to the positive electrode of the fourth capacitor and the positive electrode of the power light emitting diode, the ground terminal of the regulator is grounded, the negative electrode of the fourth capacitor is grounded, and the negative electrode of the power light emitting diode is grounded.

6. The anti-electric shock multi-channel output intelligent switch according to claim 5, characterized in that: The fault detection circuit module includes an LCD display module, a first zero-sequence current transformer, a second zero-sequence current transformer, a second transformer, a leakage indication light emitting diode, an over / under voltage indication light emitting diode, an overcurrent indication light emitting diode, a buzzer, and a buzzer transistor. The LCD display module is connected to the main control chip, the positive electrode of the leakage indication light emitting diode is connected to the 50th pin of the main control chip, the positive electrode of the over / under voltage indication light emitting diode is connected to the 51st pin of the main control chip, the positive electrode of the overcurrent indication light emitting diode is connected to the 4th pin of the main control chip, the base of the buzzer transistor is connected to the 3rd pin of the main control chip, the negative electrode of the leakage indication light emitting diode, the negative electrode of the over / under voltage indication light emitting diode, the negative electrode of the overcurrent indication light emitting diode, and the emitter of the buzzer transistor are all grounded, the collector of the buzzer transistor is connected to the negative electrode of the buzzer, and the positive electrode of the buzzer is connected to VCC; the primary coil of the first zero-sequence current transformer is connected to the second power line of the home, and the first One end of the secondary coil of a zero-sequence current transformer is connected to the third pin of the first operational amplifier chip, the other end of the secondary coil of the first zero-sequence current transformer is grounded, the primary coil of the second zero-sequence current transformer is connected to the first power line of the home, one end of the secondary coil of the second zero-sequence current transformer is connected to the fifth pin of the first operational amplifier chip, the other end of the secondary coil of the second zero-sequence current transformer is connected to VCC, the first pin of the first operational amplifier chip is connected to the eighth pin of the main control chip, the eighth pin of the first operational amplifier chip is connected to VCC, the second, fourth and sixth pins of the first operational amplifier chip are all grounded, the seventh pin of the first operational amplifier chip is connected to the ninth pin of the main control chip, one end of the primary coil of the second transformer is connected to the first power line of the home, the other end of the primary coil of the second transformer is connected to the second power line of the home, one end of the secondary coil of the second transformer is connected to the tenth pin of the main control chip, and the other end of the secondary coil of the second transformer is grounded.

7. The anti-electric shock multi-output intelligent switch according to claim 6, characterized in that: The output circuit module includes a first socket port, a second socket port, a third socket port, a fourth socket port, a fifth socket port, a sixth socket port, a first temperature sensor, a second temperature sensor, a first magnetic latching relay, a second magnetic latching relay, a third magnetic latching relay, a fourth magnetic latching relay, a fifth magnetic latching relay, a sixth magnetic latching relay, a first button, a second button, a third button, a fourth button, a fifth button, a sixth button, a first current transformer, a second current transformer, a third current transformer, a fourth current transformer, a first A fifth current transformer, a sixth current transformer, a No. 1 transistor, a No. 2 transistor, a No. 3 transistor, a No. 4 transistor, a No. 5 transistor, a No. 6 transistor, a No. 7 transistor, a No. 8 transistor, a No. 9 transistor, a No. 10 transistor, a No. 11 transistor, a No. 12 transistor, a first indicator light emitting diode, a second indicator light emitting diode, a third indicator light emitting diode, a fourth indicator light emitting diode, a fifth indicator light emitting diode, and a sixth indicator light emitting diode; the number of the second operational amplifier chips is two, which are divided into a No. 1 four-operational amplifier chip and a No. 2 four-operational amplifier chip chip; one end of the first temperature sensor is connected to the 3rd pin of the No. 1 four operational amplifier chip, one end of the second temperature sensor is connected to the 5th pin of the No. 1 four operational amplifier chip, one end of the first button, the second button, the third button, the fourth button, the fifth button, and the sixth button are all connected to the 15th pin of the main control chip, and the other ends of the first temperature sensor, the second temperature sensor, the first button, the second button, the third button, the fourth button, the fifth button, and the sixth button are all grounded; the positive electrode of the first indicator light emitting diode is connected to the 42nd pin of the main control chip, the positive electrode of the second indicator light emitting diode is connected to the 43rd pin of the main control chip, the positive electrode of the third indicator light emitting diode is connected to the 44th pin of the main control chip, the positive electrode of the fourth indicator light emitting diode is connected to the 53rd pin of the main control chip, the positive electrode of the fifth indicator light emitting diode is connected to the 54th pin of the main control chip, the positive electrode of the sixth indicator light emitting diode is connected to the 55th pin of the main control chip, and the negative electrodes of the first indicator light emitting diode, the second indicator light emitting diode, the third indicator light emitting diode, the fourth indicator light emitting diode, the fifth indicator light emitting diode, and the sixth indicator light emitting diode are all grounded;The base of transistor No. 1 is connected to the 33rd pin of the main control chip, the base of transistor No. 2 is connected to the 41st pin of the main control chip, the base of transistor No. 3 is connected to the 34th pin of the main control chip, the base of transistor No. 4 is connected to the 40th pin of the main control chip, the base of transistor No. 5 is connected to the 28th pin of the main control chip, the base of transistor No. 6 is connected to the 39th pin of the main control chip, the base of transistor No. 7 is connected to the 27th pin of the main control chip, and the base of transistor No. 8 is connected to the 38th pin of the main control chip. The base of transistor No. 9 is connected to the 26th pin of the main control chip, the base of transistor No. 10 is connected to the 37th pin of the main control chip, the base of transistor No. 11 is connected to the 25th pin of the main control chip, and the base of transistor No. 12 is connected to the 36th pin of the main control chip; the collector of transistor No. 1 is connected to the closed end coil of the first magnetic latching relay, the collector of transistor No. 2 is connected to the disconnected end coil of the first magnetic latching relay, the collector of transistor No. 3 is connected to the closed end coil of the second magnetic latching relay, the collector of transistor No. 4 is connected to the disconnected end coil of the second magnetic latching relay, the collector of transistor No. 5 is connected to the closed end coil of the third magnetic latching relay, the collector of transistor No. 6 is connected to the disconnected end coil of the third magnetic latching relay, the collector of transistor No. 7 is connected to the closed end coil of the fourth magnetic latching relay, the collector of transistor No. 8 is connected to the disconnected end coil of the fourth magnetic latching relay, and the collector of transistor No. 9 is connected to the closed end coil of the fifth magnetic latching relay. The collector of transistor No. 10 is connected to the disconnection end coil of the fifth magnetic latching relay, the collector of transistor No. 11 is connected to the closing end coil of the sixth magnetic latching relay, and the collector of transistor No. 12 is connected to the disconnection end coil of the sixth magnetic latching relay; the emitters of transistor No. 1, transistor No. 2, transistor No. 3, transistor No. 4, transistor No. 5, transistor No. 6, transistor No. 7, transistor No. 8, transistor No. 9, transistor No. 10, transistor No. 11, and transistor No. 12 are all grounded;VCC is connected between the closed end coil and the disconnected end coil of the first magnetic holding relay, between the closed end coil and the disconnected end coil of the second magnetic holding relay, between the closed end coil and the disconnected end coil of the third magnetic holding relay, between the closed end coil and the disconnected end coil of the fourth magnetic holding relay, between the closed end coil and the disconnected end coil of the fifth magnetic holding relay, and between the closed end coil and the disconnected end coil of the sixth magnetic holding relay. The first magnetic holding relay is connected between the first power cord of the home and one end of the first socket port, and the other end of the first socket port is connected to the second power cord of the home. The second magnetic holding relay is connected between the first power cord of the home and one end of the second socket port. The other end of the second socket port is connected to the second power line of the home, the third magnetic latching relay is connected between the first power line of the home and one end of the third socket port, the other end of the third socket port is connected to the second power line of the home, the fourth magnetic latching relay is connected between the first power line of the home and one end of the fourth socket port, the other end of the fourth socket port is connected to the second power line of the home, the fifth magnetic latching relay is connected between the first power line of the home and one end of the fifth socket port, the other end of the fifth socket port is connected to the second power line of the home, the sixth magnetic latching relay is connected between the first power line of the home and one end of the sixth socket port, the other end of the sixth socket port is connected to the second power line of the home; The primary coil of the first current transformer is connected to the power line where the first socket port is located, the primary coil of the second current transformer is connected to the power line where the second socket port is located, the primary coil of the third current transformer is connected to the power line where the third socket port is located, the primary coil of the fourth current transformer is connected to the power line where the fourth socket port is located, the primary coil of the fifth current transformer is connected to the power line where the fifth socket port is located, the primary coil of the sixth current transformer is connected to the power line where the sixth socket port is located, one end of the secondary coil of the first current transformer is connected to the 3rd pin of the second quad operational amplifier chip, and the second One end of the secondary coil of the current transformer is connected to the 5th pin of the second quad operational amplifier chip, one end of the secondary coil of the third current transformer is connected to the 10th pin of the second quad operational amplifier chip, one end of the secondary coil of the fourth current transformer is connected to the 12th pin of the second quad operational amplifier chip, one end of the secondary coil of the fifth current transformer is connected to the 12th pin of the first quad operational amplifier chip, one end of the secondary coil of the sixth current transformer is connected to the 10th pin of the first quad operational amplifier chip, the other end of the secondary coil of the first current transformer, the other end of the secondary coil of the second current transformer, and the third current transformer are connected to the 12th pin of the second quad operational amplifier chip. The other end of the secondary coil of the current transformer, the other end of the secondary coil of the fourth current transformer, the other end of the secondary coil of the fifth current transformer, and the other end of the secondary coil of the sixth current transformer are all grounded; the first pin of the four operational amplifier chip No. 1 is connected to the 16th pin of the main control chip, the 4th pin of the four operational amplifier chip No. 1 is connected to VCC, the 7th pin of the four operational amplifier chip No. 1 is connected to the 11th pin of the main control chip, the 14th pin of the four operational amplifier chip No. 1 is connected to the 17th pin of the main control chip, the 8th pin of the four operational amplifier chip No. 1 is connected to the 20th pin of the main control chip, and the Pin 2, pin 6, pin 9, pin 11 and pin 13 of the operational amplifier chip are grounded, pin 1 of the No. 2 quad operational amplifier chip is connected to pin 21 of the main control chip, pin 4 of the No. 2 quad operational amplifier chip is connected to VCC, pin 7 of the No. 2 quad operational amplifier chip is connected to pin 23 of the main control chip, pin 14 of the No. 2 quad operational amplifier chip is connected to pin 22 of the main control chip, pin 8 of the No. 2 quad operational amplifier chip is connected to pin 24 of the main control chip, and pin 2, pin 6, pin 9, pin 11 and pin 13 of the No. 2 quad operational amplifier chip are grounded.

8. The anti-electric shock multi-channel output intelligent switch according to claim 7, characterized in that: It also includes a first selection key, a second selection key, and a setting key. One end of the first selection key, the second selection key, and the setting key are all connected to the 14th pin of the main control chip, and the other ends of the first selection key, the second selection key, and the setting key are all grounded.

9. The anti-electric shock multi-output intelligent switch according to claim 8, characterized in that: It also includes a WIFI module, which is connected to the 29th and 30th pins of the main control chip.