Mobile power supply control circuit
By designing a mobile power supply control circuit, the system automatically detects and judges the qualification of the replaced power supply, solving the charging abnormality problem caused by power supply replacement in electric vehicles and trolleybuses, and improving the reliability of the equipment and the user experience.
Patent Information
- Application Number
- CN202511502407.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-21
- Publication Date
- 2025-12-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When replacing power banks in devices such as electric vehicles and trams, there may be issues such as voltage mismatch, brand compatibility differences, and interface design defects, leading to abnormal charging and reduced efficiency, which affects user experience and device reliability.
Design a mobile power supply control circuit, including a power replacement detection module, a power supply detection control module, and a main control module. By detecting the voltage and current of the mobile power supply, an analog circuit is automatically constructed to determine whether the replaced mobile power supply is qualified. If it is qualified, the load circuit is turned on to provide an abnormal indication.
It enables automatic determination of the pass/fail status of power banks after replacement, avoiding the impact of unqualified power banks on device reliability and improving user experience and device stability.
Smart Images

Figure CN121179984A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power supplies, specifically a mobile power supply control circuit. Background Technology
[0002] In electric vehicles, trams, and other devices that support power bank replacement, issues such as voltage mismatch, brand compatibility differences, or inconsistent power supply quality may arise during power bank replacement, easily leading to device malfunctions. Furthermore, design flaws in some power bank interfaces or loose plug-in mechanisms may cause poor contact, resulting in charging interruptions or reduced efficiency.
[0003] Users lack awareness of these issues, which ultimately manifests as poor user experience due to abnormal device charging, decreased efficiency, and other reasons. This leads to questions about the reliability of the devices, requiring improvement. Summary of the Invention
[0004] The purpose of this invention is to provide a mobile power supply control circuit to solve the problems mentioned in the background art.
[0005] To achieve the above objectives, the present invention provides the following technical solution:
[0006] A mobile power bank control circuit includes:
[0007] The power replacement detection module is used to detect whether the power bank has been replaced. After the power bank is replaced, it provides a third signal (GPIO3) to the main control module.
[0008] The power supply detection and control module is used to receive control from the main control module. Initially, it conducts the analog circuit (GPIO4) to obtain the sampled voltage and sampled current (ADC1, ADC2) of the replaced power supply and outputs them to the main control module. After the main control module determines that the replaced power supply is qualified, it conducts the actual circuit (GPIO5) where the load is located.
[0009] The main control module is used to input the working voltage and current qualification data of the power supply for different devices; after receiving the third signal, it controls the analog circuit of the power supply detection control module to conduct, and determines whether the power supply after the current device replacement is qualified on this device based on the sampled voltage and sampled current. If qualified, it controls the actual circuit where the load of the power supply detection control module is located to conduct.
[0010] The first output terminal of the main control module is connected to the input terminal of the power replacement detection module, the first input terminal of the main control module is connected to the output terminal of the power replacement detection module, the second output terminal of the main control module is connected to the input terminal of the power supply detection control module, and the second input terminal of the main control module is connected to the output terminal of the power supply detection control module.
[0011] As a further embodiment of the present invention: the main control module includes a main control chip and a storage chip. The main control chip is an MCU and the storage chip is an EEPROM. The SCL and SDA pins of the main control chip are connected to the SCL and SDA pins of the storage chip through a first resistor and a second resistor, respectively. The GPIO2 pin of the main control chip (the first output terminal of the main control module) is connected to the input terminal of the power replacement detection module. The GPIO1 and GPIO3 pins of the main control chip (the first input terminal of the main control module) are connected to the output terminal of the power replacement detection module. The GPIO4 and GPIO5 pins of the main control chip (the second output terminal of the main control module) are connected to the input terminal of the power supply detection control module. The ADC1 and ADC2 pins of the main control chip (the second input terminal of the main control module) are connected to the output terminal of the power supply detection control module.
[0012] As a further embodiment of the present invention: the power supply replacement detection module includes:
[0013] The power supply disconnection feedback unit is used to provide the first signal (GPIO1) to the main control module after the power supply is disconnected.
[0014] The power supply installation feedback unit is used to provide a third signal (GPIO3) to the main control module after receiving the second signal (GPIO2) output by the main control module, if the power bank has been installed.
[0015] The output of the power supply feedback unit is connected to the first input of the main control module, the output of the power supply feedback unit is connected to the first input of the main control module, and the input of the power supply feedback unit is connected to the first output of the main control module.
[0016] As a further embodiment of the present invention: the power disconnection feedback unit includes a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a first diode, a first transistor, a first capacitor, and a first thyristor. One end of the third resistor is connected to the power supply voltage, and the other end of the third resistor is connected to the negative terminal of the first diode. One end of the fourth resistor is connected to the positive terminal of the first diode, which is connected to the power supply. The other end of the fourth resistor is connected to the base of the first transistor, and the emitter of the first transistor is connected to the power supply voltage. The collector of the first transistor is connected to one end of the fifth resistor, and the other end of the fifth resistor is connected to the control terminal of the first thyristor. The positive terminal of the first thyristor is connected to the power supply voltage, and the negative terminal of the first thyristor is connected to one end of the sixth resistor. The other end of the sixth resistor is connected to one end of the first capacitor and the first input terminal of the main control module. The other end of the first capacitor is grounded.
[0017] As a further embodiment of the present invention: the power supply feedback unit includes a second diode, a seventh resistor, a second transistor, a third MOSFET, an eighth resistor, and a third diode. The positive terminal of the second diode is connected to the mobile power supply, the negative terminal of the second diode is connected to one end of the seventh resistor, the other end of the seventh resistor is connected to the base of the second transistor, the collector of the second transistor is connected to the power supply voltage, the emitter of the second diode is connected to the drain of the third MOSFET, the gate of the third MOSFET is connected to the first output terminal of the main control module, the source of the third MOSFET is connected to one end of the eighth resistor, the other end of the eighth resistor is connected to the negative terminal of the third diode and the first input terminal of the main control module, and the positive terminal of the third diode is grounded.
[0018] As a further embodiment of the present invention: the power supply detection and control module includes:
[0019] The simulation and working unit is used to construct an analog circuit upon receiving the fourth signal (GPIO4) output from the main control module; and to construct the actual circuit where the load is located upon receiving the fifth signal (GPIO5) output from the main control module; the power supply for both the analog and actual circuits is the replaced portable power supply.
[0020] The current sampling unit is used to sample the current of the analog circuit, feed back the output current information of the replaced power supply, and output it to the main control module (ADC1).
[0021] The voltage sampling unit is used to sample the voltage of the analog circuit, feed back the output voltage information of the replaced mobile power supply, and output it to the main control module (ADC2).
[0022] The input terminals (GPIO4, GPIO5) of the analog and working unit are connected to the second output terminal of the main control module. The first output terminal of the analog and working unit is connected to the input terminal of the current sampling unit. The second output terminal of the analog and working unit is connected to the input terminal of the voltage sampling unit. The output terminal of the current sampling unit is connected to the second input terminal (ADC1) of the main control module. The output terminal of the voltage sampling unit is connected to the second input terminal (ADC2) of the main control module.
[0023] As a further embodiment of the present invention: the analog and working unit includes a fourth MOSFET, a fifth MOSFET, a first switch, a second capacitor, a load, a ninth resistor, a second capacitor, a tenth resistor, and an eleventh resistor. The drain of the fourth MOSFET is connected to the drain of the fifth MOSFET, one end of the first switch, and a power supply. The other end of the first switch is connected to the source of the fifth MOSFET, one end of the second capacitor, and one end of the load. The other end of the second capacitor is grounded, and the other end of the load is grounded. The gate of the fifth MOSFET is connected to the second output terminal of the main control module. The gate of the fourth MOSFET is connected to the second output terminal of the main control module. The source of the fourth MOSFET is connected to one end of the ninth resistor. The other end of the ninth resistor is connected to one end of the second capacitor and one end of the tenth resistor. The other end of the second capacitor is grounded. The other end of the tenth resistor is connected to one end of the eleventh resistor and the input terminal of the voltage sampling unit. The two ends of the tenth resistor are connected to the input terminal of the current sampling unit. The other end of the eleventh resistor is grounded.
[0024] As a further embodiment of the present invention: the current sampling unit includes a twelfth resistor, a thirteenth resistor, a fourteenth resistor, a fifteenth resistor, a third amplifier, a third capacitor, and a second Zener diode. One end of the twelfth resistor is connected to the first output terminal of the analog and working unit, one end of the fourteenth resistor is connected to the first output terminal of the analog and working unit, the other end of the twelfth resistor is connected to one end of the thirteenth resistor and the non-inverting input of the third amplifier, the other end of the thirteenth resistor is grounded, the other end of the fourteenth resistor is connected to one end of the fifteenth resistor and the inverting input of the third amplifier, the other end of the fifteenth resistor is connected to the output terminal of the third amplifier, one end of the third capacitor, the negative terminal of the second Zener diode, and the second input terminal of the main control module, the other end of the third capacitor is grounded, and the positive terminal of the second Zener diode is grounded.
[0025] As a further embodiment of the present invention: the voltage sampling unit includes a sixteenth resistor, a seventeenth resistor, a fourth capacitor, and a third Zener diode. One end of the sixteenth resistor is connected to the second output terminal of the analog and working unit, and the other end of the sixteenth resistor is connected to one end of the seventeenth resistor, one end of the fourth capacitor, the negative terminal of the third Zener diode, and the second input terminal of the main control module. The other end of the seventeenth resistor is grounded, the other end of the fourth capacitor is grounded, and the positive terminal of the third Zener diode is grounded.
[0026] As a further embodiment of the present invention: the power bank control circuit further includes an abnormality indication module, which is used to indicate that the replaced power bank is unqualified if it receives the sixth signal (GPIO6) output by the main control module; the input terminal of the abnormality indication module is connected to the third output terminal (GPIO6) of the main control module.
[0027] The fault indication module includes an eighteenth resistor, a fifth capacitor, and a fourth diode. The fourth diode is a light-emitting diode. One end of the eighteenth resistor is connected to the third output terminal of the main control module, and the other end of the eighteenth resistor is connected to one end of the fifth capacitor and the positive terminal of the fourth diode. The other end of the fifth capacitor is grounded, and the positive terminal of the fourth diode is grounded.
[0028] Compared with the prior art, the beneficial effects of the present invention are: the present invention automatically triggers operation after the power bank is replaced, constructs a simulation circuit for the replaced power bank, samples the voltage and current of the simulation circuit, and judges whether the replaced power bank is qualified based on the corresponding qualified operating voltage and current data of different device power banks that have been pre-recorded, thus avoiding the impact of unqualified power banks on users' doubts about the reliability of electric vehicles, trams and other equipment. Attached Figure Description
[0029] Figure 1 This is a schematic diagram of a mobile power supply control circuit.
[0030] Figure 2 Schematic diagram for replacing the detection module in the power supply.
[0031] Figure 3 This is a schematic diagram of the power supply detection and control module.
[0032] Figure 4 This is the circuit diagram of the main control module.
[0033] Figure 5 Circuit diagram for replacing the detection module in the power supply.
[0034] Figure 6 This is the circuit diagram for the power supply detection and control module.
[0035] Figure 7 This is the circuit diagram for the fault indication module. Detailed Implementation
[0036] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0037] Please see Figure 1 A mobile power supply control circuit, comprising:
[0038] The power replacement detection module 2 is used to detect whether the power bank E1 has been replaced. After the power bank E1 is replaced, it provides a third signal (GPIO3) to the main control module 1.
[0039] The power supply detection and control module 3 is used to receive the control of the main control module 1. Initially, it conducts the analog circuit (GPIO4) to obtain the sampling voltage and sampling current (ADC1, ADC2) of the replaced mobile power supply E1 and outputs them to the main control module 1. After the main control module 1 determines that the replaced mobile power supply E1 is qualified, it conducts the actual circuit (GPIO5) where the load X is located.
[0040] The main control module 1 is used to input the working voltage and current qualification data of the mobile power supply E1 of different devices; after receiving the third signal, it controls the analog circuit of the power supply detection control module 3 to conduct, and judges whether the mobile power supply E1 after the current device is replaced is qualified on this device based on the sampled voltage and sampled current. If it is qualified, it controls the actual circuit where the load X of the power supply detection control module 3 is located to conduct.
[0041] The first output terminal of the main control module 1 is connected to the input terminal of the power replacement detection module 2, the first input terminal of the main control module 1 is connected to the output terminal of the power replacement detection module 2, the second output terminal of the main control module 1 is connected to the input terminal of the power supply detection and control module 3, and the second input terminal of the main control module 1 is connected to the output terminal of the power supply detection and control module 3.
[0042] In this embodiment: Please refer to Figure 4 The main control module 1 includes a main control chip U1 and a storage chip U2. The main control chip U1 is an MCU and the storage chip U2 is an EEPROM. The SCL and SDA pins of the main control chip U1 are connected to the SCL and SDA pins of the storage chip U2 through the first resistor R1 and the second resistor R2, respectively. The GPIO2 pin of the main control chip U1 (the first output terminal of the main control module 1) is connected to the input terminal of the power replacement detection module 2. The GPIO1 and GPIO3 pins of the main control chip U1 (the first input terminal of the main control module 1) are connected to the output terminal of the power replacement detection module 2. The GPIO4 and GPIO5 pins of the main control chip U1 (the second output terminal of the main control module 1) are connected to the input terminal of the power supply detection control module 3. The ADC1 and ADC2 pins of the main control chip U1 (the second input terminal of the main control module 1) are connected to the output terminal of the power supply detection control module 3.
[0043] The main control chip U1 obtains the working current and voltage qualification data of the mobile power supply E1 from the storage chip U2 through the SCL and SDA pins, and compares it with the current and voltage data collected by ADC1 and ADC2. If the collected current and voltage data are qualified, the GPIO5 pin of the main control chip U1 outputs a high level to form a loop between the mobile power supply E1 and the load X (electrical device), and the load X is powered on and works.
[0044] Based on this, a display screen can be added to show the qualified data of the working current and voltage required by the current model of equipment, and the magnitude of the sampled current and voltage can be observed intuitively.
[0045] In another embodiment, a FLASH memory chip can be used instead of an EEPROM memory chip.
[0046] In this embodiment: Please refer to Figure 2 The power replacement detection module 2 includes:
[0047] The power supply disconnection feedback unit 21 is used to provide a first signal (GPIO1) to the main control module 1 after the mobile power supply E1 is disconnected.
[0048] The power installation feedback unit 22 is used to provide a third signal (GPIO3) to the main control module 1 after receiving the second signal (GPIO2) output by the main control module 1 if the mobile power supply E1 has been installed.
[0049] The output of the power supply disconnection feedback unit 21 is connected to the first input of the main control module 1, the output of the power supply installation feedback unit 22 is connected to the first input of the main control module 1, and the input of the power supply installation feedback unit 22 is connected to the first output of the main control module 1.
[0050] In this embodiment: Please refer to Figure 5 The power disconnection feedback unit 21 includes a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a first diode D1, a first transistor V1, a first capacitor C1, and a first thyristor Z1. One end of the third resistor R3 is connected to the power supply voltage VCC, and the other end of the third resistor R3 is connected to the negative terminal of the first diode D1. One end of the fourth resistor R4 is connected to the positive terminal of the first diode D1, which is connected to the mobile power supply E1. The other end of the fourth resistor R4 is connected to the base of the first transistor V1, and the emitter of the first transistor V1 is connected to the power supply voltage VCC. The collector of the first transistor V1 is connected to one end of the fifth resistor R5, and the other end of the fifth resistor R5 is connected to the control terminal of the first thyristor Z1. The positive terminal of the first thyristor Z1 is connected to the power supply voltage VCC, and the negative terminal of the first thyristor Z1 is connected to one end of the sixth resistor R6. The other end of the sixth resistor R6 is connected to one end of the first capacitor C1 and the first input terminal of the main control module 1. The other end of the first capacitor C1 is grounded.
[0051] When the power bank E1 is not removed, the base of the first transistor V1 is at a high level and the first transistor V1 is cut off. After the power bank E1 is removed, the base of the first transistor V1 is at a low level and the first transistor V1 is turned on, triggering the first thyristor Z1 to turn on and output a high level to the GPIO1 port of the main control chip U1 to trigger the main control chip U1 to start working.
[0052] In another embodiment: the supply voltage VCC is obtained from an external power source, not from the power bank E1.
[0053] In this embodiment: Please refer to Figure 5 The power supply feedback unit 22 includes a second diode D2, a seventh resistor R7, a second transistor V2, a third MOSFET V3, an eighth resistor R8, and a third diode D3. The positive terminal of the second diode D2 is connected to the mobile power supply E1, the negative terminal of the second diode D2 is connected to one end of the seventh resistor R7, the other end of the seventh resistor R7 is connected to the base of the second transistor V2, the collector of the second transistor V2 is connected to the power supply voltage VCC, the emitter of the second diode D2 is connected to the drain of the third MOSFET V3, the gate of the third MOSFET V3 is connected to the first output terminal of the main control module 1, the source of the third MOSFET V3 is connected to one end of the eighth resistor R8, the other end of the eighth resistor R8 is connected to the negative terminal of the third diode D3 and the first input terminal of the main control module 1, and the positive terminal of the third diode D3 is grounded.
[0054] When the main control chip U1 starts working, it learns that the power bank E1 has been removed. GPIO2 outputs a high level, triggering the third MOSFET V3 to conduct. If the replacement power bank E1 is installed at this time, the base of the second transistor V2 becomes high, and the second transistor V2 conducts. This causes the supply voltage VCC to output a high level through the second transistor V2, the third MOSFET V3, and the eighth resistor R8 to the GPIO3 port of the main control chip U1. After receiving the high level from the GPIO3 port, the main control chip U1 begins to verify whether the replacement power bank E1 is qualified.
[0055] In another embodiment: the third Zener diode Z3 can be omitted. The third Zener diode Z3 is used to limit the voltage output to GPIO3 port to avoid damaging the main control chip U1. If omitted, the main control chip U1 will lack safety protection.
[0056] In this embodiment: Please refer to Figure 3 The power supply detection and control module 3 includes:
[0057] The simulation and working unit 31 is used to construct an analog circuit after receiving the fourth signal (GPIO4) output by the main control module 1; and to construct the actual circuit where the load X is located after receiving the fifth signal (GPIO5) output by the main control module 1; the power supply for the analog circuit and the actual circuit is the replaced mobile power supply E1.
[0058] The current sampling unit 32 is used to sample the current of the analog circuit, feed back the output current information of the replaced mobile power supply E1, and output it to the main control module 1 (ADC1).
[0059] The voltage sampling unit 33 is used to sample the voltage of the analog circuit, feed back the output voltage information of the replaced mobile power supply E1, and output it to the main control module 1 (ADC2).
[0060] The input terminals (GPIO4, GPIO5) of the analog and working unit 31 are connected to the second output terminal of the main control module 1. The first output terminal of the analog and working unit 31 is connected to the input terminal of the current sampling unit 32. The second output terminal of the analog and working unit 31 is connected to the input terminal of the voltage sampling unit 33. The output terminal of the current sampling unit 32 is connected to the second input terminal (ADC1) of the main control module 1. The output terminal of the voltage sampling unit 33 is connected to the second input terminal (ADC2) of the main control module 1.
[0061] In this embodiment: Please refer to Figure 6 The analog and working unit 31 includes a fourth MOSFET V4, a fifth MOSFET V5, a first switch S1, a second capacitor C2, a load X, a ninth resistor R9, a second capacitor C2, a tenth resistor R10, and an eleventh resistor R11. The drain of the fourth MOSFET V4 is connected to the drain of the fifth MOSFET V5, one end of the first switch S1, and the mobile power supply E1. The other end of the first switch S1 is connected to the source of the fifth MOSFET V5, one end of the second capacitor C2, and one end of the load X. The other end of the second capacitor C2 is grounded, and the other end of the load X is grounded. The fifth MOSFET... The gate (G) of V5 is connected to the second output terminal of the main control module 1. The gate (G) of the fourth MOSFET V4 is connected to the second output terminal of the main control module 1. The source (S) of the fourth MOSFET V4 is connected to one end of the ninth resistor R9. The other end of the ninth resistor R9 is connected to one end of the second capacitor C2 and one end of the tenth resistor R10. The other end of the second capacitor C2 is grounded. The other end of the tenth resistor R10 is connected to one end of the eleventh resistor R11 and the input terminal of the voltage sampling unit 33. Both ends of the tenth resistor R10 are connected to the input terminal of the current sampling unit 32. The other end of the eleventh resistor R11 is grounded.
[0062] The main control chip U1 begins to verify whether the replaced power bank E1 is qualified, and controls GPIO4 to output a high level. The power bank E1, the fourth MOSFET V4, the ninth resistor R9, the tenth resistor R10, and the eleventh resistor R11 form a circuit as an analog circuit.
[0063] If the replacement power supply E1 passes the simulation circuit verification, the main control chip U1 controls GPIO5 to output a high level (at this time, GPIO4 will no longer output a high level). The power supply E1, the fifth MOSFET V5, and the load X (electrical equipment such as trams and electric vehicles) constitute the actual circuit.
[0064] In another embodiment: the first switch S1 can be omitted. The first switch S1 is a manual switch. If the replacement power supply E1 is unqualified, but the load X needs to work urgently, the first switch S1 can be manually controlled to force it to work.
[0065] In this embodiment: Please refer to Figure 6 The current sampling unit 32 includes a twelfth resistor R12, a thirteenth resistor R13, a fourteenth resistor R14, a fifteenth resistor R15, a third amplifier U3, a third capacitor C3, and a second Zener diode Z2. One end of the twelfth resistor R12 is connected to the first output terminal of the analog and working unit 31. One end of the fourteenth resistor R14 is connected to the first output terminal of the analog and working unit 31. The other end of the twelfth resistor R12 is connected to one end of the thirteenth resistor R13 and the non-inverting input of the third amplifier U3. The other end of the thirteenth resistor R13 is grounded. The other end of the fourteenth resistor R14 is connected to one end of the fifteenth resistor R15 and the inverting input of the third amplifier U3. The other end of the fifteenth resistor R15 is connected to the output terminal of the third amplifier U3, one end of the third capacitor C3, the negative terminal of the second Zener diode Z2, and the second input terminal of the main control module 1. The other end of the third capacitor C3 is grounded, and the positive terminal of the second Zener diode Z2 is grounded.
[0066] The current sampling unit 32 is a differential amplifier circuit that amplifies the voltage difference across the tenth resistor R10 and outputs it. The resistance value of the tenth resistor R10 is fixed, which is the voltage feedback signal of the mobile power supply E1 output to the main control chip U1ADC1 port, and is used as the current sampling signal.
[0067] In another embodiment, the magnitude of the current in the analog circuit can also be detected by a Hall effect sensor.
[0068] In this embodiment: Please refer to Figure 6 The voltage sampling unit 33 includes a sixteenth resistor R16, a seventeenth resistor R17, a fourth capacitor C4, and a third Zener diode Z3. One end of the sixteenth resistor R16 is connected to the second output terminal of the analog and working unit 31. The other end of the sixteenth resistor R16 is connected to one end of the seventeenth resistor R17, one end of the fourth capacitor C4, the negative terminal of the third Zener diode Z3, and the second input terminal of the main control module 1. The other end of the seventeenth resistor R17 is grounded, the other end of the fourth capacitor C4 is grounded, and the positive terminal of the third Zener diode Z3 is grounded.
[0069] The voltage on the power bank E1 is divided by the fourth MOSFET V4, the ninth resistor R9, the tenth resistor R10, and the eleventh resistor R11. The voltages on the sixteenth resistor R16 and the seventeenth resistor R17 are the same as the voltage on the eleventh resistor R11. Therefore, the voltage on the seventeenth resistor R17 reflects the voltage of the power bank E1 and is output to the ADC2 port of the main control chip U1.
[0070] In another embodiment: the sixteenth resistor R16 and the seventeenth resistor R17 can be omitted, and the voltage on the eleventh resistor R11 can be directly used as the sampling voltage output to the main control chip U1. The voltage divider is set with two resistors to avoid the voltage on the eleventh resistor R11 being too large, which would prevent the actual voltage of the power bank E1 from being collected after being clamped by the third Zener diode Z3.
[0071] In this embodiment: Please refer to Figure 7 The mobile power supply E1 control circuit also includes an abnormality indication module 4, which is used to indicate that the replaced mobile power supply E1 is unqualified if it receives the sixth signal (GPIO6) output by the main control module 1; the input terminal of the abnormality indication module 4 is connected to the third output terminal (GPIO6) of the main control module 1.
[0072] The abnormality indication module 4 includes an eighteenth resistor R18, a fifth capacitor C5, and a fourth diode D4. The fourth diode D4 is a light-emitting diode. One end of the eighteenth resistor R18 is connected to the third output terminal of the main control module 1, and the other end of the eighteenth resistor R18 is connected to one end of the fifth capacitor C5 and the positive terminal of the fourth diode D4. The other end of the fifth capacitor C5 is grounded, and the positive terminal of the fourth diode D4 is grounded.
[0073] Based on the sampled voltage and sampled current, the main control chip U1 determines that the replacement power bank E1 is unqualified on this device. The GPIO6 port of the main control chip U1 outputs a high level, causing the fourth diode D4 to light up as an indicator.
[0074] In another embodiment: a buzzer may be added to sound an alarm when the replaced power bank E1 fails.
[0075] The working principle of this invention is as follows: The power replacement detection module 2 is used to detect whether the power bank E1 has been replaced. After the power bank E1 is replaced, it provides a third signal (GPIO3) to the main control module 1. The power supply detection control module 3 is used to receive the control of the main control module 1. Initially, it conducts the analog circuit (GPIO4) to obtain the sampled voltage and sampled current (ADC1, ADC2) of the replaced power bank E1 and outputs them to the main control module 1. After the main control module 1 determines that the replaced power bank E1 is qualified, it conducts the actual circuit (GPIO5) where the load X is located. The main control module 1 is used to input the working voltage and current qualification data of the power bank E1 of different devices. After receiving the third signal, it controls the analog circuit of the power supply detection control module 3 to conduct. Based on the sampled voltage and sampled current, it determines whether the replaced power bank E1 of the current device is qualified on this device. If qualified, it controls the actual circuit where the load X of the power supply detection control module 3 is located to conduct. The abnormality indication module 4 is used to illuminate to indicate that the replaced power bank E1 is unqualified if it receives the sixth signal (GPIO6) output by the main control module 1. The input terminal of the abnormality indication module 4 is connected to the third output terminal (GPIO6) of the main control module 1.
[0076] It will be apparent 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 invention can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered in all respects as exemplary and not restrictive.
[0077] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
Claims
1. A mobile power supply control circuit, characterized by comprising: The mobile power supply control circuit comprises: The power supply replacement detection module is used for detecting whether the mobile power supply is replaced, and providing a third signal for the main control module after the mobile power supply is replaced; The power supply detection control module is used for receiving the control of the main control module, and initially turning on the analog loop to obtain the sampling voltage and sampling current of the replaced mobile power supply, and outputting to the main control module, and turning on the actual loop where the load is located after the main control module judges that the replaced mobile power supply is qualified; The main control module is used for inputting the working voltage and current qualified data of the mobile power supply of different devices; after receiving the third signal, the analog loop of the power supply detection control module is controlled to be turned on, and whether the replaced mobile power supply of the current device is qualified on the device is judged based on the sampling voltage and sampling current, and if qualified, the actual loop where the load is located of the power supply detection control module is controlled to be turned on. The first output end of the main control module is connected with the input end of the power supply replacement detection module, the first input end of the main control module is connected with the output end of the power supply replacement detection module, the second output end of the main control module is connected with the input end of the power supply detection control module, and the second input end of the main control module is connected with the output end of the power supply detection control module.
2. The mobile power supply control circuit of claim 1, wherein, The main control module comprises a main control chip and a storage chip, the main control chip is an MCU, the storage chip is an EEPROM, the SCL and SDA pins of the main control chip are connected with the SCL and SDA pins of the storage chip through the first resistor and the second resistor, the GPIO2 pin of the main control chip is connected with the input end of the power supply replacement detection module, the GPIO1 and GPIO3 pins of the main control chip are connected with the output end of the power supply replacement detection module, the GPIO4 and GPIO5 pins of the main control chip are connected with the input end of the power supply detection control module, and the ADC1 and ADC2 pins of the main control chip are connected with the output end of the power supply detection control module.
3. The mobile power supply control circuit according to claim 1 or 2, characterized in that, The power supply replacement detection module comprises: The power supply removal feedback unit is used for providing a first signal for the main control module after the mobile power supply is removed; The power supply installation feedback unit is used for providing a third signal for the main control module after receiving the second signal output by the main control module if the mobile power supply has been installed; The output end of the power supply removal feedback unit is connected with the first input end of the main control module, the output end of the power supply installation feedback unit is connected with the first input end of the main control module, and the input end of the power supply installation feedback unit is connected with the first output end of the main control module.
4. The mobile power supply control circuit of claim 3, wherein, The power supply removal feedback unit comprises a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a first diode, a first triode, a first capacitor and a first thyristor, one end of the third resistor is connected with the power supply voltage, the other end of the third resistor is connected with the negative electrode of the first diode and one end of the fourth resistor, the positive electrode of the first diode is connected with the mobile power supply, the other end of the fourth resistor is connected with the base of the first triode, the emitter of the first triode is connected with the power supply voltage, the collector of the first triode is connected with one end of the fifth resistor, the other end of the fifth resistor is connected with the control electrode of the first thyristor, the positive electrode of the first thyristor is connected with the power supply voltage, the negative electrode of the first thyristor is connected with one end of the sixth resistor, the other end of the sixth resistor is connected with one end of the first capacitor and the first input end of the main control module, and the other end of the first capacitor is grounded.
5. The mobile power supply control circuit of claim 3, wherein, The power supply installation feedback unit comprises a second diode, a seventh resistor, a second triode, a third MOS tube, an eighth resistor, a third diode, a positive electrode of the second diode is connected with the mobile power supply, a negative electrode of the second diode is connected with one end of the seventh resistor, the other end of the seventh resistor is connected with a base electrode of the second triode, a collector electrode of the second triode is connected with the power supply voltage, an emitter electrode of the second diode is connected with a D pole of the third MOS tube, a G pole of the third MOS tube is connected with a first output end of the master control module, an S pole of the third MOS tube is connected with one end of the eighth resistor, the other end of the eighth resistor is connected with a negative electrode of the third diode and a first input end of the master control module, and a positive electrode of the third diode is grounded.
6. The mobile power supply control circuit according to claim 1 or 2, wherein The power supply detection control module comprises: The analog and working unit is used for constructing an analog loop if the fourth signal output by the master control module is received, and constructing an actual loop where the load is located if the fifth signal output by the master control module is received; and the power supply of the analog loop and the actual loop is the replaced mobile power supply; The current sampling unit is used for sampling the current of the analog loop, feeding back the output current information of the replaced mobile power supply, and outputting the output current information to the master control module; The voltage sampling unit is used for sampling the voltage of the analog loop, feeding back the output voltage information of the replaced mobile power supply, and outputting the output voltage information to the master control module; An input end of the analog and working unit is connected with a second output end of the master control module, a first output end of the analog and working unit is connected with an input end of the current sampling unit, a second output end of the analog and working unit is connected with an input end of the voltage sampling unit, an output end of the current sampling unit is connected with a second input end of the master control module, and an output end of the voltage sampling unit is connected with the second input end of the master control module.
7. The mobile power supply control circuit of claim 6, wherein, The analog and working unit comprises a fourth MOS tube, a fifth MOS tube, a first switch, a second capacitor, a load, a ninth resistor, a second capacitor, a tenth resistor, and an eleventh resistor, a D pole of the fourth MOS tube is connected with a D pole of the fifth MOS tube, one end of the first switch, and the mobile power supply, the other end of the first switch is connected with an S pole of the fifth MOS tube, one end of the second capacitor, and one end of the load, the other end of the second capacitor is grounded, the other end of the load is grounded, a G pole of the fifth MOS tube is connected with a second output end of the master control module, a G pole of the fourth MOS tube is connected with the second output end of the master control module, an S pole of the fourth MOS tube is connected with one end of the ninth resistor, the other end of the ninth resistor is connected with one end of the second capacitor and one end of the tenth resistor, the other end of the second capacitor is grounded, the other end of the tenth resistor is connected with one end of the eleventh resistor and an input end of the voltage sampling unit, the tenth resistor is connected with an input end of the current sampling unit, and the other end of the eleventh resistor is grounded.
8. The mobile power supply control circuit of claim 6, wherein, The current sampling unit comprises a twelfth resistor, a thirteenth resistor, a fourteenth resistor, a fifteenth resistor, a third amplifier, a third capacitor, a second voltage stabilizer, one end of the twelfth resistor is connected with the first output end of the analog and working unit, one end of the fourteenth resistor is connected with the first output end of the analog and working unit, the other end of the twelfth resistor is connected with one end of the thirteenth resistor and the non-inverting terminal of the third amplifier, the other end of the thirteenth resistor is grounded, the other end of the fourteenth resistor is connected with one end of the fifteenth resistor and the inverting terminal of the third amplifier, the other end of the fifteenth resistor is connected with the output end of the third amplifier, one end of the third capacitor, the negative electrode of the second voltage stabilizer and the second input end of the main control module, the other end of the third capacitor is grounded, and the positive electrode of the second voltage stabilizer is grounded.
9. The mobile power supply control circuit of claim 6, wherein, The voltage sampling unit comprises a sixteenth resistor, a seventeenth resistor, a fourth capacitor and a third voltage stabilizer, one end of the sixteenth resistor is connected with the second output end of the analog and working unit, the other end of the sixteenth resistor is connected with one end of the seventeenth resistor, one end of the fourth capacitor, the negative electrode of the third voltage stabilizer and the second input end of the main control module, the other end of the seventeenth resistor is grounded, the other end of the fourth capacitor is grounded, and the positive electrode of the third voltage stabilizer is grounded.
10. The mobile power supply control circuit of claim 1, wherein, The mobile power supply control circuit further comprises an abnormality indication module, which is used for emitting light to indicate that the replaced mobile power supply is unqualified if the sixth signal output by the main control module is received. The abnormality indication module comprises an eighteenth resistor, a fifth capacitor and a fourth diode, the fourth diode is a light-emitting diode, one end of the eighteenth resistor is connected with the third output end of the main control module, the other end of the eighteenth resistor is connected with one end of the fifth capacitor and the positive electrode of the fourth diode, the other end of the fifth capacitor is grounded, and the positive electrode of the fourth diode is grounded.