Battery charging circuit, control method and device thereof, and unmanned aerial vehicle
By designing a control strategy for the battery charging circuit, the electronic device can be charged and discharged simultaneously, solving the problem that charging ports cannot charge and discharge at the same time in existing technologies, and improving the practicality of application scenarios.
Patent Information
- Application Number
- CN202210288998.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2026-11-06
- Estimated Expiration
- 2042-03-22
AI Technical Summary
In existing electronic devices, the battery charging port also serves as the power supply port for the device, which means that charging cannot be done simultaneously with discharging, thus limiting the practicality of the application scenarios.
A battery charging circuit is designed, which includes first and second ports, first and second switch branches, and a control branch. The connection between the two ports and the battery is controlled by control signals, so that the charging and discharging of the battery can be carried out simultaneously.
This expands the application scenarios where electronic devices can charge and discharge simultaneously, improving practicality and making it suitable for scenarios requiring simultaneous charging and discharging, such as automatic charging and normal operation of drones when their battery is low.
Smart Images

Figure CN114498860B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging technology, and in particular to a battery charging circuit and its control method and device, and an unmanned aerial vehicle (UAV). Background Technology
[0002] Considering the portability and flexibility of electronic devices, most electronic devices, such as drones, toy airplanes, and toy electric cars, can be powered by batteries. Therefore, such electronic devices generally have a battery charging port for connecting to a charger to charge the battery. However, in current electronic devices, the port for charging the battery is also the port for supplying power to the device. Therefore, to charge the battery, the power supply from the battery to the device must be disconnected, which reduces the applicable application scenarios and makes it less practical. Summary of the Invention
[0003] This application aims to provide a battery charging circuit and its control method and device, as well as a drone, which can simultaneously realize the charging and discharging process of the battery, and has strong practicality.
[0004] To achieve the above objectives, in a first aspect, this application provides a battery charging circuit, comprising: First port, second port, first switch branch, second switch branch and control branch; The control branch is connected to the first switch branch and the second switch branch respectively. The control branch is used to output a first control signal to the first switch branch when the first port is connected to the charging device. The control branch is also used to output a second control signal to the second switch branch when the second port is connected to the charging device. The first switch branch is connected between the first port and the battery. The first switch branch is turned on in response to the first control signal to establish a connection between the first port and the battery. The second switch branch is connected between the second port and the battery. The second switch branch is turned on in response to the second control signal to establish a connection between the second port and the battery.
[0005] In one alternative embodiment, the control branch includes a power supply unit, a battery management unit, and a control processing unit; The battery management unit is connected to the first port, the second port, the first switch branch, the power supply unit, and the control processing unit, respectively. The power supply unit is connected to the control processing unit and the battery, respectively. The control processing unit is connected to the first port, the second port, and the second switch branch, respectively. The control processing unit is configured to output a first indication signal to the battery management unit when the first port is connected to the charging device, and the control processing unit is also configured to output a second control signal to the second switch branch when the second port is connected to the charging device; The battery management unit is used to output the first control signal in response to the first indication signal; The battery management unit is also configured to output a first enable signal to the power supply unit when the first port is connected to the charging device or the second port is connected to the charging device; The power supply unit is used to output a voltage to power the control processing unit according to the voltage of the battery in response to the first enable signal.
[0006] In an alternative embodiment, the control processing unit is further configured to output a third control signal to the second switch branch when the first port is connected to the charging device, so as to disconnect the second switch branch; The control processing unit is also configured to output a second indication signal to the battery management unit when the second port is connected to the charging device; The battery management unit is also configured to output a fourth control signal to the first switch branch in response to the second indication signal, so as to disconnect the first switch branch.
[0007] In one alternative embodiment, the control branch further includes a first detection unit, a second detection unit, and a wake-up unit; The first detection unit is connected between the first port and the control processing unit. The first detection unit is used to output a first detection signal to the control processing unit when the first port is connected to the charging device, so that the control processing unit outputs the first indication signal and the third control signal. The second detection unit is connected between the second port and the control processing unit. The second detection unit is used to output a second detection signal to the control processing unit when the second port is connected to the charging device, so that the control processing unit outputs the second indication signal and the second control signal. The wake-up unit is connected between the second port and the battery management unit. The wake-up unit is used to output a first wake-up signal to the battery management unit when the second port is connected to the charging device, so that the battery management unit outputs the first enable signal.
[0008] In one alternative embodiment, the first switching branch includes a first resistor, a second resistor, a first switching transistor, and a second switching transistor. The first end of the first resistor is connected to the first end of the first switching transistor, the second end of the first resistor is connected to the first end of the battery management unit, the second end of the first switching transistor is connected to the first end of the battery, the third end of the first switching transistor is connected to the first end of the second switching transistor, the second end of the second switching transistor is connected to the first end of the second resistor and the first port respectively, and the third end of the second switching transistor is connected to the second end of the second resistor and the second end of the battery management unit respectively.
[0009] In one alternative embodiment, the second switching branch includes a third resistor, a fourth resistor, a third switching transistor, a fourth switching transistor, and a fifth switching transistor. The third terminal of the third switch is connected to the first terminal of the battery. The second terminal of the third switch is connected to the second terminal of the fourth switch and the first terminal of the third resistor. The first terminal of the third switch is connected to the second terminal of the third resistor, the first terminal of the fourth switch, and the third terminal of the fifth switch. The third terminal of the fourth switch is connected to the second port. The first terminal of the fifth switch is connected to the first terminal of the fourth resistor and the third terminal of the control processing unit. The second terminal of the fifth switch and the second terminal of the fourth resistor are both grounded.
[0010] In one alternative embodiment, the power supply unit includes a voltage regulator chip, a fifth resistor, a sixth resistor, a first capacitor, and a second capacitor. The first terminal of the voltage regulator chip is connected to the first terminal of the first capacitor, the third terminal of the voltage regulator chip is connected to the first terminal of the fifth resistor and the first terminal of the sixth resistor, the fourth terminal of the voltage regulator chip is connected to the first terminal of the second capacitor, the second terminal of the fifth resistor is connected to the fourth terminal of the battery management unit, and the second terminal of the voltage regulator chip, the second terminal of the first capacitor, the second terminal of the second capacitor, and the second terminal of the sixth resistor are all grounded. The first terminal of the voltage regulator chip is used to input the battery voltage, and the fourth terminal of the voltage regulator chip is used to output the first voltage.
[0011] In one alternative embodiment, the first detection unit includes a seventh resistor, an eighth resistor, a ninth resistor, and a sixth switch. The first end of the seventh resistor is connected to the first port, the second end of the seventh resistor is connected to the first end of the eighth resistor and the first end of the sixth switch, the second end of the eighth resistor and the second end of the sixth switch are both grounded, the third end of the sixth switch is connected to the first end of the ninth resistor and the second end of the control processing unit, and the second end of the ninth resistor is used to input the first voltage.
[0012] In one alternative embodiment, the second detection unit includes a tenth resistor, an eleventh resistor, a twelfth resistor, and a seventh switch. The first end of the tenth resistor is connected to the second port, the second end of the tenth resistor is connected to the first end of the eleventh resistor and the first end of the seventh switch, the second end of the eleventh resistor and the second end of the seventh switch are both grounded, the third end of the seventh switch is connected to the first end of the twelfth resistor and the first end of the control processing unit, and the second end of the twelfth resistor is used to input the first voltage.
[0013] In one alternative embodiment, the wake-up unit includes a third capacitor; The first end of the third capacitor is connected to the first port, and the second end of the third capacitor is connected to the third end of the battery management unit.
[0014] Secondly, this application provides a control method for a battery charging circuit, the battery charging circuit including a first port, a second port, a first switch branch, and a second switch branch, wherein both the first port and the second port are used to connect to a charging device, and the method includes: If the first port is connected to a charging device, the first switch branch is controlled to be turned on to establish a connection between the battery and the first port, and the second switch branch is controlled to be turned off to disconnect the connection between the battery and the second port. If the second port is connected to the charging device, the second switch branch is controlled to be turned on to establish a connection between the battery and the second port, and the first switch branch is controlled to be turned off to disconnect the connection between the battery and the first port.
[0015] In an alternative embodiment, either the first port or the second port is further used for connection to electrical equipment, and the method further includes: When the first port is also used to connect to the electrical equipment, if both the first port and the second port are connected to the charging equipment, the second switch branch is controlled to be turned on to establish a connection between the battery and the second port, and the first switch branch is controlled to be turned off to disconnect the connection between the battery and the first port. When the second port is also used to connect to the electrical equipment, if both the first port and the second port are connected to the charging equipment, the first switch branch is controlled to be turned on to establish a connection between the battery and the first port, and the second switch branch is controlled to be turned off to disconnect the connection between the battery and the second port.
[0016] Thirdly, this application provides a control device for a battery charging circuit, the battery charging circuit including a first port, a second port, a first switch branch, and a second switch branch, wherein both the first port and the second port are used to connect to a charging device, and the device includes: The first control module is configured to, if the first port is connected to a charging device, control the first switch branch to be turned on to establish a connection between the battery and the first port, and control the second switch branch to be turned off to disconnect the connection between the battery and the second port. The second control module is configured to, if the second port is connected to a charging device, control the second switch branch to be turned on to establish a connection between the battery and the second port, and control the first switch branch to be turned off to disconnect the connection between the battery and the first port.
[0017] In an alternative embodiment, either the first port or the second port is also used to connect to electrical equipment. The first control module is further configured to: when the first port is also used to connect to the electrical equipment, if both the first port and the second port are connected to the charging equipment, control the second switch branch to turn on to establish a connection between the battery and the second port, and control the first switch branch to turn off to disconnect the connection between the battery and the first port; The second control module is further configured to: when the first port is also used to connect to the electrical equipment, if both the first port and the second port are connected to the charging equipment, control the second switch branch to turn on to establish a connection between the battery and the second port, and control the first switch branch to turn off to disconnect the connection between the battery and the first port.
[0018] Fourthly, this application provides a drone, including a battery and a battery charging circuit as described above.
[0019] The beneficial effects of this application are as follows: The battery charging circuit provided by this application includes a first port, a second port, a first switch branch, a second switch branch, and a control branch. When the first port is connected to a charging device, the control branch outputs a first control signal to control the first switch branch to conduct, thereby connecting the first port to the battery, allowing the battery to be charged by the charging device through the first port. When the second port is connected to a charging device, the control branch outputs a second control signal to control the second switch branch to conduct, thereby connecting the second port to the battery, allowing the battery to be charged by the charging device through the second port. Therefore, when either the first port or the second port is used to charge the battery, the other port can be used to supply power to the device, thus enabling simultaneous charging and discharging of the battery, which increases the applicable application scenarios and enhances practicality. Attached Figure Description
[0020] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0021] Figure 1 This is a schematic diagram of the battery charging circuit provided in an embodiment of this application; Figure 2 This is a schematic diagram of the structure of a battery charging circuit provided in another embodiment of this application; Figure 3 A schematic diagram of the structure of a battery charging circuit provided in yet another embodiment of this application; Figure 4 A schematic diagram of the circuit structure of the battery charging circuit provided in the embodiments of this application; Figure 5 A schematic diagram of the circuit structure of the power supply unit provided in an embodiment of this application; Figure 6 A flowchart of a control method for a battery charging circuit provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of the control device for the battery charging circuit provided in the embodiments of this application; Figure 8 A flowchart of a control method for a battery charging circuit provided in another embodiment of this application. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0023] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the circuit structure of the battery charging circuit provided in an embodiment of this application. The battery charging circuit 10 includes a first port S1, a second port S2, a first switch branch 11, a second switch branch 12, and a control branch 13. The control branch 13 is connected to both the first switch branch 11 and the second switch branch 12. The first switch branch 11 is connected between the first port S1 and the battery 20, and the second switch branch 12 is connected between the second port S2 and the battery 20.
[0024] Specifically, control branch 13 is used to output a first control signal to first switch branch 11 when the first port S1 is connected to the charging device, and control branch 13 is also used to output a second control signal to second switch branch 12 when the second port S2 is connected to the charging device. First switch branch 11 is turned on in response to the first control signal to establish a connection between the first port S1 and the battery 20. Second switch branch 12 is turned on in response to the second control signal to establish a connection between the second port S2 and the battery 20.
[0025] In this embodiment, when the charging device is connected to the first port S1, the control branch 13 outputs a first control signal to control the first switch branch 11 to conduct. Subsequently, the first port S1 is connected to the battery 20, and the charging device can charge the battery 20 through the first port S1.
[0026] When the charging device is connected to the second port S2, the control branch 13 outputs a second control signal to control the second switch branch 12 to conduct. Subsequently, the second port S2 is connected to the battery 20, and the charging device can charge the battery 20 through the second port S2.
[0027] Therefore, either the first port S1 or the second port S2 can be used as a charging port, and the other port can be used as a discharging port. For example, in one embodiment, the second port S2 is used as a charging port. When a charging device is connected to the second port S2 and the battery 20 is charged by the charging device, the battery 20 can also be discharged through the first port S1 to supply power to the device. Thus, the charging and discharging processes of the battery are realized simultaneously. Therefore, the solution provided by this application is not only applicable to application scenarios where only one of charging or discharging the battery can be selected at a time, but also applicable to application scenarios where the battery can be charged and discharged at the same time. That is, compared with related technologies, it increases the applicable application scenarios and has strong practicality.
[0028] For example, in one embodiment, a rechargeable battery is installed on the nest drone. When the nest drone is in a low-battery state and automatically returns to the nest for charging, it must simultaneously charge the battery in the nest drone and discharge the battery to maintain the normal operation of the nest drone. For this application scenario, if the solution in the related technology is adopted, the normal operation of the nest drone cannot be maintained while the battery is charging. However, if the battery charging circuit provided in this application embodiment is used, the normal operation of the nest drone can be maintained even if the battery is not charging. For example, specifically, the second port S2 can be used as a charging port to charge the battery in the nest drone. At the same time, the battery in the nest drone also supplies power to the electrical equipment in the nest drone through the first port S1 to maintain the normal operation of the nest drone. It can be seen that compared with the solution in the related technology, the embodiment of this application can be applied to more application scenarios.
[0029] In one embodiment, such as Figure 2 As shown, the control branch 13 includes a battery management unit 131, a control processing unit 132, and a power supply unit 133. The battery management unit 131 is connected to the first port S1, the second port S2, the first switch branch 11, the power supply unit 133, and the control processing unit 132. The power supply unit 133 is connected to the control processing unit 132 and the battery 20. The control processing unit 131 is connected to the first port S1, the second port S2, and the second switch branch 12.
[0030] The battery management unit 131 can be a battery management system (BMS), which includes a control system to protect the battery's safety and monitor its status. For example, the BMS can read changes in parameters such as voltage, current, and temperature during battery charging or discharging. The control processing unit 132 can be a microcontroller unit (MCU) or a digital signal processing (DSP) controller.
[0031] Specifically, the control processing unit 132 is configured to output a first indication signal to the battery management unit 131 when the first port S1 is connected to the charging device. The control processing unit 132 is also configured to output a second control signal to the second switch branch 12 when the second port S2 is connected to the charging device. The battery management unit 131 is configured to output a first enable signal to the power supply unit 133 when the first port S1 or the second port S2 is connected to the charging device. The battery management unit 131 is also configured to output a first control signal in response to the first indication signal. The power supply unit 133 is configured to output a voltage to supply power to the control processing unit 132 based on the voltage of the battery 20 in response to the first enable signal.
[0032] In one embodiment, the control processing unit 132 is further configured to output a third control signal to the second switch branch 12 when the first port S1 is connected to the charging device, so as to disconnect the second switch branch 12. The control processing unit 132 is further configured to output a second indication signal to the battery management unit 131 when the second port S2 is connected to the charging device. The battery management unit 131 is further configured to output a fourth control signal to the first switch branch 11 in response to the second indication signal, so as to disconnect the first switch branch 11.
[0033] Specifically, when the charging device is connected to the first port S1, the battery management unit 131 outputs a first enable signal to the power supply unit 133, enabling the power supply unit 133 to output a voltage that supplies power to the control processing unit 132 based on the voltage of the battery 20. That is, the power supply unit 300 can convert the voltage of the battery 20 to output a voltage that meets the power supply requirements of the control processing unit 132, thereby powering the control processing unit 132 and enabling it to operate. Next, the control processing unit 132 outputs a first indication signal to the battery management unit 131, causing the battery management unit 131 to output a first control signal to control the first switch branch 11 to conduct. Subsequently, the first port S1 is connected to the battery 20, and the charging device can charge the battery 20 through the first port S1. Simultaneously, the control processing unit 132 outputs a third control signal to the second switch branch 12, causing the second switch branch 12 to disconnect.
[0034] When a charging device is connected to the second port S2, the battery management unit 131 similarly outputs a first enable signal to the power supply unit 133, enabling the power supply unit 133 to output a voltage to power the control processing unit 132 based on the voltage of the battery 20. The control processing unit 132 then receives power and begins operation. Next, the control processing unit 132 outputs a second control signal to control the second switch branch 12 to conduct. Subsequently, the second port S2 is connected to the battery 20, and the charging device can charge the battery 20 through the second port S2. Simultaneously, the control processing unit 132 also outputs a second indication signal to the battery management unit 131, causing the battery management unit 131 to output a fourth control signal to the first switch branch 11 and disconnect the first switch branch 11.
[0035] In this embodiment, different control strategies are adopted for the first switch branch 11 and the second switch branch 12 to achieve battery charging in different ways, thus being compatible with application scenarios requiring different charging methods and possessing strong practicality. Furthermore, the characteristics of the battery management unit 131 are cleverly utilized to enable the power supply unit 133. Specifically, when no external devices (including power-consuming devices and charging devices) are connected to the first port S1 and the second port S2, the battery management unit 131 no longer outputs the first enable signal, and the power supply unit 133 does not output voltage, thereby reducing power loss and meeting the requirements of a low-power battery. When no external devices are connected to the first port S1 and the second port S2, the battery management unit 131 outputs the first enable signal to cause the power supply unit 133 to output the voltage to power the control processing unit 132, thereby realizing the charging or discharging process of the battery 20.
[0036] It should be noted that, as Figure 2The hardware structure of the battery charging circuit 10 shown is only an example, and the battery charging circuit 10 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0037] For example, in one embodiment, such as Figure 3 As shown, the control branch 13 also includes a first detection unit 134, a second detection unit 135, and a wake-up unit 136. The first detection unit 134 is connected between the first port S1 and the control processing unit 132, the second detection unit 135 is connected between the second port S2 and the control processing unit 132, and the wake-up unit 136 is connected between the second port S2 and the battery management unit 131.
[0038] Specifically, the first detection unit 134 is used to output a first detection signal to the control processing unit 132 when the first port S1 is connected to the charging device, so that the control processing unit 132 outputs a first indication signal and a third control signal. The second detection unit 135 is used to output a second detection signal to the control processing unit 132 when the second port S2 is connected to the charging device, so that the control processing unit 132 outputs a second indication signal and a second control signal. The wake-up unit 136 is used to output a first wake-up signal to the battery management unit 131 when the second port S2 is connected to the charging device, so that the battery management unit 131 outputs a first enable signal.
[0039] In this embodiment, when the first port S1 is connected to a charging device, the battery management unit 131 outputs a first enable signal to the power supply unit 133, so that the power supply unit 133 supplies power to the control processing unit 132, and the control processing unit 132 is powered on and begins to operate. Then, when the control processing unit 132 determines that the first port S1 is connected to a charging device through the first detection signal output by the first detection unit 134, the control processing unit 132 outputs a first indication signal to the battery management unit 131, and the control processing unit 132 outputs a third control signal to the second switch branch 12.
[0040] When a charging device is connected to the second port S2, the battery management unit 131 outputs a first enable signal to the power supply unit 133, so that the power supply unit 133 supplies power to the control processing unit 132, and the control processing unit 132 is powered on and begins operation. Then, when the control processing unit 132 determines that the second port S2 is connected to the charging device through the second detection signal output by the second detection unit 135, the control processing unit 132 outputs a second indication signal to the battery management unit 131, and also outputs a second control signal to the second switch branch 12.
[0041] Please refer to Figure 4 , Figure 4 The example shown is a structure of the first switch branch 11, such as Figure 4 As shown, the first switch branch 11 includes a first resistor R1, a second resistor R2, a first switch Q1, and a second switch Q2. The first end of the first resistor R1 is connected to the first end of the first switch Q1. The second end of the first resistor R1 is connected to the first end of the battery management unit 131 (i.e., pin 31 of the battery management unit 131). The second end of the first switch Q1 is connected to the third port B1, which is used to connect to the first end of the battery 20. The third end of the first switch Q1 is connected to the third end of the second switch Q2. The second end of the second switch Q2 is connected to both the first end of the second resistor R2 and the first port S1. The third end of the second switch Q2 is connected to both the second end of the second resistor R2 and the second end of the battery management unit 131 (i.e., pin 26 of the battery management unit 131). Both the first resistor R1 and the second resistor R2 are current-limiting resistors. Pin 31 of the battery management unit 131 is the signal output pin of the battery management unit 131.
[0042] In this embodiment, when the first port S1 is connected to the charging device, the voltage at the first port S1 is greater than the turn-on voltage of the second switch Q2 by the voltage division across the second resistor R2, thus turning on the second switch Q2. Simultaneously, the battery management unit 132 outputs a first control signal from its pin 31 to control the first switch Q1 to turn on. Therefore, both the first switch Q1 and the second switch Q2 are turned on, corresponding to the first switch branch 11 being turned on. At this time, the charging device is connected to the first terminal of the battery 20 through the first port S1, the second switch Q2, and the third port B1, enabling the charging device to charge the battery 20.
[0043] When the first port S1 is not connected to the charging device, on the one hand, the voltage on the second resistor R2 is zero and the second switch Q2 is turned off; on the other hand, the battery management unit 131 outputs a fourth control signal to the first switch Q1 to turn off the first switch Q1.
[0044] Of course, when the second port S2 is connected to the charging device, if the device needs to be powered through the first port S1, the battery management unit 131 can control the first switch Q1 and the second switch Q2 to conduct respectively, so that the battery 20 can power the device through the first port S1, thereby simultaneously realizing the charging and discharging process of the battery 20. In addition, by setting the first switch Q1 and the second switch Q2, it is also possible to prevent the abnormal situation of false turn-on caused by the diode in the MOSFET.
[0045] It is understood that in this embodiment, the first switch Q1 and the second switch Q2 are NMOS transistors. The gate of the NMOS transistor is the first terminal of the first switch Q1 and the second switch Q2, the source of the NMOS transistor is the second terminal of the first switch Q1 and the second switch Q2, and the drain of the NMOS transistor is the third terminal of the first switch Q1 and the second switch Q2.
[0046] In addition, the first switch Q1 and the second switch Q2 can be any other suitable switch, such as at least one of the following: transistor, metal-oxide-semiconductor field-effect transistor, insulated-gate bipolar transistor, integrated gate commutated thyristor, gate turn-off thyristor, junction-gate field-effect transistor, MOS controlled thyristor, gallium nitride-based power device, silicon carbide-based power device, silicon controlled rectifier, and signal relay.
[0047] Figure 4 The diagram also exemplarily illustrates one structure of the second switch branch 12, such as... Figure 4 As shown, the second switch branch 12 includes a third resistor R3, a fourth resistor R4, a third switch Q3, a fourth switch Q4, and a fifth switch Q5. The third terminal of the third switch Q3 is connected to the first terminal of the battery 20 via the third port B1. The second terminal of the third switch Q3 is connected to the second terminal of the fourth switch Q4 and the first terminal of the third resistor R3. The first terminal of the third switch Q3 is connected to the second terminals of the third resistor R3, the fourth switch R4, and the fifth switch Q5. The third terminal of the fourth switch Q4 is connected to the second port S2. The first terminal of the fifth switch Q5 is connected to the first terminal of the fourth resistor R4 and the first terminal (i.e., the third pin of the control processing unit 132). The second terminals of the fifth switch Q5 and the fourth resistor R4 are both grounded (GND). The fourth resistor R4 provides the turn-on voltage for the fifth switch Q5. The third pin of the control processing unit 132 is the signal output pin of the control processing unit 132.
[0048] In this embodiment, when the second port S2 is connected to the charging device, the control processing unit 131 outputs a second control signal from its third pin to control the fifth switch Q5 to turn on. Thus, The first terminals of the third switch Q3 and the fourth switch Q4 are both grounded to GND through the fifth switch Q5, meaning that the first terminals of both the third switch Q3 and the fourth switch Q4 are forcibly pulled low. With both the third switch Q3 and the fourth switch Q4 conducting, the corresponding second switch branch 12 is also conducting. At this time, the charging device is connected to the first terminal of the battery 20 through the second port S2, the third switch Q3, the fourth switch Q4, and the third port B1, enabling the charging device to charge the battery 20.
[0049] When the second port S2 is not connected to the charging device, the control processing unit 132 outputs a third control signal to the fifth switch Q5 to control the fifth switch Q5 to turn off. Subsequently, the connection between the first terminal of the third switch Q3 and ground is disconnected, and the connection between the first terminal of the fourth switch Q4 and ground is also disconnected; both the third switch Q3 and the fourth switch Q4 are now off. Similarly, by setting the third switch Q3 and the fourth switch Q4, the abnormal situation of false turn-on due to the diodes present in the MOSFETs can be prevented.
[0050] In this embodiment, the third switch Q3 and the fourth switch Q4 are PMOS transistors, and the fifth switch Q5 is an NMOS transistor. The gate of the PMOS transistor is the first terminal of the third switch Q3 and the fourth switch Q4, the source of the PMOS transistor is the second terminal of the third switch Q3 and the fourth switch Q4, and the drain of the PMOS transistor is the third terminal of the third switch Q3 and the fourth switch Q4. Similarly, the gate of the NMOS transistor is the first terminal of the fifth switch Q5, the source of the NMOS transistor is the second terminal of the fifth switch Q5, and the drain of the NMOS transistor is the third terminal of the fifth switch Q5.
[0051] In addition, the third switch Q3, the fourth switch Q4, and the fifth switch Q5 can be any other suitable switch, such as at least one of the following: transistor, metal-oxide-semiconductor field-effect transistor, insulated-gate bipolar transistor, integrated gate commutated thyristor, gate turn-off thyristor, junction-gate field-effect transistor, MOS-controlled thyristor, gallium nitride-based power device, silicon carbide-based power device, silicon controlled rectifier, and signal relay.
[0052] Figure 4 The diagram also exemplarily illustrates one structure of the first detection unit 134, such as... Figure 4As shown, the first detection unit 134 includes a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, and a sixth switch Q6. The first terminal of the seventh resistor R7 is connected to the first port S1. The second terminal of the seventh resistor R7 is connected to the first terminal of the eighth resistor R8 and the first terminal of the sixth switch Q6. The second terminals of the eighth resistor R8 and the sixth switch Q6 are both grounded (GND). The third terminal of the sixth switch Q6 is connected to the first terminal of the ninth resistor R9 and the first terminal of the control processing unit 132 (i.e., the second pin of the control processing unit 132). The second terminal of the ninth resistor R9 is used to input the first voltage V1. The second pin of the control processing unit 132 is the signal input pin of the control processing unit 132.
[0053] The first voltage V1 can be a voltage obtained from the voltage of the battery 20, or it can be a separately set voltage. This application embodiment does not impose specific limitations on this.
[0054] Specifically, when the first port S1 is connected to the charging device, the voltage of the first port S1 is divided by the seventh resistor R7 and the eighth resistor R8 and then input to the first terminal of the sixth switch Q6 to turn on the sixth switch Q6. Subsequently, the third terminal of the sixth switch Q6 is grounded to GND through its second terminal, and the third terminal of the sixth switch Q6 is forcibly pulled low, that is, the second pin of the control processing unit 132 is forcibly pulled low, so that the second pin of the control processing unit 132 can receive a low-level signal.
[0055] When the first port S1 is not connected to the charging device, no voltage is input to the first terminal of the sixth switch Q6, and the sixth switch Q6 is turned off. The first voltage V1 is input to the control processing unit 132 through the ninth resistor R9 to provide a high-level signal to the second pin of the control processing unit 132.
[0056] Therefore, when the second pin of the control processing unit 132 receives a low-level signal, the control processing unit 132 can confirm that the first port S1 has been connected to the charging device; conversely, when the second pin of the control processing unit 132 receives a high-level signal, the control processing unit 132 can confirm that the first port S1 has not been connected to the charging device.
[0057] In this embodiment, the sixth switch Q6 is an NMOS transistor. The gate of the NMOS transistor is the first terminal of the sixth switch Q6, the source is the second terminal of the sixth switch Q6, and the drain is the third terminal of the sixth switch Q6.
[0058] In addition, the sixth switch Q6 can be any other suitable switch, such as at least one of the following: transistor, metal-oxide-semiconductor field-effect transistor, insulated-gate bipolar transistor, integrated gate commutated thyristor, gate turn-off thyristor, junction-gate field-effect transistor, MOS-controlled thyristor, gallium nitride-based power device, silicon carbide-based power device, silicon controlled rectifier, and signal relay.
[0059] Figure 4 The diagram also exemplarily illustrates one structure of the second detection unit 135, such as... Figure 4 As shown, the second detection unit 135 includes a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, and a seventh switch Q7. The first terminal of the tenth resistor R10 is connected to the second port S2. The second terminal of the tenth resistor R10 is connected to both the first terminal of the eleventh resistor R11 and the first terminal of the seventh switch Q7. Both the second terminals of the eleventh resistor R11 and the seventh switch Q7 are grounded (GND). The third terminal of the seventh switch Q7 is connected to both the first terminal of the twelfth resistor R12 and the second terminal (i.e., pin 1 of the control processing unit 132). The second terminal of the twelfth resistor R12 is used to input the first voltage V1. The first pin of the control processing unit 132 is the signal input pin of the control processing unit 132.
[0060] Specifically, when the second port S2 is connected to the charging device, the voltage at the second port S2 is divided by the tenth resistor R10 and the eleventh resistor R11 and then input to the first terminal of the seventh switch Q7, so that the seventh switch Q7 is turned on. Subsequently, the third terminal of the seventh switch Q7 is grounded to GND through its second terminal, and the third terminal of the seventh switch Q7 is forcibly pulled low, that is, the first pin of the control processing unit 132 is forcibly pulled low, so that the first pin of the control processing unit 132 can receive a low-level signal.
[0061] When the second port S2 is not connected to the charging device, no voltage is input to the first terminal of the seventh switch Q7, and the seventh switch Q7 is turned off. The first voltage V1 is input to the control processing unit 132 through the twelfth resistor R12 to provide a high-level signal to the first pin of the control processing unit 132.
[0062] Therefore, when the first pin of the control processing unit 132 receives a low-level signal, the control processing unit 132 can confirm that the second port S2 has been connected to the charging device; conversely, when the first pin of the control processing unit 132 receives a high-level signal, the control processing unit 132 can confirm that the second port S2 has not been connected to the charging device.
[0063] In this embodiment, the seventh switch Q7 is an NMOS transistor. The gate of the NMOS transistor is the first terminal of the seventh switch Q7, the source is the second terminal of the seventh switch Q7, and the drain is the third terminal of the seventh switch Q7.
[0064] In addition, the seventh switch Q7 can be any other suitable switch, such as at least one of the following: transistor, metal-oxide-semiconductor field-effect transistor, insulated-gate bipolar transistor, integrated gate commutated thyristor, gate turn-off thyristor, junction-gate field-effect transistor, MOS-controlled thyristor, gallium nitride-based power device, silicon carbide-based power device, silicon controlled rectifier, and signal relay.
[0065] In one embodiment, when the first port S1 can also be used to connect to external electrical equipment, if both the first pin and the second pin of the control processing unit 132 receive a low-level signal, it is determined that the battery 20 will be charged through the second port S2. At this time, the first port S1 can be used as both a charging port and a discharging port, while the second port S2 can only be used as a charging port. Therefore, the charging priority of the second port S2 is higher than that of the first port S1.
[0066] When the second port S2 can also be used to connect to external electrical equipment, if both pin 1 and pin 2 of the control processing unit 132 receive a low-level signal, it is determined that the battery 20 is charged through the first port S1. At this time, the second port S2 can be used as both a charging port and a discharging port, while the first port S1 can only be used as a charging port. Therefore, the charging priority of the first port S1 is higher than that of the second port S2.
[0067] In summary, when either the first port S1 or the second port S2 can only be used as a charging port, using that port for charging has higher priority than the other port. Taking the example where the first port S1 can only be used as a charging port, and the second port S2 can be used as both a charging and discharging port, when the second port S2 is connected to the device and discharging, the device typically has a capacitor to provide a stable voltage through the second port S2. However, when the battery 20 finishes discharging and needs to be recharged, the capacitor may not have fully discharged, resulting in voltage remaining on the second port S2. This could lead to a false positive indicating that the second port S2 is connected to a charging device. In this case, if the second port S2 is used for charging, the battery 20 will not be charged because it is not actually connected to a charging device. However, by using the first port S1 as the charging port, this abnormal situation can be avoided.
[0068] Therefore, when it is detected that both the first port S1 and the second port S2 are connected to the charging device, that is, when the first pin and the second pin of the control processing unit 132 receive low-level signals, the port that can only be used for charging can be selected as the preferred port to charge the battery 20. This can prevent the abnormal situation of not actually charging the battery 20 due to misjudgment and improve the accuracy of charging the battery 20.
[0069] When a charging device is connected to the second port S2, the battery management unit 131 can be automatically woken up, and the second pin of the control processing unit 132 receives a low-level signal. However, when a charging device is connected to the first port S1, the battery management unit 131 needs to be woken up by the wake-up unit 136 to ensure that the first pin of the control processing unit 132 receives a low-level signal. Therefore, due to the presence of the wake-up unit 136, factors such as voltage instability may cause the battery management unit 131 to falsely wake up. Thus, when both the first and second pins of the control processing unit 132 receive low-level signals, the second port S2 can be used as the preferred port for charging the battery 20, preventing the battery management unit 131 from failing to charge the battery 20 due to false wake-up, thereby improving the accuracy of charging the battery 20.
[0070] Figure 4 The diagram also exemplarily illustrates one structure of the wake-up unit 136, such as... Figure 4 As shown, the wake-up unit 136 includes a third capacitor C3. The first end of the third capacitor C3 is connected to the first port S1, and the second end of the third capacitor C3 is connected to the third end of the battery management unit 131 (i.e., pin 27 of the battery management unit 131). Pin 27 of the battery management unit 131 is the signal input pin of the battery management unit 131.
[0071] Specifically, due to the characteristic of the third capacitor C3 to pass AC and block DC, when the first port S1 is connected to the charging device, the instantaneous voltage spike of the first port S1 can be conducted to the 27th pin of the battery management unit 131 through the third capacitor C3, so that the battery management unit 131 can determine that the first port S1 has been connected to the charging device.
[0072] The wake-up unit 136 can be any suitable device that can wake up the battery management unit 131 to start working when the first port S1 is connected to a charging device. For example, in one embodiment, the wake-up unit 136 can also be an isolation chip, which outputs a corresponding signal to the battery management unit 131 to wake it up when the first port S1 is connected to a charging device. In another embodiment, the wake-up unit 136 can also be an optocoupler, which can also achieve the same effect of the isolation chip outputting a corresponding signal to the battery management unit 131 to wake it up when the first port S1 is connected to a charging device. However, compared to the above-mentioned solutions using isolation chips or optocouplers, the solution using the third capacitor C3 provided in this application has lower cost and lower power loss; that is, the embodiments of this application are more practical.
[0073] In one embodiment, the battery charging circuit 10 further includes a thirteenth resistor R13 and a fourteenth resistor R14. The thirteenth resistor R13 is connected between the first port S1 and the 27th pin of the battery management unit 131, and the fourteenth resistor R14 is connected between the first terminal of the second switch Q2 and the third terminal (i.e., the 26th pin of the battery management unit 131). The 26th pin of the battery management unit 131 is the signal input pin of the battery management unit 131.
[0074] Specifically, the thirteenth resistor R13 is a current-limiting resistor to limit the current input to pin 27 of the battery management unit 131, preventing damage to the battery management unit 131 due to excessive input current. This protects the battery management unit 131 and ensures its stable operation. The fourteenth resistor R14 and the second resistor R2 form a voltage divider circuit. On one hand, when a charging device is connected to the first port S1, the voltage input to the first terminal of the second switch Q2 is obtained, enabling the second switch Q2 to conduct. On the other hand, when a charging device is connected to the first port S1, a current is generated input to the battery management unit 131 to achieve current detection.
[0075] Please refer to Figure 5 , Figure 5 An exemplary structure of the power supply unit 133 is shown in the figure. Figure 5As shown, the power supply unit 133 includes a voltage regulator chip U1, a fifth resistor R5, a sixth resistor R6, a first capacitor C1, and a second capacitor C2. The first terminal of the voltage regulator chip U1 (i.e., pin 1 of the voltage regulator chip U1) is connected to the first terminal of the first capacitor C1. The third terminal of the voltage regulator chip U1 (i.e., pin 3 of the voltage regulator chip U1) is connected to the first terminals of the fifth resistor R5 and the sixth resistor R6. The fourth terminal of the voltage regulator chip U1 (i.e., pin 5 of the voltage regulator chip U1) is connected to the first terminal of the second capacitor C2. The second terminal of the fifth resistor R5 is connected to the fourth terminal (and pin 1 of the battery management unit 131). The second terminal of the voltage regulator chip U1 (i.e., pin 2 of the voltage regulator chip U1), the second terminals of the first capacitor C1, the second capacitor C2, and the sixth resistor R6 are all grounded to DGND. The first terminal of the voltage regulator chip U1 is used to input the voltage Vbat of the battery 20, and the fourth terminal of the voltage regulator chip U1 is used to output the first voltage V1.
[0076] In this embodiment, pin 1 of voltage regulator chip U1 is a voltage input pin, pin 2 of voltage regulator chip U1 is a ground pin, pin 3 of voltage regulator chip U1 is an enable signal input pin, and pin 4 of voltage regulator chip U1 is a voltage output pin. Pin 1 of battery management unit 131 is a signal output pin.
[0077] In this configuration, both the first capacitor C1 and the second capacitor C2 are filter capacitors. The fifth resistor R5 and the sixth resistor R6 are used to divide the voltage of the first enable signal output from the first pin of the battery management unit 131, and input the voltage on the sixth resistor R6 to the third pin of the voltage regulator chip U1.
[0078] Specifically, when the battery management unit 131 is woken up, its first pin automatically outputs a high-level signal (i.e., a first enable signal). This high-level signal is divided by the fifth resistor R5 and the sixth resistor R6 and then input to the enable signal input pin of the voltage regulator chip U1 to enable the voltage regulator chip U1. Subsequently, the voltage regulator chip U1 converts the battery voltage Vbat and outputs a stable first voltage V1.
[0079] When the battery management unit 131 is not woken up, pin 1 of the battery management unit 131 automatically switches to a low-level output signal and inputs it to the enable signal input pin of the voltage regulator chip U1 to stop enabling the voltage regulator chip U1. At this time, the output voltage of pin 5 of the voltage regulator chip U1 is zero.
[0080] In this embodiment, the function of enabling the voltage regulator chip U1 is achieved by utilizing the pin of the battery management unit 131 that can automatically output a high-level signal when woken up, without the need to add an additional enable pin, which helps to reduce costs. Furthermore, when the battery management unit 131 is not woken up, the output of the first voltage V1 by the voltage regulator chip U1 can also be stopped simultaneously, which helps to reduce the power loss of the battery 20.
[0081] The following are Figure 4 and Figure 5 The principle of the circuit structure shown will be explained.
[0082] When the first port S1 is connected to the charging device, on the one hand, the battery management unit 131 automatically turns on. The battery management unit 131 enables the voltage regulator chip U1 to operate by outputting a first enable signal, causing the voltage regulator chip U1 to output a first voltage V1. This first voltage V1 powers the control processing unit 132, enabling the control processing unit 132 to start operating. On the other hand, the voltage on the first port S1 enables the sixth switch Q6 to turn on, outputting a low-level signal to the second pin of the control processing unit 132. Subsequently, the third pin of the control processing unit 132 outputs a third control signal to turn off the fifth switch Q5, and both the third switch Q3 and the fourth switch Q4 are turned off. Furthermore, the control processing unit 132 also outputs a first indication signal to the battery management unit 131, causing the battery management unit 131 to output a first control signal to the first switch Q1, turning on the first switch Q1. Simultaneously, the voltage on the first port S1 also enables the second switch Q2 to turn on. Thus, the charging device charges the battery 20 through the first port S1, the second switch Q2, the first switch Q1 and the third port B1.
[0083] When the second port S2 is connected to the charging device, on one hand, the voltage on the second port S2 is conducted to the battery management unit 131 through the third capacitor C3, thereby waking up the battery management unit 131. The battery management unit 131 enables the voltage regulator chip U1 to operate by outputting a first enable signal, so that the voltage regulator chip U1 outputs a first voltage V1, which is used to power the control processing unit 132, so that the control processing unit 132 starts working. On the other hand, the voltage on the second port S2 enables the seventh switch Q7 to conduct, so as to output a low-level signal to the first pin of the control processing unit 132. Then, the third pin of the control processing unit 132 outputs a second control signal to turn on the fifth switch Q5, and the third switch Q3 and the fourth switch Q4 are also turned on. In addition, the control processing unit 132 also outputs a second indication signal to the battery management unit 131, so that the battery management unit 131 outputs a fourth control signal to the first switch Q1 to control the first switch Q1 to turn off. Meanwhile, since the first port S1 is not connected to a charging device, the second switch Q2 is turned off. Therefore, the charging device charges the battery 20 through the second port S2, the third switch Q3, the fourth switch Q4, and the third port B1.
[0084] Please refer to Figure 6 , Figure 6 This is a flowchart illustrating a control method for a battery charging circuit provided in an embodiment of this application. The battery charging circuit includes a first port, a second port, a first switch branch, and a second switch branch. Both the first port and the second port are used to connect to a charging device; that is, both the first port and the second port can serve as charging ports. The structure of the battery charging circuit can be referenced above for the method described in the application. Figures 1 to 5 The specific description will not be repeated here. For example... Figure 6 As shown, the control method of this battery charging circuit includes the following steps: Step 601: If the first port is connected to the charging device, control the first switch branch to turn on to establish a connection between the battery and the first port, and control the second switch branch to turn off to disconnect the connection between the battery and the second port.
[0085] Step 602: If the second port is connected to the charging device, control the second switch branch to turn on to establish a connection between the battery and the second port, and control the first switch branch to turn off to disconnect the connection between the battery and the first port.
[0086] When the first port is connected to the charging device and the second port is not connected, the first switch branch is turned on to connect the first port to the battery, allowing the battery to be charged by the charging device through the first port. When the second port is connected to the charging device and the first port is not connected, the second switch branch is turned on to connect the second port to the battery, allowing the battery to be charged by the charging device through the second port. Therefore, when either the first or second port is used to charge the battery, the other port can be used to supply power to the device, thus enabling simultaneous charging and discharging of the battery. This expands the applicable application scenarios and enhances practicality.
[0087] In one embodiment, either the first port or the second port is further used for connection to an electrical device, that is, either the first port or the second port can also serve as a discharge port. The control method for this battery charging circuit further includes: When the first port is also used to connect to electrical equipment, if both the first port and the second port are connected to charging equipment, the second switch branch is controlled to be turned on to establish a connection between the battery and the second port, and the first switch branch is controlled to be turned off to disconnect the connection between the battery and the first port. When the second port is also used to connect to electrical equipment, if both the first port and the second port are connected to charging equipment, the first switch branch is controlled to turn on to establish a connection between the battery and the first port, and the second switch branch is controlled to turn off to disconnect the connection between the battery and the second port.
[0088] In this embodiment, if the first port is also used to connect to an electrical device, the first port can be used as both a discharge port and a charging port, while the second port can only be used as a charging port; if the second port is also used to connect to an electrical device, the second port can be used as both a discharge port and a charging port, while the first port can only be used as a charging port.
[0089] When either the first port or the second port can only be used as a charging port, using that port for charging has higher priority than the other port. That is, when it is detected that both the first port and the second port are connected to a charging device, the port that can only be used for charging can be selected as the preferred port to charge the battery. This prevents the abnormal situation where the battery is not actually being charged due to misjudgment, and helps to improve the accuracy of battery charging.
[0090] It should be understood that the specific control of the battery charging circuit and the beneficial effects produced in the method embodiments can be referred to the corresponding descriptions in the above-described battery charging circuit embodiments, which will not be repeated here for the sake of brevity.
[0091] Please see Figure 7This document illustrates a schematic diagram of a control device for a battery charging circuit according to an embodiment of this application. The battery charging circuit includes a first port, a second port, a first switch branch, and a second switch branch. The structure of the battery charging circuit can be referenced above. Figures 1 to 5 The specific description will not be repeated here. For example... Figure 7 As shown, the control device of the battery charging circuit includes a first control module 701 and a second control module 702.
[0092] The first control module 701 is used to control the first switch branch to be turned on to establish a connection between the battery and the first port if the first port is connected to a charging device, and to control the second switch branch to be turned off to disconnect the connection between the battery and the second port.
[0093] The second control module 702 is used to control the second switch branch to be turned on to establish a connection between the battery and the second port if the second port is connected to a charging device, and to control the first switch branch to be turned off to disconnect the connection between the battery and the first port.
[0094] In one embodiment, either the first port or the second port is also used to connect to electrical equipment.
[0095] The first control module 701 is also used to: when the first port is also used to connect to an electrical device, if both the first port and the second port are connected to a charging device, control the second switch branch to turn on to establish a connection between the battery and the second port, and control the first switch branch to turn off to disconnect the connection between the battery and the first port.
[0096] The second control module 702 is also used to: when the first port is also used to connect to the electrical equipment, if both the first port and the second port are connected to the charging equipment, control the second switch branch to turn on to establish a connection between the battery and the second port, and control the first switch branch to turn off to disconnect the connection between the battery and the first port.
[0097] The above products can be executed Figure 6 The method provided in the embodiments of this application shown has corresponding functional modules and beneficial effects for performing the method. Technical details not described in detail in this embodiment can be found in the method provided in the embodiments of this application.
[0098] Please see Figure 8 , Figure 8 The diagram shows a flowchart of a control method for a battery charging circuit according to another embodiment of this application. Figure 8As shown, when preparing to charge the battery, it first determines whether to charge the battery through the first port. If the battery is being charged through the first port, the battery management chip automatically wakes up after the charging device is connected to the first port, enabling the power supply unit to output voltage to power the control processing unit. Then, the control processing unit operates, and after determining through the first detection circuit that the first port is connected to the charging device, it instructs the battery management unit to output a first control signal to control the first switch branch to conduct. Simultaneously, the control processing unit outputs a third control signal to control the second switch branch to disconnect. At this time, the charging device charges the battery through the first port.
[0099] If the battery is not charged through the first port, the second port is connected to the charging device. After the charging device is connected to the second port, the battery management chip is woken up by the wake-up unit. The battery management chip enables the power supply unit to output voltage to power the control processing unit. Then, the control processing unit starts working and determines that the second port is connected to the charging device through the second detection circuit. It then instructs the battery management unit to output a fourth control signal to control the first switch branch to open. At the same time, the control processing unit outputs a second control signal to control the second switch branch to open. At this time, the charging device charges the battery through the second port.
[0100] This application also provides a drone, which includes a battery and a battery charging circuit as described in any embodiment of this application.
[0101] The battery is connected to a battery charging circuit, which controls the battery charging process.
[0102] This application also provides a non-volatile computer-readable storage medium storing computer-executable instructions that are executed by one or more processors, for example, executing the instructions described above. Figure 6 The methods and steps, and implementation Figure 7 The functions of each module in the program.
[0103] This application also provides a computer program product, including a computing program stored on a non-volatile computer-readable storage medium. The computer program includes program instructions that, when executed by a computer, cause the computer to perform the battery charging circuit control method described in any of the above method embodiments, for example, to execute the above-described... Figure 6 The methods and steps, and implementation Figure 7 The functions of each module in the program.
[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of this application as described above, which are not provided in detail for the sake of brevity; although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A battery charging circuit, characterized in that, include: First port, second port, first switch branch, second switch branch and control branch; The control branch is connected to the first switch branch and the second switch branch respectively. The control branch is used to output a first control signal to the first switch branch when the first port is connected to the charging device. The control branch is also used to output a second control signal to the second switch branch when the second port is connected to the charging device. The first switch branch is connected between the first port and the battery. The first switch branch is turned on in response to the first control signal to establish a connection between the first port and the battery. The second switch branch is connected between the second port and the battery. The second switch branch is turned on in response to the second control signal to establish a connection between the second port and the battery. The control branch includes a power supply unit, a battery management unit, and a control processing unit; The battery management unit is connected to the first port, the second port, the first switch branch, the power supply unit, and the control processing unit, respectively. The power supply unit is connected to the control processing unit and the battery, respectively. The control processing unit is connected to the first port, the second port, and the second switch branch, respectively. The control processing unit is configured to output a first indication signal to the battery management unit when the first port is connected to the charging device, and the control processing unit is also configured to output a second control signal to the second switch branch when the second port is connected to the charging device; The battery management unit is used to output the first control signal in response to the first indication signal; The battery management unit is further configured to output a first enable signal to the power supply unit when the first port is connected to the charging device or the second port is connected to the charging device; the battery management unit is further configured to stop outputting the first enable signal when no external device is connected to the first port or the second port. The power supply unit is used to output a voltage to power the control processing unit according to the voltage of the battery in response to the first enable signal.
2. The battery charging circuit according to claim 1, characterized in that, The control processing unit is also configured to output a third control signal to the second switch branch when the first port is connected to the charging device, so as to disconnect the second switch branch; The control processing unit is also configured to output a second indication signal to the battery management unit when the second port is connected to the charging device; The battery management unit is also configured to output a fourth control signal to the first switch branch in response to the second indication signal, so as to disconnect the first switch branch.
3. The battery charging circuit according to claim 1, characterized in that, The control branch also includes a first detection unit, a second detection unit, and a wake-up unit; The first detection unit is connected between the first port and the control processing unit. The first detection unit is used to output a first detection signal to the control processing unit when the first port is connected to the charging device, so that the control processing unit outputs the first indication signal. The second detection unit is connected between the second port and the control processing unit. The second detection unit is used to output a second detection signal to the control processing unit when the second port is connected to the charging device, so that the control processing unit outputs the second control signal. The wake-up unit is connected between the second port and the battery management unit. The wake-up unit is used to output a first wake-up signal to the battery management unit when the second port is connected to the charging device, so that the battery management unit outputs the first enable signal.
4. The battery charging circuit according to claim 1, characterized in that, The first switching branch includes a first resistor, a second resistor, a first switching transistor, and a second switching transistor; The first end of the first resistor is connected to the first end of the first switching transistor, the second end of the first resistor is connected to the first end of the battery management unit, the second end of the first switching transistor is connected to the first end of the battery, the third end of the first switching transistor is connected to the first end of the second switching transistor, the second end of the second switching transistor is connected to the first end of the second resistor and the first port respectively, and the third end of the second switching transistor is connected to the second end of the second resistor and the second end of the battery management unit respectively.
5. The battery charging circuit according to claim 1, characterized in that, The second switching branch includes a third resistor, a fourth resistor, a third switching transistor, a fourth switching transistor, and a fifth switching transistor; The third terminal of the third switch is connected to the first terminal of the battery. The second terminal of the third switch is connected to the second terminal of the fourth switch and the first terminal of the third resistor. The first terminal of the third switch is connected to the second terminal of the third resistor, the first terminal of the fourth switch, and the third terminal of the fifth switch. The third terminal of the fourth switch is connected to the second port. The first terminal of the fifth switch is connected to the first terminal of the fourth resistor and the third terminal of the control processing unit. The second terminal of the fifth switch and the second terminal of the fourth resistor are both grounded.
6. The battery charging circuit according to claim 1, characterized in that, The power supply unit includes a voltage regulator chip, a fifth resistor, a sixth resistor, a first capacitor, and a second capacitor; The first terminal of the voltage regulator chip is connected to the first terminal of the first capacitor, the third terminal of the voltage regulator chip is connected to the first terminal of the fifth resistor and the first terminal of the sixth resistor, the fourth terminal of the voltage regulator chip is connected to the first terminal of the second capacitor, the second terminal of the fifth resistor is connected to the fourth terminal of the battery management unit, and the second terminal of the voltage regulator chip, the second terminal of the first capacitor, the second terminal of the second capacitor, and the second terminal of the sixth resistor are all grounded. The first terminal of the voltage regulator chip is used to input the battery voltage, and the fourth terminal of the voltage regulator chip is used to output the first voltage.
7. The battery charging circuit according to claim 3, characterized in that, The first detection unit includes a seventh resistor, an eighth resistor, a ninth resistor, and a sixth switch. The first end of the seventh resistor is connected to the first port, the second end of the seventh resistor is connected to the first end of the eighth resistor and the first end of the sixth switch, the second end of the eighth resistor and the second end of the sixth switch are both grounded, the third end of the sixth switch is connected to the first end of the ninth resistor and the second end of the control processing unit, and the second end of the ninth resistor is used to input the first voltage.
8. The battery charging circuit according to claim 3, characterized in that, The second detection unit includes a tenth resistor, an eleventh resistor, a twelfth resistor, and a seventh switch. The first end of the tenth resistor is connected to the second port, the second end of the tenth resistor is connected to the first end of the eleventh resistor and the first end of the seventh switch, the second end of the eleventh resistor and the second end of the seventh switch are both grounded, the third end of the seventh switch is connected to the first end of the twelfth resistor and the first end of the control processing unit, and the second end of the twelfth resistor is used to input the first voltage.
9. A control method for a battery charging circuit, wherein the battery charging circuit is the battery charging circuit according to any one of claims 1-8, characterized in that, The battery charging circuit includes a first port, a second port, a first switch branch, and a second switch branch. Both the first port and the second port are used to connect to a charging device. The method includes: If the first port is connected to the charging device, the first switch branch is controlled to be turned on to establish a connection between the battery and the first port, and the second switch branch is controlled to be turned off to disconnect the connection between the battery and the second port. If the second port is connected to the charging device, the second switch branch is controlled to be turned on to establish a connection between the battery and the second port, and the first switch branch is controlled to be turned off to disconnect the connection between the battery and the first port. Either the first port or the second port is further used to connect to electrical equipment, and the method further includes: When the first port is also used to connect to the electrical equipment, if both the first port and the second port are connected to the charging equipment, the second switch branch is controlled to be turned on to establish a connection between the battery and the second port, and the first switch branch is controlled to be turned off to disconnect the connection between the battery and the first port. When the second port is also used to connect to the electrical equipment, if both the first port and the second port are connected to the charging equipment, the first switch branch is controlled to be turned on to establish a connection between the battery and the first port, and the second switch branch is controlled to be turned off to disconnect the connection between the battery and the second port.
10. A control device for a battery charging circuit performing the method of claim 9, characterized in that, The battery charging circuit includes a first port, a second port, a first switch branch, and a second switch branch. Both the first port and the second port are used to connect to a charging device. The device includes: The first control module is configured to, if the first port is connected to a charging device, control the first switch branch to be turned on to establish a connection between the battery and the first port, and control the second switch branch to be turned off to disconnect the connection between the battery and the second port. The second control module is used to control the second switch branch to be turned on if the second port is connected to a charging device, so as to establish a connection between the battery and the second port, and to control the first switch branch to be turned off, so as to disconnect the connection between the battery and the first port. Either the first port or the second port is also used to connect to electrical equipment; The first control module is further configured to: when the first port is also used to connect to the electrical equipment, if both the first port and the second port are connected to the charging equipment, control the second switch branch to turn on to establish a connection between the battery and the second port, and control the first switch branch to turn off to disconnect the connection between the battery and the first port; The second control module is further configured to: when the first port is also used to connect to the electrical equipment, if both the first port and the second port are connected to the charging equipment, control the second switch branch to turn on to establish a connection between the battery and the second port, and control the first switch branch to turn off to disconnect the connection between the battery and the first port.
11. A drone, characterized in that, Includes a battery and a battery charging circuit as described in any one of claims 1-8.
Citation Information
Patent Citations
Battery management device and unmanned aerial vehicle
CN108462233A
Battery management system, battery and unmanned aerial vehicle
CN108778929A
Battery management system
CN108819752A
Battery protective circuit and system
CN203481802U
Mobile power supply and charging-discharging system
CN211151581U
