Battery management electronic device
By designing electronic devices in electric assisted bicycles and switching power with multiple batteries and transistors, the problem of battery switching is solved, and the riding mileage and motor output performance of electric assisted bicycles are improved.
Patent Information
- Application Number
- CN202410279908.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-15
- Filing Date
- 2024-03-12
- Publication Date
- 2024-12-17
AI Technical Summary
Existing electric assist bicycles usually only carry one battery, and cannot effectively utilize the power and high discharge power of multiple batteries. The performance and voltage differences of different battery types lead to difficulty in switching, affecting riding mileage and motor output.
Design an electronic device, including more than two batteries and corresponding transistors, through voltage detection and current detection circuits, conduct or do not turn on the transistors in sequence, switch the battery power supply, and select a battery with a higher battery voltage for power supply. To maintain power quality.
It realizes smooth switching of battery power, selecting the most suitable battery for power based on battery status and output current, improving the riding mileage and motor output performance of the electric assist bicycle.
Smart Images

Figure CN119154434A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an electronic device and a power supply method thereof, and in particular to an electronic device powered by more than two batteries and a power supply method for switching different batteries for power supply. Background Art
[0002] Lithium-ion batteries have high energy density and can store more electricity. They also have a long life and can be charged and discharged multiple times, but their discharge power is relatively general, and they often need to be connected in parallel to increase the discharge power. Other lithium batteries, such as lithium iron batteries, have a discharge power 8 to 10 times that of lithium-ion batteries, which means they can output higher instantaneous currents and are more suitable for situations with high discharge requirements, such as when climbing a hill, where high instantaneous currents allow the motor to generate greater torque. If you can use lithium-ion batteries on ordinary roads to obtain the maximum power, and use lithium iron batteries or other batteries with high discharge characteristics when high torque is required, you can bring out the characteristics of the motor to the fullest.
[0003] Electric assisted bicycles on the market are usually equipped with a battery as a power supply, but in order to increase the riding mileage, another battery is often added. Because different battery types have different performance and voltage values, two or more batteries may not be used in parallel and must be switched. Therefore, the controller needs to select the appropriate battery for power supply according to different situations. Summary of the invention
[0004] The present invention proposes an electronic device powered by more than two batteries and a power supply method for switching different batteries for power supply. By using transistors that sequentially turn on and off the batteries for power supply, the power supply from one battery is smoothly switched to another battery for power supply. In addition, the power supply can also be switched to a more suitable battery for power supply according to the battery status and / or output current to maintain a better power quality.
[0005] In view of this, the present invention proposes an electronic device, including a first battery, a second battery, a first transistor, a second transistor, a third transistor, a fourth transistor and a controller. The first battery has a first battery voltage, and the second battery has a second battery voltage. The first transistor is electrically connected between a supply voltage and a first node, and includes a first parasitic diode. The second transistor is electrically connected between the first node and the first battery, and includes a second parasitic diode, wherein the first parasitic diode and the second parasitic diode are used to provide the maximum of the first battery voltage and the supply voltage to the first node. The third transistor is electrically connected between the supply voltage and a second node, and includes a third parasitic diode. The fourth transistor is electrically connected between the second node and the second battery, and includes a fourth parasitic diode, wherein the third parasitic diode and the fourth parasitic diode are used to provide the maximum of the second battery voltage and the supply voltage to the second node. The controller sequentially turns off the second transistor, turns on the third transistor, turns off the first transistor, and turns on the fourth transistor to switch the supply voltage from the first battery voltage to the second battery voltage.
[0006] According to an embodiment of the present invention, the first transistor includes a first first terminal, a first second terminal and a first control terminal, and the first parasitic diode includes a first anode terminal and a first cathode terminal, wherein the first anode terminal is electrically connected to the first first terminal, and the first cathode terminal is electrically connected to the first second terminal. The second transistor includes a second first terminal, a second second terminal and a second control terminal, and the second parasitic diode includes a second anode terminal and a second cathode terminal, wherein the second anode terminal is electrically connected to the second first terminal, and the second cathode terminal is electrically connected to the second second terminal. The third transistor includes a third first terminal, a third second terminal and a third control terminal, and the third parasitic diode includes a third anode terminal and a third cathode terminal, wherein the third anode terminal is electrically connected to the third first terminal, and the third cathode terminal is electrically connected to the third second terminal. The fourth transistor includes a fourth first end, a fourth second end and a fourth control end, and the fourth parasitic diode includes a fourth anode end and a fourth cathode end, wherein the fourth anode end is electrically connected to the fourth first end, and the fourth cathode end is electrically connected to the fourth second end.
[0007] According to an embodiment of the present invention, when the second transistor is not turned on first, the second parasitic diode is used to prevent the supply voltage from charging the first battery. When the third transistor is turned on after the second transistor is turned off, the fourth parasitic diode is used to prevent the supply voltage from charging the second battery.
[0008] According to one embodiment of the present invention, the electronic device further includes a voltage detection circuit. The voltage detection circuit includes a first resistor, a second resistor, a fifth transistor, a third resistor, a fourth resistor and a sixth transistor. The first resistor is electrically connected between the first battery voltage and a first detection voltage. The second resistor is electrically connected to the first detection voltage. The fifth transistor electrically connects the second resistor to a ground terminal according to a first read signal. The third resistor is electrically connected between the second battery voltage and a second detection voltage. The fourth resistor is electrically connected to the second detection voltage. The sixth transistor electrically connects the fourth resistor to the ground terminal according to a second read signal. The controller uses the first read signal and the second read signal to control the voltage detection circuit to generate the first detection voltage and the second detection voltage. The controller determines the first battery voltage according to the first detection voltage, and determines the second battery voltage according to the second detection voltage. When the controller determines that the second battery voltage exceeds the first battery voltage, the controller switches the supply voltage from the first battery voltage to the second battery voltage.
[0009] According to one embodiment of the present invention, the supply voltage is used to power a motor drive circuit, wherein the motor drive circuit drives a motor according to the supply voltage. The controller further reads battery information of the first battery and the second battery and detects an output current of the supply voltage. When the output current exceeds a predetermined current, the controller uses the first transistor, the second transistor, the third transistor, and the fourth transistor to output the second battery voltage as the supply voltage.
[0010] According to an embodiment of the present invention, the electronic device further comprises a current detection circuit. The current detection circuit is used to detect the output current and generate a current detection signal. The controller determines whether the output current exceeds the predetermined current according to the current detection signal.
[0011] The present invention further proposes a power supply method for switching between a first battery voltage of a first battery and a second battery voltage of a second battery to supply power to a supply voltage. A first transistor is electrically connected between the supply voltage and a first node, a second transistor is electrically connected between the first node and the first battery, a third transistor is electrically connected between the supply voltage and a second node, and a fourth transistor is electrically connected between the second node and the second battery. The power supply method includes: using the first battery to supply power to the supply voltage; determining whether to switch to the second battery for power supply; when determining to switch to the second battery, first turning off the second transistor; when the second transistor is not conducting, turning on the third transistor; when the third transistor is conducting, turning off the first transistor; and when the first transistor is not conducting, turning on the fourth transistor, so that the second battery supplies power to the supply voltage.
[0012] According to an embodiment of the present invention, the first transistor further includes a first parasitic diode, and includes a first anode terminal and a first cathode terminal, wherein the first anode terminal is electrically connected to the first first terminal, and the first cathode terminal is electrically connected to the first second terminal. The second transistor further includes a second parasitic diode, and includes a second anode terminal and a second cathode terminal, wherein the second anode terminal is electrically connected to the second first terminal, and the second cathode terminal is electrically connected to the second second terminal. The third transistor further includes a third parasitic diode, and includes a third anode terminal and a third cathode terminal, wherein the third anode terminal is electrically connected to the third first terminal, and the third cathode terminal is electrically connected to the third second terminal. The fourth transistor further includes a fourth parasitic diode, and includes a fourth anode terminal and a fourth cathode terminal, wherein the fourth anode terminal is electrically connected to the fourth first terminal, and the fourth cathode terminal is electrically connected to the fourth second terminal. The second transistor is not turned on first, so that the second parasitic diode prevents the supply voltage from charging the second battery. The second parasitic diode prevents the supply voltage from charging the second battery. When the second transistor is not conducting and the third transistor is conducting, the second parasitic diode and the fourth parasitic diode are used to select the one with the highest voltage between the first battery and the second battery to supply the supply voltage. The first transistor, the second transistor, the third transistor and the fourth transistor are controlled to be conducting or not conducting through the first control terminal, the second control terminal, the third control terminal and the fourth control terminal.
[0013] According to one embodiment of the present invention, the step of determining whether to switch to the second battery for power supply further includes: detecting the first battery voltage of the first battery; detecting the second battery voltage of the second battery; and when the first battery voltage is less than the second battery voltage, determining to switch to the second battery for power supply.
[0014] According to an embodiment of the present invention, the supply voltage is used to power a motor drive circuit, wherein the motor drive circuit drives a motor according to the supply voltage, wherein the power supply method further includes: determining whether an output current of the supply voltage exceeds a predetermined current; when it is determined that the output current exceeds the predetermined current, first turning off the second transistor, then turning on the third transistor, then turning off the first transistor, and then turning on the fourth transistor, so that the second battery supplies power to the supply voltage; when the output current is not lower than the predetermined current, continuing to use the second battery for power supply; when using the second battery for power supply, determining whether the output current is lower than the predetermined current; when the output current is lower than the predetermined current, using the first battery for power supply; when the output current is not lower than the predetermined current, continuing to use the second battery for power supply; determining whether to stop driving the motor; when it is determined that the motor is not stopped driving, executing the step of determining whether the output current of the supply voltage exceeds the predetermined current; and when it is determined that the motor is stopped driving, terminating the power supply method. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a block diagram showing an electronic device according to an embodiment of the present invention;
[0016] Figure 2 A circuit diagram showing a voltage detection circuit according to an embodiment of the present invention;
[0017] Figure 3 is a flow chart showing a power supply method according to an embodiment of the present invention;
[0018] Figure 4 is a waveform diagram showing a supply voltage according to an embodiment of the present invention;
[0019] Figure 5 is a block diagram showing an electronic device according to another embodiment of the present invention;
[0020] Figure 6 is a flow chart showing a power supply method according to another embodiment of the present invention; and
[0021] Figure 7is a flow chart showing a power supply method according to another embodiment of the present invention.
[0022] The reference numerals are described as follows:
[0023] 100, 500: Electronic devices
[0024] 110: First Battery
[0025] 120: Second battery
[0026] 130: Controller
[0027] 140: Voltage conversion circuit
[0028] 150, 200: Voltage detection circuit
[0029] 160: Current detection circuit
[0030] 300, 600, 700: Power supply method
[0031] 400: Waveform
[0032] 510: Motor drive circuit
[0033] 520: Motor
[0034] Q1: First transistor
[0035] Q2: Second transistor
[0036] Q3: The third transistor
[0037] Q4: The fourth transistor
[0038] Q5: The fifth transistor
[0039] Q6: The sixth transistor
[0040] D1: The first diode
[0041] D2: Second diode
[0042] VBAT1: First battery voltage
[0043] VBAT2: Second battery voltage
[0044] VDD: supply voltage
[0045] VDI: internal supply voltage
[0046] VD1: First detection voltage
[0047] VD2: Second detection voltage
[0048] N1: First node
[0049] N2: Second node
[0050] G1: First control terminal
[0051] G2: Second control terminal
[0052] G3: The third control terminal
[0053] G4: The fourth control terminal
[0054] PD1: First parasitic diode
[0055] PD2: Second parasitic diode
[0056] PD3: The third parasitic diode
[0057] PD4: The fourth parasitic diode
[0058] NA1: First anode terminal
[0059] NA2: Second anode terminal
[0060] NA3: The third anode terminal
[0061] NA4: Fourth anode terminal
[0062] NC1: First cathode terminal
[0063] NC2: Second cathode terminal
[0064] NC3: Third cathode terminal
[0065] NC4: Fourth cathode terminal
[0066] SD1: First read signal
[0067] SD2: Second read signal
[0068] SG1: First control signal
[0069] SG2: Second control signal
[0070] SG3: The third control signal
[0071] SG4: Fourth control signal
[0072] SCD: Current detection signal
[0073] IOUT: output current
[0074] R1: First resistor
[0075] R2: Second resistor
[0076] R3: The third resistor
[0077] R4: The fourth resistor
[0078] ST1: Phase 1
[0079] ST2: Stage 2
[0080] ST3: Stage 3
[0081] ST4: Stage 4
[0082] ST5: Stage 5
[0083] ST6: Stage 6
[0084] ST7: Stage 7
[0085] VF: forward conduction voltage
[0086] SMT: Motor control signal
[0087] S301~S313, S601~S608, S701~S708: Step flow DETAILED DESCRIPTION
[0088] The following description is an embodiment of the present disclosure, which is intended to illustrate the general principles of the present disclosure and should not be regarded as limiting the present disclosure, the scope of which shall be determined by the claims.
[0089] Figure 1 is a block diagram showing an electronic device according to an embodiment of the present invention. Figure 1 As shown, the electronic device 100 includes a first battery 110 , a second battery 120 , a first transistor Q1 , a second transistor Q2 , a third transistor Q3 , a fourth transistor Q4 , a controller 130 , a first diode D1 , a second diode D2 , and a voltage conversion circuit 140 .
[0090] The first battery 110 has a first battery voltage VBAT1, and the second battery 120 has a second battery voltage VBAT2. According to other embodiments of the present invention, the electronic device 100 may also include multiple batteries, and two batteries are used for explanation and description herein, but are not limited thereto in any form.
[0091] The first transistor Q1 is electrically connected between the supply voltage VDD and the first node N1, and includes a first control terminal G1 and a first parasitic diode PD1, wherein the first parasitic diode PD1 includes a first anode terminal NA1 and a first cathode terminal NC1, the first anode terminal NA1 is electrically connected to the supply voltage VDD, and the first cathode terminal NC1 is electrically connected to the first node N1.
[0092] The second transistor Q2 is electrically connected between the first node N1 and the first battery 110, and includes a second control terminal G2 and a second parasitic diode PD2. The second parasitic diode PD2 includes a second anode terminal NA2 and a second cathode terminal NC2, wherein the second anode terminal NA2 is electrically connected to the first node N1, and the second cathode terminal NC2 is electrically connected to the first battery 110.
[0093] The third transistor Q3 is electrically connected between the supply voltage VDD and the second node N2, and includes a third control terminal G3 and a third parasitic diode PD3. The third parasitic diode PD3 includes a third anode terminal NA3 and a third cathode terminal NC3, wherein the third anode terminal NA3 is electrically connected to the supply voltage VDD, and the third cathode terminal NC3 is electrically connected to the second node N2.
[0094] The fourth transistor Q4 is electrically connected between the second node N2 and the second battery 120, and includes a fourth control terminal G4 and a fourth parasitic diode PD4. The fourth parasitic diode PD4 includes a fourth anode terminal NA4 and a fourth cathode terminal NC4, wherein the fourth anode terminal NA4 is electrically connected to the second battery 120, and the fourth cathode terminal NC4 is electrically connected to the second node N2.
[0095] The controller 130 provides the first control signal SG1, the second control signal SG2, the third control signal SG3 and the fourth control signal SG4 to the first control terminal G1, the second control terminal G2, the third control terminal G3 and the fourth control terminal G4 respectively, thereby controlling the first transistor Q1, the second transistor Q2, the third transistor Q3 and the fourth transistor Q4 to be turned on or off.
[0096] The first diode D1 and the second diode D2 are used to select the higher one of the first battery voltage VBAT1 and the second battery voltage VBAT2 to provide to the voltage conversion circuit 140. The voltage conversion circuit 140 converts the higher one of the first battery voltage VBAT1 and the second battery voltage VBAT2 into the internal supply voltage VDI to power the controller 130.
[0097] like Figure 1 As shown, the electronic device 100 further includes a voltage detection circuit 150 and a current detection circuit 160. The voltage detection circuit 150 receives the first battery voltage VBAT1 according to the first read signal SD1 generated by the controller 130 to generate a first detection voltage VD1, and receives the second battery voltage VBAT2 according to the second read signal SD2 generated by the controller 130 to generate a second detection voltage VD2.
[0098] The current detection circuit 160 detects the output current IOUT of the supply voltage VDD and generates a current detection signal SCD. The controller 130 determines the magnitude of the output current IOUT according to the current detection signal SCD.
[0099] Figure 2 is a circuit diagram showing a voltage detection circuit according to an embodiment of the present invention. Figure 2 As shown, the voltage detection circuit 200 includes a first resistor R1, a second resistor R2, a fifth transistor Q5, a third resistor R3, a fourth resistor R4 and a sixth transistor Q6. According to one embodiment of the present invention, Figure 2 The voltage detection circuit 200 corresponds to Figure 1 The voltage detection circuit 150 is provided.
[0100] like Figure 2 As shown, the first resistor R1 is electrically connected between the first battery voltage VBAT1 and the first detection voltage VD1. The second resistor R2 is electrically connected to the first detection voltage VD1. The fifth transistor Q5 electrically connects the second resistor R2 to the ground terminal according to the first read signal SD1.
[0101] The third resistor R3 is electrically connected between the second battery voltage VBAT2 and the second detection voltage VD2. The fourth resistor R4 is electrically connected to the second detection voltage VD2. The sixth transistor Q6 electrically connects the fourth resistor R4 to the ground terminal according to the second read signal SD2.
[0102] According to one embodiment of the present invention, when Figure 1 When the first read signal SD1 and the second read signal SD2 output by the controller 130 are at a high logic level, the fifth transistor Q5 and the sixth transistor Q6 are turned on, the first battery voltage VBAT1 is divided by the first resistor R1 and the second resistor R2 to generate the first detection voltage VD1, and the second battery voltage VBAT2 is divided by the third resistor R3 and the fourth resistor R4 to generate the second detection voltage VD2. Figure 1 The controller 130 determines the voltage levels of the first battery voltage VBAT1 and the second battery voltage VBAT2 according to the first detection voltage VD1 and the second detection voltage VD2.
[0103] According to another embodiment of the present invention, when the first read signal SD1 and the second read signal SD2 are at a low logic level, the fifth transistor Q5 and the sixth transistor Q6 are turned off to reduce power consumption.
[0104] Figure 3 is a flow chart showing a power supply method according to an embodiment of the present invention. Figure 43 is a waveform diagram showing a supply voltage according to an embodiment of the present invention. Figure 1 The electronic device 100, Figure 3 The waveform diagram 300 and Figure 4 In addition, the following description is made by taking the second battery voltage VBAT2 being greater than the first battery voltage VBAT1 as an example, but the present invention is not limited thereto in any form.
[0105] like Figure 3 As shown, Figure 1 The controller 130 uses the first battery 110 to supply power (step S301). Here, the explanation is given by first using the first battery 110 to supply power, and is not limited to this in any form. Figure 4 As shown, in the first stage ST1 , the supply voltage VDD is the first battery voltage VBAT1 .
[0106] Next, the controller 130 determines whether to switch to the second battery for power supply (step S302). According to one embodiment of the present invention, the controller 130 may determine whether to switch to the second battery 120 for power supply according to whether the second battery voltage VBAT2 is higher than the first battery voltage VBAT1. According to one embodiment of the present invention, if Figure 1 As shown, the controller 130 utilizes the first read signal SD1 and the second read signal SD2 to enable the voltage detection circuit 150 to receive the first battery voltage VBAT1 and the second battery voltage VBAT2 to generate the first detection voltage VD1 and the second detection voltage VD2 .
[0107] According to an embodiment of the present invention, the controller 130 Figure 2 The first detection voltage VD1 and the second detection voltage VD2 generated by the voltage detection circuit 200 are used to determine the magnitude relationship between the first battery voltage VBAT1 and the second battery voltage VBAT2. When the first battery 110 and the second battery 120 are batteries of the same type, the battery with a higher voltage has more power, so the controller 130 can select the battery with a higher voltage to supply power, thereby protecting the battery with a lower voltage from over-discharge.
[0108] According to another embodiment of the present invention, the controller 130 can determine whether to switch to the second battery 120 for power supply according to whether the output current IOUT of the supply voltage VDD exceeds a predetermined current and the discharge current specifications of the first battery 110 and the second battery 120. Figure 1As shown, the controller 160 can obtain the magnitude of the output current IOUT according to the current detection signal SCD, and select a suitable battery for power supply according to the discharge current specifications of the first battery 110 and the second battery 120 .
[0109] According to other embodiments of the present invention, the controller 130 may determine whether to switch the second battery 120 to supply power according to the battery health status (State of Health, SOH), battery power and / or battery temperature of the first battery 110 and the second battery 120. For example, the controller 130 may use the communication interface ( Figure 1 Not shown), such as a controller area network (CAN or CAN bus), obtains the battery health status, battery power and temperature of the first battery 110 and the second battery 120, and then selects the battery with the best condition to supply power, while allowing the battery with a slightly worse condition to return to a normal state.
[0110] When Figure 3 When it is determined in step S302 that the second battery 120 is not switched to supply power, the controller 130 does not operate, so that the first battery 110 continues to supply power (step S303). Figure 3 When the second battery 120 is switched to supply power in step S302, the controller 130 uses the second control signal SG2 to turn off the second transistor Q2 (step S304), so that the first battery 110 supplies power to the supply voltage VDD through the second parasitic diode PD2. Figure 4 As shown, in the second stage ST2, the supply voltage VDD is the first battery voltage VBAT1 minus the forward conduction voltage VF, wherein it is assumed that the forward conduction voltages of the first parasitic diode PD1, the second parasitic diode PD2, the third parasitic diode PD3 and the fourth parasitic diode PD4 are all the same and are all the forward conduction voltage VF.
[0111] like Figure 3 As shown, the controller 130 then uses the third control signal SG3 to turn on the third transistor Q3 (step S305). Figure 4 As shown, since the second battery voltage VBAT2 is greater than the first battery voltage VBAT1, in the third stage ST3, the supply voltage VDD is the second battery voltage VBAT2 minus the forward conduction voltage VF. Figure 1As shown, since the first transistor Q1 and the third transistor Q3 are turned on, the second parasitic diode PD2 and the fourth parasitic diode PD4 are used to select the larger of the first battery voltage VBAT1 and the second battery voltage VBAT2 to output as the supply voltage VDD. In this embodiment, the second parasitic diode PD2 is also used to prevent the supply voltage VDD from charging the first battery 110.
[0112] like Figure 3 As shown, the controller 130 then uses the first control signal SG1 again to turn off the first transistor Q1 (step S306). Figure 4 As shown, when the first transistor Q1 is not turned on, the supply voltage VDD is still the second battery voltage VBAT2 minus the forward conduction voltage VF (third stage ST3).
[0113] like Figure 3 As shown, the controller 130 then uses the fourth control signal SG4 to turn on the fourth transistor Q4 (step S307). Figure 4 As shown, in the fourth stage ST4, since the fourth transistor Q4 is turned on, the supply voltage VDD is equal to the second battery voltage VBAT2. In addition, the supply voltage VDD in the fourth stage ST4 gradually decreases over time. In this embodiment, the supply voltage VDD (that is, the second battery voltage VBAT2) decreases to be lower than the first battery voltage VBAT1 in the fourth stage ST4.
[0114] like Figure 3 As shown, the controller 130 then determines whether to switch to the first battery 110 for power supply (step S308). According to some embodiments of the present invention, the controller 130 may determine whether to switch to the first battery 110 for power supply based on the battery voltage, the output current IOUT, the discharge current specification of the battery, the battery health status, the battery power and / or the temperature.
[0115] When Figure 3 When the controller 130 determines that the power supply is not switched to the first battery 110, the controller 130 does not operate, so that the second battery 120 continues to supply power (step S309), and returns to step S308. Figure 3 When the first battery 110 is switched to supply power in step S308, the controller 130 uses the fourth control signal SG4 to turn off the fourth transistor Q4 (step S310), and the fourth parasitic diode PD4 is turned on. Since the fourth parasitic diode PD4 is turned on, the supply voltage VDD drops to the second battery voltage VBAT2 minus the forward conduction voltage VF in the fifth stage ST5.
[0116] like Figure 3As shown, the controller 130 then uses the first control signal SG1 to turn on the first transistor Q1 (step S311). Figure 4 As shown, in the sixth stage ST6, since the second parasitic diode PD2 and the fourth parasitic diode PD4 are turned on and the first battery voltage VBAT1 is greater than the second battery voltage VBAT2, the supply voltage VDD is equal to the first battery voltage VBAT1 minus the forward conduction voltage VF.
[0117] like Figure 3 As shown, the controller 130 then uses the third control signal SG3 to turn off the third transistor Q3 (step S312). Figure 4 As shown, when the third transistor Q3 is not turned on, the supply voltage VDD still maintains the first battery voltage VBAT1 minus the forward conduction voltage VF (ie, the sixth stage ST6 ).
[0118] like Figure 3 As shown, the controller 130 then uses the second control signal SG2 to turn on the second transistor Q2 (step S313). Figure 4 As shown, in the seventh stage ST7, since the second transistor Q2 is turned on, the supply voltage VDD is equal to the first battery voltage VBAT1.
[0119] like Figure 1 , Figure 3 as well as Figure 4 As shown, the controller 130 switches the first battery 110 and the second battery 120 to supply power to the supply voltage VDD by controlling the first transistor Q1, the second transistor Q2, the third transistor Q3 and the fourth transistor Q4 to be turned on or off. In addition, the second parasitic diode PD2 and the fourth parasitic diode PD4 are used to prevent the supply voltage VDD from charging the first battery 110 or the second battery 120, and when necessary, the higher of the first battery voltage VBAT1 and the second battery voltage VBAT2 is selected to supply power to the supply voltage VDD.
[0120] Figure 5 FIG. 5 is a block diagram showing an electronic device according to another embodiment of the present invention. Figure 1 Compared with the electronic device 100, the electronic device 500 further includes a motor driving circuit 510 and a motor 520, wherein the controller 130 selects one of the first battery voltage VBAT1 and the second battery voltage VBAT2 as the supply voltage VDD, and uses the supply voltage VDD to power the motor driving circuit 510. The controller 130 further outputs a motor control signal SMT, so that the motor driving circuit 510 drives the motor 520 according to the supply voltage VDD and the motor control signal SMT.
[0121] Figure 6 FIG. 1 is a flow chart showing a power supply method according to another embodiment of the present invention. Figure 6 The description of the flowchart 600 will be paired with Figure 5 The electronic device 500 is shown in FIG. 1 for detailed description.
[0122] like Figure 6 As shown, the controller 130 uses the motor control signal SMT to start the motor driving circuit 510 (step S601). Then, the controller 130 reads the battery information of the first battery 110 and the second battery 120 (step S602). According to one embodiment of the present invention, the controller 130 can communicate with the first battery 110 and the second battery 120 through the communication interface ( Figure 5 Not shown), such as a controller area network, to obtain the battery health status, battery power and temperature of the first battery 110 and the second battery 120.
[0123] like Figure 6 As shown, the controller 130 selects one of the first battery 110 and the second battery 120 for power supply (step S603). According to one embodiment of the present invention, when the first battery 110 is a preset battery, step S603 is to select the first battery 110 for power supply so that the supply voltage VDD is equal to the first battery voltage VBAT1. The following is an explanation using the first battery 110 as a preset battery as an example, and is not limited to this in any form. Taking an electric-assisted bicycle as an example, the first battery 110 is a battery originally installed on the bicycle, and the second battery 120 is an additional backup battery, so the first battery 110 is a preset battery.
[0124] When the supply voltage VDD is generated, the controller 130 controls the motor driving circuit 510 to start the motor 520 through the motor control signal SMT (step S604). Subsequently, the controller 130 determines whether to switch the battery for power supply according to the battery status of the first battery 110 and the second battery 120 (step S605). When the judgment in step S605 is yes, the controller 130 switches the second battery for power supply by controlling the first transistor Q1, the second transistor Q2, the third transistor Q3 and the fourth transistor Q4 (step S606). When the judgment in step S605 is no, the controller 130 continues to use the first battery 110 for power supply (step S607).
[0125] According to an embodiment of the present invention, the controller 130 can obtain the first battery voltage VBAT1 and the second battery voltage VBAT2 according to the first read signal SD1 and the second read signal SD2 generated by the voltage detection circuit 150, and decide whether to switch to the second battery 120 for power supply according to the magnitude relationship between the first battery voltage VBAT1 and the second battery voltage VBAT2. For example, when the first battery 110 and the second battery 120 are batteries of the same type, a higher battery voltage represents that the battery has a higher battery power. When the voltage of the first battery 110 currently supplying power drops to a threshold value, the controller 130 determines that the power of the first battery 110 is about to run out, and therefore decides to switch to the second battery 120 for power supply.
[0126] According to another embodiment of the present invention, the controller 130 may determine whether to switch to the second battery 120 for power supply according to the battery information obtained in step S602. For example, when the temperature of the first battery 110 is higher than the threshold temperature, the controller 130 decides to switch to the second battery 120 for power supply; when the battery health status of the first battery 110 is lower than the threshold value, the controller 130 decides to switch to the second battery 120 for power supply; when the first battery 110 is lower than a threshold value, the controller 130 decides to switch to the second battery 120.
[0127] In other words, in step S605, the controller 130 selects the most suitable battery for power supply according to the status of the battery, which not only provides the best power quality for the motor 520, but also provides a chance for the battery in a poor status to recover.
[0128] According to an embodiment of the present invention, when the controller 130 switches from the first battery 110 to the second battery 120 for power supply in step S606, the controller 130 executes Figure 3 According to another embodiment of the present invention, when the controller 130 switches the second battery 120 to the first battery 110 for power supply in step S607, the controller 130 executes Figure 3 The steps S310 to S313 are performed to smoothly switch the second battery 120 to the first battery 110, which will not be repeated here.
[0129] After step S606 and step S607, the controller 130 determines whether to continue driving the motor 520 (step S608). When the controller 130 determines to continue driving the motor 520, the controller 130 controls the motor driving circuit 510 to continue driving the motor 520 through the motor control signal SMT, and returns to step S605. When the controller 130 determines to stop driving the motor 520, the controller 130 controls the motor driving circuit 510 to stop driving the motor 520 through the motor control signal SMT, and ends the power supply method 600.
[0130] Figure 7 FIG. 1 is a flow chart showing a power supply method according to another embodiment of the present invention. Figure 7 The description of the flowchart 700 will be paired with Figure 5 The electronic device 500 is shown in FIG. 1 for detailed description.
[0131] like Figure 7 As shown, steps S701 to S704 correspond to Figure 6 The steps S601 to S604 are not repeated here. In step S705, the controller 130 obtains the magnitude of the output current IOUT of the supply voltage VDD according to the current detection signal SCD of the current detection circuit 160, and determines whether the output current IOUT exceeds the predetermined current (step S705). When the judgment in step S705 is yes, the controller 130 uses another battery for power supply (step S706). When the judgment in step S705 is no, the controller 130 uses the preset battery for power supply (step S707).
[0132] According to an embodiment of the present invention, the controller 130 selects the first battery 110 for power supply in step S703, and learns in step S702 that the discharge current specification of the second battery 120 is better than the discharge current specification of the first battery 110, so after judging yes in step S705, the controller 130 switches to the second battery 120 for power supply to facilitate providing the output current IOUT required by the motor 520. According to an embodiment of the present invention, the first battery 110 is a lithium-ion battery, and the second battery 120 is a lithium iron battery, so the discharge current of the second battery 120 is greater than the discharge current of the first battery 110.
[0133] According to an embodiment of the present invention, when the controller 130 executes step S706 to switch the first battery 110 to the second battery 120 for power supply, the controller 130 executes Figure 3 According to another embodiment of the present invention, when the controller 130 executes step S707 and switches the second battery 120 to the first battery 110 for power supply, the controller 130 executes Figure 3Steps S310 to S313.
[0134] After step S706 and step S707, the controller 130 determines whether to continue driving the motor 520 (step S708). When the controller 130 determines to continue driving the motor 520, the controller 130 controls the motor driving circuit 510 to continue driving the motor 520 through the motor control signal SMT, and returns to step S705. When the controller 130 determines to stop driving the motor 520, the controller 130 controls the motor driving circuit 510 to stop driving the motor 520 through the motor control signal SMT, and ends the power supply method 700.
[0135] The present invention proposes an electronic device powered by more than two batteries and a power supply method for switching different batteries for power supply. By using transistors that sequentially turn on and off the batteries for power supply, the power supply from one battery is smoothly switched to another battery for power supply. In addition, the power supply can also be switched to a more suitable battery for power supply according to the battery status and / or output current to maintain a better power quality.
[0136] Although the embodiments and advantages of the present invention have been disclosed above, it should be understood that anyone with ordinary knowledge in the art can make changes, substitutions and modifications without departing from the spirit and scope of the present invention.
Claims
1. An electronic device for battery management, comprising: a first battery having a first battery voltage; a second battery having a second battery voltage; a first transistor electrically connected between a supply voltage and a first node and comprising a first parasitic diode; a second transistor electrically connected between the first node and the first battery and comprising a second parasitic diode, wherein the first parasitic diode and the second parasitic diode are used to provide the maximum of the first battery voltage and the supply voltage to the first node; a third transistor electrically connected between the supply voltage and a second node and comprising a third parasitic diode; a fourth transistor electrically connected between the second node and the second battery and comprising a fourth parasitic diode, wherein the third parasitic diode and the fourth parasitic diode are used to provide the maximum of the second battery voltage and the supply voltage to the second node; as well as A controller switches the supply voltage from the first battery voltage to the second battery voltage by sequentially turning off the second transistor, turning on the third transistor, turning off the first transistor, and turning on the fourth transistor.
2. The electronic device as claimed in claim 1, wherein the first transistor comprises a first first terminal, a first second terminal and a first control terminal, and the first parasitic diode comprises a first anode terminal and a first cathode terminal, wherein the first anode terminal is electrically connected to the first first terminal, and the first cathode terminal is electrically connected to the first second terminal; The second transistor includes a second first terminal, a second second terminal and a second control terminal, and the second parasitic diode includes a second anode terminal and a second cathode terminal, wherein the second anode terminal is electrically connected to the second first terminal, and the second cathode terminal is electrically connected to the second second terminal; The third transistor includes a third first terminal, a third second terminal and a third control terminal, and the third parasitic diode includes a third anode terminal and a third cathode terminal, wherein the third anode terminal is electrically connected to the third first terminal, and the third cathode terminal is electrically connected to the third second terminal; The fourth transistor includes a fourth first end, a fourth second end and a fourth control end, and the fourth parasitic diode includes a fourth anode end and a fourth cathode end, wherein the fourth anode end is electrically connected to the fourth first end, and the fourth cathode end is electrically connected to the fourth second end.
3. The electronic device as claimed in claim 1, wherein when the second transistor is not turned on, the second parasitic diode is used to prevent the supply voltage from charging the first battery; When the third transistor is turned on after the second transistor is turned off, the fourth parasitic diode is used to prevent the supply voltage from charging the second battery.
4. The electronic device as claimed in claim 1, further comprising: A voltage detection circuit, comprising: a first resistor, electrically connected between the first battery voltage and a first detection voltage; A second resistor electrically connected to the first detection voltage; a fifth transistor, electrically connecting the second resistor to a ground terminal according to a first read signal; a third resistor electrically connected between the second battery voltage and a second detection voltage; a fourth resistor electrically connected to the second detection voltage; and a sixth transistor, electrically connecting the fourth resistor to the ground terminal according to a second read signal; The controller uses the first read signal and the second read signal to control the voltage detection circuit to generate the first detection voltage and the second detection voltage; wherein the controller determines the first battery voltage according to the first detection voltage, and determines the second battery voltage according to the second detection voltage; When the controller determines that the second battery voltage exceeds the first battery voltage, the controller switches the supply voltage from the first battery voltage to the second battery voltage.
5. The electronic device as claimed in claim 1, wherein the supply voltage is used to power a motor driving circuit, wherein the motor driving circuit drives a motor according to the supply voltage; The controller further reads the battery information of the first battery and the second battery and detects an output current of the supply voltage; When the output current exceeds a predetermined current, the controller utilizes the first transistor, the second transistor, the third transistor and the fourth transistor to output the second battery voltage as the supply voltage.
6. The electronic device as claimed in claim 5, further comprising: a current detection circuit, used to detect the output current and generate a current detection signal; The controller determines whether the output current exceeds the predetermined current according to the current detection signal.
