CN109581236A - Detection method, device and the computer readable storage medium of capacity of lithium ion battery - Google Patents

Detection method, device and the computer readable storage medium of capacity of lithium ion battery Download PDF

Info

Publication number
CN109581236A
CN109581236A CN201910067123.XA CN201910067123A CN109581236A CN 109581236 A CN109581236 A CN 109581236A CN 201910067123 A CN201910067123 A CN 201910067123A CN 109581236 A CN109581236 A CN 109581236A
Authority
CN
China
Prior art keywords
voltage
battery
capacity
digital
analog
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201910067123.XA
Other languages
Chinese (zh)
Inventor
张少龙
明家万
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN HUADEAN TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN HUADEAN TECHNOLOGY Co Ltd
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 SHENZHEN HUADEAN TECHNOLOGY Co Ltd filed Critical SHENZHEN HUADEAN TECHNOLOGY Co Ltd
Priority to CN201910067123.XA priority Critical patent/CN109581236A/en
Publication of CN109581236A publication Critical patent/CN109581236A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/3644Constructional arrangements
    • G01R31/3648Constructional arrangements comprising digital calculation means, e.g. for performing an algorithm

Abstract

The invention discloses a kind of detection methods of capacity of lithium ion battery, including when battery is fully charged, obtain the first voltage at battery both ends, first voltage is sent to analog-digital converter;The analog signal of first voltage is converted into digital voltage value by analog-digital converter, and mean value computation is carried out to the digital voltage value of the preset quantity of continuous sampling, obtains the corresponding first equal threshold voltage of first voltage;According to the difference of the first equal threshold voltage and preset final discharging voltage, the voltage available of battery is determined, and table is corresponded to according to preset voltage electricity, calculate the total capacity of battery.The invention also discloses a kind of detection device of capacity of lithium ion battery and readable storage medium storing program for executing.So that battery is in the case where calculating battery capacity without using Coulomb meter, also it can go out the total capacity of battery according to the voltage estimate of battery, so that power management design is simple and reliable, electricity estimation becomes close to true value, to reduce the material cost and time cost of electronic product.

Description

