TWI403750B - Battery capacity calculating method and device thereof - Google Patents

Battery capacity calculating method and device thereof Download PDF

Info

Publication number
TWI403750B
TWI403750B TW100100653A TW100100653A TWI403750B TW I403750 B TWI403750 B TW I403750B TW 100100653 A TW100100653 A TW 100100653A TW 100100653 A TW100100653 A TW 100100653A TW I403750 B TWI403750 B TW I403750B
Authority
TW
Taiwan
Prior art keywords
voltage
voltage value
battery
reference voltage
value
Prior art date
Application number
TW100100653A
Other languages
Chinese (zh)
Other versions
TW201229544A (en
Inventor
Kun Jen Huang
Fong Wei Liu
Ming Kai Hsu
Original Assignee
Acer Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Acer Inc filed Critical Acer Inc
Priority to TW100100653A priority Critical patent/TWI403750B/en
Priority to CN201110078216.6A priority patent/CN102590750B/en
Publication of TW201229544A publication Critical patent/TW201229544A/en
Application granted granted Critical
Publication of TWI403750B publication Critical patent/TWI403750B/en

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The invention relates to a cell capacity caculating method, which reads a present reference capacity of a cell, and converses the reference capacity to a corresponding voltage, obtains the present voltage of the cell, accumulates the times that the voltage is continuously smaller or larger than the reference voltage, when the time that the voltage continuously smaller than the reference voltage reaches a predetermined value, the reference capacity is adjusted to a lower value according to a ratio, and when the time that the voltage continuously larger than the reference voltage reaches a predetermined value, the reference capacity is adjusted to a larger value according to a ratio. Thereby, the capacity is not changed with the change of the voltage, and the capacity value is stable and correct.

Description

電池容量計算方法及電池容量計算裝置Battery capacity calculation method and battery capacity calculation device

本發明是有關於一種電量計算方法,特別是指一種電池容量計算方法及其裝置。The invention relates to a method for calculating electric quantity, in particular to a method for calculating battery capacity and a device thereof.

目前電池容量的表現方法,通常採用電壓-電容量對照表,將電壓轉換成對應的電容量百分比,但此種做法常會有電容量準確性不足的問題。其原因在於如圖1的電池電壓(縱軸)與電容量(橫軸)對照圖所示,當系統的負載不同時,電池的放電電流會不同,使得圖1中的電壓-電容量放電對應曲線有所差異,而且當電池被以不同電流充電時,其所產生的電壓-電容量充電對應曲線也不相同,使得相同的電池電壓在不同的系統負載或充電電流下,所對應的電池容量出現明顯的差異,尤其電池的電容量和電壓是呈現非線性對應,微小的電壓變化就會使電容量出現很大的誤差,因此若採用電壓-電容量對照表的方式,電容量就會隨著電壓變動而上下跳動,導致系統無法顯示準確的電池電容量。At present, the battery capacity performance method usually uses a voltage-capacity comparison table to convert the voltage into a corresponding percentage of the capacitance, but this practice often has a problem of insufficient capacitance accuracy. The reason is that the battery voltage (vertical axis) and the capacitance (horizontal axis) are as shown in the comparison diagram of Fig. 1. When the load of the system is different, the discharge current of the battery will be different, so that the voltage-capacitance discharge in Fig. 1 corresponds to The curves are different, and when the battery is charged at different currents, the voltage-capacity charging corresponding curve is different, so that the same battery voltage is under different system load or charging current, and the corresponding battery capacity There are obvious differences, especially the battery's capacitance and voltage are nonlinear. A small voltage change will cause a large error in the capacitance. Therefore, if the voltage-capacity comparison table is used, the capacitance will follow. The voltage fluctuates up and down, causing the system to fail to display accurate battery capacity.

因此,本發明之目的,即在提供一種可以準確地呈現電池電容量的電池容量計算方法及其裝置。Accordingly, it is an object of the present invention to provide a battery capacity calculation method and apparatus thereof that can accurately present battery capacity.

為達到上述目的,本發明電池容量計算方法,包括:讀取電池目前的一基準電容量,該基準電容量對應到一基準電壓;取得電池目前的一電壓值;判斷該電壓值是否跨越該基準電壓;當判斷該電壓值跨越該基準電壓時,則累計該電壓值跨越該基準電壓的次數;當判斷該電壓值跨越該基準電壓的累計次數達到一預設值時,則按照一定比例調整該基準電容量。To achieve the above objective, the battery capacity calculation method of the present invention comprises: reading a current reference capacity of the battery, the reference capacitance corresponding to a reference voltage; obtaining a current voltage value of the battery; determining whether the voltage value crosses the reference a voltage; when determining that the voltage value crosses the reference voltage, accumulating the number of times the voltage value crosses the reference voltage; and when determining that the cumulative value of the voltage value across the reference voltage reaches a preset value, adjusting the ratio according to a certain ratio Reference capacitance.

較佳地,判斷該電壓值是否跨越該基準電壓的步驟包含:判斷該電壓值是否小於該基準電壓;以及當判斷該電壓值跨越該基準電壓時,則累計該電壓值跨越該基準電壓的次數的步驟包含:當判斷該電壓值小於該基準電壓時,則累計該電壓值小於該基準電壓的次數。Preferably, the step of determining whether the voltage value crosses the reference voltage comprises: determining whether the voltage value is less than the reference voltage; and when determining that the voltage value crosses the reference voltage, accumulating the number of times the voltage value crosses the reference voltage The step includes: when it is determined that the voltage value is less than the reference voltage, accumulating the number of times the voltage value is less than the reference voltage.

較佳地,判斷該電壓值是否跨越該基準電壓的步驟包含:判斷該電壓值是否大於該基準電壓;以及當判斷該電壓值跨越該基準電壓時,則累計該電壓值跨越該基準電壓的次數的步驟包含:當判斷該電壓值大於該基準電壓時,則累計該電壓值大於該基準電壓的次數。Preferably, the step of determining whether the voltage value crosses the reference voltage comprises: determining whether the voltage value is greater than the reference voltage; and when determining that the voltage value crosses the reference voltage, accumulating the number of times the voltage value crosses the reference voltage The step of: including when the voltage value is greater than the reference voltage, accumulating the number of times the voltage value is greater than the reference voltage.

較佳地,當判斷該電壓值大於該基準電壓,則將該電壓值小於該基準電壓的累計次數歸零,當判斷該電壓值小於該基準電壓,則將該電壓值大於該基準電壓的累計次數歸零。Preferably, when it is determined that the voltage value is greater than the reference voltage, the cumulative value of the voltage value less than the reference voltage is reset to zero. When the voltage value is determined to be less than the reference voltage, the voltage value is greater than the cumulative value of the reference voltage. The number of times is zero.

較佳地,當按照一定比例向下調整該基準電容量後,將該電壓值小於該基準電壓的累計次數歸零;以及當按照一定比例向上調整該基準電容量後,將該電壓值大於該基準電壓的累計次數歸零。Preferably, when the reference capacitance is adjusted downward according to a certain ratio, the cumulative value of the voltage value less than the reference voltage is reset to zero; and when the reference capacitance is adjusted upward according to a certain ratio, the voltage value is greater than the The cumulative number of reference voltages is zeroed.

本發明實現上述方法的一種電池容量計算裝置,用以計算一電池的電容量,該裝置包括:一電池容量讀取單元,讀取電池目前的一基準電容量,並將該基準電容量轉換成對應的一基準電壓;一電池電壓判斷單元,讀取電池目前的一電壓值,並判斷該電壓值是否跨越該基準電壓,於判斷該電壓值跨越該基準電壓時,則累計該電壓值跨越該基準電壓的次數;及一電池容量調整單元,當判斷該電壓值跨越該基準電壓的累計次數達到一預設值時,則按照一定比例調整該基準電容量。A battery capacity calculation device for implementing the above method, for calculating a battery capacity, the device comprising: a battery capacity reading unit, reading a current reference capacity of the battery, and converting the reference capacitance into Corresponding a reference voltage; a battery voltage determining unit reads a current voltage value of the battery, and determines whether the voltage value crosses the reference voltage, and when determining that the voltage value crosses the reference voltage, accumulating the voltage value across the The number of times of the reference voltage; and a battery capacity adjustment unit, when it is determined that the cumulative number of times the voltage value crosses the reference voltage reaches a predetermined value, the reference capacitance is adjusted according to a certain ratio.

較佳地,該電池電壓判斷單元判斷該電壓值是否小於該基準電壓,並於判斷該電壓值小於該基準電壓時,累計該電壓值小於該基準電壓的次數。Preferably, the battery voltage determining unit determines whether the voltage value is less than the reference voltage, and when determining that the voltage value is less than the reference voltage, accumulating the number of times the voltage value is less than the reference voltage.

較佳地,該電池電壓判斷單元判斷該電壓值是否大於該基準電壓,並於判斷該電壓值大於該基準電壓時,累計該電壓值大於該基準電壓的次數。Preferably, the battery voltage determining unit determines whether the voltage value is greater than the reference voltage, and when determining that the voltage value is greater than the reference voltage, accumulating the number of times the voltage value is greater than the reference voltage.

較佳地,該電池電壓判斷單元判斷該電壓值大於該基準電壓,則將該電壓值小於該基準電壓的累計次數歸零;以及該電池電壓判斷單元判斷該電壓值小於該基準電壓,則將該電壓值大於該基準電壓的累計次數歸零。Preferably, the battery voltage determination unit determines that the voltage value is greater than the reference voltage, and then zeros the accumulated value of the voltage value less than the reference voltage; and the battery voltage determination unit determines that the voltage value is less than the reference voltage, The cumulative value of the voltage value greater than the reference voltage is zeroed.

較佳地,該電池容量調整單元按照一定比例向下調整該基準電容量後,將該電壓值小於該基準電壓的累計次數歸零;以及該電池容量調整單元按照一定比例向上調整該基準電容量後,將該電壓值大於該基準電壓的累計次數歸零。Preferably, after the battery capacity adjustment unit adjusts the reference capacitance downward according to a certain ratio, the cumulative value of the voltage value less than the reference voltage is reset to zero; and the battery capacity adjustment unit adjusts the reference capacitance upward according to a certain ratio. Thereafter, the cumulative value of the voltage value greater than the reference voltage is reset to zero.

本發明的功效在於藉由電池電壓判斷單元將取得的電池電壓與當前基準電容量所轉換的基準電壓進行多次比較判斷,確定電池電壓是呈現下降或上升的趨勢,再由電池容量調整單元決定向下或向上調整電容量,可以控制電池容量不受電壓值上下變動而隨之飄動,使電容量可以穩定且準確地反應電池的電壓值。The utility model has the advantages that the battery voltage judging unit compares the obtained battery voltage with the reference voltage converted by the current reference capacity for multiple times, and determines that the battery voltage is in a downward or rising trend, and is determined by the battery capacity adjusting unit. Adjusting the capacitance downward or upward can control the battery capacity to be fluctuated without fluctuation of the voltage value, so that the capacitance can stably and accurately reflect the voltage value of the battery.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之較佳實施例的詳細說明中,將可清楚的呈現。The foregoing and other objects, features, and advantages of the invention are set forth in the <RTIgt;

參閱圖2,是本發明電池容量計算裝置的第一實施例,其用以實現如圖3所示之本發明電池容量計算方法,且本實施例是應用在電池放電的過程中。Referring to FIG. 2, it is a first embodiment of the battery capacity calculation device of the present invention, which is used to implement the battery capacity calculation method of the present invention as shown in FIG. 3, and the present embodiment is applied in the process of discharging a battery.

電池容量計算裝置2可設置在任何可攜式電子裝置,例如筆記型電腦、行動電話、個人數位助理、行動導航裝置、iPAD等電子產品中,或者應用在一獨立的電源供應系統、電池充電器或以電池為電力儲存媒介的電能儲存設備中,以計算其中電池的電容量。The battery capacity calculation device 2 can be disposed in any portable electronic device, such as a notebook computer, a mobile phone, a personal digital assistant, a mobile navigation device, an iPAD, or the like, or can be applied to a separate power supply system, a battery charger. Or in an electrical energy storage device that uses a battery as a power storage medium to calculate the capacitance of the battery therein.

電池容量計算裝置2包含一電池容量讀取單元21、一電池電壓判斷單元22及一電池容量調整單元23,且此三個單元21、22、23可以軟體、硬體或韌體的方式來實現。The battery capacity calculation device 2 includes a battery capacity reading unit 21, a battery voltage determination unit 22, and a battery capacity adjustment unit 23, and the three units 21, 22, and 23 can be implemented in a soft body, a hardware, or a firmware. .

如圖3的步驟31,電池容量讀取單元21用以讀取電池目前的一基準電容量,並將基準電容量轉換成對應的一基準電壓。且如圖3的步驟32,電池電壓判斷單元22取得電池目前的一電壓值,並執行步驟33,判斷該電壓值是否小於基準電壓,若是,則執行步驟34,累計電壓值小於基準電壓的次數,然後,執行步驟35,判斷電壓值小於基準電壓的累計次數是否達到一預設值,若是,則令電池容量調整單元23執行步驟36,按照一定的比例向下調整該基準電容量,並將累計的次數歸零。As shown in step 31 of FIG. 3, the battery capacity reading unit 21 is configured to read a current reference capacity of the battery and convert the reference capacitance into a corresponding reference voltage. As shown in step 32 of FIG. 3, the battery voltage determining unit 22 obtains a current voltage value of the battery, and performs step 33 to determine whether the voltage value is less than the reference voltage. If yes, step 34 is performed, and the accumulated voltage value is less than the reference voltage. Then, step 35 is performed to determine whether the cumulative value of the voltage value is less than a predetermined value of the reference voltage, and if so, the battery capacity adjusting unit 23 performs step 36 to adjust the reference capacitance downward according to a certain ratio, and The cumulative number of times is zero.

然後,再重覆上述步驟31-36。藉此,即使電池在放電電過程中電壓會上上下下地變動,但經過步驟32-35持續判斷電池電壓,並確定電池電壓在連續的多次判斷中都小於基準電壓,確定電池電壓確實下降,才往下調整電池的基準電容量,使電池電容量不會隨著電壓上下變動,而呈現穩定且準確的電容量資訊。Then, repeat steps 31-36 above. Thereby, even if the voltage of the battery changes up and down during the discharge process, the battery voltage is continuously determined through steps 32-35, and it is determined that the battery voltage is less than the reference voltage in successive multiple determinations, and it is determined that the battery voltage does decrease. Only adjust the reference capacity of the battery downwards so that the battery capacity does not change with voltage up and down, and presents stable and accurate capacitance information.

同樣地,在本發明的第二實施例中,上述的電池容量計算裝置2也可在電池充電的過程中計算電池的電容量。當電池充電時,如圖4的步驟41,電池容量讀取單元21讀取電池目前的一基準電容量,並將基準電容量轉換成對應的一基準電壓。且如圖4的步驟42,電池電壓判斷單元22取得電池目前的一電壓值,並執行步驟43,判斷該電壓值是否大於基準電壓,若是,則執行步驟44,累計電壓值大於基準電壓的次數,然後,執行步驟45,判斷電壓值大於基準電壓的累計次數是否達到一預設值,若是,則令電池容量調整單元23執行步驟46,按照一定的比例向下調整該基準電容量,並將累計的次數歸零。然後,再重覆上述步驟31-36。Similarly, in the second embodiment of the present invention, the battery capacity calculating device 2 described above can also calculate the capacitance of the battery during charging of the battery. When the battery is charged, as shown in step 41 of FIG. 4, the battery capacity reading unit 21 reads a current reference capacity of the battery and converts the reference capacitance into a corresponding reference voltage. As shown in step 42 of FIG. 4, the battery voltage determining unit 22 obtains a current voltage value of the battery, and performs step 43 to determine whether the voltage value is greater than the reference voltage. If yes, step 44 is performed, and the cumulative voltage value is greater than the reference voltage. Then, step 45 is performed to determine whether the cumulative number of times the voltage value is greater than the reference voltage reaches a predetermined value, and if so, the battery capacity adjusting unit 23 performs step 46 to adjust the reference capacitance downward according to a certain ratio, and The cumulative number of times is zero. Then, repeat steps 31-36 above.

藉此,即使電池在充電電過程中電壓會上上下下地變動,但經過步驟32-35持續判斷電池電壓,並累計電池電壓在連續的多次判斷中都大於基準電壓,確定電壓持續上升,才往上調整電池的基準電容量,使電池電容量不會隨著電壓上下變動,而呈現穩定且正確的電容量資訊。Therefore, even if the voltage of the battery changes up and down during the charging process, the battery voltage is continuously determined through steps 32-35, and the accumulated battery voltage is greater than the reference voltage in successive multiple determinations, and the voltage is continuously increased. Adjusting the reference capacity of the battery upwards so that the battery capacity does not fluctuate with voltage, and presents stable and correct capacitance information.

參見圖5所示,是本發明電池容量計算裝置的第三實施例,本實施例是以應用於筆記型電腦4為例,通常筆記型電腦使用的二次電池,亦即鋰電池其單顆的最高電量約為4.2V,最低電量約為3.5V,且一般筆記型電腦為了顯示電容量,其電源管理模組41會將電池的剩餘電壓以電容量百分比的方式顯示於其顯示器42,例如當電池電壓在最高電量4.2V時,電容量為100%,當電池電壓剩下一半為3.85V時,電容量為50%,電池電壓在最低電量3.5V時其電容量為0%,亦即1個百分比的電容量對應到0.007V的電壓。Referring to FIG. 5, it is a third embodiment of the battery capacity calculation device of the present invention. This embodiment is applied to a notebook computer 4 as an example, and a secondary battery used in a notebook computer, that is, a lithium battery. The maximum power is about 4.2V, and the minimum power is about 3.5V. In order to display the capacitance, the power management module 41 displays the remaining voltage of the battery as a percentage of the capacitance on its display 42, for example. When the battery voltage is at the maximum power of 4.2V, the capacitance is 100%. When the battery voltage is half of 3.85V, the capacitance is 50%, and the battery voltage is 0% when the minimum voltage is 3.5V, that is, A percentage of the capacitance corresponds to a voltage of 0.007V.

因此,在本實施例中,當電池供電給筆記型電腦4時,如圖3的步驟31,電池容量讀取單元21可由筆記型電腦4的電源管理模組41讀取電池目前的一電容量,例如圖6所示的65%做為起始的一基準電容量,並將此基準電容量轉換成對應的一基準電壓,亦即3.952V。然後,電池電壓判斷單元22執行步驟32,從電源管理模組41取得電池目前的電壓值,並進行步驟33,比較該電壓值是否小於該基準電壓3.952V,若是,則執行步驟34,累計電壓值小於基準電壓的次數,並進行步驟35,判斷電壓值小於基準電壓的累計的次數是否達到一預設值(例如2次),若否,則再重覆步驟32、33。Therefore, in this embodiment, when the battery is powered to the notebook computer 4, as shown in step 31 of FIG. 3, the battery capacity reading unit 21 can read the current capacity of the battery from the power management module 41 of the notebook computer 4. For example, 65% shown in FIG. 6 is used as a starting reference capacity, and the reference capacitance is converted into a corresponding reference voltage, that is, 3.952V. Then, the battery voltage determining unit 22 performs step 32, and obtains the current voltage value of the battery from the power management module 41, and proceeds to step 33 to compare whether the voltage value is less than the reference voltage 3.952V. If yes, step 34 is performed to accumulate the voltage. The value is less than the number of times of the reference voltage, and step 35 is performed to determine whether the cumulative number of times the voltage value is less than the reference voltage reaches a predetermined value (for example, 2 times), and if not, repeat steps 32 and 33.

且由圖6可以發現電池電壓判斷單元22連續兩次取得的電池電壓值皆小於3.952V(以-1表示),因此電池容量調整單元23進行步驟36,按照一定比例,向下調整基準電容量一個百分點,即64%,並將電壓值小於基準電壓的累計次數歸零,且將調整後的基準電容量64%回傳給筆記型電腦4的電源管理模組41,使電源管理模組41可以適時將電池電容量顯示於顯示器42,再回到步驟31,電池容量讀取單元21再次讀取電池目前的一電容量,即64%做為基準電容量,並轉換成對應的基準電壓值為3.945V,然後電池電壓判斷單元22重覆步驟32-35到第3次,發現只有第1次電壓大於基準電壓值(以+1表示),第2、3次電壓皆小於基準電壓值(以-1表示),然後,電池容量調整單元23則將電壓值大於基準電壓的累計次數歸零,並進行步驟36,再將基準電容量向下調整一個百分點,即63%,且將電壓值小於基準電壓的累計次數歸零,並將調整後的基準電容量63%回傳給電源管理模組41。It can be seen from FIG. 6 that the battery voltage values obtained by the battery voltage judging unit 22 are twice less than 3.952 V (indicated by -1), so the battery capacity adjusting unit 23 performs step 36 to adjust the reference capacity downward according to a certain ratio. One percentage point, that is, 64%, and the cumulative number of times the voltage value is less than the reference voltage is zeroed, and the adjusted reference capacitance 64% is transmitted back to the power management module 41 of the notebook computer 4, so that the power management module 41 The battery capacity can be displayed on the display 42 in time, and then returning to step 31, the battery capacity reading unit 21 reads the current capacity of the battery again, that is, 64% as the reference capacitance, and converts it into a corresponding reference voltage value. When it is 3.945V, then the battery voltage judging unit 22 repeats steps 32-35 to the third time, and finds that only the first voltage is greater than the reference voltage value (indicated by +1), and the second and third voltages are all smaller than the reference voltage value ( Then, the battery capacity adjusting unit 23 resets the cumulative number of times the voltage value is greater than the reference voltage to zero, and proceeds to step 36, and then adjusts the reference capacitance downward by one percentage point, that is, 63%, and the voltage value is Less than The cumulative number of the reference voltage to zero, and the adjusted reference capacitance 63% back to the power management module 41.

再回到步驟31,並重覆步驟32-34到第3次,發現第1次取得電壓小於基準電壓值(以-1表示),第2次取得電壓大於基準電壓值(以+1表示),第3、4次電壓皆小於基準電壓值(以+1表示),電池容量調整單元23則將電壓值大於基準電壓的累計次數歸零,並進行步驟36,再將基準電容量向下調整一個百分點,即62%,依此類推,即可得到如圖6所示的一電壓值變化曲線61及一固定斜率的電容量變化線60,且由圖6中可以看出,即使電池電壓在放電過程中會上下變動,但經過電池電壓判斷單元22將取得的電壓與基準電壓進行比較判斷,再決定是否調整電容量,可以控制電池容量不受電壓值變動而隨之飄動,使電容量可以穩定且準確地反應電池的電壓值。Going back to step 31 and repeating steps 32-34 to the third time, it is found that the first acquisition voltage is less than the reference voltage value (indicated by -1), and the second acquisition voltage is greater than the reference voltage value (indicated by +1). The third and fourth voltages are all smaller than the reference voltage value (indicated by +1), and the battery capacity adjusting unit 23 resets the cumulative number of times the voltage value is greater than the reference voltage, and proceeds to step 36, and then adjusts the reference capacitance downward. The percentage point, that is, 62%, and so on, can obtain a voltage value curve 61 as shown in FIG. 6 and a capacitance change line 60 of a fixed slope, and it can be seen from FIG. 6 that even if the battery voltage is discharging In the process, the battery voltage judging unit 22 compares the obtained voltage with the reference voltage, determines whether or not to adjust the capacitance, and controls the battery capacity to be fluctuated without being affected by the voltage value, so that the capacitance can be stabilized. And accurately reflect the voltage value of the battery.

同樣地,本實施例之電池容量計算裝置2也可依照圖4的流程,在筆記型電腦4對電池充電時計算電池的電容量,只是在圖4的步驟43中是判斷電池電壓值是否大於基準電壓,在步驟44中是累計電壓值大於基準電壓的次數,在步驟46中是按照一定比例向上調整基準電容量,例如上述每次向上調整一個百分點,其餘流程則與上述電池放電時相同,故於此不再贅述。Similarly, the battery capacity calculation device 2 of the present embodiment can also calculate the capacitance of the battery when the notebook computer 4 charges the battery according to the flow of FIG. 4, except that in step 43 of FIG. 4, it is determined whether the battery voltage value is greater than The reference voltage is the number of times the integrated voltage value is greater than the reference voltage in step 44. In step 46, the reference capacitance is adjusted upward according to a certain ratio, for example, the above adjustment is upward by one percentage point, and the remaining processes are the same as when the battery is discharged. Therefore, it will not be repeated here.

再參見圖7所示,是本發明電池容量計算方法的第四實施例之流程圖,其與上述第一及第二實施例不同之處在於,本實施例可在電子裝置,例如筆記型電腦使用電池的任何階段(不論充電或放電),計算電池容量。且實現本實施例之電池容量計算裝置2的電路架構如同圖5所示。Referring to FIG. 7 again, it is a flowchart of a fourth embodiment of the battery capacity calculation method of the present invention, which is different from the above first and second embodiments in that the embodiment can be used in an electronic device such as a notebook computer. Calculate the battery capacity using any stage of the battery, whether charging or discharging. The circuit architecture of the battery capacity calculation device 2 of the present embodiment is as shown in FIG.

一併參見圖5及圖7所示,在筆記型電腦開機的情況下,如同上述圖3的步驟31-36,電池容量計算裝置2會在電池供電給筆記型電腦時,進行圖7的步驟71-76以計算電池電容量,同樣地,電池容量讀取單元21讀取電池目前的一基準電容量,並將基準電容量轉換成對應的一基準電壓,而電池電壓判斷單元22讀取電池目前的一電壓值,並判斷該電壓值小於該基準電壓時,累計該電壓值小於該基準電壓的次數,當其累計電壓值小於基準電壓的次數達到一第一預設值,例如2次時,電池容量調整元23則向下調整基準電容量一定比例,例如一個百分點,詳細做法如上所述。Referring to FIG. 5 and FIG. 7, when the notebook computer is powered on, as in steps 31-36 of FIG. 3 above, the battery capacity calculating device 2 performs the steps of FIG. 7 when the battery is powered by the notebook computer. 71-76 to calculate the battery capacity, similarly, the battery capacity reading unit 21 reads a current reference capacity of the battery, and converts the reference capacitance into a corresponding reference voltage, and the battery voltage determination unit 22 reads the battery. a current voltage value, and determining that the voltage value is less than the reference voltage, accumulating the voltage value is less than the reference voltage, and when the cumulative voltage value is less than the reference voltage, the number of times reaches a first preset value, for example, 2 times The battery capacity adjustment unit 23 adjusts the reference capacitance downward by a certain percentage, for example, one percentage point, as described above.

而在步驟73中,當電池電壓判斷單元22判斷電壓值小於基準電壓時,則進行步驟77,判斷電壓值是否大於基準電壓,若是,且如同圖4之43-45,電池電壓判斷單元22重覆步驟77-79,累計電壓值大於該基準電壓的次數,直到累計電壓值大於基準電壓的次數達到一第二預設值,例如2次,表示電池正在充電中,則進行步驟80,電池容量調整元23向上調整基準電容量一定比例,例如前述的一個百分點,並將累計次數歸零後,再回到步驟71,重覆上述步驟,以持續計算電池的電容量。In step 73, when the battery voltage determining unit 22 determines that the voltage value is less than the reference voltage, step 77 is performed to determine whether the voltage value is greater than the reference voltage. If so, and as in 43-45 of FIG. 4, the battery voltage determining unit 22 is heavy. Steps 77-79, the cumulative voltage value is greater than the reference voltage, until the cumulative voltage value is greater than the reference voltage reaches a second preset value, for example, 2 times, indicating that the battery is being charged, then proceed to step 80, battery capacity The adjustment unit 23 adjusts the reference capacitance upward by a certain ratio, for example, one percentage point as described above, and returns the cumulative number of times to zero, and then returns to step 71 to repeat the above steps to continuously calculate the capacitance of the battery.

因此,當電池是在單純充電的狀態下,本實施例會執行步驟71-76來計算電池的電容量,而當電池是在單純放電的狀態下,本實施例會執行步驟71-73及77-80來計算電池的電容量,而當電池是在同時充電及放電的使用狀態下,則本實施例會交替地執行步驟71-76及步驟73-80以準確地計算出電池的電容量。Therefore, when the battery is in a state of pure charging, the embodiment will perform steps 71-76 to calculate the capacitance of the battery, and when the battery is in a state of pure discharge, the embodiment will perform steps 71-73 and 77-80. To calculate the capacitance of the battery, and when the battery is in the state of simultaneous charging and discharging, the present embodiment alternately performs steps 71-76 and 73-80 to accurately calculate the capacitance of the battery.

本實施例之電池容量計算裝置2整合了電池放電及充電時的電池容量計算流程,因此不論電池是在放電、充電或同時放電及充電的狀態,本實施例皆可準確地計算電池的電容量。The battery capacity calculation device 2 of the present embodiment integrates the battery capacity calculation flow during battery discharge and charging, so that the battery capacity can be accurately calculated in this embodiment regardless of whether the battery is in a state of discharging, charging, or simultaneous discharging and charging. .

值得一提的是,上述第三及第四實施例的電池容量計算裝置2也可以直接整合在筆記型電腦4的電源管理模組41中。It is worth mentioning that the battery capacity calculation device 2 of the third and fourth embodiments described above can also be directly integrated into the power management module 41 of the notebook computer 4.

綜上所述,本發明利用電池電壓判斷單元22將取得的電池電壓與當前基準電容量所轉換的基準電壓進行多次比較判斷,確定電池電壓是呈現下降或上升的趨勢,再決定向下或向上調整電容量,可以控制電池容量不受電壓值上下變動而隨之飄動,使電容量可以穩定且準確地反應電池的電壓值,確實達到本發明的功效和目的。In summary, the present invention uses the battery voltage determination unit 22 to compare the obtained battery voltage with the reference voltage converted by the current reference capacitance for a plurality of times to determine whether the battery voltage is decreasing or rising, and then determining the downward or By adjusting the capacitance upward, the battery capacity can be controlled not to fluctuate up and down with the voltage value, so that the capacitance can stably and accurately reflect the voltage value of the battery, and the efficacy and purpose of the present invention are indeed achieved.

惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent.

2...電池容量計算裝置2. . . Battery capacity calculation device

4...筆記型電腦4. . . Notebook computer

21...電池容量讀取單元twenty one. . . Battery capacity reading unit

22...電池電壓判斷單元twenty two. . . Battery voltage judgment unit

23...電池容量調整單元twenty three. . . Battery capacity adjustment unit

41...電源管理模組41. . . Power management module

42...顯示器42. . . monitor

31-36...步驟31-36. . . step

41-46...步驟41-46. . . step

60...電壓值變化曲線60. . . Voltage value curve

61...電容量變化線61. . . Capacitance change line

71-80...步驟71-80. . . step

圖1是習知電池在不同的充電電流及放電電流下的電壓-電容量對應曲線。1 is a voltage-capacitance correspondence curve of a conventional battery under different charging currents and discharging currents.

圖2是本發明電池容量計算裝置的第一實施例的細部單元方塊圖;Figure 2 is a block diagram showing a detail of a first embodiment of the battery capacity calculating device of the present invention;

圖3是本發明電池容量計算方法的第一實施例的流程圖,其用以計算電池放電時的電容量;3 is a flow chart of a first embodiment of a battery capacity calculation method of the present invention for calculating a capacitance when a battery is discharged;

圖4是本發明電池容量計算方法的第二實施例的流程圖,其用以計算電池放電時的電容量;4 is a flow chart of a second embodiment of a battery capacity calculation method of the present invention for calculating a capacitance when a battery is discharged;

圖5是本發明電池容量計算方法的第三實施例的流程圖,其應用於筆記型電腦,用以計算筆記型電腦之電池放電時的電容量;5 is a flow chart of a third embodiment of a method for calculating a battery capacity of the present invention, which is applied to a notebook computer for calculating a capacity of a battery of a notebook computer when discharged;

圖6顯示第三實施例之電池電壓變化及電容量趨勢;及Figure 6 shows the battery voltage variation and capacitance trend of the third embodiment; and

圖7是本發明電池容量計算方法的第四實施例的流程圖,其應用於筆記型電腦,用以計算筆記型電腦之電池使用時的電容量。7 is a flow chart of a fourth embodiment of a battery capacity calculation method of the present invention, which is applied to a notebook computer for calculating the capacitance of a notebook computer when it is used.

31-36...步驟31-36. . . step

Claims (10)

一種電池容量計算方法,包括:讀取電池目前的一基準電容量,該基準電容量對應到一基準電壓;取得電池目前的一電壓值;判斷該電壓值是否跨越該基準電壓;當判斷該電壓值跨越該基準電壓時,則累計該電壓值跨越該基準電壓的次數;當判斷該電壓值跨越該基準電壓的累計次數達到一預設值時,則按照一定比例調整該基準電容量。A battery capacity calculation method includes: reading a current reference capacity of a battery, the reference capacitance corresponding to a reference voltage; obtaining a current voltage value of the battery; determining whether the voltage value crosses the reference voltage; and determining the voltage When the value crosses the reference voltage, the number of times the voltage value crosses the reference voltage is accumulated; when it is determined that the cumulative value of the voltage value across the reference voltage reaches a preset value, the reference capacitance is adjusted according to a certain ratio. 依據申請專利範圍第1項所述的電池容量計算方法,其中判斷該電壓值是否跨越該基準電壓的步驟包含:判斷該電壓值是否小於該基準電壓;以及當判斷該電壓值跨越該基準電壓時,則累計該電壓值跨越該基準電壓的次數的步驟包含:當判斷該電壓值小於該基準電壓時,則累計該電壓值小於該基準電壓的次數。According to the battery capacity calculation method of claim 1, wherein the step of determining whether the voltage value crosses the reference voltage comprises: determining whether the voltage value is less than the reference voltage; and when determining that the voltage value crosses the reference voltage And the step of accumulating the number of times the voltage value crosses the reference voltage comprises: when it is determined that the voltage value is less than the reference voltage, accumulating the number of times the voltage value is less than the reference voltage. 依據申請專利範圍第1項所述的電池容量計算方法,其中判斷該電壓值是否跨越該基準電壓的步驟包含:判斷該電壓值是否大於該基準電壓;以及當判斷該電壓值跨越該基準電壓時,則累計該電壓值跨越該基準電壓的次數的步驟包含:當判斷該電壓值大於該基準電壓時,則累計該電壓值大於該基準電壓的次數。According to the battery capacity calculation method of claim 1, wherein the step of determining whether the voltage value crosses the reference voltage comprises: determining whether the voltage value is greater than the reference voltage; and when determining that the voltage value crosses the reference voltage And the step of accumulating the number of times the voltage value crosses the reference voltage comprises: when determining that the voltage value is greater than the reference voltage, accumulating the number of times the voltage value is greater than the reference voltage. 依據申請專利範圍第2或3項所述的電池容量計算方法,其中,當判斷該電壓值大於該基準電壓,則將該電壓值小於該基準電壓的累計次數歸零,當判斷該電壓值小於該基準電壓,則將該電壓值大於該基準電壓的累計次數歸零。According to the battery capacity calculation method of claim 2, wherein when the voltage value is greater than the reference voltage, the cumulative value of the voltage value less than the reference voltage is reset to zero, and when the voltage value is determined to be smaller than The reference voltage is zeroed by the cumulative number of times the voltage value is greater than the reference voltage. 依據申請專利範圍第2或3項所述的電池容量計算方法,其中,當按照一定比例向下調整該基準電容量後,將該電壓值小於該基準電壓的累計次數歸零;以及當按照一定比例向上調整該基準電容量後,將該電壓值大於該基準電壓的累計次數歸零。According to the battery capacity calculation method of claim 2 or 3, wherein, when the reference capacitance is downwardly adjusted according to a certain ratio, the cumulative value of the voltage value less than the reference voltage is reset to zero; After the ratio adjusts the reference capacitance upward, the cumulative value of the voltage value greater than the reference voltage is reset to zero. 一種電池容量計算裝置,用以計算一電池的電容量,該裝置包括:一電池容量讀取單元,讀取電池目前的一基準電容量,並將該基準電容量轉換成對應的一基準電壓;一電池電壓判斷單元,讀取電池目前的一電壓值,並判斷該電壓值是否跨越該基準電壓,於判斷該電壓值跨越該基準電壓時,則累計該電壓值跨越該基準電壓的次數;及一電池容量調整單元,當判斷該電壓值跨越該基準電壓的累計次數達到一預設值時,則按照一定比例調整該基準電容量。A battery capacity calculation device for calculating a battery capacity, the device comprising: a battery capacity reading unit, reading a current reference capacity of the battery, and converting the reference capacitance into a corresponding reference voltage; a battery voltage determining unit reads a current voltage value of the battery, and determines whether the voltage value crosses the reference voltage, and when determining that the voltage value crosses the reference voltage, accumulating the number of times the voltage value crosses the reference voltage; and A battery capacity adjustment unit adjusts the reference capacitance according to a certain ratio when it is determined that the cumulative number of times the voltage value crosses the reference voltage reaches a preset value. 依據申請專利範圍第6項所述的電池容量計算裝置,其中該電池電壓判斷單元判斷該電壓值是否小於該基準電壓,並於判斷該電壓值小於該基準電壓時,累計該電壓值小於該基準電壓的次數。The battery capacity calculation device according to claim 6, wherein the battery voltage determination unit determines whether the voltage value is less than the reference voltage, and when determining that the voltage value is less than the reference voltage, accumulating the voltage value is less than the reference The number of voltages. 依據申請專利範圍第6項所述的電池容量計算裝置,其中該電池電壓判斷單元判斷該電壓值是否大於該基準電壓,並於判斷該電壓值大於該基準電壓時,累計該電壓值大於該基準電壓的次數。The battery capacity calculation device according to claim 6, wherein the battery voltage determination unit determines whether the voltage value is greater than the reference voltage, and when determining that the voltage value is greater than the reference voltage, accumulating the voltage value is greater than the reference The number of voltages. 依據申請專利範圍第7或8項所述的電池容量計算裝置,其中該電池電壓判斷單元判斷該電壓值大於該基準電壓,則將該電壓值小於該基準電壓的累計次數歸零;以及該電池電壓判斷單元判斷該電壓值小於該基準電壓,則將該電壓值大於該基準電壓的累計次數歸零。The battery capacity calculation device according to claim 7 or 8, wherein the battery voltage determination unit determines that the voltage value is greater than the reference voltage, and zeros the cumulative value of the voltage value less than the reference voltage; and the battery When the voltage determination unit determines that the voltage value is less than the reference voltage, the voltage value is greater than the cumulative number of times the reference voltage is zeroed. 依據申請專利範圍第7或8項所述的電池容量計算裝置,其中,該電池容量調整單元按照一定比例向下調整該基準電容量後,將該電壓值小於該基準電壓的累計次數歸零;以及該電池容量調整單元按照一定比例向上調整該基準電容量後,將該電壓值大於該基準電壓的累計次數歸零。The battery capacity calculation device according to claim 7 or 8, wherein the battery capacity adjustment unit adjusts the reference capacitance downwardly according to a certain ratio, and resets the cumulative value of the voltage value less than the reference voltage to zero; And after the battery capacity adjusting unit adjusts the reference capacitance upward according to a certain ratio, the accumulated value of the voltage value greater than the reference voltage is reset to zero.
TW100100653A 2011-01-07 2011-01-07 Battery capacity calculating method and device thereof TWI403750B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW100100653A TWI403750B (en) 2011-01-07 2011-01-07 Battery capacity calculating method and device thereof
CN201110078216.6A CN102590750B (en) 2011-01-07 2011-03-24 Battery capacity calculating method and battery capacity calculating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100100653A TWI403750B (en) 2011-01-07 2011-01-07 Battery capacity calculating method and device thereof

Publications (2)

Publication Number Publication Date
TW201229544A TW201229544A (en) 2012-07-16
TWI403750B true TWI403750B (en) 2013-08-01

Family

ID=46479670

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100100653A TWI403750B (en) 2011-01-07 2011-01-07 Battery capacity calculating method and device thereof

Country Status (2)

Country Link
CN (1) CN102590750B (en)
TW (1) TWI403750B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105842624A (en) * 2015-01-14 2016-08-10 宝创企业股份有限公司 Mobile power device suitable for measuring capacities of other mobile power supplies

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI678855B (en) * 2018-10-12 2019-12-01 宏碁股份有限公司 A low voltage threshold adjusting method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW300957B (en) * 1994-11-21 1997-03-21 Seiko Epson Corp
US7196523B1 (en) * 2003-04-25 2007-03-27 Sanyo Electric Co., Ltd Battery charge/discharge monitoring circuit and method
JP2008185500A (en) * 2007-01-31 2008-08-14 Fujitsu Ltd Battery remaining capacity predicting apparatus

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6166548A (en) * 1998-09-24 2000-12-26 Timex Corporation Method of detecting battery capacity in a zinc-air battery
JP3938643B2 (en) * 1999-10-21 2007-06-27 富士通株式会社 Battery remaining amount detection device, battery remaining amount detection method, electronic device, and recording medium
KR100608790B1 (en) * 2004-05-21 2006-08-08 엘지전자 주식회사 A method and a apparatus of indication battery capacity for mobile phone
TWI339271B (en) * 2007-07-20 2011-03-21 Univ Nat Kaohsiung Applied Sci Estimating method for battery residue capacity
CN201184909Y (en) * 2007-09-25 2009-01-21 深圳市比克电池有限公司 Electric quantity display apparatus
CN101126796B (en) * 2007-10-12 2010-09-29 华为终端有限公司 Battery electric quantity detecting method and device
CN101793946A (en) * 2010-04-12 2010-08-04 无敌科技(西安)有限公司 Method for realizing monotone change of battery power

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW300957B (en) * 1994-11-21 1997-03-21 Seiko Epson Corp
US7196523B1 (en) * 2003-04-25 2007-03-27 Sanyo Electric Co., Ltd Battery charge/discharge monitoring circuit and method
JP2008185500A (en) * 2007-01-31 2008-08-14 Fujitsu Ltd Battery remaining capacity predicting apparatus
TW200844466A (en) * 2007-01-31 2008-11-16 Fujitsu Ltd Battery remaining capacity predicting apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105842624A (en) * 2015-01-14 2016-08-10 宝创企业股份有限公司 Mobile power device suitable for measuring capacities of other mobile power supplies

Also Published As

Publication number Publication date
CN102590750B (en) 2014-09-10
TW201229544A (en) 2012-07-16
CN102590750A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
JP5466564B2 (en) Battery degradation estimation method, battery capacity estimation method, battery capacity equalization method, and battery degradation estimation apparatus
TWI420126B (en) Device for battery capacity prediction and method for the same
JP6168301B2 (en) Degradation state estimation method
US10139452B2 (en) State based full and empty control for rechargeable batteries
TWI547704B (en) Device,method and system for estimating battery remaining capacity
JP5843051B2 (en) Pack battery and secondary battery discharge control method
CN101236236B (en) Battery remaining capacity predicting apparatus
CN103001299A (en) Charger
CN102478636B (en) Electric quantity detection method and device for battery
US8319479B2 (en) Method of estimating battery recharge time and related device
WO2014161325A1 (en) Method, device and terminal for detecting electric quantity of battery
CN112956064A (en) Specific-class industrial battery optimization and repair equipment with battery diagnosis and battery life prediction and artificial intelligence device
JP2011082158A (en) Charge control method of battery pack
JP5367422B2 (en) Secondary battery capacity estimation device and secondary battery capacity estimation method
JP5887531B2 (en) Charger
JP2017054692A (en) Power storage system, secondary battery control system, and secondary battery control method
TWI636271B (en) Apparatus and method for measuring capacity of cell module
US20140100802A1 (en) Method and computer system for measuring remaining battery capacity
CN110687458A (en) Terminal battery electric quantity determination method and device
JP2018119839A (en) Power storage control device, server, power storage control method and program
TWI403750B (en) Battery capacity calculating method and device thereof
JP6054788B2 (en) Storage battery residual quantity estimation device and residual quantity estimation method
US8880367B1 (en) Method for accurately performing power estimation on a battery of an electronic device, and associated apparatus
JP2016065844A (en) Battery system control apparatus and control method of battery system
CN112433156A (en) SOC estimation method