Power supply circuit and charging bin
By introducing a power failure detection circuit and an energy storage circuit into the charging compartment, voltage changes are detected and a low-potential signal is output, ensuring that the MCU saves data when the power supply on the grid side is abnormal. This solves the problem of data loss in the charging compartment and achieves timely data saving and stable power supply.
Patent Information
- Application Number
- CN202422943948.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2034-11-28
AI Technical Summary
When there is a power outage or voltage instability on the grid side, the data in the charging compartment is easily lost, and existing technologies cannot effectively solve this problem.
The system employs a power supply interruption detection circuit and an energy storage circuit. By detecting changes in the output voltage of the energy storage circuit, a low-potential signal is output to the microcontroller unit (MCU) to instruct the MCU to save the operating information. The energy storage circuit also provides power to ensure data preservation.
When the power supply on the grid side is abnormal, the MCU can save the operating data in time, avoid data loss, reduce energy consumption, and stabilize the power supply to the MCU through the circuit converter.
Smart Images

Figure CN223599566U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to integrated circuit technical field especially relates to a power supply circuit and charging bin. BACKGROUND
[0002] With the rapid popularization of smart phones and various electronic products, whether in daily life or work, obtaining and transmitting information has been inseparable from smart electronic devices, and people's demand for power banks and other mobile power sources is also rapidly growing. Currently, shared power banks can be seen everywhere in life.
[0003] Users usually interact with the server of the charging bin by scanning the two-dimensional code and other identifiers in the charging bin to instruct the corresponding charging bin to perform operations such as renting and returning shared power banks. The charging bin uploads the operation data generated when the user completes the rental and return operations to the server, thereby realizing functions such as timing and charging. If power failure, unstable voltage, circuit breakage and other faults occur at this time, it will cause the charging bin to lose data and other problems. UTILITY MODEL CONTENT
[0004] To solve the above problems, the application provides a power supply circuit and a charging bin. The application is beneficial to solve the data loss problem of the charging bin caused by power failure of the power grid side.
[0005] To achieve the above purpose, in a first aspect, the application provides a power supply circuit applied to a charging bin of a shared mobile power source. The charging bin further includes a micro control unit (MCU). The power supply circuit includes an energy storage circuit and a power failure detection circuit. The first port of the energy storage circuit is connected to the power grid side. The second port of the energy storage circuit is connected to the first port of the power failure detection circuit and the first port of the MCU. The second port of the power failure detection circuit is connected to the second port of the MCU. The power failure detection circuit is used to output a low potential signal to the MCU when the voltage of the second port of the energy storage circuit is less than a preset voltage. The low potential signal is used to instruct the MCU to save the running information of the charging bin. The energy storage circuit is used to supply power to the MCU when the MCU saves the running information of the charging bin.
[0006] As can be seen, in the application, the power failure detection circuit outputs a low potential signal to the MCU when the voltage value of the voltage output by the energy storage circuit to the MCU is less than the preset voltage, so that the MCU starts to perform the operation of saving the running information, thereby enabling the MCU to save the running data in time through the power provided by the energy storage circuit when the power supply of the power grid side fails, and avoiding the data loss problem of the charging bin caused by the power failure of the power grid side.
[0007] With reference to the first aspect, in a possible implementation, the power-off detection circuit comprises: a first transistor, a second transistor, a power supply, a first resistor, a second resistor, a third resistor, a light emitter and a light sensor; a first port of the first resistor is connected with the second port of the energy storage circuit, and a second port of the first resistor is connected with a first port of the first transistor; a second port of the first transistor is connected with a first port of the second transistor, a second port of the second resistor and a first port of the third resistor, and a third port of the first transistor is connected with a second port of the third resistor and grounded; a second port of the second transistor is connected with a second port of the light emitter, and a third port of the second transistor is connected with the second port of the third resistor and grounded; a first port of the second resistor is connected with the power supply; a first port of the light emitter is connected with the power supply; a first port of the light sensor is connected with the MCU, and a second port of the light sensor is grounded; when the voltage at the second port of the energy storage circuit is less than the preset voltage, a low potential signal is output to the MCU, comprising: when the voltage at the second port of the energy storage circuit is less than the preset voltage, the second port of the first transistor is disconnected with the third port of the first transistor; the second port of the second transistor is connected with the third port of the second transistor; the power supply supplies power to the light emitter to make the light emitter send a light signal; and the light sensor outputs a low potential signal to the MCU after receiving the light signal sent by the light emitter.
[0008] As can be seen, in the embodiments of the present application, when the voltage output by the energy storage circuit is not less than the preset voltage, the first transistor is in a closed state, so that the second transistor is in an open state, and the power supply does not supply power to the light emitter. Only when the voltage output by the energy storage circuit is less than the preset voltage, the first transistor is in an open state, so that the second transistor is in a closed state, and the power supply supplies power to the light emitter, thereby reducing energy consumption in the case that the voltage output by the energy storage circuit is higher than the preset voltage most of the time.
[0009] With reference to the first aspect, in a possible implementation, the light emitter and the light sensor are configured in the same package.
[0010] With reference to the first aspect, in a possible implementation, the power-off detection circuit further comprises: an overvoltage protection circuit, a fourth resistor and a capacitor; a first port of the overvoltage protection circuit is connected with the second end of the first resistor, and a second port of the overvoltage protection circuit is connected with the first port of the first transistor; the light emitter is connected with the power supply through the fourth resistor, a first port of the fourth resistor is connected with the power supply, and a second port of the fourth resistor is connected with the first port of the light emitter; a first port of the capacitor is connected with the second port of the first transistor, the first port of the second transistor, the second port of the second resistor and the first port of the third resistor, and a second port of the capacitor is grounded.
[0011] As can be seen, in the embodiments of the present application, the overvoltage protection circuit, the fourth resistor and the capacitor configured in the power-off detection circuit improve the operation stability of the power-off detection circuit.
[0012] With reference to the first aspect, in a possible implementation, the power supply circuit further includes: a circuit converter; the energy storage circuit is connected to the MCU through the circuit converter; a first port of the circuit converter is connected to a second port of the energy storage circuit, and a second port of the circuit converter is connected to the second port of the MCU; the circuit converter is configured to adjust a voltage value of the voltage output by the energy storage circuit to the MCU to the target voltage and adjust a frequency of the voltage output by the energy storage circuit to the MCU to the target frequency.
[0013] It can be seen that, in the embodiments of the present application, by configuring a circuit converter between the energy storage circuit and the MCU, the voltage value of the voltage output by the energy storage circuit to the MCU is adjusted to the target voltage, and the frequency of the voltage output by the energy storage circuit to the MCU is adjusted to the target frequency, thereby solving the problem of unstable power supply of the MCU caused by the decrease of the voltage output by the energy storage circuit with the decrease of the residual capacity of the energy storage circuit.
[0014] With reference to the first aspect, in a possible implementation, the circuit converter includes: a high-frequency converter and a transformer; a first port of the high-frequency converter is connected to the second port of the energy storage circuit, and a second port of the high-frequency converter is connected to a first port of the transformer; a second port of the transformer is connected to the MCU; the transformer is configured to adjust the voltage value of the voltage output by the energy storage circuit to the MCU to the target voltage; and the high-frequency converter is configured to adjust the frequency of the voltage output by the energy storage circuit to the MCU to the target frequency.
[0015] With reference to the first aspect, in a possible implementation, the circuit converter further includes: a pulse width modulation (PWM) circuit; a first port of the PWM circuit is connected to a second port of the transformer, and a second port of the PWM circuit is connected to a third port of the high-frequency converter; the PWM circuit is configured to obtain a sampling voltage between the transformer and the MCU; and the PWM circuit is configured to generate a pulse width modulation signal according to the sampling voltage, so that the high-frequency converter adjusts the frequency between the MCU to the target frequency according to the pulse width modulation signal.
[0016] With reference to the first aspect, in a possible implementation, the power supply circuit further includes: a rectification and filtering circuit; the energy storage circuit is connected to the grid side through the rectification and filtering circuit; a first port of the rectification and filtering circuit is connected to the grid side, and a second port of the rectification and filtering circuit is connected to the first port of the energy storage circuit; and the rectification and filtering circuit is configured to filter alternating current input to the energy storage circuit from the grid side and rectify the alternating current input to the energy storage circuit from the grid side to direct current.
[0017] With reference to the first aspect, in a possible implementation, the power-off detection circuit is further configured to stop outputting the low potential signal to the MCU when the voltage at the second port of the energy storage circuit is not less than the preset voltage.
[0018] In a second aspect, the application provides a charging pod, the charging pod comprising any of the possible circuits of the first aspect.
[0019] It can be understood that the beneficial effects of the embodiments of the second aspect can refer to the beneficial effects of the circuits of the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0020] In order to make the technical solutions of the present application or prior art clearer, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings described below are only some of the embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative labor.
[0021] Figure 1 A connection diagram of a power supply circuit provided by the embodiments of the present application;
[0022] Figure 2 Another connection diagram of a power supply circuit provided by the embodiments of the present application;
[0023] Figure 3 A connection diagram of a power-off detection circuit provided by the embodiments of the present application;
[0024] Figure 4 A voltage diagram under a power-off process provided by the embodiments of the present application;
[0025] Figure 5 A connection diagram of an overvoltage protection circuit provided by the embodiments of the present application;
[0026] Figure 6 A connection diagram of a circuit converter provided by the embodiments of the present application;
[0027] Figure 7 A more detailed connection diagram of a circuit converter provided by the embodiments of the present application;
[0028] Figure 8 A structure diagram of a charging pod provided by the embodiments of the present application. DETAILED DESCRIPTION
[0029] In order to make the technical solutions of the present application or prior art clearer, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings described below are only some of the embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative labor.
[0030] The terms "first", "second", and the like in the description and in the claims of the present application and above drawings are used for distinguishing between similar objects, not necessarily described in a particular order. Also, the terms "comprise", "comprising", and the like are to be construed in an open-ended way, meaning that it includes at least the recited steps or elements but not excluding others. For example, a process, method, article, or apparatus that comprises a list of steps or elements is not necessarily limited to the listed steps or elements, but can include further steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
[0031] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase "in an embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily all directed to the same embodiment, or to a common alternative embodiment. It is explicitly contemplated that embodiments described herein can be combined with each other.
[0032] Embodiments of the application will now be described, by way of example only, with reference to the accompanying drawings.
[0033] Reference will now be made to Figure 1 , Figure 1 A connection diagram of a power supply circuit is provided for an embodiment of the application, wherein the power supply circuit 101 is applied to a charging compartment of a shared power bank and supplies power for a microcontroller unit (MCU) 102 of the charging compartment and a shared power bank 103 connected with the charging compartment. The power supply circuit is specifically a power supply board, which includes an energy storage circuit 1011 and a power-off detection circuit 1012.
[0034] A first port of the energy storage circuit 1011 is connected with a power grid side, a second port of the energy storage circuit 1011 is connected with a first port of the power-off detection circuit 1012 and a first port of the MCU 102, and a second port of the power-off detection circuit 1012 is connected with a second port of the MCU 102.
[0035] The energy storage circuit 1011 includes a large electrolytic capacitor. When the power supply on the grid side is normal, the energy storage circuit 1011 stores the power supplied by the grid side through the large electrolytic capacitor, and supplies power to the MCU 102 and the shared power bank 103 connected with the charging bin based on the power supplied by the grid side. When the power supply on the grid side is abnormal, for example, voltage instability, power failure and other abnormal conditions, the energy storage circuit 1011 supplies power to the MCU 102 based on the power stored by the large electrolytic capacitor, so that the MCU 102 can normally operate to realize the operation of saving the running information of the charging bin and the like in the case of abnormal power supply on the grid side. For the convenience of description, only one shared power bank 103 connected with the energy storage circuit 1011 is shown here. In actual application scenarios, there can be more or less shared power banks 103.
[0036] Further, the user rents and returns the charging bin by scanning the two-dimensional code provided by the charging bin. In the process of renting and returning, the charging bin will generate running information such as rental time, rental object, rental location, return time, return location, rental duration, and generated fees. After generating the above running information, the charging bin needs to upload the running information to the server, thereby providing timing and charging services for the user. If power supply anomaly occurs on the grid side in the process from starting to generate the above running information to uploading, it may cause loss of running information, uploading failure and other problems. To solve this problem, the MCU 102 will save the running information of the charging bin after receiving the low potential signal, specifically including:
[0037] If the MCU 102 is in the running information generation phase, it continues to generate running information and saves the generated running information locally, so as to send the locally saved running information to the server after the power failure detection circuit stops outputting the low potential signal;
[0038] If the MCU 102 is in the running information upload phase, it stops uploading running information and saves all or part of the stopped uploading running information locally, so as to send the locally saved running information to the server after the power failure detection circuit stops outputting the low potential signal and the MCU confirms that the power supply is normal.
[0039] The power failure detection circuit 1012 detects the voltage output by the energy storage circuit 1011 to the MCU 102. When the power supply on the grid side is normal, the energy storage circuit 1011 outputs a voltage to the MCU 102 based on a preset fixed voltage value, and the fixed voltage value is higher than the preset voltage value. After the grid side fails, the energy storage circuit 1011 supplies power to the MCU 102 based on the stored electrical energy. In this process, the voltage output by the energy storage circuit 1011 to the MCU 102 decreases with the decrease of the electrical energy stored in the energy storage circuit. Therefore, when the voltage output by the energy storage circuit 1011 is lower than the preset voltage, it means that the electrical energy stored in the energy storage circuit 1011 can supply the MCU 102 to operate for a preset time length. The preset voltage is determined according to the specifications of the elements configured in the power failure detection circuit 1012. By replacing elements of different specifications, the specific value of the preset voltage can be changed, for example, 1v, 2v, 2.2V, etc. The preset time length is determined based on the specifications of the large electrolytic capacitor or other elements in the energy storage circuit, and the specific values are 500ms, 300ms, 200ms, etc.
[0040] When the voltage is lower than the preset voltage, the power failure detection circuit 1012 outputs a low potential signal to the MCU 102, so that the MCU 102 starts to perform operations such as saving the running information of the charging bin.
[0041] Optionally, referring to Figure 2 , Figure 2 Another connection diagram of a power supply circuit provided by the embodiment of the application is shown in the figure. The first port of the energy storage circuit 1011 is connected with the grid side, the second port of the energy storage circuit 1011 is connected with the first port of the MCU 102, and the second port of the energy storage circuit 1011 is connected with the first port of the power failure detection circuit 1012. The second port of the power failure detection circuit 1012 is connected with the second port of the MCU 102.
[0042] In Figure 2 the connection relationship shown in the figure, the energy storage circuit 1011 supplies power to the MCU 102 through the second port and sends a voltage signal to the power failure detection circuit 1012 through the third port, so that the power failure detection circuit 1012 can determine the amount of electrical energy stored in the energy storage circuit according to the voltage value of the voltage signal. When the voltage value of the voltage signal is lower than the preset voltage, the power failure detection circuit 1012 determines that the amount of electrical energy stored in the energy storage circuit is low, and outputs a low potential signal to the MCU 102, so that the MCU 102 can save the running data in time.
[0043] Optionally, the first port of the power failure detection circuit 1012 can also be connected with the first port of the energy storage circuit 1011 and the grid side, so as to obtain the voltage output by the grid side, and send a low potential signal to the MCU when the voltage output by the grid side is lower than the preset voltage.
[0044] It can be seen that in the embodiment of the present application, when the voltage value of the voltage output by the energy storage circuit to the MCU is less than the preset voltage, the power-off detection circuit outputs a low potential signal to the MCU to make the MCU start to perform the operation of saving the running information, so that the MCU can run in time to save the running data by the power provided by the energy storage circuit when the power supply on the grid side is powered off, thereby avoiding the problem of data loss of the charging bin caused by power failure of the power supply on the grid side.
[0045] In a possible embodiment, the power-off detection circuit comprises a first transistor, a second transistor, a first resistor, a second resistor, a third resistor, a light emitter and a light sensor; a first port of the first resistor is connected with the second port of the energy storage circuit, and a second port of the first resistor is connected with a first port of the first transistor; a second port of the first transistor is connected with a first port of the second transistor, a second port of the second resistor and a first port of the third resistor, a third port of the first transistor is connected with a second port of the third resistor and grounded; a second port of the second transistor is connected with a second port of the light emitter, and a third port of the second transistor is connected with the second port of the third resistor and grounded; a first port of the second resistor is connected with a power supply; a first port of the light emitter is connected with the power supply; a first port of the light sensor is connected with the MCU, and a second port of the light sensor is grounded; when the voltage of the second port of the energy storage circuit is less than the preset voltage, a low potential signal is output to the MCU, comprising: when the voltage of the second port of the energy storage circuit is less than the preset voltage, the second port of the first transistor is disconnected with the third port of the first transistor; the second port of the second transistor is closed with the third port of the second transistor; the power supply supplies power to the light emitter to make the light emitter send a light signal; the light sensor outputs a low potential signal to the MCU after receiving the light signal sent by the light emitter.
[0046] Specifically, the specific structure of the power-off detection circuit is described in detail in the embodiment of the present application, which comprises a first transistor, a second transistor, a first resistor, a second resistor, a third resistor, a light emitter and a light sensor, which will be described below in combination with the connection relationship of each element.
[0047] The power supply is specifically an independent power supply existing in the power failure detection circuit or a power supply integrated in the energy storage circuit, which supplies power to the light emitter through the energy storage circuit. The first port of the first resistor is connected with the second port of the energy storage circuit, that is, the first port of the first resistor is the first port of the power failure detection circuit. When the energy storage circuit outputs a voltage to the MCU, the energy storage circuit simultaneously outputs a voltage with the same voltage value to the first resistor, so that the power failure detection circuit can determine whether a power failure or the like occurs based on the voltage value of the voltage output by the energy storage circuit. When the voltage value of the voltage output by the energy storage circuit decreases, the voltage value of the first port of the first transistor also decreases, thereby changing the closed and open states of the second port and the third port of the first transistor, and the power failure detection circuit can determine whether a power failure or the like occurs on the power grid side based on the first transistor. The first transistor and the second transistor are specifically a MOS transistor, a PMOS transistor, a bipolar transistor, an insulated gate bipolar transistor, a junction field effect transistor or the like, which controls the closed and open states of the second port and the third port through the voltage value of the first port.
[0048] The power failure detection circuit in the embodiment of the present application specifically outputs a low potential signal to the MCU when the voltage at the second port of the energy storage circuit is less than a preset voltage through the following process.
[0049] First, the first port of the first transistor obtains the voltage output from the energy storage circuit. When the voltage at the first port of the first transistor is not less than the preset voltage, the second port and the third port of the first transistor are turned on. Since the second port of the first transistor is connected with the second port of the second transistor, the second port of the second transistor and the second port of the third resistor, and the third port of the first transistor is connected with the second port of the third resistor and grounded, at this time, the voltage at the first port of the second transistor is approximately 0, the second port and the third port of the second transistor are disconnected, the light emitter has no power supply, and the light sensor cannot receive the light signal sent by the light emitter and output a low potential signal to the MCU.
[0050] The preset voltage is determined based on the specifications of the first transistor. When the voltage at the first port of the first transistor is less than the preset voltage, the second port and the third port of the first transistor are disconnected, at this time, the voltage at the first port of the second transistor is approximately the voltage at the second port of the first transistor and rises to a high level. The second port and the third port of the second transistor are turned on, the power supply supplies power to the light emitter. The light emitter sends a light signal, and the light sensor outputs a low potential signal after receiving the light signal sent by the light emitter, so that the MCU receives the low potential signal.
[0051] Exemplarily, please refer to Figure 3 , Figure 3A connection diagram of the power-off detection circuit provided in the embodiment of the present application is shown in Figure 3 In the power-off detection circuit shown in the figure, the first transistor and the second transistor are both NMOS transistors. When the voltage output by the energy storage circuit is transmitted to the first transistor (Q1) through the first resistor R1.
[0052] When the voltage output by the energy storage circuit is not less than the preset voltage, the driving voltage of Q1 is also approximately not less than the preset voltage, so the drain and source of Q1 are turned on, and the driving voltage of the second transistor (Q2) is approximately 0. The drain and source of Q2 are turned off, so the power supply (VCC) cannot supply power to the light emitter (U5B), and the light sensor (U5A) cannot be excited.
[0053] When the voltage output by the energy storage circuit is less than the preset voltage, the driving voltage of Q1 is also approximately less than the preset voltage, so the drain and source of Q1 are turned off, the driving voltage of Q2 is approximately the same as the drain voltage of Q1, and becomes high level, the drain and source of Q2 are turned on, and VCC supplies power to U5B through the loop formed by the second resistor R2, the third resistor R3, Q2 and U5B, so that U5B sends a light signal, and U5A receives the light signal sent by U5B and outputs a low potential signal to the MCU.
[0054] Specifically, please refer to Figure 4 , Figure 4 A voltage diagram under the power-off process provided in the embodiment of the present application is shown in the figure, which includes the voltage V_Ecap output by the energy storage circuit to the MCU, the drain voltage Q1_Vds of Q1, the drain voltage Q2_Vds of Q2, and the voltage V_out received by the MCU.
[0055] As shown in the figure, in the time period of 0-t1, the power supply on the grid side is normal, the voltage V_Ecap output by the energy storage circuit to the MCU is a fixed value V1, and the energy storage circuit supplies power to the MCU based on the energy on the grid side and stores the energy provided by the grid side at the same time. The energy provided by the energy storage circuit is converted into a target voltage and a target frequency by the circuit converter and then input into the MCU, so the voltage V_out received by the MCU is also a fixed value V2. For detailed description of the circuit converter, please refer to the subsequent relevant description.
[0056] The driving voltage of Q1 is stable and turned on, so the drain and source of Q1 are closed, and at the same time, since the source of Q1 is grounded, the drain voltage Q1_Vds of Q1 is 0, and the driving voltage of Q2 is approximately 0. Therefore, Q2 is not turned on, the source and drain of Q2 are turned off, and Q2_Vds is approximately the same as the voltage of the power supply, i.e. V4.
[0057] In the time period of t1-t2, the power supply of the grid side is abnormal, the energy storage circuit stops supplying power to the MCU based on the power of the grid side, and starts supplying power to the MCU based on the stored power. Since the stored power of the energy storage circuit continues to decrease, V_Ecap also continues to decrease, from V1 at t1 to V3 at t2. The driving voltage of Q1 also decreases with the decrease of V_Ecap, until Q1 is turned off at t2, the drain and source of Q1 are disconnected, and the driving voltage of Q2 is approximately the same as Q1_Vds. After the driving voltage of Q2 becomes high at t2, Q2 is turned on, the drain and source of Q2 are closed, and Q2_Vds is approximately 0. At this time, U5B in the power-off detection circuit is excited, sending a signal to U5A, and after U5A receives the optical signal sent by U5B, it outputs a low potential signal to the MCU.
[0058] In the time period of t2-t3, the stored power of the circuit continues to decrease, so V_Ecap also continues to decrease. Since there is a power supply, U5B will continue to send signals to U5A, and U5A will also continue to output a low potential signal to the MCU. After receiving the low potential signal, the MCU continues to perform operations such as saving running information, and V_out remains unchanged at V2.
[0059] At t3-t4, V_Ecap also gradually decreases to 0. At t3, although the energy storage circuit still has a small amount of power supply, it cannot maintain the voltage required for normal operation of the energy storage circuit, so the energy storage circuit stops running after t3, and V_out decreases to 0.
[0060] In this example, only the connection of the first transistor and the second transistor as NMOS tubes is shown. When the first transistor or the second transistor is a PMOS tube, a bipolar transistor, an insulated gate bipolar transistor, a junction field effect transistor, or other types of transistors, the power-off detection circuit can also achieve the same effect through different connection methods, which will not be repeated here.
[0061] In addition, the first port of U5B is connected to the MCU to output a low potential signal to the MCU through the first port, and the second port of U5B is connected to the signal ground. The signal ground is used to provide a signal reference potential and a return path to reduce noise interference from the power supply ground and improve the purity and accuracy of the signal.
[0062] If U5B is a photodiode, it directly outputs a low potential signal to the MCU after receiving the optical signal sent by U5B; if U5B is a photosensitive triode, it is turned on after receiving the optical signal sent by U5B, so that one end of the MCU is connected to the signal ground, thereby outputting a low potential signal to the MCU.
[0063] As can be seen, in the embodiment of the present application, when the voltage output by the energy storage circuit is not less than the preset voltage, the first transistor is in a closed state, so that the second transistor is in an open state, and the power supply does not supply power to the light emitter. Only when the voltage output by the energy storage circuit is less than the preset voltage, the first transistor is in an open state, so that the second transistor is in a closed state, and the power supply supplies power to the light emitter, which reduces energy consumption in the case that the voltage output by the energy storage circuit is higher than the preset voltage most of the time.
[0064] In a possible embodiment, the light emitter and the light sensor are configured in the same package.
[0065] In the embodiment of the present application, the light emitter and the light sensor are configured in the same package, and the package is located in the optical coupling, for providing physical protection and optical signal transmission channel for the light emitter and the light sensor, so that the light signal transmitted by the light emitter can only be received by the light sensor, and the light sensor can only receive the light signal transmitted by the light emitter.
[0066] In a possible embodiment, the power-off detection circuit further comprises an overvoltage protection circuit, a fourth resistor and a capacitor; a first port of the overvoltage protection circuit is connected with a second end of the first resistor, and a second port of the overvoltage protection circuit is connected with the first port of the first transistor; the light emitter is connected with the power supply through the fourth resistor, a first port of the fourth resistor is connected with the power supply, and a second port of the fourth resistor is connected with a first port of the light emitter; a first port of the capacitor is connected with the second port of the first transistor, the first port of the second transistor, the second port of the second resistor and the first port of the third resistor, and a second port of the capacitor is grounded.
[0067] Specifically, in the embodiment of the present application, the power-off detection circuit further comprises an overvoltage protection circuit, wherein a first port of the overvoltage protection circuit is connected with a second end of the first resistor, and a second port of the overvoltage protection circuit is connected with the first port of the first transistor, so that the voltage of the first port of the first transistor is not higher than the protection voltage, thereby protecting the first transistor.
[0068] The fourth resistor herein is used to limit the current on the first end of the second transistor, and the capacitor herein is used to filter the high-frequency noise or fluctuation of the power supply, and help stabilize the voltage, avoiding instantaneous voltage drop or fluctuation.
[0069] Exemplarily, please refer to Figure 5 , Figure 5A connection diagram of the overvoltage protection circuit is provided in the embodiment of the present application. In the embodiment, the overvoltage protection circuit comprises a fifth resistor R5 and a voltage stabilizing diode ZD1. The first port of the R5 is connected with the second port of the first resistor and the first port of the first transistor. The second port of the R5 is connected with the second port of the ZD1 and grounded. The first port of the ZD1 is connected with the second port of the first resistor and the first port of the first transistor. The R5 is used for limiting current, and the ZD1 is used for limiting the voltage of the first port of the first transistor below a protection voltage. The protection voltage is determined by the specification of the ZD1, for example, 3.3v, 2.2v, etc.
[0070] As can be seen, in the embodiment of the present application, the overvoltage protection circuit, the fourth resistor and the capacitor configured in the power-off detection circuit improve the operation stability of the power-off detection circuit.
[0071] In a possible embodiment, the power supply circuit further comprises a circuit converter; the energy storage circuit is connected with the MCU through the circuit converter; the first port of the circuit converter is connected with the second port of the energy storage circuit, and the second port of the circuit converter is connected with the second port of the MCU; the circuit converter is used for adjusting the voltage value of the voltage output by the energy storage circuit to the MCU to a target voltage and adjusting the frequency of the voltage output by the energy storage circuit to the MCU to a target frequency.
[0072] Specifically, since the voltage output by the energy storage circuit will decrease as the remaining energy of the energy storage circuit decreases, in order to ensure the normal operation of the MCU, the power supply circuit further comprises a circuit converter between the energy storage circuit and the MCU. The circuit converter is specifically a DC-DC converter, which is used for adjusting the voltage value of the voltage output by the energy storage circuit to the MCU to a target voltage and adjusting the frequency of the voltage output by the energy storage circuit to the MCU to a target frequency, and then inputting the MCU, so that the MCU can operate normally.
[0073] Further, when the power supply circuit further comprises the circuit converter, since the voltage output by the energy storage circuit to the MCU will be converted to a target voltage and a target frequency based on the circuit converter, in the case that the power supply circuit further comprises the circuit converter, the first port of the power-off detection circuit is connected with the second port of the energy storage circuit and the first port of the circuit converter, so that the voltage sent by the energy storage circuit to the power-off detection circuit has the same voltage value as the voltage sent by the energy storage circuit to the circuit converter, avoiding that the voltage value received by the power-off detection circuit is the voltage value after conversion of the circuit converter.
[0074] It can be seen that, in the embodiment of the present application, by configuring the circuit converter between the energy storage circuit and the MCU, the voltage value of the voltage output by the energy storage circuit to the MCU is adjusted to the target voltage, and the frequency of the voltage output by the energy storage circuit to the MCU is adjusted to the target frequency, thereby solving the problem of unstable power supply of the MCU caused by the decrease of the voltage output by the energy storage circuit with the decrease of the residual power of the energy storage circuit.
[0075] In a possible embodiment, the circuit converter comprises: a high-frequency converter, a transformer; the first port of the high-frequency converter is connected with the second port of the energy storage circuit, and the second port of the high-frequency converter is connected with the first port of the transformer; the second port of the transformer is connected with the MCU; the transformer is configured to adjust the voltage value of the voltage output by the energy storage circuit to the MCU to the target voltage; and the high-frequency converter is configured to adjust the frequency of the voltage output by the energy storage circuit to the MCU to the target frequency.
[0076] Specifically, refer to Figure 6 , Figure 6 A connection diagram of a circuit converter provided by the embodiment of the present application is shown in the figure. The circuit converter comprises a high-frequency converter and a transformer. The first port of the high-frequency converter is connected with the second port of the energy storage circuit, and the second port of the high-frequency converter is connected with the first port of the transformer. The second port of the transformer is connected with the MCU. The high-frequency converter and the transformer can also be connected in the reverse order, i.e., the first port of the transformer is connected with the second port of the energy storage circuit, the second port of the transformer is connected with the first port of the high-frequency converter, and the second port of the high-frequency converter is connected with the MCU.
[0077] In a possible embodiment, the circuit converter further comprises: a pulse width modulation (PWM) circuit; the first port of the PWM circuit is connected with the second port of the transformer, and the second port of the PWM circuit is connected with the third port of the high-frequency converter; and the PWM circuit is configured to acquire a sampling voltage between the transformer and the MCU, and generate a pulse width modulation signal according to the sampling voltage, so as to make the high-frequency converter adjust the frequency between the MCU to the target frequency according to the pulse width modulation signal.
[0078] Specifically, refer to Figure 7 , Figure 7 A more detailed connection diagram of a circuit converter provided by the embodiment of the present application is shown in the figure. The circuit converter further comprises a PWM circuit. The first port of the PWM circuit is connected with the second port of the transformer, and the second port of the PWM circuit is connected with the third port of the high-frequency converter. The PWM circuit acquires a sampling voltage between the transformer and the MCU, generates a pulse width modulation signal according to the sampling voltage, and adjusts the width (i.e., the time ratio of high level, usually referred to as duty ratio) of the pulse width modulation signal by the difference between the sampling voltage and a reference voltage, so as to make the high-frequency converter adjust the frequency of the voltage provided by the energy storage circuit to the MCU to the target frequency.
[0079] In a possible implementation, the power supply circuit further includes a rectification filter circuit; the energy storage circuit is connected to the grid side through the rectification filter circuit, a first port of the rectification filter circuit is connected to the grid side, and a second port of the rectification filter circuit is connected to a first port of the energy storage circuit; and the rectification filter circuit is configured to filter alternating current (AC) input to the energy storage circuit from the grid side and rectify the AC input to the energy storage circuit from the grid side into direct current (DC).
[0080] Specifically, in the embodiment of the present application, the energy storage circuit is connected to the grid side through the rectification filter circuit, a first port of the rectification filter circuit is connected to the grid side, and a second port of the rectification filter circuit is connected to a first port of the energy storage circuit. This converts AC into DC and filters fluctuations in the AC signal, making the output DC more stable. This achieves stable DC output.
[0081] In a possible implementation, the power failure detection circuit is further configured to stop outputting the low potential signal to the MCU when the voltage at the second port of the energy storage circuit is not less than the preset voltage.
[0082] Specifically, in the embodiment of the present application, if the power supply at the grid side returns to normal during the process in which the energy storage circuit supplies power to the MCU based on the stored electrical energy, the energy storage circuit will stop supplying power to the MCU based on the stored electrical energy and start supplying power to the MCU based on the electrical energy provided by the grid side. Therefore, the voltage provided by the energy storage circuit to the MCU will return to the fixed voltage value corresponding to the voltage at the grid side. At the same time, the power failure detection circuit also detects that the voltage output by the energy storage circuit to the MCU becomes a fixed voltage value. Therefore, the power failure detection circuit will stop outputting the low potential signal to the MCU, thereby reducing the power consumption of the power failure detection circuit.
[0083] Further, if the power failure detection circuit includes a first transistor, a second transistor, a power supply, a first resistor, a second resistor, a third resistor, a light emitter, and a light sensor, and is connected in the manner described in the foregoing embodiments, for details of the connection relationship, please refer to the related content in the foregoing embodiments, which will not be described here again. Here, the stopping of outputting the low potential signal to the MCU specifically includes that the second port and the third port of the first transistor are turned on, the second port and the third port of the second transistor are disconnected, the power supply stops supplying power to the light emitter, and the light emitter stops sending the light signal to the light sensor, so that the light sensor stops sending the low potential signal to the MCU.
[0084] Through the circuit in the above application examples, the low potential signal is output to the MCU through the power failure detection circuit, so that the MCU can save the running data in time, and the problem of data loss of the charging bin caused by power failure of the power supply side is avoided. The time of outputting the low potential signal to the MCU is controlled by the first transistor and the second transistor, thereby reducing the energy consumption of the power supply circuit during normal operation. The operation stability of the power failure detection circuit is improved by the overvoltage protection circuit, the fourth resistor and the capacitor. The problem of unstable power supply of the MCU caused by the decrease of the voltage output by the energy storage circuit with the decrease of the remaining power of the energy storage circuit is solved by the circuit converter.
[0085] Based on the description of the above examples, the application also provides a charging bin 800, please see Figure 8 , Figure 8 A structural diagram of a charging bin provided by the embodiment of the application, which includes a charging bin body 801, charging bin positions 802 and identification positions 803. The charging bin body 801 is configured with any of the possible power supply circuits described in the above examples, the charging bin positions 802 are used to place the shared mobile power supply, and only 8 charging bin positions 802 are shown here. The charging bin 800 can also include more or fewer charging bin positions 802. The identification positions 803 are used to show the identification of the charging bin 800, so as to perform the operation of renting and returning through the identification shown by the identification positions 803. The identification is specifically presented in the form of a two-dimensional code, a bar code, a digital identification, a text identification, etc.
[0086] The above describes the embodiments of the application in detail, and the specific examples are applied to explain the principles and implementation modes of the application. The above examples are only used to help understand the method and its core idea of the application. Meanwhile, for those skilled in the art, according to the idea of the application, the specific implementation mode and application range can be changed. In summary, the content of the specification should not be understood as a limitation of the application.
Claims
1. A power supply circuit, characterized by comprising: The application is applied to a charging bin of a shared mobile power supply, and the charging bin further comprises a micro control unit (MCU), and the power supply circuit comprises an energy storage circuit and a power-off detection circuit. A first port of the energy storage circuit is connected with a power grid side, a second port of the energy storage circuit is connected with a first port of the power-off detection circuit and a first port of the MCU, and a second port of the power-off detection circuit is connected with a second port of the MCU. The power-off detection circuit is used for outputting a low potential signal to the MCU when a voltage of the second port of the energy storage circuit is less than a preset voltage, and the low potential signal is used for instructing the MCU to save running information of the charging bin. The energy storage circuit is used for supplying power for the MCU when the MCU saves the running information of the charging bin.
2. The circuit of claim 1, wherein, The power-off detection circuit comprises a first transistor, a second transistor, a first resistor, a second resistor, a third resistor, a light emitter and a light sensor. A first port of the first resistor is connected with the second port of the energy storage circuit, a second port of the first resistor is connected with a first port of the first transistor, a second port of the first transistor is connected with a first port of the second transistor, a second port of the second resistor and a first port of the third resistor, a third port of the first transistor is connected with a second port of the third resistor and grounded, a second port of the second transistor is connected with a second port of the light emitter, a third port of the second transistor is connected with the second port of the third resistor and grounded, a first port of the second resistor is connected with a power supply, a first port of the light emitter is connected with the power supply, a first port of the light sensor is connected with the MCU, and a second port of the light sensor is grounded. The power-off detection circuit is used for outputting a low potential signal to the MCU when a voltage of the second port of the energy storage circuit is less than a preset voltage, and the low potential signal is used for instructing the MCU to save running information of the charging bin. When the voltage of the second port of the energy storage circuit is less than the preset voltage, the second port of the first transistor is disconnected with the third port, the second port of the second transistor is connected with the third port, the power supply supplies power for the light emitter to make the light emitter send a light signal, and the light sensor outputs the low potential signal to the MCU after receiving the light signal sent by the light emitter.
3. The circuit of claim 2, wherein, The light emitter and the light sensor are arranged in the same package.
4. The circuit of claim 2 or 3, characterized in that, The power-off detection circuit further comprises an overvoltage protection circuit, a fourth resistor and a capacitor. A first port of the overvoltage protection circuit is connected with the second port of the first resistor, and a second port of the overvoltage protection circuit is connected with the first port of the first transistor. The light emitter is connected with the power supply through the fourth resistor, a first port of the fourth resistor is connected with the power supply, and a second port of the fourth resistor is connected with the first port of the light emitter, a first port of the capacitor is connected with the second port of the first transistor, the first port of the second transistor, the second port of the second resistor and the first port of the third resistor, and a second port of the capacitor is grounded.
5. The circuit according to any one of claims 1-3, characterized in that, The power supply circuit further comprises a circuit converter. The energy storage circuit is connected with the MCU through the circuit converter; a first port of the circuit converter is connected with a second port of the energy storage circuit, and a second port of the circuit converter is connected with a second port of the MCU; The circuit converter is configured to adjust a voltage value of the voltage output by the energy storage circuit to the MCU to a target voltage and adjust a frequency of the voltage output by the energy storage circuit to the MCU to a target frequency.
6. The circuit of claim 5, wherein, The circuit converter comprises a high-frequency converter and a transformer; A first port of the high-frequency converter is connected with a second port of the energy storage circuit, and a second port of the high-frequency converter is connected with a first port of the transformer; a second port of the transformer is connected with the MCU; The transformer is configured to adjust a voltage value of the voltage output by the energy storage circuit to the MCU to a target voltage; The high-frequency converter is configured to adjust a frequency of the voltage output by the energy storage circuit to the MCU to a target frequency.
7. The circuit of claim 6, wherein, The circuit converter further comprises a pulse width modulation (PWM) circuit; A first port of the PWM circuit is connected with a second port of the transformer, and a second port of the PWM circuit is connected with a third port of the high-frequency converter; The PWM circuit is configured to acquire a sampling voltage between the transformer and the MCU; According to the sampling voltage, a pulse width modulation signal is generated to enable the high-frequency converter to adjust a frequency between the MCU to a target frequency according to the pulse width modulation signal.
8. The circuit of any one of claims 1-3, wherein, The power supply circuit further comprises a rectification and filtering circuit; The energy storage circuit is connected with the grid side through the rectification and filtering circuit; a first port of the rectification and filtering circuit is connected with the grid side, and a second port of the rectification and filtering circuit is connected with a first port of the energy storage circuit; The rectification and filtering circuit is configured to filter alternating current input by the grid side to the energy storage circuit and rectify the alternating current input by the grid side to the energy storage circuit to direct current.
9. The circuit of any one of claims 1-3, wherein, The power-off detection circuit is further configured to stop outputting the low potential signal to the MCU when a voltage of the second port of the energy storage circuit is not less than a preset voltage.
10. A charging pod characterized by, The charging bin comprises the circuit according to any one of claims 1-9.