1. Technical Field
Embodiments of the present disclosure relate to a device for measuring an output voltage of a battery in an electronic device.
2. Description of Related Art
Batteries, especially rechargeable batteries, such as nickel-hydrogen storage batteries, lithium-ion batteries, etc., are widely used as power sources for various electronic devices. When the output voltage of a battery used by an electronic device is too small to drive the electronic device, the electronic device cannot work. Therefore, it is required to timely measure and indicate the output voltage across the battery terminals. Many electronic devices use a main/central processing unit chip, such as a microcontroller (MCU), to monitor and measure the output voltage of the battery. This function needs one or two dedicated ports of the MCU. Thus less ports are free and the MCU is not as efficient.
Therefore, an independent device for measuring the output voltage of a battery is needed.
Many aspects of the embodiments can be better understood with references to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Referring to
The device 200 includes a detecting unit 201, an encoding unit 202, a control unit 203, and a processing unit 204. The detecting unit 201 is configured to detect the output voltage of the battery 100, and generate a first signal, a second signal, and a third signal accordingly. In the embodiment, the first, second, and third signals are voltages which are in proportion to the output voltage of the battery 100. The first signal is always greater than the second signal. The third signal is always greater than the first signal.
The encoding unit 202 is configured to generate a first code and a second code according to the first signal and the second signal. In the embodiment, the first code is logic “0” when the first signal is greater than a reference voltage, and is logic “1” when the first signal is lower than the reference voltage. The second code is logic “0” when the second signal is greater than the reference voltage, and is logic “1” when the second signal is lower than the reference voltage.
The control unit 203 is configured to modify the second code when the third signal indicates that the output voltage of the battery 100 is lower than a third preset value. In the embodiment, when the output voltage is lower than the third preset value, the first and second signals are both lower than the reference voltage, and the control unit 203 sets the second code to logic “0”.
The processing unit 204 is configured to generate and output display control signals according to the first and second codes. The display control signals are used to control the display panel 300 to display the voltage level of the battery 100. In the embodiment, the processing unit 204 includes a digital signal processing integrated circuit (DSP IC).
Referring to
The encoding unit 202 includes an integrated circuit (IC) 21 and a seventh resistor R7. The IC 21 is integrated with a first operational amplifier (op-amp) 211 and a second op-amp 212. The IC 21 also includes eight pins 21a-21h. Pin 21a is connected to the inverting input terminal of the first op-amp 211, and is configured to receive the first signal. Pin 21b is connected to the inverting input terminal of the second op-amp 212, and is configured to receive the second signal. Pin 21c is connected to the output terminal of the first op-amp 211 to output the first code. Pin 21d is connected to the output terminal of the second op-amp 212 to output the second code. Pin 21e is connected to the non-inverting input terminal of the first op-amp 211 and a power supply 22 via the seventh resistor R7. Pin 21f is connected to the non-inverting input terminal of the second op-amp 212 and the power supply 22. Pin 21g is connected to the negative power terminal of the first and second op-amps 211, 212, and is also grounded. Pin 21h is connected to the positive power terminal of the first and second op-amps 211, 212 and is also coupled to the power supply 22. A Zener diode is connected between pin 21f and pin 21g. Thus, when the power supply 22 supplies an operation voltage to pin 21f, a voltage at pin 21f (the non-inverting input terminal of the second op-amp 212) is wired to the Zener voltage of the Zener diode, that is, the reference voltage as described above.
The control unit 203 includes a first switching component Q1, a second switching component Q2, a eighth resistor R8, and a ninth resistor R9. In the embodiment, the first and second switching components Q1, Q2 are both NPN type bipolar junction transistors. In other embodiments, the first and second switching components Q1, Q2 may be field effect transistors (FET), insulated gate bipolar transistors (IGBT), or other transistors.
The collector of the first switching component Q1 is connected to the power supply 22 to receive the operation voltage. The emitter of the first switching component Q1 is grounded via the ninth resistor R9. The base of the first switching component Q1 is connected to the third output terminal 13 of the detecting unit 201 to receive the third signal. The collector of the second switching component Q2 is connected to pin 21d and the encoding unit to modify the second code. The emitter of the second switching component Q2 is grounded. The base of the second switching component Q2 is connected to the emitter of the first switching component Q1 via the eighth resistor R8.
In operation, assuming the maximum output voltage of the battery 100 is QC. When the output voltage is greater than a first preset value, the first and second signals are both greater than the reference voltage, and the third signal is a high level voltage. Therefore, the first code and the second code are logic “0”. The processing unit 204 may control the display panel 300 to display an image of a battery including four black blocks representing or indicating the level of the output voltage of the battery. In this embodiment, when the battery is more than three-fourths charged, the four blocks fill the battery image.
When the output voltage is greater than a second preset value and lower than the first preset value, the first signal is greater than the reference voltage, the second signal is lower than the reference voltage, and the third signal is also considered as a high level voltage. Therefore, the first code is logic “0”, and the second code is logic “1”. The processing unit 204 may control the display panel 300 to display an image of the battery including three black blocks.
When the output voltage is greater than the third preset value and lower than the second preset value, the first and second signals are both lower than the reference voltage, and the third signal is also considered as a high level voltage. Therefore, the first code and the second code are both logic “1”. The processing unit 204 may control the display panel 300 to display an image of the battery including two black blocks to indicate that the battery voltage is low.
When the output voltage is lower than the third preset value, the first and second signals are both lower than the reference voltage, and the third signal becomes a low level voltage. Therefore, the first code is logic “1”, the first switching component Q1 is turned on to apply the operation voltage to the base of the second switching component Q2. Thus the second switching component Q2 is turned on to ground pin 21d. As a result, the second code is changed to logic “0”. The processing unit 204 may control the display panel 300 to display an image of the battery including one black block to indicate that the battery voltage is severely low and the battery 100 should be charged or replaced.
It is to be understood, however, that even though numerous characteristics and advantages of the present disclosure have been set forth in the foregoing description, together with details of the structure and function of the disclosure, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
2009 1 0300738 | Mar 2009 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
5587660 | Chabbert et al. | Dec 1996 | A |
5959437 | Hamaguchi | Sep 1999 | A |
6163132 | Higuchi et al. | Dec 2000 | A |
6252377 | Shibutani et al. | Jun 2001 | B1 |
6340880 | Higashijima et al. | Jan 2002 | B1 |
6897635 | Ozawa et al. | May 2005 | B2 |
7692400 | Kanouda et al. | Apr 2010 | B2 |
7960945 | Onorato et al. | Jun 2011 | B1 |
8253419 | Heeringa et al. | Aug 2012 | B2 |
20040227488 | Odaohhara | Nov 2004 | A1 |
20050225295 | Sato | Oct 2005 | A1 |
20060103349 | Yamamoto | May 2006 | A1 |
20060220461 | Miyamoto | Oct 2006 | A1 |
20070229035 | Fukute et al. | Oct 2007 | A1 |
20090058365 | Goto | Mar 2009 | A1 |
20090200986 | Kopera | Aug 2009 | A1 |
20090243621 | Kudo et al. | Oct 2009 | A1 |
20090278501 | Ho | Nov 2009 | A1 |
Number | Date | Country | |
---|---|---|---|
20100225326 A1 | Sep 2010 | US |