Detection method, device and the computer readable storage medium of capacity of lithium ion battery
Technical field
The present invention relates to battery applications field more particularly to a kind of detection methods of capacity of lithium ion battery, device and meter Calculation machine readable storage medium storing program for executing.
Background technique
As Portable movable electronic product is grown rapidly, the battery for providing energy to these products is also quickly sent out Exhibition.The factors such as tightness, production technology of the raw material variance, battery packages selected by different manufacturers, cause each piece of lithium from Sub- battery full charging pressure and capacity have a certain difference with the parameter at the beginning of designing, such as nominal capacity 1000mAh, actual production Capacity possible deviation ± 100mAh out, nominal full charging press 4.2V, and the full charging pressure possible deviation that actual production comes out ± 0.15V, it is even higher.Cause lower end in Integrated design in this way, all to circuit design, battery voltage sampling, volume calculation etc. Have an impact.
Currently, measuring and calculating battery in most of smart phone, some Portable movable electronic products of tablet computer When electricity, in order to quickly go out product, designer often selects device as Coulomb meter.Coulomb meter is connected in design On cell circuit, external voltage is higher than cell voltage when charging, and electric current flows into battery;Cell voltage is higher than load electricity when electric discharge Pressure, electric current flow out battery.The electricity of battery charging and discharging can be calculated by this principle.But since product is being set Timing influences to control some factors such as Material Cost, tends not to using Coulomb meter.In order to solve this defect, the application Workable voltage is dynamically calculated using the difference of both the final discharging voltage of voltage and battery of the battery after fully charged, and Table is corresponded to according to preset voltage electricity, calculates the total capacity of battery.
Summary of the invention
The main purpose of the present invention is to provide a kind of detection methods of capacity of lithium ion battery, device and computer-readable Storage medium, it is intended to when solving without using Coulomb meter can not dynamic estimation battery capacity size the technical issues of.
To achieve the above object, the present invention provides a kind of detection method of capacity of lithium ion battery, and this method includes following Step:
When battery is fully charged, the first voltage at the battery both ends is obtained, the first voltage is sent to modulus and is turned Parallel operation;
When battery is fully charged, the first voltage at the battery both ends is obtained, the first voltage is sent to modulus and is turned Parallel operation;
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter, and to continuously adopting The digital voltage value of the preset quantity of sample carries out mean value computation, obtains the corresponding first equal threshold voltage of first voltage;
According to the difference of the described first equal threshold voltage and preset final discharging voltage, determine the battery can electricity consumption Pressure, and table is corresponded to according to preset voltage electricity, calculate the total capacity of the battery.
Preferably, in the difference according to the described first equal threshold voltage and preset final discharging voltage, determine described in The voltage available of battery, and after the step of corresponding to table according to preset voltage electricity, calculate the total capacity of the battery, packet It includes:
In battery discharge procedure, the second voltage that obtains the second voltage at present battery both ends, and will test is sent To analog-digital converter;
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter, and to continuously adopting The digital voltage value of the preset quantity of sample carries out mean value computation, obtains the corresponding second equal threshold voltage of second voltage;
According to the ratio of the described second equal threshold voltage and voltage available, the percentage of the remaining capacity of the battery is calculated Than.
Preferably, described that the analog signal of the first voltage is converted to by digital voltage by the analog-digital converter Value, and mean value computation is carried out to the digital voltage value of the preset quantity of continuous sampling, obtain corresponding first mean value of first voltage The step of voltage, comprising:
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter;
The digital voltage value is successively saved in preset memory space in memory;
The digital voltage value for obtaining preset quantity in the default memory space, to the digital voltage value of the preset quantity Root mean square calculation is carried out, the corresponding first equal threshold voltage of the first voltage is obtained.
Preferably, the first equal threshold voltage is calculated by following formula:
Wherein, x is the first equal threshold voltage, xiFor the sampled data of i-th of first voltage, N is the number of sampled data.
Preferably, voltage available is calculated by following formula:
U0=U1-U2,
Wherein, U0 is voltage available, and U1 is first voltage, and U2 is final discharging voltage;
Residual capacity percentage is calculated by following formula:
A=((Ub-U2)/U0) * 100%,
Wherein, A is residual capacity percentage, and Ub is second voltage, and U2 is final discharging voltage, and U0 is voltage available.
Preferably, the analog-digital converter is successive approximation analog-digital converter.
In addition, to achieve the above object, the present invention also provides a kind of device of the detection of capacity of lithium ion battery, the devices It include: memory, processor and the detection for being stored in the battery capacity that can be run on the memory and on the processor Program, the detection program of the battery capacity realize the detection side of above-mentioned capacity of lithium ion battery when being executed by the processor The either step of method.
In addition, to achieve the above object, the present invention also provides a kind of computer readable storage mediums, it is stored thereon with calculating Machine program, the program realize the either step of the detection method of above-mentioned capacity of lithium ion battery when being executed by the processor.
Detection method, device and the computer readable storage medium of a kind of capacity of lithium ion battery proposed by the present invention, when When battery is fully charged, by obtaining the first voltage at battery both ends, and the first voltage is sent to analog-digital converter, passed through The analog signal of first voltage is converted to digital voltage value by analog-digital converter, and to the number electricity of the preset quantity of continuous sampling Pressure value carries out mean value computation, obtains the corresponding first equal threshold voltage of first voltage, further according to the described first equal threshold voltage and presets Final discharging voltage difference, determine the voltage available of the battery, and table is corresponded to according to preset voltage electricity, calculate institute State the total capacity of battery.So that in measurement and the capacity for calculating battery in the case where not using Coulomb meter, it also can basis The voltage estimate of battery goes out the capacity of battery, so that power management design is simple and reliable, electricity estimation becomes close to true value, thus Keep electronic product component selection when designing and developing popular, reduces material cost and time cost.
Detailed description of the invention
Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the detection method first embodiment of battery capacity of the present invention;
Fig. 3 is the flow diagram of the detection method second embodiment of battery capacity of the present invention;
Fig. 4 is the flow diagram of the detection method 3rd embodiment of battery capacity of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Primary solutions of the invention are: when battery is fully charged, the first voltage at the battery both ends are obtained, by institute It states first voltage and is sent to analog-digital converter;The analog signal of the first voltage is converted into number by the analog-digital converter Word voltage value, and mean value computation is carried out to the digital voltage value of the preset quantity of continuous sampling, obtain first voltage corresponding the One equal threshold voltage;According to the difference of the described first equal threshold voltage and preset final discharging voltage, the available of the battery is determined Voltage, and table is corresponded to according to preset voltage electricity, calculate the total capacity of the battery.
Since Coulomb meter can be used in the quantity measuring method of the prior art, by the circuit that Coulomb meter is connected on to battery On, external voltage is higher than cell voltage when charging, and electric current flows into battery;Cell voltage is higher than load voltage, electric current stream when electric discharge Battery out.The electricity of battery charging and discharging can be calculated by this characteristic.But since product is controlled in design Some factors such as Material Cost processed influence, and tend not to using Coulomb meter.
The present invention provides a solution, is moved using voltage of the battery after fully charged with preset final discharging voltage The total capacity of state estimation battery.
As shown in Figure 1, Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The device of that embodiment of the invention can be the component of electronic equipment internal, be also possible to independently of electronic device exterior Component, the electronic equipment include that the portable electronics such as mobile phone, laptop, tablet computer, bluetooth headset, charger baby are set It is standby.
As shown in Figure 1, the apparatus may include: processor 1001, communication bus 1002, analog-to-digital conversion module 1003, electricity Pond 1004, memory 1005.Wherein, processor 1001 is mainly the number in interpretive machine instruction and processing computer software According to, such as main control chip.Communication bus 1002 is for realizing the communication connection between various components, various control information and controlled Feedback information in circuit all transmits in this bus, including universal serial bus and parallel bus.Analog-to-digital conversion module 1003 is For converting digital signal, such as analog-digital converter for analog signal.Battery 1004 is used for the power supply of electron equipment power supply, Including primary power source and secondary power supply, portable electronic device mainly uses Li-Ion rechargeable battery at present.Memory 1005 can To be RAM memory or ROM memory, for storing program and data.Memory 1005 optionally can also be independently of preceding State the storage device of processor 1001.
It will be understood by those skilled in the art that the restriction of the not structure twin installation of apparatus structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include data storage area and journey in a kind of memory 1005 of computer storage medium Sequence memory block, wherein program storage area includes the detection program of operating system and battery capacity.
In device shown in Fig. 1, processor 1001 can be used for calling the battery capacity stored in memory 1005 Program is detected, following operation is executed:
When battery is fully charged, the first voltage at the battery both ends is obtained, the first voltage is sent to modulus and is turned Parallel operation;
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter, and to continuously adopting The digital voltage value of the preset quantity of sample carries out mean value computation, obtains the corresponding first equal threshold voltage of first voltage;
According to the difference of the described first equal threshold voltage and preset final discharging voltage, determine the battery can electricity consumption Pressure, and table is corresponded to according to preset voltage electricity, calculate the total capacity of the battery.
Further, processor 1001 can be used for calling the detection program of the battery capacity stored in memory 1005, Also execute following operation:
In battery discharge procedure, the second voltage that obtains the second voltage at present battery both ends, and will test is sent To analog-digital converter;
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter, and to continuously adopting The digital voltage value of the preset quantity of sample carries out mean value computation, obtains the corresponding second equal threshold voltage of second voltage;
According to the ratio of the described second equal threshold voltage and voltage available, the percentage of the remaining capacity of the battery is calculated Than.
Further, processor 1001 can be used for calling the detection program of the battery capacity stored in memory 1005, Also execute following operation:
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter;
The digital voltage value is successively saved in preset memory space in memory;
The digital voltage value for obtaining preset quantity in the default memory space, to the digital voltage value of the preset quantity Root mean square calculation is carried out, the corresponding first equal threshold voltage of the first voltage is obtained.
Further, processor 1001 can be used for calling the detection program of the battery capacity stored in memory 1005, Also execute following operation:
The first equal threshold voltage is calculated by following formula,
Wherein, x is the first equal threshold voltage, xiFor the sampled data of i-th of first voltage, N is the number of sampled data.
Further, processor 1001 can be used for calling the detection program of the battery capacity stored in memory 1005, Also execute following operation:
Voltage available is calculated by following formula:
U0=U1-U2,
Wherein, U0 is voltage available, and U1 is first voltage, and U2 is final discharging voltage;
Residual capacity percentage is calculated by following formula:
A=((Ub-U2)/U0) * 100%,
Wherein, A is residual capacity percentage, and Ub is second voltage, and U2 is final discharging voltage, and U0 is voltage available.
Further, processor 1001 can be used for calling the detection program of the battery capacity stored in memory 1005, Also execute following operation:
The analog-digital converter is successive approximation analog-digital converter.
The detection of the specific embodiment of the detection device of capacity of lithium ion battery of the present invention and following capacity of lithium ion battery Each embodiment of method is essentially identical, and therefore not to repeat here.
Referring to Fig. 2, first embodiment of the invention provides a kind of detection method of capacity of lithium ion battery, the lithium-ion electric The detection method of tankage includes:
Step S10 obtains the first voltage at the battery both ends, the first voltage is sent when battery is fully charged To analog-digital converter.
The device of that embodiment of the invention can be the component of electronic equipment internal, be also possible to independently of electronic device exterior Component, the electronic equipment include mobile phone, notebook, tablet computer, bluetooth headset, charger baby, crime scene investigation device recorder, camera etc. Portable electronic device.The present embodiment takes the mobile phone as an example, and battery used in mobile phone is lithium ion battery, and lithium ion battery is one Kind secondary cell, i.e. rechargeable battery.Lithium ion battery relies primarily on lithium ion, and movement carrys out work between a positive electrode and a negative electrode.It is filling In discharge process, Li+ insertion and deintercalation back and forth between two electrodes.When charging, Li+ is embedding by electrolyte from positive deintercalation Enter to cathode, cathode is made to be in negative lithium state;It is then opposite when electric discharge.Lithium ion battery is with energy density is big, self discharge is small, follows Ring superior performance can be quickly charged and discharged, the advantages that charge efficiency is high, and lithium ion battery long service life, non-environmental-pollution, Referred to as green battery is widely used in all kinds of portable electronic products.
The factors such as tightness, the production technology of the raw material variance, battery packages selected by different manufacturers, lead to each piece Battery full charging pressure and capacity with design at the beginning of parameter have a certain difference, or due to battery performance with using when Between gradually decrease, compared with new battery, practical full charging pressure and capacity can change used battery, such as lithium battery Nominal full charging pressure be 4.2V, practical full charging presses possible deviation ± 0.15V.Therefore it needs when battery is fully charged, connection electricity The positive and negative both ends in pond measure the actual full charging pressure of battery.Practical full charging by detecting battery is pressed and defined discharge off The difference of voltage can learn the operating voltage range and total capacity size of battery.
The full charging of normal lithium ion battery is pressed in 4.2V or so, and system is left in 3V to the reference voltage of analog-to-digital conversion device The right side can make analog-digital converter cisco unity malfunction if cell voltage is directly inputted into analog-to-digital conversion device.To guarantee described the One voltage is no more than the reference voltage of analog-digital converter, needs after getting first voltage, divides to first voltage.Mesh Preceding bleeder circuit has very much, and the present embodiment after resistance R1 and R2 series connection, obtains resistance by taking series resistance bleeder circuit as an example The voltage at the both ends R1 or R2 is sent to analog-digital converter to realize partial pressure, then by the voltage after partial pressure, and executes step S20.
It will be understood by those skilled in the art that there is no need to bleeder circuit is added if first voltage is less than reference voltage In the input end of analog signal of analog-digital converter, even if bleeder circuit is added, be also possible to other forms or series connection it is different The circuit of resistance quantity.
The analog signal of the first voltage is converted to digital voltage value by the analog-digital converter by step S20, and Mean value computation is carried out to the digital voltage value of the preset quantity of continuous sampling, obtains the corresponding first equal threshold voltage of first voltage.
After analog-digital converter receives the first voltage, the analog signal of first voltage is converted into digital signal, The analog information of Time Continuous, the continuous first voltage of amplitude is exactly converted into the discrete digital voltage of time discrete, amplitude Value.Therefore, analog-digital converter will be sampled to first voltage, keep, quantify and encode 4 processes.In actual circuit, this A little processes, which have plenty of, merges progress, such as sampling and holding, and quantization and coding are all often in conversion process while to realize 's.Speed is fast when in order to guarantee analog-to-digital conversion, error is small, precision is high, and the present embodiment uses successive approximation analog-digital converter, makes The digital voltage value for the first voltage that must be obtained is accurately higher.
The digital voltage value of output is successively saved the default memory space into memory by analog-digital converter, passes through acquisition The digital voltage value of last updated predetermined number carries out mean value computation to the digital signal of these predetermined numbers, to obtain To the corresponding first equal threshold voltage of first voltage.
Step S30 determines the battery according to the difference of the described first equal threshold voltage and preset final discharging voltage Voltage available, and table is corresponded to according to preset voltage electricity, calculate the total capacity of the battery.
In order to protect battery, when cell voltage drops to a preset final discharging voltage, terminal will enter shutdown State prevents battery to be damaged because of over-discharge.The final discharging voltage is set according to actual conditions by developer.Therefore battery All electricity in available power and non-battery, but battery discharges since the saturation voltage that charges, until being down to discharge off electricity The electricity discharged during pressure.Therefore battery voltage available can calculate according to the following formula:
U0=U1-U2, wherein U0 is voltage available, and U1 is first voltage, and U2 is final discharging voltage.
By the described first equal threshold voltage and default final discharging voltage respectively with preset voltage electricity mapping table, obtain The first equal threshold voltage and the corresponding electricity of default final discharging voltage are taken, two electricity are subtracted each other, the total of the battery can be obtained Capacity.
In the present embodiment when battery is fully charged, by obtaining the first voltage at the battery both ends, by first electricity Pressure is sent to analog-digital converter;The analog signal of the first voltage is converted into digital voltage by the analog-digital converter Value, and mean value computation is carried out to the digital voltage value of the first voltage, obtain the corresponding first equal threshold voltage of first voltage;Root According to the described first equal threshold voltage electricity corresponding with default final discharging voltage, the total capacity of the battery is calculated.To make Battery is obtained in the case where calculating battery capacity without using Coulomb meter, the capacity of battery can be also gone out according to the voltage estimate of battery, So that power management design is simple and reliable, electricity estimation becomes close to true value, to make electronic product member device when designing and developing Part selection is popular, reduces material cost and time cost.
Further, referring to Fig. 3, third embodiment of the invention provides a kind of detection method of capacity of lithium ion battery, base In above-mentioned embodiment shown in Fig. 2, described according to the described first equal threshold voltage and default final discharging voltage, calculate described After the step of total capacity of battery, comprising:
Step S40 obtains the second voltage at present battery both ends, and will test second in battery discharge procedure Voltage is sent to analog-digital converter.
In use, cell voltage can gradually decrease mobile phone according to residual capacity, need to know battery as user Remaining capacity is to confirm that mobile phone residual power percentage and residue use duration.In above-mentioned second embodiment, pass through battery After first voltage obtains battery total capacity, residual capacity percentage can also be calculated according to battery current voltage.In battery In use process, the second voltage for obtaining present battery both ends is sent to analog-to-digital conversion after being divided the second voltage Device.
The analog signal of the first voltage is converted to digital voltage value by the analog-digital converter by step S50, and Mean value computation is carried out to the digital voltage value of the preset quantity of continuous sampling, obtains the corresponding second equal threshold voltage of second voltage.
After analog-digital converter receives the second voltage, the analog signal of second voltage is converted into digital signal, is obtained The corresponding digital voltage value of second voltage is taken, and digital voltage value is successively saved to the default memory space into memory, is led to The digital voltage value for obtaining newest predetermined number is crossed, mean value computation is carried out to the digital voltage value of these predetermined numbers Obtain the corresponding second equal threshold voltage of second voltage.
Step S60 calculates the remaining capacity of the battery according to the ratio of the described second equal threshold voltage and voltage available Percentage.
Due to the cell voltage relationship directly proportional to battery remaining power, the present embodiment is based on this characteristic, passes through The difference of both first voltage and final discharging voltage after battery is fully charged, dynamically to calculate battery voltage available, come by this in terms of Calculate the battery remaining power percentage of battery.
Voltage available is calculated according to the following formula:
A=((Ub-U2)/U0) * 100%, wherein A is residual capacity percentage, and Ub is second voltage, and U2 is that electric discharge is whole Only voltage, U0 are voltage available.
The present embodiment obtains the second equal threshold voltage accounting in voltage available according to the second voltage at present battery both ends Than the residual capacity percentage of battery being calculated, when so that user being known that battery dump energy percentage and remaining use It is long.
Further, referring to Fig. 4, third embodiment of the invention provides a kind of detection method of capacity of lithium ion battery, base It is described that the analog signal of the first voltage is converted to by number by the analog-digital converter in above-mentioned embodiment shown in Fig. 2 Word signal, and mean value computation is carried out to the digital signal of the first voltage, obtain the corresponding first equal threshold voltage of first voltage The step of, comprising:
The analog signal of the first voltage is converted to digital voltage value by the analog-digital converter by step S70.
There are many type of analog-digital converter (ADC), by the difference of working principle, can be divided into indirect ADC and direct ADC.Between Meeting ADC is that input analog voltage is first converted into time or frequency, these intermediate quantities is then converted into digital quantity again, commonly Indirect ADC has biproduct parting ADC.Direct ADC is then directly changed into digital quantity, there are commonly comparison A/D C in parallel and gradually forces Plesiotype ADC.Wherein, comparison A/D C in parallel is parallel simultaneously relatively using each magnitude, and every output code is also while producing parallel It is raw, so the advantages of parallel connection comparison A/D C, is that conversion speed is fast, the disadvantage is that it is at high cost, power consumption is big, so this ADC is suitable for It is required that high speed, the occasion of low resolution.SAR ADC is to generate comparison voltage one by one, is gradually compared respectively with input voltage Compared with carrying out analog-to-digital conversion in a manner of gradually approaching.SAR ADC convert every time will successive appraximation, need (n+1) A clock pulse could be completed, so it is slower than the conversion speed of comparison A/D C in parallel, type ADC more long-pending than double points is fast, belong to Fast ADC device.In addition when digit is more, it need to component than relatively type much less in parallel, so it is answered in integrated ADC With wider one kind.The present embodiment is by taking SAR ADC as an example, and Uref is the reference voltage of analog-to-digital conversion, if reference voltage Uref is 3.3V, and 12 minimum scale voltage computing formulas for gradually approaching type analog-to-digital converter are as follows:
Umin=Uref/2^12,
It can thus be appreciated that minimum scale voltage value in this example are as follows:
Umin=3.3V/2^12=3.3V/4096=0.8mV,
In addition, according to electric resistance partial pressure principle it is found that the voltage of Uin are as follows:
Uin=(R2/ (R1+R2)) * Ub,
Wherein, Ub is the voltage at lithium battery both ends, and Uin is the input terminal voltage of analog-digital converter.
In addition, according to the following formula:
(R2/ (R1+R2)) * Ub=Uref/2^12*Us,
It can thus be concluded that the digital voltage value of lithium battery both end voltage, calculation formula are as follows out:
Us=(R2/ (R1+R2)) * Ub/ (Uref/2^12),
Wherein, Us be analog-to-digital conversion after be worth digital voltage value.
The digital voltage value is successively saved in preset memory space in memory by step S80.
The digital voltage value at each moment is obtained, and the digital voltage value is successively saved into deposit preset into memory Space is stored up, with time change, can record the numerical value change of digital voltage value.
Step S90 obtains the digital voltage value of preset quantity in the default memory space, to the number of the preset quantity Word voltage value carries out root mean square calculation, obtains the corresponding first equal threshold voltage of the first voltage.
It is square by being carried out to N number of sampled value in this example since digital voltage value is a rapid jumping discrete magnitude Root calculates, and while being stored in default memory space per new one data of acquisition, removes an oldest data, so that is obtained is N number of Data are last updated data always.Root mean square is to calculate the first progress square of N number of sampled point, is then added, obtained N The quadratic sum of a sampled value is divided by N evolution again, so that it may obtain the average value of voltage.
The first equal threshold voltage is calculated by following formula:
Wherein, x is the first equal threshold voltage, xiFor the sampled data of i-th of first voltage, N is the number of sampled data.
The present embodiment by using successive approximation analog-digital converter to first voltage carry out analog-to-digital conversion, and to conversion after Digital voltage value carry out mean value computation, effectively remove due to circuit interference or noise cause pulse so that the voltage value reached It is more accurate.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with the detection program of capacity of lithium ion battery, it is real when the detection program of the capacity of lithium ion battery is executed by processor Now following operation:
When battery is fully charged, the first voltage at the battery both ends is obtained, the first voltage is sent to modulus and is turned Parallel operation;
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter, and to continuously adopting The digital voltage value of the preset quantity of sample carries out mean value computation, obtains the corresponding first equal threshold voltage of first voltage;
According to the difference of the described first equal threshold voltage and preset final discharging voltage, determine the battery can electricity consumption Pressure, and table is corresponded to according to preset voltage electricity, calculate the total capacity of the battery.
Further, following operation is also realized when the detection program of the battery capacity is executed by processor:
In battery discharge procedure, the second voltage that obtains the second voltage at present battery both ends, and will test is sent To analog-digital converter;
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter, and to continuously adopting The digital voltage value of the preset quantity of sample carries out mean value computation, obtains the corresponding second equal threshold voltage of second voltage;
According to the ratio of the described second equal threshold voltage and voltage available, the percentage of the remaining capacity of the battery is calculated Than.
Further, following operation is also realized when the detection program of the battery capacity is executed by processor:
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter;
The digital voltage value is successively saved in preset memory space in memory;
The digital voltage value for obtaining preset quantity in the default memory space, to the digital voltage value of the preset quantity Root mean square calculation is carried out, the corresponding first equal threshold voltage of the first voltage is obtained.
Further, following operation is also realized when the detection program of the battery capacity is executed by processor:
The first equal threshold voltage is calculated by following formula:
Wherein, x is the first equal threshold voltage, xiFor the sampled data of i-th of first voltage, N is the number of sampled data.
Further, following operation is also realized when the detection program of the battery capacity is executed by processor:
Voltage available is calculated by following formula:
U0=U1-U2,
Wherein, U0 is voltage available, and U1 is first voltage, and U2 is final discharging voltage;
Residual capacity percentage is calculated by following formula:
A=((Ub-U2)/U0) * 100%,
Wherein, A is residual capacity percentage, and Ub is second voltage, and U2 is final discharging voltage, and U0 is voltage available.
Further, following operation is also realized when the detection program of the battery capacity is executed by processor:
The analog-digital converter is successive approximation analog-digital converter.
The specific embodiment of computer readable storage medium of the present invention and the detection program of above-mentioned capacity of lithium ion battery are each Embodiment is essentially identical, and therefore not to repeat here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of detection method of capacity of lithium ion battery, which comprises the following steps:
When battery is fully charged, the first voltage at the battery both ends is obtained, the first voltage is sent to analog-digital converter;
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter, and to continuous sampling The digital voltage value of preset quantity carries out mean value computation, obtains the corresponding first equal threshold voltage of first voltage;
According to the difference of the described first equal threshold voltage and preset final discharging voltage, the voltage available of the battery is determined, and Table is corresponded to according to preset voltage electricity, calculates the total capacity of the battery.
2. the detection method of capacity of lithium ion battery as described in claim 1, which is characterized in that described according to described first The difference of equal threshold voltage and preset final discharging voltage determines the voltage available of the battery, and according to preset voltage electricity After the step of measuring corresponding table, calculating the total capacity of the battery, comprising:
In battery discharge procedure, the second voltage at present battery both ends is obtained, and the second voltage that will test is sent to mould Number converter;
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter, and to continuous sampling The digital voltage value of preset quantity carries out mean value computation, obtains the corresponding second equal threshold voltage of second voltage;
According to the ratio of the described second equal threshold voltage and voltage available, the percentage of the remaining capacity of the battery is calculated.
3. the detection method of capacity of lithium ion battery as described in claim 1, which is characterized in that described to be turned by the modulus The analog signal of the first voltage is converted to digital voltage value, and the digital voltage of the preset quantity to continuous sampling by parallel operation The step of value carries out mean value computation, obtains first voltage corresponding first equal threshold voltage, comprising:
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter;
The digital voltage value is successively saved in preset memory space in memory;
The digital voltage value for obtaining preset quantity in the default memory space carries out the digital voltage value of the preset quantity Root mean square calculation obtains the corresponding first equal threshold voltage of the first voltage.
4. the detection method of capacity of lithium ion battery as claimed in claim 3, which is characterized in that calculate institute by following formula State the first equal threshold voltage:
Wherein, x is the first equal threshold voltage, xiFor the sampled data of i-th of first voltage, N is sampled data number.
5. the detection method of capacity of lithium ion battery as claimed in claim 2, which is characterized in that can by the calculating of following formula With voltage:
U0=U1-U2,
Wherein, U0 is voltage available, and U1 is first voltage, and U2 is final discharging voltage;
Residual capacity percentage is calculated by following formula:
A=((Ub-U2)/U0) * 100%,
Wherein, A is residual capacity percentage, and Ub is second voltage, and U2 is final discharging voltage, and U0 is voltage available.
6. such as the detection method of capacity of lithium ion battery any one of claims 1 to 3, which is characterized in that the modulus Converter is successive approximation analog-digital converter.
7. a kind of device of the detection of capacity of lithium ion battery, which is characterized in that the detection device of the battery capacity includes: to deposit Reservoir, processor and the detection program for being stored in the battery capacity that can be run on the memory and on the processor, institute It states when the detection program of battery capacity is executed by the processor and realizes following steps:
When battery is fully charged, the first voltage at the battery both ends is obtained, the first voltage is sent to analog-digital converter;
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter, and to continuous sampling The digital voltage value of preset quantity carries out mean value computation, obtains the corresponding first equal threshold voltage of first voltage;
According to the difference of the described first equal threshold voltage and preset final discharging voltage, the voltage available of the battery is determined, and Table is corresponded to according to preset voltage electricity, calculates the total capacity of the battery.
8. the device of the detection of capacity of lithium ion battery as claimed in claim 7, which is characterized in that the inspection of the battery capacity Ranging sequence also realizes following steps when being executed by the processor:
In battery discharge procedure, the second voltage at present battery both ends is obtained, and the second voltage that will test is sent to mould Number converter;
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter, and to continuous sampling The digital voltage value of preset quantity carries out mean value computation, obtains the corresponding second equal threshold voltage of second voltage;
According to the ratio of the described second equal threshold voltage and voltage available, the percentage of the remaining capacity of the battery is calculated.
9. the device of the detection of capacity of lithium ion battery as claimed in claim 7, which is characterized in that the inspection of the battery capacity Ranging sequence also realizes following steps when being executed by the processor:
The analog signal of the first voltage is converted into digital voltage value by the analog-digital converter;
The digital voltage value is successively saved in preset memory space in memory;
The digital voltage value for obtaining preset quantity in the default memory space carries out the digital voltage value of the preset quantity Root mean square calculation obtains the corresponding first equal threshold voltage of the first voltage.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by the place Manage the step of realizing the detection method such as capacity of lithium ion battery described in any one of claims 1 to 6 when device executes.
CN201910067123.XA 2019-01-22 2019-01-22 Detection method, device and the computer readable storage medium of capacity of lithium ion battery Pending CN109581236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910067123.XA CN109581236A (en) 2019-01-22 2019-01-22 Detection method, device and the computer readable storage medium of capacity of lithium ion battery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910067123.XA CN109581236A (en) 2019-01-22 2019-01-22 Detection method, device and the computer readable storage medium of capacity of lithium ion battery

