Automatic power-off socket for full charging of mobile phone
By using components such as rectifiers, relays and microcontrollers in the mobile phone charging socket, the detection of weak currents at 220V AC voltage and the automatic power-off function are realized, which solves the problem that the existing current detection circuit cannot detect weak currents and simplifies the circuit structure. It also reduces costs and has multiple protection functions.
Patent Information
- Application Number
- CN202420115543.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-17
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2034-01-17
AI Technical Summary
The existing current detection circuit cannot effectively detect the weak current of the 220V AC voltage connected to the socket socket of the charger or load, and the circuit is large, complex and costly.
A mobile phone full-charge automatic power-off socket is designed, which uses components such as rectifiers, relays, optocouplers and microcontrollers. Through the combination of rectifiers and relays, the weak current of the 220V AC voltage connected to the charger or load can be detected, and The microcontroller is used to control the charging status and realize the automatic power-off function.
It achieves accurate detection of the weak current of 220V AC voltage connected to the charger or load at the socket, simplifies the circuit structure, reduces costs, and has overload, short circuit, no-load and fault protection functions to ensure the safety and efficiency of the charging process.
Smart Images

Figure CN221596960U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of charging, in particular to a socket that automatically cuts off power when a mobile phone is fully charged. Background Art
[0002] The main components of the existing current detection circuit are: 1. Current transformer, 2. Current sampling resistor. Its disadvantages include: it cannot detect the weak current of the 220V AC voltage of the charger (or load) connected to the socket; it is large in size, complex in circuit, and high in cost. Utility Model Content
[0003] The utility model aims to provide a socket which automatically cuts off the power when the mobile phone is fully charged, so as to solve the problems raised in the above-mentioned background technology.
[0004] In order to achieve the above purpose, the utility model provides the following technical solutions:
[0005] A socket for automatically shutting off a mobile phone when it is fully charged comprises a rectifier D1, a rectifier D4, a relay K1, a switch SW1, an optocoupler U2 and a single-chip computer U1, wherein one end of the switch SW1 is connected to a resistor R1, the other end of the resistor R1 is connected to an alternating current L and a pin 2 of the relay K1, the other end of the switch SW1 is connected to a resistor R3, a capacitor C1 and a pin 4 of the rectifier D1, the other end of the capacitor C1 is connected to a resistor R2, a pin 1 of the relay K1 and a socket H1, the other end of the resistor R2 is connected to the other end of the resistor R3, the pin 2 of the rectifier D1 is connected to the capacitor C2, a ground terminal GND, a positive electrode of a diode D3, a capacitor C3, a capacitor C4 and pin 3 of optocoupler U2, the other end of capacitor C2 is connected to resistor R4, pin 1 of rectifier D1, the cathode of diode D2 and pin 3 of relay K1, the anode of diode D2 is connected to the collector of transistor Q1 and pin 4 of relay K1, the other end of resistor R4 is connected to the cathode of diode D3, the other end of capacitor C3, the other end of capacitor C4, resistor R5, resistor R6, resistor R7 and pin 2VCC of microcontroller U1, the other end of resistor R7 is connected to capacitor C5, pin 4 of optocoupler U2 and pin 3 of microcontroller U1, the other end of resistor R6 is connected to indicator light LED1, the other end of indicator light LED1 Connect to the ground terminal GND, the other end of the resistor R5 is connected to the base of the transistor Q1 and pin 8 of the microcontroller U1, the emitter of the transistor Q1 is connected to the ground terminal GND, pin 4 of the microcontroller U1 is connected to the other end of the capacitor C5 and the ground terminal GND, the other end of the socket H1 is connected to pin 3 of the rectifier D4, pin 4 of the rectifier D4 is connected to pin 3 of the rectifier D1 and the fuse F1, the other end of the fuse F1 is connected to the alternating current N, pin 1 of the rectifier D4 is connected to the resettable fuse F2, the other end of the resettable fuse F2 is connected to capacitor C6, capacitor C7 and resistor R11, and the other end of the resistor R11 is connected to the transistor Q2 The collector of the transistor Q2, the cathode of the diode D5, the resistor R8 and the resistor R10, the anode of the diode D5 is connected to the resistor R12, the other end of the resistor R12 is connected to the base of the transistor Q2, the emitter of the transistor Q2 is connected to the other end of the capacitor C6, the other end of the capacitor C7, the other end of the resistor R10, the resistor R9, the ground terminal VSS, the pin 2 of the rectifier D4 and the pin 2 of the optocoupler U2, the other end of the resistor R9 is connected to the other end of the resistor R8 and the pin 1 of the optocoupler U2, the pin 5 of the microcontroller U1 is connected to the resistor R13 and the resistor R14, the other end of the resistor R14 is connected to the ground terminal GND, and the other end of the resistor R13 is connected to the voltage VCC.
[0006] As a further technical solution of the present invention: the relay K1 is a 24V relay.
[0007] As a further technical solution of the present invention: the transistor Q1 is an NPN transistor.
[0008] As a further technical solution of the present invention: the indicator light LED1 is a light emitting diode.
[0009] As a further technical solution of the present invention: the self-resetting fuse F2 increases resistance and reduces current when there is overcurrent, overload or short circuit.
[0010] As a further technical solution of the present invention: the diode D3 is a voltage-stabilizing diode, and the diode D5 is a voltage-stabilizing diode.
[0011] Compared with the prior art, the beneficial effects of the utility model are:
[0012] The utility model can detect the weak current of the 220V AC voltage of the socket connected to the charger (or load), and can accurately judge the current change of the charger output by using the voltage of the AC 220V circuit of the charger (or socket load), and detect the current change of the AC 220V input of the charger, so as to control the charging state of the charger, and the circuit is simple, the cost is low, and the accuracy is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 This is the circuit diagram of the socket that automatically cuts off the power when the mobile phone is fully charged in the utility model. DETAILED DESCRIPTION
[0014] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0015] Example 1
[0016] See also Figure 1, comprising a rectifier D1, a rectifier D4, a relay K1, a switch SW1, an optocoupler U2 and a single-chip computer U1, wherein one end of the switch SW1 is connected to a resistor R1, the other end of the resistor R1 is connected to an alternating current L and a pin 2 of the relay K1, the other end of the switch SW1 is connected to a resistor R3, a capacitor C1 and a pin 4 of the rectifier D1, the other end of the capacitor C1 is connected to a resistor R2, a pin 1 of the relay K1 and a socket H1, the other end of the resistor R2 is connected to the other end of the resistor R3, and the pin 2 of the rectifier D1 is connected to the capacitor C2, the ground terminal GND, the positive electrode of the diode D3, the capacitor C3, the capacitor C4 and the pin of the optocoupler U2 3, the other end of the capacitor C2 is connected to the resistor R4, the pin 1 of the rectifier D1, the cathode of the diode D2 and the pin 3 of the relay K1, the anode of the diode D2 is connected to the collector of the transistor Q1 and the pin 4 of the relay K1, the other end of the resistor R4 is connected to the cathode of the diode D3, the other end of the capacitor C3, the other end of the capacitor C4, the resistor R5, the resistor R6, the resistor R7 and the pin 2VCC of the microcontroller U1, the other end of the resistor R7 is connected to the capacitor C5, the pin 4 of the optocoupler U2 and the pin 3 of the microcontroller U1, the other end of the resistor R6 is connected to the indicator LED1, and the other end of the indicator LED1 is connected to the ground terminal GN D, the other end of the resistor R5 is connected to the base of the transistor Q1 and the pin 8 of the microcontroller U1, the emitter of the transistor Q1 is connected to the ground terminal GND, the pin 4 of the microcontroller U1 is connected to the other end of the capacitor C5 and the ground terminal GND, the other end of the socket H1 is connected to the pin 3 of the rectifier D4, the pin 4 of the rectifier D4 is connected to the pin 3 of the rectifier D1 and the fuse F1, the other end of the fuse F1 is connected to the alternating current N, the pin 1 of the rectifier D4 is connected to the resettable fuse F2, the other end of the resettable fuse F2 is connected to the capacitor C6, the capacitor C7 and the resistor R11, the other end of the resistor R11 is connected to the collector of the transistor Q2 , the cathode of diode D5, resistor R8 and resistor R10, the anode of diode D5 is connected to resistor R12, the other end of resistor R12 is connected to the base of transistor Q2, the emitter of transistor Q2 is connected to the other end of capacitor C6, the other end of capacitor C7, the other end of resistor R10, resistor R9, ground terminal VSS, pin 2 of rectifier D4 and pin 2 of optocoupler U2, the other end of resistor R9 is connected to the other end of resistor R8 and pin 1 of optocoupler U2, pin 5 of microcontroller U1 is connected to resistor R13 and resistor R14, the other end of resistor R14 is connected to ground terminal GND, and the other end of resistor R13 is connected to voltage VCC.
[0017] Example 2
[0018] On the basis of Example 1, the relay K1 adopts a 24V relay, model SRD-24VDC-SL-A. The 24V relay is selected for low power consumption, reducing working power consumption, and also helping to reduce the current withstand of SW1 and R1. Transistor Q1 is an NPN transistor; indicator LED1 adopts a light-emitting diode. Two timers are provided inside the single-chip computer U1, one of which operates according to the current situation; the other is used for timing protection when the faulty battery is always charging and the charging current cannot be reduced.
[0019] Here’s how it works:
[0020] When in use, the AC N enters the 4th pin of the rectifier D4 and the 3rd pin of the rectifier D1 through the fuse F1, is output from the 1st pin of the rectifier D4, passes through the VDD circuit and VSS, enters the 2nd pin of the rectifier D4, is output from the 3rd pin of the rectifier D4, and enters the 2nd pin of the socket H1. First, press the switch SW1, the AC L enters the 4th pin of the rectifier D1 through the resistor R1 and the switch SW1, the output voltage of the 1st pin of the rectifier D1 enters the 3rd pin of the relay K1 and the 2nd pin of the single-chip microcomputer U1, the indicator LED1 lights up, the resistor R5 drives the transistor Q1 to turn on, and then the 3rd and 4th pins of the relay K1 receive current and its internal contacts are attracted, so that the 1st and 2nd pins of the relay K1 are turned on, and the voltage output from the 1st pin of the relay K1 passes through the RC step-down circuit composed of the resistor R2, the resistor R3 and the capacitor C1, and then supplies power to the rectifier D1. At this time, release the switch SW1, the circuit is still powered, and the socket H1 is powered at the same time.When the socket H1 is connected to the charger and the mobile phone is connected, the voltage output from pin 1 of relay K1 returns to pin 3 of rectifier D4 through the charger connected to the socket H1, so that the output voltage of rectifier D4 increases. The output voltage of rectifier D4 passes through self-recovery fuse F2, capacitors C6 and C7 filtering, resistors R11, R12, diode D5, voltage regulator diode and resistor R8, and then enters optocoupler U2, so that the light-emitting diode inside optocoupler U2 lights up, and the phototransistor inside optocoupler U2 is also turned on. At this time, pin 3 of microcontroller U1 is turned on. The pin is lower than 1.27V, and the charging state is maintained (the optocoupler U2 is helpful to isolate the current of VSS and VDD from being connected to the current of VCC and GND). As the charging progresses, the battery voltage continues to rise, and the current of the socket H1 decreases. The loop voltage from the 2nd pin of the socket H1 to the 3rd pin of the rectifier D4 also decreases, and the output voltage of the rectifier D4 decreases accordingly. When the battery is fully charged, the output voltage of the rectifier D4 is not enough to meet the voltage of the 1st and 2nd pins of the optocoupler U2 after the voltage is stepped down and divided, and the internal light-emitting diode of the optocoupler U2 is lit. The photosensitive transistor inside the optocoupler U2 is disconnected, and the voltage at the pin 3 of the single-chip microcomputer U1 is higher than 1.27V. At this time, the single-chip microcomputer U1 uses the internal program to control it to enter the delay state (for example, 30 minutes). In the delay state, the circuit still performs trickle charging on the battery to ensure that the battery can be fully charged. After the delay time is up, the pin 8 of the single-chip microcomputer U1 outputs a low level, the transistor Q1 is disconnected, and the relay K1 is also disconnected, the circuit is powered off, and the voltage of the charger connected to the socket H1 is also disconnected. Charging is ended, and the purpose of automatically disconnecting the charging is achieved. The thermistor R14 senses the temperature next to the resettable fuse F2. When the load of the socket H1 is overloaded, overcurrent, short-circuited or other faults cause the resettable fuse F2 to heat up to an abnormal temperature, the resistance of the thermistor R14 decreases and the voltage of pin 5 of the microcontroller U1 is lowered. At this time, the microcontroller U1 uses internal program control, and pin 8 of the microcontroller U1 outputs a low level, the transistor Q1 is disconnected, and the relay K1 is also disconnected, the circuit is powered on, and the voltage of the charger connected to the socket H1 is also disconnected, thereby achieving power-off protection when a fault occurs.
[0021] This design can also provide the following protection:
[0022] 1. Overload:
[0023] When the load current connected to the socket H1 exceeds the safety current, the positive voltage of the diode D5 is higher than the voltage regulator of the diode D5, and the voltage drives Q2 to conduct through the diode D5 and the resistor R12, and the current of the resettable fuse F2 increases. When the current is greater than the current that triggers the resettable fuse F2, the temperature of the resettable fuse F2 rises, and the internal resistance of the resettable fuse F2 increases, thereby reducing the current output by the resettable fuse F2, and also reducing the current of the socket H1 load. Thus, the purpose of protection is achieved.
[0024] 2. Short circuit: When the load connected to the socket H1 exceeds the safety current due to a short circuit, the positive voltage of the diode D5 is higher than the voltage regulator voltage of the diode D5. The voltage drives Q2 to conduct through the diode D5 and the resistor R12, and the current of the resettable fuse F2 increases. When the current is greater than the current that triggers the resettable fuse F2, the temperature of the resettable fuse F2 rises, and the internal resistance of the resettable fuse F2 increases, thereby reducing the current output by the resettable fuse F2, and also reducing the current of the socket H1 load. Thus, the purpose of protection is achieved;
[0025] 3. No-load protection (charger not plugged in or charger plugged in but not connected to mobile phone);
[0026] Press the switch SW1, the current of the socket H1 is small, the voltage of pin 3 of the microcontroller U1 is higher than 1.27V, 60 minutes plus 30 minutes, the timing time is up, the pin 8 of the microcontroller U1 outputs a low level, the transistor Q1 is cut off, there is no current in pins 3 and 4 of the relay K1, pins 1 and 2 of the relay K1 cannot be turned on, the voltage of the AC L at pin 1 of the socket H1 is disconnected, and the voltage of the automatic power-off socket control board circuit is also disconnected, thereby achieving the purpose of protection.
[0027] 4. Charger failure or battery failure causes the charging to fail and the current cannot be raised. Protection:
[0028] Press the switch SW1, the current of the socket H1 is small, the voltage of pin 3 of the microcontroller U1 is higher than 1.27V, 60 minutes plus 30 minutes, the timing time is up, the pin 8 of the microcontroller U1 outputs a low level, the transistor Q1 is cut off, there is no current in pins 3 and 4 of the relay K1, pins 1 and 2 of the relay K1 cannot be turned on, the voltage of the AC L at pin 1 of the socket H1 is disconnected, and the voltage of the automatic power-off socket control board circuit is also disconnected, thereby achieving the purpose of protection.
[0029] Note: The first timer is a timer for the charging status. The second timer is a timer that ends after 12 hours. The third timer is a timer that clears the first timer 60 minutes before power-on, but the second timer will not be cleared at any time. After 60 minutes of power-on, if the voltage of the 3rd pin of the microcontroller U1 is higher than 1.27V, the first timer starts timing. If the voltage of the 3rd pin of the microcontroller U1 is lower than 1.27V, the first timer is suspended.
[0030] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be regarded as exemplary and non-restrictive from any point of view, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present invention. Any reference numeral in a claim should not be regarded as limiting the claim to which it relates.
[0031] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A socket for automatically shutting off the power when the mobile phone is fully charged, comprising a rectifier D1, a rectifier D4, a relay K1, a switch SW1, an optical coupler U2 and a single-chip microcomputer U1, characterized in that: One end of the switch SW1 is connected to the resistor R1, the other end of the resistor R1 is connected to the AC power L and the pin 2 of the relay K1, the other end of the switch SW1 is connected to the resistor R3, the capacitor C1 and the pin 4 of the rectifier D1, the other end of the capacitor C1 is connected to the resistor R2, the pin 1 of the relay K1 and the socket H1, the other end of the resistor R2 is connected to the other end of the resistor R3, the pin 2 of the rectifier D1 is connected to the capacitor C2, the ground terminal GND, the positive electrode of the diode D3, the capacitor C3, the capacitor C4 and the pin 3 of the optocoupler U2, the other end of the capacitor C2 is connected to the resistor R4, the pin 1 of the rectifier D1, the diode D3, the capacitor C4 and the pin 3 of the optocoupler U2, the The cathode of diode D2 is connected to pin 3 of relay K1, the anode of diode D2 is connected to the collector of transistor Q1 and pin 4 of relay K1, the other end of resistor R4 is connected to the cathode of diode D3, the other end of capacitor C3, the other end of capacitor C4, resistor R5, resistor R6, resistor R7 and pin 2VCC of microcontroller U1, the other end of resistor R7 is connected to capacitor C5, pin 4 of optocoupler U2 and pin 3 of microcontroller U1, the other end of resistor R6 is connected to indicator LED1, the other end of indicator LED1 is connected to ground GND, the other end of resistor R5 is connected to base of transistor Q1 The emitter of transistor Q1 is connected to the ground terminal GND, pin 4 of single-chip computer U1 is connected to the other end of capacitor C5 and the ground terminal GND, the other end of socket H1 is connected to pin 3 of rectifier D4, pin 4 of rectifier D4 is connected to pin 3 of rectifier D1 and fuse F1, the other end of fuse F1 is connected to AC power N, pin 1 of rectifier D4 is connected to resettable fuse F2, the other end of resettable fuse F2 is connected to capacitor C6, capacitor C7 and resistor R11, the other end of resistor R11 is connected to the collector of transistor Q2 and the negative electrode of diode D5 , resistor R8 and resistor R10, the positive electrode of diode D5 is connected to resistor R12, the other end of resistor R12 is connected to the base of transistor Q2, the emitter of transistor Q2 is connected to the other end of capacitor C6, the other end of capacitor C7, the other end of resistor R10, resistor R9, ground terminal VSS, pin 2 of rectifier D4 and pin 2 of optocoupler U2, the other end of resistor R9 is connected to the other end of resistor R8 and pin 1 of optocoupler U2, pin 5 of microcontroller U1 is connected to resistor R13 and resistor R14, the other end of resistor R14 is connected to ground terminal GND, and the other end of resistor R13 is connected to voltage VCC.
2. A socket for automatically shutting off the power when the mobile phone is fully charged according to claim 1, characterized in that: The relay K1 is a 24V relay.
3. The socket for automatically shutting off the power when the mobile phone is fully charged according to claim 1, characterized in that: The transistor Q1 is an NPN transistor.
4. The socket for automatically shutting off the power when the mobile phone is fully charged according to claim 1, characterized in that: The indicator light LED1 is a light emitting diode.
5. The socket for automatically shutting off the power when the mobile phone is fully charged according to claim 1, characterized in that: The resettable fuse F2 increases resistance and reduces current when there is overcurrent, overload or short circuit.
6. The socket for automatically shutting off the power when the mobile phone is fully charged according to claim 1, characterized in that: The diode D3 is a voltage-stabilizing diode, and the diode D5 is a voltage-stabilizing diode.
