A power strip circuit and method capable of automatically identifying and correcting the live wire and neutral wire
By using relays and optocouplers in the plug-in circuit to identify live or neutral wires and automatically correct the output signal, the problem of new energy vehicles in rural areas cannot be charged is solved, and a safe and simple charging solution is achieved.
Patent Information
- Application Number
- CN202110640933.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-09
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2041-06-09
AI Technical Summary
When the AC socket in rural areas is not grounded, new energy vehicles cannot charge, and ordinary plugs cannot correctly identify the problem of zero-fire wire causing the charger to be unable to charge.
The circuit including a first relay, a second relay, a filter resistor, a first transistor, a second transistor, a first optocoupler, a second optocoupler, a MOS tube and a MCU is adopted. The live wire or neutral wire is identified through the induction coil and the optocoupler, and the output signal is automatically corrected to make the automobile ground signal connect to the neutral wire through the resistor.
It realizes automatic identification and correction of zero-fire wires in rural areas, ensures that the charger is grounded according to national standards, simplifies the charging process, and does not require home socket modification, and improves the convenience and safety of new energy vehicles.
Smart Images

Figure CN113241837B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electricity, and specifically refers to a socket circuit and method that can automatically identify and correct the live wire and neutral wire. Background Art
[0002] Broadly speaking, new energy vehicles, also known as alternative fuel vehicles, include fully non-petroleum fuel vehicles such as pure electric vehicles and fuel cell electric vehicles, as well as partially non-petroleum fuel vehicles such as hybrid electric vehicles and ethanol gasoline vehicles. All existing new energy vehicles are included in this concept and are specifically divided into six categories: hybrid vehicles, pure electric vehicles, fuel cell vehicles, alcohol ether fuel vehicles, natural gas vehicles, etc.
[0003] Currently, with the development of technology, the number of pure electric vehicles is increasing. However, for electric vehicle owners in rural areas, they often encounter certain difficulties in charging. In rural areas or mountainous areas where some AC sockets are not grounded, it is impossible to charge electric vehicles. The existing technology is to modify household sockets to ground the PE signal, which requires professional construction. Due to the uneven grid conditions, some require large-scale construction, which is time-consuming and laborious, affecting the usability of new energy vehicles in rural areas. In addition, when using a socket as the conductive component between the socket and the charger in the case where the charging cable of the new energy vehicle charger is not long enough, since ordinary sockets do not specifically mark the live wire and neutral wire, it often causes the problem that the live wire and neutral wire of the charger do not correspond to the live wire and neutral wire of the socket, resulting in the charger being unable to charge. Summary of the Invention
[0004] The present invention provides a socket circuit and method that can automatically identify and correct the live wire and neutral wire, and its main purpose is to overcome the above problems existing in the prior art.
[0005] The present invention is implemented by adopting the following technical solutions:
[0006] An electrical socket circuit capable of automatically identifying and correcting the live wire and neutral wire, comprising a first relay, a second relay, a filtering resistor, a first triode, a second triode, a first optocoupler, a second optocoupler, a MOS transistor and an MCU. The input end of the first relay is connected to the live wire and the neutral wire, and the output end of the first relay is connected to the induction switch of the second relay. The coil of the second relay is connected to the positive pole of the filtering resistor, the negative pole of the filtering resistor is connected to the B pole of the first triode, the E pole of the first triode is connected to the B pole of the second triode. The C pole of the first triode and the anode of the diode of the first optocoupler are both connected to a battery power supply. The cathode of the diode of the first optocoupler is connected to the C pole of the second triode. The E pole of the second triode is connected to the C pole of the triode of the second optocoupler. The E pole signal of the triode of the second optocoupler is grounded. The C pole of the triode of the first optocoupler and the anode of the diode of the second optocoupler are connected to the VDDA terminal of the MCU. The E pole of the triode of the first optocoupler is connected to a pin of the MCU. The cathode of the diode of the second optocoupler is connected to the VDD terminal of the MCU. One end of the coil of the first relay is connected to a power supply, and the other end of the first relay is connected to the D pole of the MOS transistor. The G pole of the MOS transistor is connected to another pin of the MCU, and the S pole of the MOS transistor is grounded.
[0007] Further, a first resistor is provided between the C pole of the first triode and the battery power supply.
[0008] Further, a second resistor is provided between the anode of the diode of the first optocoupler and the battery power supply.
[0009] Further, a third resistor is provided between the anode of the diode of the second optocoupler and the VDDA terminal of the MCU.
[0010] Further, a fourth resistor and a capacitor are connected in parallel on the connection branch between the E pole of the first optocoupler and a pin of the MCU, and one pole of the capacitor is grounded.
[0011] Further, a fifth resistor is provided on the connection branch between the G pole of the MOS transistor and another pin of the MCU, and one foot of the fifth resistor is grounded.
[0012] Further, a second diode is provided between the D pole of the MOS transistor and the power supply.
[0013] An electrical socket circuit method capable of automatically identifying and correcting the live wire and neutral wire, comprising the following steps:
[0014] S1. The input terminal of the first relay is connected to the live wire and the neutral wire. The first relay is connected to the normally closed terminal of the induction switch of the second relay. The coil of the first relay is not powered. The iron sheet of the induction switch of the second relay is close to the coil of the second relay. If the signal input to the second relay is a live wire signal, the electric field of the iron sheet of the induction switch of the second relay can be sensed by the coil of the second relay. The coil of the second relay converts the electric field of the iron sheet into a magnetic field, and then the coil of the second relay converts the magnetic field into a power supply. After being filtered by the first diode, it is amplified by the first triode and the second triode. When the MCU needs to detect, the MCU controls the second optocoupler to turn on. The first optocoupler, the second triode and the second optocoupler form a loop. At this time, the triode of the first optocoupler is turned on, and the MCU can detect the live wire signal;
[0015] S2. If the signal input to the second relay is a neutral wire signal, there is no electric field on the iron sheet of the induction switch of the second relay. The coil of the second relay cannot sense the electric field of the iron sheet, and the coil of the second relay cannot output a power supply. The second triode cannot be turned on. When the MCU needs to detect, the second optocoupler is turned on, and the first optocoupler, the second triode and the second optocoupler cannot form a loop, and the MCU cannot detect the power supply signal;
[0016] S3. When step S2 occurs, the MCU switches the high and low levels to turn on the MOS tube. At this time, the coil of the first relay is powered, causing the induction switch of the first relay to switch, so that the output of the first relay switches from the original neutral wire to the live wire, and the original live wire switches to the neutral wire.
[0017] Further, in step S1, the second optocoupler is used as the switch of the amplifier circuit. When the amplifier circuit needs to work, the voltage signal of the second optocoupler is set to low level. When the amplifier circuit does not need to work, the voltage signal of the second optocoupler is set to high level.
[0018] Further, when the MOS tube needs to be turned on in step S2, the voltage signal is set to high level. When the MOS tube does not need to be turned on, the voltage signal is set to low level.
[0019] As can be seen from the above description of the present invention, compared with the prior art, the present invention has the following advantages: This socket circuit can automatically identify and correct the live and neutral wires, so that the output live and neutral signals are correctly output according to the national standard. In rural areas, when the socket is used as the conductive component between the household socket and the electric vehicle charger, the grounding signal of the vehicle is connected to the neutral wire through a resistor, so that the electric vehicle charger can identify a safe ground connection to achieve charging. Using the present invention does not require modification of the household socket, and it is simple and safe to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is the circuit diagram of the present invention. Specific embodiments
[0021] Referring to Figure 1 , a socket circuit capable of automatically identifying and correcting live and neutral wires, includes a first relay RS1, a second relay RS2, a filtering resistor R0, a first triode Q1, a second triode Q2, a first optocoupler U1, a second optocoupler U2, a MOS tube Q3 and an MCU. The input end of the first relay RS1 is connected to the live wire and the neutral wire, the output end of the first relay RS1 is connected to the induction switch of the second relay RS2, the coil of the second relay RS2 is connected to the positive pole of the filtering resistor R0, the negative pole of the filtering resistor R0 is connected to the B pole of the first triode Q1, the E pole of the first triode Q1 is connected to the B pole of the second triode Q2, and the C pole of the first triode Q1 and the anode of the diode of the first optocoupler U1 are both connected to a battery power supply. The cathode of the diode of the first optocoupler U1 is connected to the C pole of the second triode Q2, the E pole of the second triode Q2 is connected to the C pole of the triode of the second optocoupler U2, and the signal of the E pole of the triode of the second optocoupler U2 is grounded. The C pole of the triode of the first optocoupler U1 and the anode of the diode of the second optocoupler U2 are connected to the VDDA terminal of the MCU, the E pole of the triode of the first optocoupler U1 is connected to a pin of the MCU, and the cathode of the diode of the second optocoupler U2 is connected to the VDD terminal of the MCU. One end of the coil of the first relay RS1 is connected to a power supply, the other end of the first relay RS1 is connected to the D pole of the MOS tube Q3, the G pole of the MOS tube Q3 is connected to another pin of the MCU, and the S pole of the MOS tube Q3 is grounded.
[0022] A first resistor R1 is provided between the C pole of the first triode Q1 and the battery power supply, and the first resistor R1 plays a current limiting role. A second resistor R2 is provided between the anode of the diode of the first optocoupler U1 and the battery power supply, and the second resistor R2 plays a current limiting role. A third resistor R3 is provided between the anode of the diode of the second optocoupler U2 and the VDDA terminal of the MCU, and the third resistor R3 plays a current limiting role. A fourth resistor R4 and a capacitor C1 are connected in parallel on the connection branch between the E pole of the first optocoupler U1 and a pin of the MCU, one pole of the capacitor C1 is grounded, and the fourth resistor R4 and the capacitor C1 play a role in eliminating clutter interference. A fifth resistor R5 is provided on the connection branch between the G pole of the MOS tube Q3 and another pin of the MCU, one foot of the fifth resistor R5 is grounded, and the fifth resistor R5 plays a role in eliminating interference clutter. A second diode D2 is provided between the D pole of the MOS tube Q3 and the power supply, and the second diode D2 plays a role in preventing the relay from malfunctioning.
[0023] Referring to Figure 1, a socket circuit method capable of automatically identifying and correcting the live wire and neutral wire, comprising the following steps:
[0024] S1. The input end of the first relay RS1 is connected to the live wire and the neutral wire. The normally closed end of the induction switch of the first relay RS1 is connected to that of the second relay RS2. The coil of the first relay RS1 is not powered on. The iron sheet of the induction switch of the second relay RS2 is close to the coil of the second relay RS2. If the signal input to the second relay RS2 is a live wire signal, the electric field of the iron sheet of the induction switch of the second relay RS2 can be sensed by the coil of the second relay RS2. The coil of the second relay RS2 converts the electric field of the iron sheet into a magnetic field, and then the coil of the second relay RS2 converts the magnetic field into a power supply. After being filtered by the first diode D1, it is amplified by the first triode Q1 and the second triode Q2. When the MCU needs to detect, the MCU controls the second optocoupler U2 to turn on. The first optocoupler U1, the second triode Q2 and the second optocoupler U2 form a loop. At this time, the triode of the first optocoupler U1 is turned on, and the MCU can detect the live wire signal. The first triode Q1, the second triode Q2 and the first optocoupler U1 constitute an amplification circuit.
[0025] S2. If the signal input to the second relay RS2 is a neutral wire signal, there is no electric field on the iron sheet of the induction switch of the second relay RS2. The coil of the second relay RS2 cannot sense the electric field of the iron sheet, and the coil of the second relay RS2 cannot output a power supply. The second triode Q2 cannot be turned on. When the MCU needs to detect, the second optocoupler U2 is turned on. The first optocoupler U1, the second triode Q2 and the second optocoupler U2 cannot form a loop, and the MCU cannot detect the power supply signal.
[0026] S3. When step S2 occurs, the MCU switches the high and low levels to turn on the MOS transistor Q3. At this time, the coil of the first relay RS1 is powered on, causing the induction switch of the first relay RS1 to switch, so that the output of the first relay is switched from the original neutral wire to the live wire, and the original live wire is switched to the neutral wire.
[0027] More specifically, in step S1, the second optocoupler U2 is used as the switch of the amplification circuit. When the amplification circuit needs to work, the voltage signal of the second optocoupler U2 is set to a low level. When the amplification circuit does not need to work, the voltage signal of the second optocoupler U2 is set to a high level, which can protect the battery power supply from being discharged. When the MOS transistor Q3 needs to be turned on in step S2, the voltage signal is set to a high level. When the MOS transistor Q3 does not need to be turned on, the voltage signal is set to a low level, which can save power in this way.
[0028] The circuit of the present invention can automatically identify and correct the live wire and neutral wire, so that the output live wire and neutral wire signals are correctly output according to the national standard. In rural areas, when the power strip is used as a conductive component between a household socket and an electric vehicle charger, the grounding signal of the vehicle is connected to the neutral wire through a resistor, so that the electric vehicle charger can recognize a safe ground connection to achieve charging.
[0029] The above are only the specific embodiments of the present invention, but the design concept of the present invention is not limited thereto. Any non-substantive modification made to the present invention using this concept shall fall within the scope of infringement of the protection scope of the present invention.
Claims
1. A socket circuit capable of automatically identifying and correcting the live wire and neutral wire, characterized in that: It includes a first relay, a second relay, a filtering resistor, a first triode, a second triode, a first optocoupler, a second optocoupler, a MOS transistor and an MCU. The input end of the first relay is connected to the live wire and the neutral wire. The output end of the first relay is connected to the induction switch of the second relay. The coil of the second relay is connected to the positive pole of the filtering resistor. The negative pole of the filtering resistor is connected to the B pole of the first triode. The E pole of the first triode is connected to the B pole of the second triode. The C pole of the first triode and the anode of the diode of the first optocoupler are both connected to a battery power supply. The cathode of the diode of the first optocoupler is connected to the C pole of the second triode. The E pole of the second triode is connected to the C pole of the triode of the second optocoupler. The E pole signal of the triode of the second optocoupler is grounded. The C pole of the triode of the first optocoupler and the anode of the diode of the second optocoupler are connected to the VDDA terminal of the MCU. The E pole of the triode of the first optocoupler is connected to a pin of the MCU. The cathode of the diode of the second optocoupler is connected to the VDD terminal of the MCU. One end of the coil of the first relay is connected to a power supply. The other end of the first relay is connected to the D pole of the MOS transistor. The G pole of the MOS transistor is connected to another pin of the MCU. The S pole of the MOS transistor is grounded; A socket circuit method capable of automatically identifying and correcting the live wire and the neutral wire includes the following steps: S1. The input end of the first relay is connected to the live wire and the neutral wire. The first relay is connected to the normally closed end of the induction switch of the second relay. The coil of the first relay is not powered on. The iron sheet of the induction switch of the second relay is close to the coil of the second relay. If the signal input to the second relay is a live wire signal, the electric field of the iron sheet of the induction switch of the second relay can be sensed by the coil of the second relay. The coil of the second relay converts the electric field of the iron sheet into a magnetic field. Then the coil of the second relay converts the magnetic field into a power supply, which is filtered by a first diode and then amplified by the first triode and the second triode. When the MCU needs to detect, the MCU controls the second optocoupler to turn on. The first optocoupler, the second triode and the second optocoupler form a loop. At this time, the triode of the first optocoupler is turned on, and the MCU can detect the live wire signal; S2. If the signal input to the second relay is a neutral wire signal, there is no electric field on the iron sheet of the induction switch of the second relay. The coil of the second relay cannot sense the electric field of the iron sheet. The coil of the second relay cannot output a power supply, and the second triode cannot be turned on. When the MCU needs to detect, the second optocoupler is turned on. The first optocoupler, the second triode and the second optocoupler cannot form a loop, and the MCU cannot detect the power supply signal; S3. When step S2 occurs, the MCU switches the high and low levels to turn on the MOS transistor. At this time, the coil of the first relay is powered on, and the induction switch of the first relay is switched, so that the output of the first relay is switched from the original neutral wire to the live wire, and the original live wire is switched to the neutral wire.
2. The socket circuit capable of automatically identifying and correcting the live wire and neutral wire according to claim 1, wherein: A first resistor is provided between the C pole of the first triode and the battery power supply.
3. The socket circuit capable of automatically identifying and correcting the live wire and neutral wire according to claim 1, characterized in that: A second resistor is provided between the anode of the diode of the first optical coupler and the battery power supply.
4. The socket circuit capable of automatically identifying and correcting the zero and live wires according to claim 1, characterized in that: A third resistor is provided between the anode of the diode of the second optical coupler and the VDDA terminal of the MCU.
5. The socket circuit capable of automatically identifying and correcting the live wire and neutral wire according to claim 1, characterized in that: A fourth resistor and a capacitor are connected in parallel on the connection branch between the E pole of the first optical coupler and a pin of the MCU, and one pole of the capacitor is grounded.
6. The socket circuit capable of automatically identifying and correcting the live wire and neutral wire according to claim 1, wherein: A fifth resistor is provided on the connection branch between the G pole of the MOS transistor and another pin of the MCU, and one foot of the fifth resistor is grounded.
7. The socket circuit capable of automatically identifying and correcting the live wire and neutral wire according to claim 1, wherein: A second diode is provided between the D pole of the MOS transistor and the power supply.
8. The socket circuit capable of automatically identifying and correcting the live wire and neutral wire according to claim 1, wherein: In step S1, the second optical coupler is used as the switch of the amplifier circuit. When the amplifier circuit needs to work, the voltage signal of the second optical coupler is set to a low level. When the amplifier circuit does not need to work, the voltage signal of the second optical coupler is set to a high level.
9. The socket circuit capable of automatically identifying and correcting the zero and live wires according to claim 1, characterized in that: In step S2, when the MOS transistor needs to be turned on, the voltage signal is set to a high level. When the MOS transistor does not need to be turned on, the voltage signal is set to a low level.
Citation Information
Patent Citations
Extension socket circuit capable of automatically identifying and correcting zero line and live line
CN215186020U