Publications (1)

Publication Number Publication Date
CN109581236A true CN109581236A (en) 2019-04-05

Family

ID=65917279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910067123.XA Pending CN109581236A (en) 2019-01-22 2019-01-22 Detection method, device and the computer readable storage medium of capacity of lithium ion battery

Country Status (1)

Country Link
CN (1) CN109581236A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111650518A (en) * 2020-05-14 2020-09-11 湖南立方新能源科技有限责任公司 Lithium ion battery full-capacity prediction method
CN112240985A (en) * 2019-07-18 2021-01-19 神讯电脑(昆山)有限公司 Method and system for detecting battery capacity
CN112810397A (en) * 2020-12-31 2021-05-18 Tcl空调器(中山)有限公司 Control method and device of air conditioner, storage medium and air conditioner
CN113238154A (en) * 2021-03-02 2021-08-10 翱捷科技股份有限公司 Method and system for measuring residual electric quantity of battery based on coulometer
CN113852148A (en) * 2021-08-26 2021-12-28 江苏东成工具科技有限公司 Method for detecting charging voltage of battery pack

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1732389A (en) * 2002-11-15 2006-02-08 索尼株式会社 Battery capacity calculating method, battery capacity calculating apparatus, and battery capacity calculating program
CN1889736A (en) * 2006-08-08 2007-01-03 北京天碁科技有限公司 Method for measuring mobile communication terminal battery electricity quantity
CN103675697A (en) * 2012-09-21 2014-03-26 株式会社杰士汤浅国际 Condition estimation device and method of generating open circuit voltage characteristics
CN103809125A (en) * 2014-02-13 2014-05-21 清华大学 Method and system for estimating residual discharge capacity of lithium ion battery
CN104020419A (en) * 2013-02-28 2014-09-03 东莞赛微微电子有限公司 Battery electric quantity metering system
CN104515955A (en) * 2014-12-26 2015-04-15 湖南森泰能源科技股份有限公司 Method and system for measuring residual remaining capacity of battery in constant-temperature state
CN107024665A (en) * 2017-05-17 2017-08-08 苏州协鑫集成储能科技有限公司 The residual capacity calibration method of battery
CN108717164A (en) * 2018-04-11 2018-10-30 中国电力科学研究院有限公司 The state-of-charge SOC scaling methods and system of battery

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1732389A (en) * 2002-11-15 2006-02-08 索尼株式会社 Battery capacity calculating method, battery capacity calculating apparatus, and battery capacity calculating program
CN1889736A (en) * 2006-08-08 2007-01-03 北京天碁科技有限公司 Method for measuring mobile communication terminal battery electricity quantity
CN103675697A (en) * 2012-09-21 2014-03-26 株式会社杰士汤浅国际 Condition estimation device and method of generating open circuit voltage characteristics
CN104020419A (en) * 2013-02-28 2014-09-03 东莞赛微微电子有限公司 Battery electric quantity metering system
CN103809125A (en) * 2014-02-13 2014-05-21 清华大学 Method and system for estimating residual discharge capacity of lithium ion battery
CN104515955A (en) * 2014-12-26 2015-04-15 湖南森泰能源科技股份有限公司 Method and system for measuring residual remaining capacity of battery in constant-temperature state
CN107024665A (en) * 2017-05-17 2017-08-08 苏州协鑫集成储能科技有限公司 The residual capacity calibration method of battery
CN108717164A (en) * 2018-04-11 2018-10-30 中国电力科学研究院有限公司 The state-of-charge SOC scaling methods and system of battery

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
宋莎 等: "《化学原理实验立体教材》", 31 July 2017 *
邓坤 等: "开路电压-安时法测量精度影响因素的实验研究", 《节能》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112240985A (en) * 2019-07-18 2021-01-19 神讯电脑(昆山)有限公司 Method and system for detecting battery capacity
CN111650518A (en) * 2020-05-14 2020-09-11 湖南立方新能源科技有限责任公司 Lithium ion battery full-capacity prediction method
CN112810397A (en) * 2020-12-31 2021-05-18 Tcl空调器(中山)有限公司 Control method and device of air conditioner, storage medium and air conditioner
CN113238154A (en) * 2021-03-02 2021-08-10 翱捷科技股份有限公司 Method and system for measuring residual electric quantity of battery based on coulometer
CN113852148A (en) * 2021-08-26 2021-12-28 江苏东成工具科技有限公司 Method for detecting charging voltage of battery pack

