Hardware reset circuit and mobile power supply
By designing a hardware reset circuit, the field effect transistor and pull-up resistor are used to change the voltage across the capacitor, and the hardware reset of the mobile power supply is realized, which solves the reset failure caused by internal program in the mobile power supply or poor communication contact, and reduces operation and maintenance costs.
Patent Information
- Application Number
- CN202323526763.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2033-12-22
AI Technical Summary
In the prior art, when the internal program of the mobile power supply is performed in a mess or the mobile power supply has poor communication contact with the device, hardware reset cannot be performed, resulting in the communication abnormality problem that cannot be solved.
Design a hardware reset circuit, including a field effect tube, a capacitor and a pull-up resistor, change the voltage across the capacitor through the field effect tube and pull-up resistor, and use the voltage changes of the capacitor charging and discharging voltage to realize the hardware reset of the mobile power supply.
It effectively solves the reset failure problem caused by communication abnormalities between mobile power supply and equipment, and reduces the operation and maintenance costs of mobile power supply and equipment.
Smart Images

Figure CN222509282U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of shared mobile power supplies, in particular to a hardware reset circuit and a mobile power supply. Background Art
[0002] With the development of shared mobile power rental equipment, shared mobile power has a very large market share. The mobile power and the equipment basically communicate through serial port and IIC. When the mobile power access device has communication abnormalities, the device can only send instructions to reset and restart the mobile power through software control to restore normal communication.
[0003] The method of controlling the resetting of the mobile power supply by software can solve most of the abnormal communication problems. However, when the internal program of the mobile power supply is executed disorderly or the direct communication contact between the mobile power supply and the device is poor, the mobile power supply cannot be reset by this method, and abnormal communication problems will always occur.
[0004] Therefore, designing a safe and reliable hardware reset circuit and mobile power supply is very important to those skilled in the art. Utility Model Content
[0005] The technical problem to be solved by the embodiments of the utility model is to provide a safe and reliable hardware reset circuit and a mobile power supply, so as to solve the problem in the prior art that the mobile power supply cannot be reset when the internal program of the mobile power supply is executed disorderly or the direct communication contact between the mobile power supply and the device is poor.
[0006] A hardware reset circuit is used for a mobile power supply, and its scheme is that it includes: a field effect tube, a capacitor and a pull-up resistor, wherein a first connection point is arranged on the gate of the field effect tube for connecting to the interface of the mobile power supply, the source of the field effect tube is grounded, the drain of the field effect tube is connected to one end of the capacitor, the other end of the capacitor is connected to one end of the pull-up resistor, the other end of the pull-up resistor is arranged with a second connection point for connecting to the power supply end of the mobile power supply, and a third connection point is also arranged between the pull-up resistor and the capacitor for connecting to a main control module of the mobile power supply.
[0007] Optionally, the hardware reset circuit also includes a first voltage-dividing resistor and a second voltage-dividing resistor, one end of the first voltage-dividing resistor is connected to the first connection point, the other end of the first voltage-dividing resistor is connected to the gate of the field effect transistor, one end of the second voltage-dividing resistor is connected to the gate of the field effect transistor, and the other end of the second voltage-dividing resistor is grounded.
[0008] Optionally, a discharge resistor is connected in parallel to the capacitor.
[0009] The utility model also provides a mobile power supply, which includes the hardware reset circuit as described above, and also includes a main control circuit, a power supply circuit and an interface input circuit, the main control circuit and the interface input circuit are both connected to the power supply circuit, the first connection point of the hardware reset circuit is connected to the interface input circuit, the second connection point of the hardware reset circuit is connected to the power supply circuit, and the third connection point of the hardware reset circuit is connected to the main control circuit.
[0010] Optionally, the main control circuit includes a main control chip, the main control chip includes a reset pin, and the reset pin of the main control chip is connected to the third connection point.
[0011] Optionally, the interface input circuit includes a first PIN pin and a second PIN pin, the first connection point is arranged between the first PIN pin and the second PIN pin, and transient voltage suppression diodes are arranged on the first PIN pin and the second PIN pin.
[0012] Optionally, the interface input circuit further includes a data transmission module, and the data transmission module is connected to the main control chip.
[0013] Optionally, the power supply circuit includes a voltage stabilizing chip, an interface input terminal, a battery voltage input terminal, a power supply voltage input terminal and a system voltage output terminal, the input pins of the voltage stabilizing chip are respectively connected to the interface input terminal, the battery voltage input terminal and the power supply voltage input terminal, and the output pins of the voltage stabilizing chip are connected to the system voltage output terminal.
[0014] Optionally, protection diodes are provided between the input pin of the voltage stabilizing chip and the interface input terminal, the battery voltage input terminal and the power supply voltage input terminal.
[0015] Optionally, an indicator light control circuit is also included, and the indicator light control circuit is connected to the main control circuit.
[0016] Compared with the prior art, the beneficial effect of the hardware reset circuit provided by the embodiment of the utility model is that: by designing a hardware reset circuit with a field effect transistor, a capacitor and a pull-up resistor, when the mobile power supply is connected to the device, the first connection point is pulled up by the device, and the field effect transistor is turned on, so that the voltage across the capacitor is instantly pulled down, thereby pulling down the voltage of the third connection point, and the capacitor begins to charge. As the voltage across the capacitor rises, the third connection point is pulled up, and the reset signal changes from a high level to a low level to a high level, thereby realizing a reset action, effectively solving the problem of reset failure caused by communication abnormalities between the mobile power supply and the device, and greatly reducing the operation and maintenance costs of the mobile power supply and the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The technical solution of the utility model will be further described in detail below with reference to the accompanying drawings and embodiments, in which:
[0018] Figure 1 is a circuit diagram of a hardware reset circuit provided by an embodiment of the utility model;
[0019] Figure 2 It is a schematic diagram of a circuit module of a mobile power supply provided by an embodiment of the utility model;
[0020] Figure 3 It is a circuit diagram of the main control circuit provided by the embodiment of the utility model;
[0021] Figure 4 is a circuit diagram of an interface input circuit provided by an embodiment of the utility model;
[0022] Figure 5 is a circuit diagram of a power supply circuit provided by an embodiment of the utility model;
[0023] Figure 6 It is a circuit diagram of an indicator light control circuit provided by an embodiment of the utility model. DETAILED DESCRIPTION
[0024] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. Now, in conjunction with the accompanying drawings, a preferred embodiment of the present utility model is described in detail.
[0025] like Figure 1 As shown, the utility model provides a specific embodiment of a hardware reset circuit.
[0026] A hardware reset circuit for mobile power supply, reference Figure 1 The hardware reset circuit includes: a field effect transistor Q1, a capacitor C1 and a pull-up resistor R1. A first connection point 1 is provided on the gate G of the field effect transistor Q1 for connecting to the interface POGO 5V of the mobile power supply. The source S of the field effect transistor Q1 is grounded. The drain D of the field effect transistor Q1 is connected to one end of the capacitor C1. The other end of the capacitor C1 is connected to one end of the pull-up resistor R1. A second connection point 2 is provided at the other end of the pull-up resistor R1 for connecting to the power supply end of the mobile power supply. A third connection point 3 is also provided between the pull-up resistor R1 and the capacitor C1 for connecting to the main control module of the mobile power supply.
[0027] Specifically, refer to Figure 1A first connection point 1 for connecting to a mobile power interface is provided on the field effect tube Q1, and a gate G of the field effect tube Q1 is connected to the first connection point 1. When the mobile power is not connected to a device for charging, the first connection point 1 is in a suspended state, and the gate G of the field effect tube Q1 is at a low level, and the voltage difference between the gate G and the drain D of the field effect tube Q1 is 0, the field effect tube Q1 is in an off state, and the voltage at the third connection point 3 is continuously pulled up by the pull-up resistor R1, so that the mobile power main control chip U2 is in a normal working state; when the mobile power is connected to the device for charging, the device provides a 5V power supply. At this time, the voltage of the first connection point 1 is pulled up to 5V by the device, so that there is a voltage difference between the gate G and the drain D of the field effect tube Q1, and the field effect tube Q1 is instantly turned on.
[0028] Further, refer to Figure 1 , one end of the capacitor C1 is connected to the source S of the field effect transistor Q1, and the other end of the capacitor C1 is connected to the power supply end of the mobile power supply through the pull-up resistor R1. When the mobile power supply is connected to the device for charging, the device provides a 5V power supply, and the voltage of the first connection point 1 is pulled up to 5V by the device, so that there is a voltage difference between the gate G and the drain D of the field effect transistor Q1, and the field effect transistor Q1 is instantly turned on. At the moment when the field effect transistor Q1 is turned on, the voltage across the capacitor C1 is instantly pulled down to 0V, so that the third connection point 3 is pulled down to 0V; the power supply end of the mobile power supply will charge the capacitor C1 through the pull-up resistor R1. As the voltage across the capacitor C1 increases, the voltage of the third connection point 3 also increases, so that the third connection point 3 completes the change from high level to low level to high level. Since the third connection point 3 is directly connected to the mobile power main control module, as the third connection point 3 changes from high level to low level and then to high level, the corresponding connection pin of the main control module will also complete the change from high level to low level and then to high level, thereby realizing the reset action of the main control chip U2.
[0029] At present, when a communication anomaly occurs when a mobile power bank is connected to a device, the device can only issue instructions to reset and restart the mobile power bank through software control to restore normal communication. Although this method can solve most communication anomaly problems, when the internal program execution of the mobile power bank is disordered or the direct communication contact between the mobile power bank and the device is poor, this method cannot reset the mobile power bank and communication anomalies will continue to occur.
[0030] In this embodiment, by designing a hardware reset circuit, using field effect transistors and pull-up resistors to change the voltage across the capacitor, and using the voltage change of the capacitor charging and discharging, the function of hardware resetting the mobile power supply when the mobile power supply is connected to the device is realized, which effectively solves the problem of software being unable to reset due to abnormal communication between the mobile power supply and the device, and greatly reduces the operation and maintenance costs of the mobile power supply and the equipment.
[0031] In one embodiment, reference Figure 1 The hardware reset circuit also includes a first voltage-dividing resistor R3 and a second voltage-dividing resistor R4, one end of the first voltage-dividing resistor R3 is connected to the first connection point 1, the other end of the first voltage-dividing resistor R3 is connected to the gate G of the field effect transistor Q1, one end of the second voltage-dividing resistor R4 is connected to the gate G of the field effect transistor Q1, and the other end of the second voltage-dividing resistor R4 is grounded.
[0032] Specifically, refer to Figure 1 The first voltage-dividing resistor R3 and the second voltage-dividing resistor R4 are both used for voltage division. When the mobile power supply is connected to the device for charging, the device provides a 5V power supply. At this time, the voltage of the first connection point 1 is pulled up to 5V by the device. The 5V voltage will be divided by the first voltage-dividing resistor R3 and the second voltage-dividing resistor R4. A part of it is input to the ground line of the second voltage-dividing resistor R4, and a part of it is input to the gate G of the field effect transistor Q1 through the first voltage-dividing resistor R3, so that there is a voltage difference between the gate G of the field effect transistor Q1 and the drain D of the field effect transistor Q1. The specific voltage difference between the gate G of the field effect transistor Q1 and the drain D of the field effect transistor Q1 can be determined by the resistance values of the first voltage-dividing resistor R3 and the second voltage-dividing resistor R4.
[0033] In one embodiment, reference Figure 1 , a discharge resistor R2 is connected in parallel to the capacitor C1.
[0034] Specifically, refer to Figure 1 During the charging and discharging process of capacitor C1, the current easily returns from one end of capacitor C1 through the working loop to the other end of capacitor C1, which will seriously interfere with the stable operation of the circuit. In this embodiment, by connecting the discharge resistor R2 in parallel to capacitor C1, the circuit working stability is effectively improved.
[0035] like Figures 2 to 6 As shown, the utility model also provides a specific embodiment of a mobile power supply.
[0036] A mobile power source, reference Figure 2 The mobile power supply includes the hardware reset circuit 10 as described above, and also includes a main control circuit 20, a power supply circuit 30 and an interface input circuit 40. The main control circuit 20 and the interface input circuit 40 are both connected to the power supply circuit 30. The first connection point 1 of the hardware reset circuit 10 is connected to the interface input circuit 40, the second connection point 2 of the hardware reset circuit 10 is connected to the power supply circuit 30, and the third connection point 3 of the hardware reset circuit 10 is connected to the main control circuit 20.
[0037] Specifically, refer to Figure 2The interface input circuit 40 is mainly used to connect with an external device to realize communication between the mobile power supply and the external device. The power supply circuit 30 is mainly used to provide working voltage to the main control circuit 20 and the hardware reset circuit 10. The main control circuit 20 is mainly used to control each module in the mobile power supply system; the second connection point 2 of the hardware reset circuit 10 is connected to the power supply circuit 30 to obtain a 3.3V working voltage; the first connection point 1 of the hardware reset circuit 10 is connected to the interface input circuit 40 to generate a corresponding reset signal according to the state of the interface input circuit 40; the third connection point 3 of the hardware reset circuit 10 is connected to the main control circuit 20 to send the generated reset signal to the main control circuit 20.
[0038] When the mobile power supply is not connected to a device for charging, the interface input circuit 40 has no external connection, the first connection point 1 of the hardware reset circuit 10 is in a suspended state, and the voltage of the third connection point 3 of the hardware reset circuit 10 is continuously pulled up by the pull-up resistor R1 of the hardware reset circuit 10. At this time, the reset signal is continuously at a high level, and the mobile power supply is in a normal working state.
[0039] When the mobile power supply is connected to the device for charging, the device provides a 5V power supply to the interface input circuit 40. At this time, the voltage of the first connection point 1 in the hardware reset circuit 10 is pulled up to 5V by the device, so that there is a voltage difference between the gate G and the drain D of the field effect transistor Q1 in the hardware reset circuit 10, and the field effect transistor Q1 is turned on instantly. At the moment when the field effect transistor Q1 is turned on, the voltage across the capacitor C1 in the hardware reset circuit 10 is instantly pulled down to 0V, so that the third connection point 3 is pulled down to 0V; the power supply end of the mobile power supply will charge the capacitor C1 through the pull-up resistor R1.
[0040] As the voltage across the capacitor C1 in the hardware reset circuit 10 rises, the voltage at the third connection point 3 also rises, so that the third connection point 3 completes the change from high level to low level to high level. Since the third connection point 3 is directly connected to the main control circuit 20 and sends a reset signal, as the third connection point 3 changes from high level to low level and then to high level, the reset signal in the main control circuit 20 will also complete the change from high level to low level and then to high level, thereby realizing the reset action.
[0041] In one embodiment, reference Figure 3 The main control circuit 20 includes a main control chip U2 . The main control chip U2 includes a reset pin NRST. The reset pin NRST of the main control chip U2 is connected to the third connection point 3 .
[0042] In one embodiment, reference Figure 4The interface input circuit 40 includes a first PIN pin P6 and a second PIN pin P7, the first connection point 1 is set between the first PIN pin P6 and the second PIN pin P7, and a transient voltage suppression diode D5 is set on the first PIN pin P6 and the second PIN pin P7.
[0043] Specifically, refer to Figure 4 The interface input circuit 40 includes a first PIN pin P6 and a second PIN pin P7, a first connection point 1 is provided between the first PIN pin P6 and the second PIN pin P7, and a transient voltage suppression diode D5 is also provided between the first PIN pin P6 and the second PIN pin P7.
[0044] Further, refer to Figure 4 The interface input circuit 40 also includes a PIN pin P1, a PIN pin P2, a PIN pin P3 and a PIN pin P4, wherein the PIN pin P1 is connected to the PIN pin P2, and a plurality of electrostatic protection elements are arranged between the PIN pin P1 and the PIN pin P2, and the PIN pin P3 is connected to the PIN pin P4.
[0045] In one embodiment, reference Figure 4 The interface input circuit 40 also includes a data transmission module 41, and the data transmission module 41 is connected to the main control chip U2.
[0046] Specifically, refer to Figure 4 The data transmission module 41 includes a data transmitting end USART0 TX, a data receiving end USART0 RX, a resistor R8, a resistor R9 and a resistor R10. The data transmitting end USART0 TX and the data receiving end USART0 RX are respectively connected to the data input and output pins on the main control chip U2. One end of the resistor R8 is connected to the data transmitting end USART0 TX, the other end of the resistor R8 is connected to one end of the resistor R9, the other end of the resistor R9 is connected to the data receiving end USART0 RX, one end of the resistor R10 is connected to the power supply circuit 30, and the other end of the resistor R10 is connected between the resistor R8 and the resistor R9.
[0047] In one embodiment, reference Figure 5 The power supply circuit 30 includes a voltage regulator chip U1, an interface input terminal POGO5V, a battery voltage input terminal BAT+, a power supply voltage input terminal VBUSA and a system voltage output terminal 3.3V. The input pins of the voltage regulator chip U1 are respectively connected to the interface input terminal POGO 5V, the battery voltage input terminal BAT+ and the power supply voltage input terminal VBUSA, and the output pins of the voltage regulator chip U1 are connected to the system voltage output terminal 3.3V.
[0048] Specifically, refer to Figure 5The voltage regulator chip U1 includes an input pin (IN pin) and an output pin (OUT pin). The interface input terminal POGO 5V is connected to the input pin (IN pin) of the voltage regulator chip U1 to input the 5V voltage provided by the input device to the voltage regulator chip U1. The battery voltage input terminal BAT+ is connected to the input pin (IN pin) of the voltage regulator chip U1 to input the battery voltage to the voltage regulator chip U1. The power supply voltage input terminal VBUSA is connected to the input pin (IN pin) of the voltage regulator chip U1 to input the power supply voltage to the voltage regulator chip U1.
[0049] Further, refer to Figure 5 The output pin (OUT pin) of the voltage regulator chip U1 is connected to the system voltage output terminal 3.3V to provide a 3.3V operating voltage to the main control circuit 20, the hardware reset circuit and the interface input circuit 40.
[0050] In one embodiment, reference Figure 5 Protection diodes are provided between the input pin of the voltage regulator chip U1 and the interface input terminal, the battery voltage input terminal BAT+, and the power supply voltage input terminal VBUSA.
[0051] Specifically, refer to Figure 5 A protection diode D1 is arranged between the input pin (IN pin) of the voltage regulator chip U1 and the interface input terminal POGO 5V, a protection diode D2 is arranged between the input pin (IN pin) of the voltage regulator chip U1 and the battery voltage input terminal BAT+, and a protection diode D3 is arranged between the input pin (IN pin) of the voltage regulator chip U1 and the power supply voltage input terminal VBUSA.
[0052] In one embodiment, reference Figure 6 The mobile power supply also includes an indicator light control circuit 50 , and the indicator light control circuit 50 is connected to the main control circuit 20 .
[0053] Specifically, refer to Figure 6 The indicator light control circuit 50 is mainly used for displaying and controlling the charging status and power level of the mobile power supply.
[0054] It should be understood that the above embodiments are only used to illustrate the technical solutions of the present utility model rather than to limit it. For those skilled in the art, the technical solutions described in the above embodiments can be modified, or some of the technical features therein can be replaced by equivalents; and all these modifications and replacements should fall within the scope of protection of the claims attached to the present utility model.
Claims
1. A hardware reset circuit for a mobile power supply, characterized in that: include: A field effect tube, a capacitor and a pull-up resistor, wherein a first connection point is arranged on the gate of the field effect tube for connecting to the interface of a mobile power source, the source of the field effect tube is grounded, the drain of the field effect tube is connected to one end of the capacitor, the other end of the capacitor is connected to one end of the pull-up resistor, a second connection point is arranged on the other end of the pull-up resistor for connecting to the power supply end of the mobile power source, and a third connection point is also arranged between the pull-up resistor and the capacitor for connecting to a main control module of the mobile power source.
2. The hardware reset circuit according to claim 1, characterized in that: The hardware reset circuit also includes a first voltage-dividing resistor and a second voltage-dividing resistor, one end of the first voltage-dividing resistor is connected to the first connection point, the other end of the first voltage-dividing resistor is connected to the gate of the field effect transistor, one end of the second voltage-dividing resistor is connected to the gate of the field effect transistor, and the other end of the second voltage-dividing resistor is grounded.
3. The hardware reset circuit according to claim 1, characterized in that: A discharge resistor is connected in parallel to the capacitor.
4. A mobile power source, characterized in that: It includes a hardware reset circuit as described in any one of claims 1 to 3, and also includes a main control circuit, a power supply circuit and an interface input circuit, the main control circuit and the interface input circuit are both connected to the power supply circuit, a first connection point of the hardware reset circuit is connected to the interface input circuit, a second connection point of the hardware reset circuit is connected to the power supply circuit, and a third connection point of the hardware reset circuit is connected to the main control circuit.
5. The mobile power source according to claim 4, characterized in that: The main control circuit includes a main control chip, the main control chip includes a reset pin, and the reset pin of the main control chip is connected to the third connection point.
6. The mobile power source according to claim 4, characterized in that: The interface input circuit includes a first PIN pin and a second PIN pin, the first connection point is arranged between the first PIN pin and the second PIN pin, and transient voltage suppression diodes are arranged on the first PIN pin and the second PIN pin.
7. The mobile power source according to claim 5, characterized in that: The interface input circuit also includes a data transmission module, and the data transmission module is connected to the main control chip.
8. The mobile power source according to claim 4, characterized in that: The power supply circuit includes a voltage stabilizing chip, an interface input terminal, a battery voltage input terminal, a power supply voltage input terminal and a system voltage output terminal. The input pins of the voltage stabilizing chip are respectively connected to the interface input terminal, the battery voltage input terminal and the power supply voltage input terminal, and the output pins of the voltage stabilizing chip are connected to the system voltage output terminal.
9. The mobile power source according to claim 8, characterized in that: Protection diodes are arranged between the input pin of the voltage stabilizing chip and the interface input terminal, the battery voltage input terminal and the power supply voltage input terminal.
10. The mobile power source according to claim 4, characterized in that: It also includes an indicator light control circuit, which is connected to the main control circuit.