Battery electric quantity display device and method

Battery electric quantity display device and method

  • CN 102,298,119 B
  • Filed: 05/24/2011
  • Issued: 12/02/2015
  • Est. Priority Date: 05/24/2011
  • Status: Active Grant
First Claim
Patent Images

1. a battery power quantity display method, is characterized in that, comprises the following steps:

  • Real-time Collection battery voltage value, reads one-shot battery magnitude of voltage by Timer Controlling every a schedule time;

    According to the battery voltage value of multi collect in the predetermined section time, try to achieve this cell voltage mean value;

    Judge the amplitude of variation of this cell voltage mean value relative to previous cell voltage mean value, when described amplitude of variation is greater than predetermined threshold, this cell voltage mean value is converted to battery electric quantity value, wherein, described predetermined threshold is according to battery status adjustment setting;

    when battery status changes, predetermined threshold is set as the first predetermined threshold, when battery status is constant, predetermined threshold is set as the second predetermined threshold, and the first predetermined threshold is greater than the second predetermined threshold;

    Predetermined threshold, namely the threshold value of change in voltage changes dynamically according to different conditions;

    when finding that battery status changes, the threshold value of now high voltage change, thus ensures that electricity can not saltus step;

    Be greater than new threshold value when voltage difference and done after first time, electricity upgraded, now battery has been in a stable state, then reduces this threshold value;

    Show described battery electric quantity value, battery electric quantity value shows with the numeral of 0% ~ 100% and the mode that combines with the dynamic change of figure;

    After the step of Real-time Collection battery voltage value, further comprising the steps of;

    Store described battery voltage value successively in array according to time sequencing, after storage of array is full, next battery voltage value is stored into first position of described array again, then circulates successively;

    Store to realize repeatedly reading magnitude of voltage, by adding a timer, primary voltage value is read every a schedule time, and utilize an array to deposit read magnitude of voltage each time, each reading value is just put into each element in array successively according to time sequencing, when being put into last element in array, then put first element from array;

    In the starting stage, namely when first time reads cell voltage, by elements all in the array all magnitude of voltage of assignment for reading for the first time, magnitude of voltage assignment from the element of first in array that second time is read, the value that third time reads is assigned to second element in array, the like, can ensure in the incipient stage like this, namely, when read voltage total degree is less than array element number, the magnitude of voltage obtained also is the mean value in prior time;

    When current voltage value will be returned, by after all elements summation in array divided by the element number in array, just can obtain the mean value of voltage in a period of time in the past.

View all claims

    Thank you for your feedback