Similar Documents

Publication Publication Date Title
CN109581236A (en) Detection method, device and the computer readable storage medium of capacity of lithium ion battery
CN110869784B (en) Method and apparatus for estimating SOC-OCV curve
Pop et al. State-of-the-art of battery state-of-charge determination
US10809049B2 (en) Circuitry and techniques for determining swelling of a battery/cell and adaptive charging circuitry and techniques based thereon
Pop et al. Battery management systems: Accurate state-of-charge indication for battery-powered applications
US10557892B2 (en) Energy storage device state estimation device and energy storage device state estimation method
US11150307B2 (en) Apparatus and method for diagnosing battery
CN104360285B (en) A kind of battery capacity modification method based on improved ampere-hour integration method
WO2011004550A1 (en) Circuit for counting number of cycles, battery pack, and battery system
EP3674730B1 (en) Battery diagnostic device and method
KR101650415B1 (en) Apparatus for estimating voltage of hybrid secondary battery and Method thereof
KR101837453B1 (en) Computations method and appartus for secondary battery remaining capacity
JP2005315597A (en) Remaining capacity calculation method and battery pack of secondary battery
JP2013254710A (en) Power storage element life estimation device, life estimation method, and power storage system
CN107169170A (en) A kind of Forecasting Methodology of battery remaining power
JP2013064697A (en) Secondary cell system
Pop et al. State-of-the-art of battery state-of-charge determination
KR101726384B1 (en) Apparatus and method for controlling charging of secondary battery
CN108303658A (en) Lead-acid battery difference charging and discharging curve acquisition methods
CN106300469B (en) Digital power management unit and management method
JP4246142B2 (en) Charger
JP7372007B2 (en) Battery management device and method
KR20120075756A (en) Computations method and appartus for secondary battery remaining life
KR101145993B1 (en) Prediction method of soc for battery
JP6907449B2 (en) Battery charge status estimation device and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190405

RJ01 Rejection of invention patent application after publication