1. Technical Field
The present disclosure relates to a control system for a battery.
2. Description of Related Art
Portable devices use batteries as a power source. While lifetime of the battery is strongly related with charge times of the battery, the more times the battery charges, the shorter life time the battery has. However, the battery automatically charges when the portable device is connected to an external power source, even if the power of the battery may operate for a long time for the portable device. This will shorten the life time of the battery.
Therefore, there is room for improvement in the art.
Many aspects of the present disclosure can be better understood with reference to the following drawing(s). The components in the drawing(s) are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawing(s), like reference numerals designate corresponding parts throughout the several views.
The adapter 50 converts an alternating current (AC) power source into a direct current (DC) power source when the adapter 50 is connected to the AC power source.
The BBU 10 includes a battery 100 and a controller 102. The controller 102 transmits a rest voltage and a rated voltage of the battery 100 and state of the battery 100 to the CPLD 20. In the embodiment, the controller 102 obtains the state of the battery 100, such as a charge state or a discharge state. The controller 102 controls the battery 100 to charge when the controller 102 receives a voltage. In the embodiment, the controller 102 is a microprocessor.
The CPLD 20 is connected to the BBU 10, to obtain the rest voltage, the rated voltage, and the state of the battery 100. The CPLD 20 further determines whether to output a control signal to the first switch circuit 30 according to a predetermined rate about the rest voltage and the rated voltage of the battery 100 and the state of the battery 100. For example, if the predetermined rate is 30 percent of the rated voltage of the battery 100 pre-defined by a user, that is a rate between the rest voltage and the rated voltage of the battery 100 is 0.3. When the rate between the rest voltage and the rated voltage is less than the predetermined rate, the CPLD 20 outputs a high level control signal, such as logic 1, to the first switch circuit 30. The first switch circuit 30 is turned on, thereby enabling the adapter 50 to charge the battery 100 of the BBU 10. When the rate between the rest voltage and the rated voltage is greater than or equal to 0.3, and the battery 100 is in a charge state, the CPLD 20 keeps outputting the high level control signal to the first switch circuit 30 until the battery 100 charges fully. While the rate between the rest voltage and the rated voltage is greater than or equal to 0.3, and the battery 100 is in a discharge state. The CPLD 20 outputs a low level control signal, such as logic 0, to turn off the first switch circuit 30, thereby disconnecting the adapter 50 from the battery 100 to avoid charging the battery 100. In the embodiment, the CPLD 20 obtains the rest voltage, the rated voltage, and the state of the battery 100 through an inter-integrated circuit (I2C) bus 200.
On a condition that the predetermined rate is very small, such as 5 percent of the rated voltage of the battery 100, it indicates that the predetermined rate may be unreasonable. For example, if the predetermined rate is less than a safe rate of the battery 100, the BBU 100 will still output voltage until the rest voltage is less than a voltage corresponding to the small predetermined rate, which can cause damage to the battery 10. In order to avoid the battery 10 from damage of the unreasonable predetermined rate, the second switch circuit 40 is automatically turned on when an actual rate between the rest voltage and the rated voltage of the battery 100 is less than the safe rate. Thereby enabling the adapter 50 to provide voltage to the battery 100 through the second switch circuit 40, to charge the battery 100.
The second switch circuit 40 includes there electronic switches Q2, Q4, and Q5, and four resistors R3-R6. A first terminal of the electronic switch Q4 is coupled to the voltage output terminal BBU_OUT of the BBU 10 through the resistor R3. A second terminal of the electronic switch Q4 is grounded, and is coupled to the first terminal of the electronic switch Q4 through the resistor R4. A third terminal of the electronic switch Q4 is coupled to a first terminal of the electronic switch Q5. The first terminal of the electronic switch Q5 is also coupled to the voltage output terminal BBU_OUT of the BBU 10 through the resistor R5. A second terminal of the electronic switch Q5 is grounded. A third terminal of the electronic switch Q5 is coupled to the voltage output terminal BBU_OUT of the BBU 10 through the resistor R6, and is coupled to a first terminal of the electronic switch Q2. A second terminal of the electronic switch Q2 is coupled to the charging terminal adapter of the adapter 50. A third terminal of the electronic switch Q2 is coupled to the voltage input terminal 12V_IN of the BBU 10. When the first terminals of the electronic switches Q4 and Q5 are at a high level, the electronic switches Q4 and Q5 are turned on, and when the first terminals of the electronic switches Q4 and Q5 are at a low level, the electronic switch Q4 and Q5 are turned off. When the first terminal of the electronic switch Q2 is at a high level, the electronic switch Q2 is turned off, and when the first terminal of the electronic switch Q2 is at a low level, the electronic switch Q2 is turned on. In the embodiment, the electronic switch Q5 is an NMOSFET, where a gate, a source, and a drain of the NMOSFET are respectively the first, the second, and the third terminals of the electronic switch Q5. The electronic switch Q2 is a PMOSFET, where a gate, a source, and a drain of the PMOSFET are respectively the first, the second, and the third terminals of the electronic switch Q2. The electronic switch Q4 is an npn transistor, where a base, an emitter, and a collector of the npn transistor are respectively the first, the second, and the third terminals of the electronic switch Q4.
The CPLD 20 determines whether the predetermined rate is less than the safe rate. If the predetermined rate is greater than or equal to the safe rate, the CPLD 20 further determines whether the actual rate between the rest voltage and the rated voltage of the battery 100 is less than the predetermined rate. If the actual rate is less than the predetermined rate, the CPLD 20 outputs the high level control signal to the first terminal of the electronic switch Q3. The electronic switch Q3 is turned on, and the third terminal of the electronic switch Q3 is at a low level, so does the first terminal of the electronic switch Q1. The electronic switch Q1 is turned on. Hence, the adapter 50 outputs voltage to the voltage input terminal 12V_IN of the BBU 10 through the charging terminal of the adapter 50. The controller 102 then controls the battery 100 to charge. In a meanwhile, the BBU 10 outputs voltage through the voltage output terminal BBU_OUT. The first terminal of the electronic switch Q4 of the second switch circuit 40 is at a high level, and the electronic switch Q4 is turned on. The third terminal of the electronic switch Q4 is at a low level, so does the first terminal of the electronic switch Q5. The electronic switch Q5 is turned off. Accordingly, the adapter 50 provides voltage to the BBU 10 through the first electronic switch 30, but not the second electronic switch circuit 40. When the actual rate between the rest voltage and the rated voltage is greater than or equal to the predetermined rate, and if the CPLD 10 determines that the battery 100 is in the charge state. The CPLD 10 outputs the high level control signal to the first switch circuit 30, thereby maintaining the adapter 50 providing voltage to the BBU 10 through the first switch circuit 30. Alternatively, when the actual rate between the rest voltage and the rated voltage is greater than or equal to the predetermined rate, and if the CPLD 10 further determines that the battery 100 is in the discharge state. The CPLD 10 outputs the low level control signal to the first terminal of the electronic switch Q3 of the first switch circuit 30. The electronic switch Q3 is turned off, and the third terminal of the electronic switch Q3 is at a high level, so the first terminal of the electronic switch Q1 closes. The electronic switch Q1 is turned off. Accordingly, the adapter 50 cannot provide voltage to the BBU 10 through the first switch circuit 30, avoiding the charging of the battery 100, thus, decreasing charge times of the battery 100.
When the CPLD 20 determines that the predetermined rate is less than the safe rate, it indicates that the predetermined rate may be unreasonable. For example, the predetermined rate may be defined as 0.05 by a user, while the safe rate of the battery 100 may be 0.1. The CPLD 20 then determines whether the actual rate is less than the safe rate. If the actual rate is less than the safe rate and greater than the predetermined rate, when the voltage output by the BBU 10 through the voltage output terminal BBU_OUT is decreasing, the electronic switch Q4 is turned off on a condition that the voltage of the first terminal of the electronic switch Q4 is at a low level, such as logic 0. The first terminal of the electronic switch Q5 is at a high level, and the electronic switch Q5 is turned on. The third terminal of the electronic switch Q5 is at a low level, so is the first terminal of the electronic switch Q2. The electronic switch Q2 is turned on, so that the adapter 10 can provide voltage through the second switch circuit 40, and the controller 102 controls the battery 100 to charge. Accordingly, the adapter 50 can still provide voltage to the BBU 10 through the second switch circuit 40 even though the predetermined rate is unreasonable, which may avoid the battery 100 from being damage. In the meanwhile, the CPLD 20 further determines whether the adapter 50 charges the battery 100 of the BBU 10 for a predetermined time. The CPLD 20 further outputs the high level control signal to the first switch circuit 30 at the end of the first predetermined time, to control the adapter 50 to charge the battery 100 through the first switch circuit 30. The voltage of the first terminal of the electronic switch Q4 will become greater and greater during the predetermined time. When the voltage of the first terminal of the electronic switch Q4 reaches a high level, the electronic switch Q4 is turned on, the electronic switch Q5 is turned off, and the electronic switch Q2 is turned off, so that the second electronic switch circuit 40 will not provide the charge routine for the adapter 50. Accordingly, the CPLD 20 outputs the high level control signal to the first switch circuit 30 before the second switch circuit 40 is turned off, controlling the adapter 50 to charge the battery 100 of the BBU 10 through the first switch circuit 30.
In step S1, a predetermined rate is pre-defined.
In step S2, the CPLD 20 determines whether the predetermined rate is less than the safe rate of the battery 100. If the predetermined rate is less than the safe rate of the battery 100, step S8 is implemented. Otherwise, if the predetermined rate is greater than or equal to the safe rate, step S3 is implemented.
In step S3, the CPLD 20 determines whether the actual rate between the rest voltage and the rated voltage of the battery 100 is less than the predetermined rate. If the actual rate is less than the predetermined rate, step S5 is implemented. Otherwise, if the actual rate is greater than or equal to the predetermined rate, step S4 is implemented.
In step S4, the CPLD 20 determines whether the battery 100 is in the charge state. If the battery 100 is in the charge state, step S6 is implemented. Otherwise, if the battery 10 is in the discharge state, step S7 is implemented.
In step S5, the CPLD 20 outputs the high level control signal to the first switch circuit 30, to enable the adapter 50 to charge the battery 100 through the first switch circuit.
In step S6, the CPLD 20 keeps outputting the high level control signal to the first switch circuit 30, thereby maintaining the battery 100 in the charge state.
In step S7, the CPLD 20 outputs the low level control signal to the first switch circuit 30, thereby maintaining the battery 100 in the discharge state.
In step S8, the CPLD 20 determines if the actual rate is less than the safe rate. When the actual rate is less than the safe rate, step S9 is implemented. Otherwise, if the actual rate is greater than or equal to the safe rate, step S8 is repeated.
In step S9, the second switch circuit 40 is turned on automatically, thereby enabling the adapter 50 to charge the battery 100 through the second switch circuit 40.
In step S10, the CPLD 20 outputs the high level control signal to the first switch circuit 30 before the second switch circuit 40 is turned off, to control the adapter 50 to charge the battery 100 through the first switch circuit 30.
While the disclosure has been described by way of example and in terms of a preferred embodiment, it is to be understood that the disclosure is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the range of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
2012104434284 | Nov 2012 | CN | national |