1. Field of the Invention
The present invention relates to a battery detection system and a related method, and, more particularly, to a battery detection system and a related method for detecting the type and remaining power of the battery.
2. Description of the Related Art
Generally, electronic device manufacturers need to provide devices that can detect the remaining electrical power in a battery being used to power the device. For example, a digital camera that indicates the amount of battery power remaining can provide to the user the number of available photos; or a digital audio recorder can provide to the user the recording time available.
The prior art technology usually measures the voltage of the battery and utilizes this voltage to estimate the remaining power of the battery according to a predetermined voltage/current relationship table. However, there are various batteries for which, without identifying the type of the battery, the measured voltage does not indicate the actual power.
Therefore, it is desirable to provide a battery detection system and related method for detecting the type and remaining power of a battery to mitigate and/or obviate the aforementioned problems.
The present invention provides a battery detection system which is placed in an electronic device and electrically coupled to a battery. The battery detection system is used to determine the type and remaining power of the battery.
The battery detection system comprises: a processor coupled to an A/D converter and an I/O control end; and a circuit comprising a switch and a load, wherein the I/O control end is used for controlling the switch to enable or disable the load.
When a current passes through the load and the load is enabled, the A/D converter obtains a first voltage value of the battery; when a current passes the load and the load is disabled, the A/D converter obtains a second voltage value of the battery; and the processor calculates the first and second voltages to obtain the type and remaining electrical power of the battery. Furthermore, the present invention also provides a battery detection method for obtaining the type and remaining electrical power of a battery in an electronic device. The method comprises following steps:
1. electrically coupling the battery to a circuit, the circuit comprising a switch and a load;
2. controlling the switch to enable the load;
3. when the load is enabled, a current passing through the load to obtain a first voltage value of the battery;
4. controlling the switch to disable the load;
5. when the load is disabled, a current passing through the load to obtain a second voltage value of the battery; and
6. comparing the first voltage value and the second voltage value to obtain the type and remaining electrical power of the battery.
In an embodiment of the present invention, the switch is a metal oxide semiconductor field effect transistor (MOSFET); the load is a resistor; and the battery type includes but not limits to Ni-MH battery, Li battery or alkaline battery.
Moreover, in the embodiment of the present invention, the method compares a voltage drop between the first voltage value and the second voltage value to a predetermined voltage drop characteristic table to obtain the type and remaining electrical power of the battery.
Other objects, advantages, and novel features of the invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
As indicated in the above discussion, when a battery has no load, it is impossible to determine the type and remaining electrical power of the battery by directly detecting the voltage of the battery.
Therefore, since various batteries have different voltage drops when driving current through the same resistance, the present invention adds a resistor and a logic gate (such as a MOSFET) in a battery detection system, and causes the battery detection system to control a current that passes through this resistor, and records the voltage value across the battery before and after enabling of the logic gate. By detecting the voltage drop of the battery, the battery can be identified as a Ni-MH battery, a Li battery or an alkaline battery. Furthermore, different batteries from different manufacturers also have different voltage drop characteristics, and thus the present invention can be used to identify the types of batteries of the different manufacturers.
Please refer to
The battery detection system 1 comprises a processor 100, an A/D converter 200, I/O control 300 and a circuit 20 having a load 400 and a switch 500. The I/O control end 300 is used for controlling the switch to enable or disable the load 400. In this embodiment, the I/O control end 300 is an I/O control pin, the switch 500 is a metal oxide semiconductor field effect transistor (MOSFET), and the load 400 is a resistor.
The battery detection system 1 utilizes the I/O control end 300 to control the switch 500 to enable the load 400; when a current passes through the load 400, the A/D converter 200 obtains a first voltage value of the battery 40. Similarly, the battery detection system 1 utilizes the I/O control end 300 to control the switch 500 to disable the load 400; when current passes the load 400 and the load 400 is disabled, the A/D converter 200 obtains a second voltage value of the battery 40.
The processor 100 calculates the first voltage value and the second voltage value and then compares them to a predetermined voltage drop characteristic table to identify whether the battery 40 is a Ni-MH battery, a Li battery or an alkaline battery and obtains the remaining electrical power in the battery 40.
The present invention also provides a battery detection method for detecting the type and remaining power of the battery. Please refer to
First, in step S21, as shown in
In step S22, the switch 500 is controlled to enable the load 400; and in step S23, when the load 400 is enabled, a current can pass through the load 400 to obtain the first voltage value of the battery 40.
Next, in step S24, the switch 500 is controlled to disable the load 400; and in step S25, when the load 400 is disabled, a current pass through the load 400 to obtain the second voltage value of the battery 40.
When the first voltage value and the second voltage value of the battery 40 are obtained, in step S26, a voltage drop between first voltage value and the second voltage value is compared with the predetermined voltage drop characteristic table to obtain the type and remaining electrical power of the battery.
Although the present invention has been explained in relation to its preferred embodiment, it is to be understood that many other possible modifications and variations can be made without departing from the spirit and scope of the invention as hereinafter claimed.
Number | Date | Country | Kind |
---|---|---|---|
094142611 | Dec 2005 | TW | national |