CN104280686A - Storage battery residual electric quantity detection method - Google Patents
Storage battery residual electric quantity detection method Download PDFInfo
- Publication number
- CN104280686A CN104280686A CN201410539126.6A CN201410539126A CN104280686A CN 104280686 A CN104280686 A CN 104280686A CN 201410539126 A CN201410539126 A CN 201410539126A CN 104280686 A CN104280686 A CN 104280686A
- Authority
- CN
- China
- Prior art keywords
- battery
- state
- charging
- power
- max
- 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.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 50
- 238000005070 sampling Methods 0.000 claims abstract description 60
- 238000007599 discharging Methods 0.000 claims abstract description 42
- 238000000034 method Methods 0.000 claims abstract description 42
- 230000005611 electricity Effects 0.000 abstract description 9
- 230000032683 aging Effects 0.000 abstract description 5
- 230000007613 environmental effect Effects 0.000 abstract description 4
- 238000006243 chemical reaction Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 19
- 238000013507 mapping Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 230000010287 polarization Effects 0.000 description 6
- HBBGRARXTFLTSG-UHFFFAOYSA-N Lithium ion Chemical compound [Li+] HBBGRARXTFLTSG-UHFFFAOYSA-N 0.000 description 3
- 230000007423 decrease Effects 0.000 description 3
- 229910001416 lithium ion Inorganic materials 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003313 weakening effect Effects 0.000 description 1
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
- Tests Of Electric Status Of Batteries (AREA)
Abstract
本发明公开了一种蓄电池剩余电量检测方法,包括以下步骤:S1:初始化;S2:判断蓄电池当前处于充电状态还是放电状态,如果处于充电状态则进行充电状态电量检测,如果处于放电状态则进行放电状态电量检测;S3:动态设置采样频率,返回步骤S2。本发明在不增加硬件成本的前提下,使蓄电池的电量检测结果变得非常准确,解决了充电设备的使用者无法准确把握设备剩余电量的问题,在使用过程中具有累计误差自动校准的能力,可以自动适应蓄电池老化和环境温度变化对蓄电池储电能力和放电能力的影响,能够自动调整工作频率,以适应蓄电池变化的工作状态,实现了变频采样,可广泛使用于智能手机、平板电脑、便携式计算机、电动汽车等充电设备。
The invention discloses a method for detecting the remaining power of a storage battery, which includes the following steps: S1: initialization; S2: judging whether the storage battery is currently in a charging state or a discharging state, and if it is in a charging state, it will detect the amount of electricity in the charging state, and if it is in a discharging state, it will perform discharge State power detection; S3: Dynamically set the sampling frequency, return to step S2. On the premise of not increasing the hardware cost, the present invention makes the battery power detection result very accurate, solves the problem that the user of the charging device cannot accurately grasp the remaining power of the device, and has the ability of automatic calibration of accumulated errors during use, It can automatically adapt to the impact of battery aging and environmental temperature changes on the storage capacity and discharge capacity of the battery, and can automatically adjust the working frequency to adapt to the changing working state of the battery, realizing frequency conversion sampling, and can be widely used in smart phones, tablet computers, portable Computers, electric vehicles and other charging equipment.
Description
技术领域technical field
本发明涉及一种模拟量检测方法,特别涉及一种蓄电池剩余电量检测方法。The invention relates to an analog quantity detection method, in particular to a storage battery remaining power detection method.
背景技术Background technique
在充电设备中通常使用模拟量采集器获取蓄电池的极板间电压,由蓄电池剩余电量百分比与蓄电池极板间电压的映射关系,间接地获取蓄电池剩余电量百分比。In the charging equipment, the analog quantity collector is usually used to obtain the voltage between the plates of the battery, and the percentage of the remaining power of the battery is obtained indirectly from the mapping relationship between the percentage of the remaining power of the battery and the voltage between the plates of the battery.
然而,如图1所示,蓄电池剩余电量百分比与蓄电池的极板间电压,在函数图像中往往只在中段呈现近似的线性相关,但是当电量较低或较高时,蓄电池的极板间电压随蓄电池剩余电量百分比的降低而快速下降。这造成充电设备在刚充满电或剩余电量较低时,充电设备中所显示的剩余电量百分比数值快速下降,让使用者无法准确地把握充电设备的剩余电量。However, as shown in Figure 1, the percentage of remaining battery capacity and the voltage between the plates of the battery often only show an approximate linear correlation in the middle section of the function graph, but when the charge is low or high, the voltage between the plates of the battery Decreases rapidly as the percentage of remaining battery charge decreases. As a result, when the charging device is just fully charged or the remaining power is low, the percentage value of the remaining power displayed in the charging device drops rapidly, so that the user cannot accurately grasp the remaining power of the charging device.
有一部分充电设备,在以上蓄电池剩余电量百分比检测方法的基础上,对蓄电池剩余电量百分比与蓄电池极板间电压的映射关系进行修正,使其在蓄电池电量较低和电量较高时,蓄电池极板间电压可以更加准确地映射到蓄电池剩余电量百分比,使充电设备的剩余电量百分比数值显示更为准确。但是当充电设备的运行功率突然增大时,由于蓄电池极板极化现象的存在,蓄电池极板间电压明显下降,使得充电设备检测到的蓄电池剩余电量百分比明显偏低。这使得充电设备在电量较低时,一旦突然进入较大功率的工作状态,将立刻错误地认为蓄电池电量过低,造成充电设备异常地自动关机。Some charging equipment, on the basis of the above method for detecting the percentage of remaining battery power, correct the mapping relationship between the percentage of remaining battery power and the voltage between the battery plates, so that when the battery power is low and the power is high, the battery plate The inter-voltage can be more accurately mapped to the percentage of remaining power of the battery, so that the value of the percentage of remaining power of the charging device can be displayed more accurately. However, when the operating power of the charging equipment suddenly increases, due to the existence of the polarization phenomenon of the battery plates, the voltage between the battery plates drops significantly, so that the percentage of remaining battery power detected by the charging equipment is obviously low. This makes the charging equipment when the power is low, once it suddenly enters a higher power working state, it will immediately mistakenly think that the battery power is too low, causing the charging equipment to automatically shut down abnormally.
在一台充电设备剩余电量较多时,突然进入较大功率工作状态后往往不会自动关机,但是充电设备所显示的剩余电量百分比数值会迅速减小。然而,当充电设备再次回到较小功率的工作状态之后,由于蓄电池极板极化程度减弱,蓄电池极板间电压回升,蓄电池剩余电量检测结果会出现回升,造成充电设备显示的剩余电量百分比数值回弹的错误。When a charging device has a lot of remaining power, it will not automatically shut down after suddenly entering a high-power working state, but the value of the remaining power percentage displayed by the charging device will decrease rapidly. However, when the charging device returns to the working state of low power again, due to the weakening of the polarization of the battery plates, the voltage between the battery plates will rise, and the detection result of the remaining battery power will rise, resulting in the percentage value of the remaining power displayed by the charging device. Bouncing back errors.
无论以上哪一种蓄电池剩余电量检测方法,均采用通过蓄电池极板间电压间接获取蓄电池剩余电量百分比的方法。但是由于蓄电池剩余电量百分比与蓄电池极板间电压的非线性相关,以及蓄电池极板极化现象的存在,通过蓄电池极板间电压,间接获取蓄电池剩余电量百分比的方法,无法准确地检测到蓄电池的剩余电量百分比。No matter which of the above methods for detecting the remaining capacity of the battery, the method of indirectly obtaining the percentage of the remaining capacity of the battery through the voltage between the plates of the battery is adopted. However, due to the non-linear correlation between the percentage of remaining battery power and the voltage between the battery plates, and the existence of the polarization phenomenon of the battery plates, the method of indirectly obtaining the percentage of the remaining power of the battery through the voltage between the battery plates cannot accurately detect the battery. The percentage of battery remaining.
发明内容Contents of the invention
本发明的目的在于克服现有技术中存在的不足造成使用者无法准确把握充电设备剩余电量的问题,提供一种检测结果非常准确的,可避免充电设备所显示的剩余电量百分比数值回弹错误的,能够在保证剩余电量百分比检测结果准确性的同时,兼顾省电特性的蓄电池剩余电量检测方法。The purpose of the present invention is to overcome the disadvantages in the prior art that the user cannot accurately grasp the remaining power of the charging device, and provide a device with very accurate detection results that can avoid rebounding errors in the percentage of remaining power displayed by the charging device. The method for detecting the remaining power of the storage battery can ensure the accuracy of the detection result of the percentage of the remaining power while taking into account the power saving characteristics.
本发明的目的是通过以下技术方案来实现的:一种蓄电池剩余电量检测方法,包括以下步骤:The object of the present invention is achieved through the following technical solutions: a method for detecting the remaining power of a storage battery, comprising the following steps:
S1:初始化,对需要使用的参数进行初始化设置;S1: Initialize, initialize and set the parameters to be used;
S2:判断蓄电池当前处于充电状态还是放电状态,如果处于充电状态则进行步骤S3,如果处于放电状态则进行步骤S4;S2: Determine whether the battery is currently in a charging state or a discharging state, if it is in a charging state, go to step S3, if it is in a discharging state, go to step S4;
S3:进行充电状态电量检测;S3: Carry out battery detection of the state of charge;
S4:进行放电状态电量检测;S4: Carry out electric quantity detection in discharge state;
S5:动态设置采样频率,返回步骤S2。S5: Dynamically set the sampling frequency, return to step S2.
进一步地,所述的步骤S1的初始化包括以下子步骤:Further, the initialization of step S1 includes the following sub-steps:
S11:设蓄电池当前剩余电量百分比为q,q为蓄电池当前剩余电量占蓄电池最大电量的百分比,即为最终检测变量;S11: Set the current remaining power percentage of the battery as q, and q is the percentage of the current remaining power of the battery to the maximum power of the battery, which is the final detection variable;
S12:设蓄电池当前剩余电量为Q,并初始化Q,令Q=0;S12: Set the current remaining power of the battery as Q, and initialize Q, so that Q=0;
S13:设蓄电池最大电量为Qmax;S13: set the maximum battery capacity as Q max ;
S14:设充电状态采样周期为Ti,放电状态采样周期为To;S14: Set the charging state sampling period as T i , and the discharging state sampling period as T o ;
S15:设蓄电池电压上限为Umax,蓄电池电压下限为Umin;S15: Set the upper limit of battery voltage as U max , and the lower limit of battery voltage as U min ;
S16:设电功率数列W,其项数上限为N;S16: Set the electric power series W, and the upper limit of the number of items is N;
S17:设蓄电池充/放电状态标识为Flag(其值为0时表示充电状态,其值为1时表示放电状态)。S17: Set the battery charging/discharging status flag as Flag (a value of 0 indicates a charging status, and a value of 1 indicates a discharging status).
进一步地,所述的蓄电池在理论上存在三种状态,分别为充电状态、放电状态和闲置状态,将蓄电池的闲置状态视为放电状态中一种放电电流为0的特殊放电状态,因此蓄电池只有充电和放电两种状态,非此即彼。Further, the storage battery theoretically has three states, which are charging state, discharging state and idle state, and the idle state of the battery is regarded as a special discharge state in which the discharge current is 0 in the discharging state, so the storage battery only has There are two states of charging and discharging, either one or the other.
进一步地,所述的步骤S3中进行充电状态电量检测包括以下子步骤:Further, the detection of the state of charge in the step S3 includes the following sub-steps:
S31:判断Flag是否等于1,若Flag==1则令Flag=0并清空数列W;S31: Determine whether Flag is equal to 1, if Flag==1, set Flag=0 and clear the sequence W;
S32:获取充电电流值Ii;S32: Obtain the charging current value I i ;
S33:使Q累加Ii*Ti,即Q=Q+Ii*Ti;S33: Accumulate Q by I i *T i , that is, Q=Q+I i *T i ;
S34:获取充电电压值Ui;S34: Obtain the charging voltage value U i ;
S35:令q=f(Ui),其中f(Ui)为蓄电池剩余电量百分比关于蓄电池极板间电压的函数值;S35: Let q=f(U i ), where f(U i ) is the function value of the percentage of remaining power of the battery with respect to the voltage between the plates of the battery;
S36:判断Ui是否等于Umax,若Ui==Umax则令Qmax=Q;S36: Determine whether U i is equal to U max , if U i == U max , set Q max =Q;
S37:等待充电状态采样周期Ti;S37: Wait for the charging state sampling period T i ;
S38:将Ui与Ii的乘积添加到数列W中。S38: Add the product of U i and I i to the sequence W.
进一步地,所述的步骤S4中放电状态电量检测包括以下子步骤:Further, the detection of the discharge state electricity in the step S4 includes the following sub-steps:
S41:判断Flag是否等于0,若Flag==0则令Flag=1并清空数列W;S41: Determine whether Flag is equal to 0, if Flag==0, set Flag=1 and clear the sequence W;
S42:获取放电电流Io;S42: Obtain the discharge current I o ;
S43:判断Io是否小于C*Qmax,若Io<C*Qmax则获取放电电压值Uo;否则使Q累减Io*To,即Q=Q-Io*To,然后进行步骤S46的操作;S43: Judging whether I o is less than C*Q max , if I o <C*Q max , obtain the discharge voltage value U o ; otherwise, subtract I o *T o from Q, that is, Q=QI o *T o , and then proceed The operation of step S46;
S44:判断Uo是否等于Umin,若Uo==Umin,则令Q=0且q=0,然后进行步骤S47的操作;S44: Judging whether U o is equal to U min , if U o == U min , set Q=0 and q=0, and then proceed to step S47;
S45:判断q是否大于蓄电池剩余电量百分比关于蓄电池极板间电压的函数值f(Uo),若q>f(Uo),则令q=f(Uo)且Q=q*Qmax,然后进行步骤S47的操作,否则直接进行步骤S47的操作;S45: Judging whether q is greater than the percentage of remaining power of the battery with respect to the function value f(U o ) of the voltage between the battery plates, if q>f(U o ), then set q=f(U o ) and Q=q*Q max , then carry out the operation of step S47, otherwise directly carry out the operation of step S47;
S46:判断Q/Qmax是否小于q,若Q/Qmax<q则使q=Q/Qmax;S46: judge whether Q/Q max is less than q, if Q/Q max <q then make q=Q/Q max ;
S47:等待放电状态采样周期To;S47: waiting for the discharge state sampling period T o ;
S48:将Uo与Io的乘积添加到数列W中。S48: Add the product of U o and I o to the sequence W.
进一步地,所述的S5中动态设置采样频率包括以下步骤:Further, dynamically setting the sampling frequency in the described S5 includes the following steps:
S51:计算数列W的标准差α;S51: Calculate the standard deviation α of the sequence W;
S52:判断Flag是否等于0,若Flag==0则进行步骤S53,否则进行步骤S54;S52: judge whether Flag is equal to 0, if Flag==0, proceed to step S53, otherwise proceed to step S54;
S53:令Ti等于充电状态采样周期关于数W标准差α的函数值Tin(α);S53: Make T i equal to the function value T in (α) of the charging state sampling period with respect to the number W standard deviation α;
S54:令To等于放电状态采样周期关于数列W标准差α的函数值Tout(α)。S54: Let T o be equal to the function value T out (α) of the discharge state sampling period with respect to the standard deviation α of the sequence W.
本发明的有益效果是:The beneficial effects of the present invention are:
1、在不增加硬件成本的前提下,使蓄电池的电量检测结果变得非常准确,解决了充电设备的使用者无法准确把握设备剩余电量的问题,同时本发明的检测方法还可以避免当蓄电池负载较大时,因蓄电池极板极化使充电设备误以为电量耗尽而异常地自动关机的现象,更加避免了充电设备所显示的剩余电量百分比数值回弹的错误;1. On the premise of not increasing the hardware cost, the detection result of the battery power becomes very accurate, which solves the problem that the user of the charging device cannot accurately grasp the remaining power of the device. When it is larger, the phenomenon that the charging equipment mistakenly thinks that the power is exhausted due to the polarization of the battery plate will automatically shut down abnormally, and the error of the percentage value of the remaining power displayed by the charging equipment will be avoided;
2、本发明的检测方法在使用过程中具有累计误差自动校准的能力,可以自动适应蓄电池老化和环境温度变化对蓄电池储电能力和放电能力的影响,能够自动调整工作频率,以适应蓄电池变化的工作状态,实现了变频采样,进而在保证蓄电池剩余电量百分比检测结果准确性的前提下,兼顾了方法的省电特性;2. The detection method of the present invention has the ability of automatic calibration of accumulated errors during use, can automatically adapt to the influence of battery aging and environmental temperature changes on the storage capacity and discharge capacity of the battery, and can automatically adjust the working frequency to adapt to the changes in the battery. In the working state, the frequency conversion sampling is realized, and the power saving characteristics of the method are taken into account on the premise of ensuring the accuracy of the detection result of the percentage of remaining battery power;
3、普遍适用于各种类型、各种型号的充电设备,在不增加硬件成本的前提下,以纯粹的软件算法实现了充电设备内部蓄电池剩余电量的准确检测功能,不受到操作系统的限制,可广泛使用于智能手机、平板电脑、便携式计算机、电动汽车等充电设备。3. It is generally applicable to various types and models of charging equipment. On the premise of not increasing the hardware cost, it realizes the accurate detection function of the remaining battery power in the charging equipment with pure software algorithm, and is not limited by the operating system. It can be widely used in charging equipment such as smartphones, tablet computers, portable computers, and electric vehicles.
附图说明Description of drawings
图1为一块锂离子电池剩余电量百分比与极板间电压关系图;Fig. 1 is a diagram showing the relationship between the remaining power percentage of a lithium-ion battery and the voltage between the pole plates;
图2为本发明的检测方法流程图;Fig. 2 is the detection method flowchart of the present invention;
图3为本发明的检测方法中初始化步骤的流程图;Fig. 3 is the flowchart of initialization step in the detection method of the present invention;
图4为本发明的检测方法中充电状态电量检测步骤的流程图;Fig. 4 is the flow chart of the detection step of state of charge electric quantity in the detection method of the present invention;
图5为本发明的检测方法中放电状态电量检测步骤的流程图;Fig. 5 is the flow chart of the electric quantity detection step of discharge state in the detection method of the present invention;
图6为本发明的检测方法中动态设置采样频率步骤的流程图。Fig. 6 is a flowchart of the step of dynamically setting the sampling frequency in the detection method of the present invention.
具体实施方式Detailed ways
下面结合附图进一步说明本发明的技术方案,但本发明所保护的内容不局限于以下所述。The technical solution of the present invention will be further described below in conjunction with the accompanying drawings, but the content protected by the present invention is not limited to the following description.
如图2所示,一种蓄电池剩余电量检测方法,包括以下步骤:As shown in Figure 2, a method for detecting the remaining power of a storage battery includes the following steps:
S1:初始化,对需要使用的参数进行初始化设置;S1: Initialize, initialize and set the parameters to be used;
S2:判断蓄电池当前处于充电状态还是放电状态,如果处于充电状态则进行步骤S3,如果处于放电状态则进行步骤S4;S2: Determine whether the battery is currently in a charging state or a discharging state, if it is in a charging state, go to step S3, if it is in a discharging state, go to step S4;
S3:进行充电状态电量检测;S3: Carry out battery detection of charging state;
S4:进行放电状态电量检测;S4: Carry out electric quantity detection in discharge state;
S5:动态设置采样频率,返回步骤S2。S5: Dynamically set the sampling frequency, return to step S2.
在蓄电池剩余电量检测开始执行时,首先对方法中需要使用的各项参数进行定义和初始赋值,接下来正式进入方法的循环结构,实时获取蓄电池剩余电量百分比,进而实现对充电设备内部蓄电池剩余电量百分比的准确检测,如图3所示,所述的步骤S1的初始化包括以下子步骤:When the battery remaining power detection starts, first define and initially assign the parameters that need to be used in the method, and then formally enter the loop structure of the method to obtain the percentage of the remaining battery power in real time, and then realize the remaining power of the battery inside the charging device The accurate detection of percentage, as shown in Figure 3, the initialization of described step S1 comprises the following sub-steps:
S11:设蓄电池当前剩余电量百分比为q:S11: Set the percentage of the current remaining power of the battery as q:
q为蓄电池当前剩余电量占蓄电池最大电量的百分比,即为最终检测变量;q为一个百分数,介于0~100%之间,它表示当前蓄电池中剩余电量占蓄电池最大电量的百分比,即通常在智能手机、平板电脑等智能移动终端中显示的“剩余电量百分数”。由于蓄电池的储电能力和放电能力均受蓄电池老化、环境温度变化等诸多因素影响,因此本实施例的目的即为检测出q的值,即q为本“蓄电池剩余电量检测方法”的最终目标参数,其它所有参数的存在均为保证蓄电池剩余电量百分比q的准确性;q is the percentage of the current remaining power of the battery to the maximum power of the battery, which is the final detection variable; q is a percentage, between 0 and 100%, which indicates the percentage of the current remaining power in the battery to the maximum power of the battery, that is, usually in The "remaining battery percentage" displayed on smart mobile terminals such as smartphones and tablets. Since the power storage capacity and discharge capacity of the battery are affected by many factors such as battery aging and environmental temperature changes, the purpose of this embodiment is to detect the value of q, that is, q is the ultimate goal of this "battery remaining power detection method" parameter, the existence of all other parameters is to ensure the accuracy of the battery remaining power percentage q;
S12:设蓄电池当前剩余电量为Q,并初始化Q,令Q=0:S12: Set the current remaining power of the battery as Q, and initialize Q, so that Q=0:
Q是一个小数,它用于表示蓄电池中当前的剩余电量,它的单位为电流单位与时间单位的乘积,通常为毫安时(mA.H)或安时(A.H),Q的值被初始化为0,表示蓄电池在刚被激活时的电量为0;Q is a decimal, it is used to represent the current remaining power in the battery, its unit is the product of the current unit and the time unit, usually milliampere-hour (mA.H) or ampere-hour (A.H), the value of Q is initialized is 0, indicating that the power of the battery is 0 when it is just activated;
S13:设蓄电池最大电量为Qmax:S13: Set the maximum battery capacity as Q max :
Qmax是一个小数,它用于表示蓄电池所能存储的最大电量,即Qmax的值为蓄电池满电状态时的电量大小,其单位为电流单位与时间单位的乘积,通常为毫安时(mA.H)或安时(A.H),Qmax的值在每一次充电完成时进行更新和校准,进而实现了自动适应蓄电池老化和环境温度变化对蓄电池储电能力和放电能力的影响;Q max is a decimal number, which is used to represent the maximum amount of electricity that the battery can store, that is, the value of Q max is the amount of electricity when the battery is fully charged, and its unit is the product of the current unit and the time unit, usually milliamp hours ( mA.H) or ampere-hour (AH), the value of Q max is updated and calibrated when each charge is completed, thereby realizing automatic adaptation to the impact of battery aging and ambient temperature changes on battery storage capacity and discharge capacity;
S14:设充电状态采样周期为Ti,放电状态采样周期为To:S14: Set the charging state sampling period as T i , and the discharging state sampling period as T o :
Ti是一个小数,它用于表示蓄电池充电状态时采样周期的大小,根据频率与周期的关系式f=1/T,当Ti的值越小时,充电状态采样频率越高,当Ti的值越大时,充电状态采样频率越低;To是一个小数,它用于表示蓄电池放电状态时采样周期的大小,当To的值越小时,放电状态采样频率越高,当To的值越大时,放电状态采样频率越低;T i is a decimal number, it is used to indicate the size of the sampling cycle when the storage battery is charged, according to the relationship between frequency and cycle f = 1/T, when the value of T i is smaller, the sampling frequency of the charging state is higher, when T i The larger the value of , the lower the sampling frequency of the charging state; T o is a decimal, which is used to represent the size of the sampling period when the battery is in the discharge state. When the value of T o is smaller, the sampling frequency of the discharging state is higher. When T o The larger the value of , the lower the sampling frequency of the discharge state;
需要注意的是:采样频率越高,精度会越高,采样频率越低,精度会越低。但是精度越高,相应的计算量增加会带来一定程度的耗电量增大,因此在具体实施时需要权衡其中的利弊,构造合适的采样周期函数。除此之外,在为Ti和To赋予初始值时,根据实际需要赋予一个较小且不为0的值即可,因为在之后的执行过程中会自动调整Ti和To的值。It should be noted that the higher the sampling frequency, the higher the accuracy, and the lower the sampling frequency, the lower the accuracy. However, the higher the accuracy, the corresponding increase in the amount of calculation will lead to a certain increase in power consumption. Therefore, it is necessary to weigh the pros and cons in the specific implementation and construct a suitable sampling period function. In addition, when assigning initial values to T i and T o , it is sufficient to assign a smaller value that is not 0 according to actual needs, because the values of T i and T o will be automatically adjusted in the subsequent execution process .
S15:设蓄电池电压上限为Umax,蓄电池电压下限为Umin:S15: Set the upper limit of battery voltage as U max , and the lower limit of battery voltage as U min :
Umax是一个小数,它用于表示蓄电池极板间的电压上限,其单位通常为伏特(V)或毫伏(mV),蓄电池处于充电状态时,当蓄电池极板间电压达到Umax,即表示蓄电池的充电工作完成。需要注意的是,不同类型的蓄电池,电压上限往往相差甚远。因此,在实际应用中需要根据蓄电池的类型,为Umax设置相应的值,例如锂离子电池的Umax值为4.2;U max is a decimal number, which is used to represent the upper limit of the voltage between the battery plates, and its unit is usually volts (V) or millivolts (mV). When the battery is in a charging state, when the voltage between the battery plates reaches U max , that is Indicates that the charging of the battery is complete. It should be noted that the upper voltage limit of different types of batteries often varies greatly. Therefore, in practical applications, it is necessary to set a corresponding value for U max according to the type of battery, for example, the U max value of a lithium-ion battery is 4.2;
Umin是一个小数,它用于表示蓄电池极板间的电压下限,其单位为伏特(V)或毫伏(mV),当蓄电池极板间开路电压小于等于Umin时,即表示蓄电池电量已经耗尽。需要注意的是,不同类型的蓄电池,电压下限往往相差甚远。因此,在实际应用中需要根据蓄电池的类型,为Umin设置相应的值,例如锂离子电池的Umin值为3。U min is a decimal, it is used to indicate the lower limit of the voltage between the battery plates, its unit is volts (V) or millivolts (mV), when the open circuit voltage between the battery plates is less than or equal to U min , it means that the battery power has been run out. It should be noted that the lower voltage limit of different types of batteries often varies greatly. Therefore, in practical applications, it is necessary to set a corresponding value for U min according to the type of battery, for example, the value of U min for a lithium-ion battery is 3.
S16:设电功率数列W,其项数上限为N:S16: Assume that the electric power series W has an upper limit of N items:
W中的每一项均为一个小数,表示蓄电池在某一个时刻的充电或放电功率值,为保证系统稳定性,同时也为节约充电设备的内存空间,充电状态电量检测和放电状态电量检测共用W数列,具体实施方法在“充电状态电量检测”和“放电状态电量检测”步骤中详细说明。需要注意的是,将数列W的项数限制在N以下,是为了防止此方法在执行过程中无休止地占用充电设备内存空间,同时也是为了保证方法对蓄电池工作状态的响应速率。N的值越大,系统运行越平稳,但是方法对蓄电池工作状态的响应速率会相应变慢,反之N的值越小,方法对蓄电池工作状态的响应速率会越快,但是系统运行稳定性会相应减弱。因此,在实际应用中,需要根据实际的需要为N设置一个合适的值;Each item in W is a decimal, indicating the charging or discharging power value of the battery at a certain moment. In order to ensure the stability of the system and save the memory space of the charging device, the power detection of the charging state and the power detection of the discharging state are shared. W sequence, the specific implementation method is described in detail in the steps of "detection of electric quantity in charge state" and "detection of electric quantity in discharge state". It should be noted that limiting the number of items in the sequence W to less than N is to prevent the method from occupying the memory space of the charging device endlessly during execution, and also to ensure the response rate of the method to the working state of the battery. The larger the value of N, the more stable the system operation, but the response rate of the method to the working state of the battery will be correspondingly slower. On the contrary, the smaller the value of N, the faster the response rate of the method to the working state of the battery, but the stability of the system operation will be reduced. Correspondingly weakened. Therefore, in practical applications, it is necessary to set an appropriate value for N according to actual needs;
S17:设蓄电池充/放电状态标识为Flag:S17: Set the battery charging/discharging status flag as Flag:
Flag是一个布尔型变量,它的值为假时,表示蓄电池处于充电状态,它的值为真时,表示蓄电池处于放电状态。(本文中以0表示假,以1表示真)Flag is a Boolean variable. When its value is false, it means that the battery is in a state of charging. When its value is true, it means that the battery is in a state of discharge. (In this article, 0 means false and 1 means true)
在初始化工作完成之后,立即判断蓄电池当前处于充电状态还是放电状态,在充电状态和放电状态时分别使用不同的检测方法,对蓄电池的剩余电量进行检测。所述的蓄电池在理论上存在三种状态,分别为充电状态、放电状态和闲置状态,本实施例中将蓄电池的闲置状态视为放电状态中一种放电电流为0的特殊放电状态,因此蓄电池只有充电和放电两种状态,非此即彼。After the initialization work is completed, it is immediately judged whether the storage battery is currently in a charging state or a discharging state, and different detection methods are used in the charging state and discharging state to detect the remaining power of the storage battery. The storage battery has three states in theory, which are charging state, discharging state and idle state respectively. In this embodiment, the idle state of the storage battery is regarded as a special discharge state in which the discharge current is 0 in the discharging state. Therefore, the storage battery There are only two states of charging and discharging, either one or the other.
本实施例所述的步骤S3中进行充电状态电量检测的方法为:在蓄电池处于充电状态时,通过蓄电池剩余电量百分比与蓄电池极板间电压的映射关系,获取蓄电池剩余电量百分比的同时,通过对蓄电池充电电流进行关于时间的积分,对蓄电池的剩余电量进行统计。在蓄电池充电完成时,对蓄电池的最大电量值进行更新,进而实现了蓄电池剩余电量检测过程中,产生的累计误差自动校准,其具体流程如图4所示,包括以下子步骤:The method for detecting the charge state electricity in step S3 described in this embodiment is as follows: when the battery is in the charging state, through the mapping relationship between the percentage of remaining power of the battery and the voltage between the plates of the battery, while obtaining the percentage of remaining power of the battery, by The charging current of the battery is integrated with respect to time, and the remaining power of the battery is counted. When the charging of the battery is completed, the maximum power value of the battery is updated, thereby realizing the automatic calibration of the cumulative error generated during the detection of the remaining battery power. The specific process is shown in Figure 4, including the following sub-steps:
S31:判断Flag是否等于1,若Flag==1则令Flag=0并清空数列W;S31: Determine whether Flag is equal to 1, if Flag==1, set Flag=0 and clear the sequence W;
S32:获取充电电流值Ii;S32: Obtain the charging current value I i ;
S33:使Q累加Ii*Ti,即Q=Q+Ii*Ti;S33: Accumulate Q by I i *T i , that is, Q=Q+I i *T i ;
S34:获取充电电压值Ui;S34: Obtain the charging voltage value U i ;
S35:令q=f(Ui),其中f(Ui)为蓄电池剩余电量百分比关于蓄电池极板间电压的函数值;S35: Let q=f(U i ), where f(U i ) is the function value of the percentage of remaining power of the battery with respect to the voltage between the plates of the battery;
S36:判断Ui是否等于Umax,若Ui==Umax则令Qmax=Q;S36: Determine whether U i is equal to U max , if U i == U max , set Q max =Q;
S37:等待充电状态采样周期Ti;S37: Wait for the charging state sampling period T i ;
S38:将Ui与Ii的乘积添加到数列W中。S38: Add the product of U i and I i to the sequence W.
步骤S31的目的是:在蓄电池从放电状态进入充电状态时,将表示蓄电池状态的变量Flag置为0,表示蓄电池已经进入充电状态;在蓄电池从放电状态进入充电状态时,将数列W中现存的放电功率数值全部清除,在接下来的“充电状态电量检测”工作中用于存储充电功率数值。The purpose of step S31 is: when the storage battery enters the charging state from the discharge state, the variable Flag representing the storage battery state is set to 0, indicating that the storage battery has entered the charging state; when the storage battery enters the charging state from the discharging state, the existing All discharge power values are cleared, and are used to store charging power values in the next work of "charging state power detection".
步骤S32和S33的目的是:记录充电状态采样周期Ti这一段时间内,蓄电池充入了多少电量。The purpose of steps S32 and S33 is to record the amount of electricity charged into the battery during the charging state sampling period T i .
步骤S34和S35的目的是:通过蓄电池剩余电量百分比与蓄电池极板间电压的映射关系,间接获取蓄电池剩余电量百分比q,f(x)是蓄电池剩余电量百分比q关于蓄电池极板间电压的函数,在实际应用中可根据蓄电池种类和蓄电池性能,构造合适的f(x)函数解析式,将充电电压Ui带入即可得到蓄电池剩余电量百分比q=f(Ui)。The purpose of steps S34 and S35 is to indirectly obtain the percentage of remaining battery power q through the mapping relationship between the percentage of remaining power of the battery and the voltage between the battery plates, f(x) is a function of the percentage of remaining power of the battery q on the voltage between the plates of the battery, In practical applications, an appropriate f(x) function analytical formula can be constructed according to the type and performance of the battery, and the remaining charge percentage q=f(U i ) of the battery can be obtained by bringing the charging voltage U i into it.
步骤S36的目的是:当蓄电池极板间电压达到上限Umax时,表示蓄电池充电完成,这时将蓄电池剩余电量Q的值赋予Qmax,即更新了Qmax的值,同时完成了对Qmax的校准。The purpose of step S36 is: when the voltage between the battery plates reaches the upper limit U max , it means that the charging of the battery is completed. At this time, the value of the remaining battery capacity Q is assigned to Q max , that is, the value of Q max is updated, and the adjustment of Q max is completed at the same time. calibration.
步骤S37的目的是:控制充电状态采样频率,需要注意的是,为保证此方法中检测到的蓄电池剩余电量百分比q的准确性,在等待充电状态采样周期Ti时,需要考虑在“充电状态电量检测”这一步骤中作逻辑判断和数值运算所消耗的时间,即需要保证前后两次采样动作之间的时间间隔为准确的Ti。The purpose of step S37 is to control the sampling frequency of the state of charge. It should be noted that, in order to ensure the accuracy of the percentage q of the remaining power of the battery detected in this method, when waiting for the sampling period T i of the state of charge, it is necessary to consider The time consumed for logical judgment and numerical calculation in the step of "power detection" means that the time interval between the two sampling actions before and after must be guaranteed to be accurate T i .
步骤S38的目的是:将本次获取到的蓄电池极板间电压Ui与充电电流Ii相乘得到充电功率,将此充电功率数值添加到W中。其原因将在“动态设置采样频率”步骤中详细说明。需要注意的是,当数列W的项数小于N时,添加新的充电功率数值时只需要将新的充电功率数值作为当前数列的最后一项添加到数列W的末尾即可。但是,当数列W的项数已经达到N时,添加新的充电功率数值前需要删除当前数列W的第1项,将新的充电功率数值作为第N项添加到数列W中,以此保持数列W的项数不超过N。The purpose of step S38 is: to multiply the voltage U i between the battery plates obtained this time by the charging current I i to obtain the charging power, and add the value of the charging power to W. The reason for this will be explained in detail in the "Dynamically Setting the Sampling Frequency" step. It should be noted that when the number of items in the sequence W is less than N, when adding a new charging power value, you only need to add the new charging power value as the last item of the current sequence to the end of the sequence W. However, when the number of items in the sequence W has reached N, it is necessary to delete the first item of the current sequence W before adding a new charging power value, and add the new charging power value as the Nth item to the sequence W, so as to maintain the sequence The number of items in W does not exceed N.
本实施例所述的步骤S4中放电状态电量检测的方法为:在蓄电池处于放电状态,当放电电流小于某阈值时,通过蓄电池剩余电量百分比与蓄电池极板间电压的映射关系,获取蓄电池剩余电量百分比;当放电电流大于或等于此阈值时,通过对蓄电池放电电流进行关于时间的积分,获取蓄电池剩余电量百分比,两个方法相互校准误差。即一方面通过f(x)获取蓄电池剩余电量百分比所产生的误差,可被对蓄电池放电电流进行关于时间积分的过程校准。另一方面,通过对蓄电池放电电流进行关于时间积分获取蓄电池剩余电量百分比所产生的误差,可被通过f(x)获取蓄电池剩余电量百分比的过程校准。其具体流程如图5所示,包括以下子步骤:The method for detecting the electric quantity in the discharge state in step S4 described in this embodiment is: when the battery is in the discharge state, when the discharge current is less than a certain threshold value, the remaining electric quantity of the battery is obtained through the mapping relationship between the percentage of the remaining electric quantity of the battery and the voltage between the plates of the battery Percentage; when the discharge current is greater than or equal to this threshold, the percentage of remaining battery power is obtained by integrating the battery discharge current with respect to time, and the two methods calibrate each other for errors. That is to say, on the one hand, the error generated by obtaining the percentage of remaining power of the battery through f(x) can be calibrated by the process of integrating the discharge current of the battery with respect to time. On the other hand, the error generated by obtaining the percentage of remaining battery power by integrating the discharge current of the battery with respect to time can be calibrated by the process of obtaining the percentage of remaining battery power through f(x). The specific process is shown in Figure 5, including the following sub-steps:
S41:判断Flag是否等于0,若Flag==0则令Flag=1并清空数列W;S41: Determine whether Flag is equal to 0, if Flag==0, set Flag=1 and clear the sequence W;
S42:获取放电电流Io;S42: Obtain the discharge current I o ;
S43:判断Io是否小于C*Qmax,若Io<C*Qmax则获取放电电压值Uo;否则使Q累减Io*To,即Q=Q-Io*To,然后进行步骤S46的操作;S43: Judging whether I o is less than C*Q max , if I o <C*Q max , obtain the discharge voltage value U o ; otherwise, subtract I o *T o from Q, that is, Q=QI o *T o , and then proceed The operation of step S46;
S44:判断Uo是否等于Umin,若Uo==Umin,则令Q=0且q=0,然后进行步骤S47的操作;S44: Judging whether U o is equal to U min , if U o == U min , set Q=0 and q=0, and then proceed to step S47;
S45:判断q是否大于蓄电池剩余电量百分比关于蓄电池极板间电压的函数值f(Uo),若S45: Judging whether q is greater than the function value f(U o ) of the battery remaining power percentage with respect to the voltage between the battery plates, if
q>f(Uo),则令q=f(Uo)且Q=q*Qmax,然后进行步骤S47的操作,否则直接进行步骤S47q>f(U o ), then let q=f(U o ) and Q=q*Q max , then proceed to step S47, otherwise directly proceed to step S47
的操作;operation;
S46:判断Q/Qmax是否小于q,若Q/Qmax<q则使q=Q/Qmax;S46: judge whether Q/Q max is less than q, if Q/Q max <q then make q=Q/Q max ;
S47:等待放电状态采样周期To;S47: waiting for the discharge state sampling period T o ;
S48:将Uo与Io的乘积添加到数列W中。S48: Add the product of U o and I o to the sequence W.
步骤S41的目的是:在蓄电池从充电状态进入放电状态时,将表示蓄电池状态的变量Flag置为1,表示蓄电池已经进入放电状态;在蓄电池从充电状态进入放电状态时,将数列W中现存的充电功率数值全部清除,在接下来的“放电状态电量检测”工作中用于存储放电功率数值。The purpose of step S41 is: when the storage battery enters the discharge state from the charging state, set the variable Flag representing the storage battery state to 1, indicating that the storage battery has entered the discharging state; when the storage battery enters the discharging state from the charging state, set the existing All the charging power values are cleared, and are used to store the discharging power values in the next work of "discharging state power detection".
步骤S42和S43的目的是:判断蓄电池当前的放电电流Io是否足够小,因为在蓄电池放电时,放电电流Io越大,蓄电池极板极化程度越大,造成蓄电池极板间电压越低。因此,只有在蓄电池放电电流Io足够小的时候才可以通过蓄电池剩余电量百分比与蓄电池极板间电压的映射关系,间接获取蓄电池剩余电量百分比q。但是,在蓄电池放电电流Io较大时,蓄电池极板极化程度大,蓄电池极板间电压明显偏低,此时需要通过对蓄电池放电电流Io进行关于时间的积分,来获取蓄电池在放电周期To这一段时间输出了多少电能,进而计算出剩余电量百分比q的值。在判断蓄电池放电电流Io是否足够小时,以蓄电池最大电量Qmax乘以一个倍率C作为临界值,C的值可在实际应用中根据蓄电池种类和蓄电池性能选取合适的值,即C表示蓄电池的“放电C率”。当蓄电池放电电流Io小于此临界值,则判断为放电电流Io足够小,当蓄电池放电电流Io大于等于此临界值,则判断为放电电流Io较大。The purpose of steps S42 and S43 is to judge whether the current discharge current I o of the battery is small enough, because when the battery is discharging, the greater the discharge current I o , the greater the polarization of the battery plates, resulting in a lower voltage between the battery plates . Therefore, only when the discharge current I o of the battery is small enough, the percentage of remaining battery power q can be obtained indirectly through the mapping relationship between the percentage of remaining battery power and the voltage between the battery plates. However, when the battery discharge current I o is large, the polarization of the battery plates is large, and the voltage between the battery plates is obviously low. At this time, it is necessary to integrate the battery discharge current I o with respect to time to obtain the battery discharge current I o Cycle T o How much electric energy is output during this period, and then calculate the value of the remaining power percentage q. When judging whether the discharge current I o of the battery is small enough, the maximum battery capacity Q max multiplied by a factor C is used as the critical value. The value of C can be selected according to the type of battery and the performance of the battery in practical applications. "Discharge C rate". When the battery discharge current I o is less than the critical value, it is judged that the discharge current I o is small enough, and when the battery discharge current I o is greater than or equal to the critical value, it is judged that the discharge current I o is large.
步骤S44的目的是:当发现蓄电池极板间电压达到下限Umin时,将蓄电池电量Q置为0,同时将蓄电池剩余电量百分比q置为0,即更新了Q和q的值,同时也完成了Q和q的校准。The purpose of step S44 is: when it is found that the voltage between the battery plates reaches the lower limit Umin , set the battery power Q to 0, and at the same time set the battery remaining power percentage q to 0, that is, update the values of Q and q, and complete Calibration of Q and q.
步骤S45的目的是:当放电电流Io足够小时,可通过蓄电池剩余电量百分比与蓄电池极板间电压的映射关系,间接获取蓄电池剩余电量百分比q。f(x)是蓄电池剩余电量百分比q关于蓄电池极板间电压的函数,在实际应用中可根据蓄电池种类和蓄电池性能构造合适的f(x)函数解析式,将放电电压Uo带入即可得到蓄电池剩余电量百分比q=f(Uo),同时令Q=q*Qmax,对Q的值进行校准。为避免蓄电池剩余电量数值回弹的错误,在对q进行赋值之前,首先判断q是否大于f(Uo),若q大于f(Uo),则令q=f(Uo),否则不操作。The purpose of step S45 is: when the discharge current I o is sufficiently small, the percentage of remaining battery power q can be obtained indirectly through the mapping relationship between the percentage of remaining battery power and the voltage between the battery plates. f(x) is the function of the battery remaining capacity percentage q on the voltage between the battery plates. In practical applications, an appropriate f(x) function analysis formula can be constructed according to the battery type and battery performance, and the discharge voltage U o can be brought into Obtain the remaining power percentage of the storage battery q=f(U o ), and at the same time set Q=q*Q max to calibrate the value of Q. In order to avoid the rebound error of the remaining battery power value, before assigning a value to q, first judge whether q is greater than f(U o ), if q is greater than f(U o ), then set q=f(U o ), otherwise not operate.
步骤S46的目的是:当放电电流Io较大时,通过对放电电流Io进行关于时间的积分,得到在放电状态采样周期To这一段时间里蓄电池输出了多少电量,通过将原有的电量减去消耗的电量,得到新的蓄电池剩余电量百分比q的数值。为避免蓄电池剩余电量数值回弹的错误,在对q进行赋值之前,首先判断Q/Qmax是否小于q,若Q/Qmax小于q,则令q=Q/Qmax,否则不操作。The purpose of step S46 is: when the discharge current I o is relatively large, by integrating the discharge current I o with respect to time, it is possible to obtain how much power the storage battery has output during the period T o of the discharge state sampling period, and by converting the original Subtract the consumed electricity from the electricity to get the value of the new battery remaining electricity percentage q. In order to avoid the rebound error of the remaining battery power value, before assigning q, first judge whether Q/Q max is less than q, if Q/Q max is less than q, set q=Q/Q max , otherwise do not operate.
步骤S47的目的是:控制放电状态采样频率。需要注意的是,为保证本实施例中检测到的蓄电池剩余电量百分比q的准确性,在等待放电状态采样周期To时,需要考虑在“放电状态电量检测”这一步骤中作逻辑判断和数值运算所消耗的时间,即需要保证前后两次采样动作之间的时间间隔为准确的To。The purpose of step S47 is to control the sampling frequency of the discharge state. It should be noted that, in order to ensure the accuracy of the percentage q of remaining battery power detected in this embodiment, when waiting for the discharge state sampling period T o , it is necessary to consider making logical judgments and The time consumed by the numerical operation, that is, it is necessary to ensure that the time interval between the two sampling actions is accurate T o .
步骤S48的目的是:将本次获取到的蓄电池极板间电压Uo与放电电流Io相乘得到放电功率,将此放电功率数值添加到W中。其原因将在“动态设置采样频率”步骤中详细说明。需要注意的是,当数列W的项数小于N时,添加新的放电功率数值时只需要将新的放电功率数值作为当前数列的最后一项添加到数列W的末尾即可。但是,当数列W的项数已经达到N时,添加新的放电功率数值前需要删除当前数列W的第1项,将新的放电功率数值作为第N项添加到数列W中,以此保持数列W的项数不超过N。The purpose of step S48 is: to multiply the voltage U o between the plates of the battery obtained this time by the discharge current I o to obtain the discharge power, and add the value of the discharge power to W. The reason for this will be explained in detail in the "Dynamically Setting the Sampling Frequency" step. It should be noted that when the number of items in the sequence W is less than N, when adding a new discharge power value, you only need to add the new discharge power value as the last item of the current sequence to the end of the sequence W. However, when the number of items in the sequence W has reached N, it is necessary to delete the first item of the current sequence W before adding a new discharge power value, and add the new discharge power value as the Nth item to the sequence W, so as to maintain the sequence The number of items in W does not exceed N.
如图6所示,本实施例所述的S5中动态设置采样频率包括以下步骤:As shown in Figure 6, dynamically setting the sampling frequency in S5 described in this embodiment includes the following steps:
S51:计算数列W的标准差α;S51: Calculate the standard deviation α of the sequence W;
S52:判断Flag是否等于0,若Flag==0则进行步骤S53,否则进行步骤S54;S52: judge whether Flag is equal to 0, if Flag==0, proceed to step S53, otherwise proceed to step S54;
S53:令Ti等于充电状态采样周期关于数列W标准差α的函数值Tin(α);S53: Make T i equal to the function value T in (α) of the charging state sampling period with respect to the standard deviation α of the sequence W;
S54:令To等于放电状态采样周期关于数列W标准差α的函数值Tout(α)。S54: Let T o be equal to the function value T out (α) of the discharge state sampling period with respect to the standard deviation α of the sequence W.
步骤S51的目的是:通过计算数列W的标准差α,得到以α表示的蓄电池充电状态或放电状态下,其充电功率或放电功率的稳定程度。α的值越大,表示稳定性越差,α的值越小,表示稳定性越强。The purpose of step S51 is: by calculating the standard deviation α of the sequence W, to obtain the stability of the charging power or discharging power of the battery in the charging state or discharging state represented by α. The larger the value of α, the worse the stability, and the smaller the value of α, the stronger the stability.
步骤S52的目的是:通过对蓄电池状态标识位Flag的值进行判断,得到蓄电池当前处于充电状态还是放电状态,分别对充电状态电量检测和放电状态电量检测设置相应的采样周期。The purpose of step S52 is to determine whether the battery is currently in a charging state or a discharging state by judging the value of the flag bit of the battery state, and to set corresponding sampling periods for the electric quantity detection in the charging state and the electric quantity detection in the discharging state.
步骤S53的目的是:在步骤S51中已经得到一个表示充电功率稳定性的α,α值越大,表示充电功率稳定性越差,应该相应的提高充电状态采样频率Ti,以适应不稳定的充电功率。α值越小,表示充电功率稳定性越强,可以相应地降低充电状态采样频率Ti,减少工作量,降低方法的耗电量。需要注意的是,采样频率越高,精度越高,同时耗电量也会有一定程度增加,采样频率越低,精度越低,同时耗电也会有一定程度减少,因此在实际应用中,需要权衡利弊,可根据需要构造一个合适的充电状态采样周期Ti关于数列W的标准差α的函数Tin(α)。The purpose of step S53 is: in step S51, an α representing the stability of the charging power has been obtained. The larger the value of α, the worse the stability of the charging power, and the charging state sampling frequency T i should be increased accordingly to adapt to unstable conditions. charging power. The smaller the α value, the stronger the stability of the charging power, which can reduce the charging state sampling frequency T i correspondingly, reduce the workload, and reduce the power consumption of the method. It should be noted that the higher the sampling frequency, the higher the accuracy, and the power consumption will also increase to a certain extent. The lower the sampling frequency, the lower the accuracy, and the power consumption will also be reduced to a certain extent. Therefore, in practical applications, To balance the pros and cons, a suitable function T in (α) of the charging state sampling period T i with respect to the standard deviation α of the sequence W can be constructed as required.
步骤S54的目的是:在步骤S51中已经得到一个表示放电功率稳定性的α,α值越大,表示放电功率稳定性越差,应该相应的提高放电状态采样频率To,以适应不稳定的放电功率。α值越小,表示放电功率稳定性越强,可以相应地降低放电状态采样频率To,减少工作量,降低方法的耗电量。需要注意的是,采样频率越高,精度越高,同时耗电量也会有一定程度增加,采样频率越低精度越低,同时耗电也会有一定程度减少。因此在实际应用中,需要权衡利弊,可根据需要构造一个合适的放电状态采样周期To关于数列W的标准差α的函数Tout(α)。The purpose of step S54 is: in step S51, an α indicating the stability of the discharge power has been obtained. The larger the value of α, the worse the stability of the discharge power, and the sampling frequency T o of the discharge state should be increased accordingly to adapt to the unstable discharge power. The smaller the α value, the stronger the stability of the discharge power, which can reduce the sampling frequency T o of the discharge state accordingly, reduce the workload, and reduce the power consumption of the method. It should be noted that the higher the sampling frequency, the higher the accuracy, and at the same time, the power consumption will increase to a certain extent. The lower the sampling frequency, the lower the accuracy, and at the same time, the power consumption will also be reduced to a certain extent. Therefore, in practical applications, the advantages and disadvantages need to be weighed, and a function T out (α) of a suitable discharge state sampling period T o with respect to the standard deviation α of the sequence W can be constructed as required.
以上所有步骤在逻辑上形成一个循环结构,实时获取蓄电池剩余电量百分比,进而实现对充电设备内部蓄电池剩余电量百分比的准确检测。All the above steps logically form a loop structure to obtain the percentage of remaining power of the battery in real time, and then realize accurate detection of the percentage of remaining power of the battery inside the charging device.
本发明的“累误计差自动校准”功能的实现,使得本发明的检测方法可自动适应蓄电池老化和环境温度变化对蓄电池储电能力和放电能力的影响。本发明的电量检测过程完全不需要人工参与,蓄电池只要经历一次完整的充/放电过程之后,即可自主学习到方法中需要使用的各项参数值。The realization of the "accumulated error automatic calibration" function of the present invention enables the detection method of the present invention to automatically adapt to the effects of accumulator aging and environmental temperature changes on the storage capacity and discharge capacity of the accumulator. The electric quantity detection process of the present invention does not require manual participation at all, and the storage battery can learn the parameter values required in the method independently only after a complete charging/discharging process.
本发明的蓄电池剩余电量检测方法无论蓄电池处于充电状态还是放电状态,其采样频率均可动态适应蓄电池当前的工作状态,实现了动态变频采样。因此本方法普遍适用于各种类型,各种型号的蓄电池,即此“蓄电池剩余电量检测方法”具有普适性。智能移动终端自身具备模拟量采集能力以及必要的运算能力,因此不需要为实施本方法而增加任何硬件,在不增加硬件成本的前提下,以纯粹的软件算法实现了充电设备内部蓄电池剩余电量的准确检测功能。如果在实际应用中,需要在不具备模拟量采集能力和运算能力的充电设备中实施本方法,则须专门添加用于采集蓄电池极板间电压以及充/放电电流的模拟量采集器和适合的运算芯片。Regardless of whether the storage battery is in a charging state or a discharging state, the sampling frequency of the method for detecting the remaining battery capacity of the present invention can dynamically adapt to the current working state of the storage battery, thereby realizing dynamic frequency conversion sampling. Therefore, this method is generally applicable to various types and types of storage batteries, that is, the "method for detecting the remaining power of the storage battery" has universal applicability. The smart mobile terminal itself has the ability to collect analog quantities and the necessary computing power, so there is no need to add any hardware to implement this method. On the premise of not increasing the hardware cost, the remaining power of the internal battery of the charging device is realized with a pure software algorithm. Accurate detection function. If in practical application, this method needs to be implemented in a charging device that does not have analog quantity acquisition capability and computing capability, then an analog quantity collector and a suitable computing chip.
本领域的普通技术人员将会意识到,这里所述的实施例是为了帮助读者理解本发明的原理,应被理解为本发明的保护范围并不局限于这样的特别陈述和实施例。本领域的普通技术人员可以根据本发明公开的这些技术启示做出各种不脱离本发明实质的其它各种具体变形和组合,这些变形和组合仍然在本发明的保护范围内。Those skilled in the art will appreciate that the embodiments described here are to help readers understand the principles of the present invention, and it should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific modifications and combinations based on the technical revelations disclosed in the present invention without departing from the essence of the present invention, and these modifications and combinations are still within the protection scope of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410539126.6A CN104280686B (en) | 2014-10-13 | 2014-10-13 | Storage battery residual electric quantity detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410539126.6A CN104280686B (en) | 2014-10-13 | 2014-10-13 | Storage battery residual electric quantity detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104280686A true CN104280686A (en) | 2015-01-14 |
CN104280686B CN104280686B (en) | 2017-02-15 |
Family
ID=52255759
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410539126.6A Expired - Fee Related CN104280686B (en) | 2014-10-13 | 2014-10-13 | Storage battery residual electric quantity detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104280686B (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105866691A (en) * | 2016-03-29 | 2016-08-17 | 盐城工学院 | Nickel-cadmium storage battery power detection method and device |
CN106125009A (en) * | 2016-08-31 | 2016-11-16 | 深圳天珑无线科技有限公司 | Battery performance detection method and battery performance detection device |
CN107009976A (en) * | 2015-12-22 | 2017-08-04 | 福特全球技术公司 | Ignition switch disconnects EMS |
CN109596989A (en) * | 2018-12-29 | 2019-04-09 | 出门问问信息科技有限公司 | Display methods, device and the electronic equipment of electric quantity for electronic equipment |
CN109633447A (en) * | 2019-01-09 | 2019-04-16 | 福建联迪商用设备有限公司 | Residual quantity display method and computer readable storage medium |
CN109884540A (en) * | 2019-03-19 | 2019-06-14 | 浙江绿源电动车有限公司 | A kind of lead-acid battery power measurement method |
CN110245164A (en) * | 2019-05-09 | 2019-09-17 | 阿里巴巴集团控股有限公司 | A kind of data backflow detection method, device and equipment |
CN110687466A (en) * | 2019-10-18 | 2020-01-14 | 苏州浪潮智能科技有限公司 | Electric quantity verification method and device |
CN111781450A (en) * | 2020-06-30 | 2020-10-16 | 歌尔科技有限公司 | Electric parameter sampling method, sampling device, earphone and readable storage medium |
CN112014750A (en) * | 2020-09-01 | 2020-12-01 | 珠海艾派克微电子有限公司 | Battery electric quantity detection method, device, chip and storage medium |
CN113253126A (en) * | 2021-04-29 | 2021-08-13 | 南方电网调峰调频发电有限公司 | Method for selecting voltage and current sampling frequency and filtering time window of battery management system |
CN113711069A (en) * | 2020-01-15 | 2021-11-26 | 深圳市大疆创新科技有限公司 | Battery abnormity detection method and system, battery and movable platform |
CN114397588A (en) * | 2022-01-21 | 2022-04-26 | 河北工业大学 | Lithium ion battery capacity prediction method utilizing echelon |
CN114636949A (en) * | 2022-03-03 | 2022-06-17 | 杭州华塑科技股份有限公司 | Method and device for judging battery charge and discharge state |
CN114816959A (en) * | 2022-05-07 | 2022-07-29 | 深圳宇凡微电子有限公司 | Method and device for displaying battery power of LCD screen |
CN119881670A (en) * | 2025-03-27 | 2025-04-25 | 凡己科技(苏州)有限公司 | Method for determining residual electric quantity of battery and vehicle |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1955752B (en) * | 2005-10-24 | 2011-03-16 | 中兴通讯股份有限公司 | Method for monitoring charging process of battery of mobile terminal |
CN101206246A (en) * | 2006-12-22 | 2008-06-25 | 明基电通股份有限公司 | Method for estimating residual capacity of battery |
CN102104259B (en) * | 2009-12-16 | 2013-08-07 | 比亚迪股份有限公司 | Electric quantity detecting and controlling method and device for rechargeable battery |
CN102147450A (en) * | 2010-12-22 | 2011-08-10 | 航天恒星科技有限公司 | Monitoring system for electric quantity of lithium battery |
CN102655549B (en) * | 2012-01-31 | 2014-03-12 | 吕林波 | Method for estimating remaining time and capacity of battery |
CN103675683A (en) * | 2012-09-02 | 2014-03-26 | 东莞市振华新能源科技有限公司 | Lithium battery state of charge (SOC) estimation method |
CN103675701B (en) * | 2013-11-29 | 2016-08-24 | 宇龙计算机通信科技(深圳)有限公司 | The method for correcting of a kind of battery dump energy and device |
CN103675706B (en) * | 2013-12-13 | 2016-04-13 | 桂林电子科技大学 | A kind of power battery electric charge quantity estimation method |
-
2014
- 2014-10-13 CN CN201410539126.6A patent/CN104280686B/en not_active Expired - Fee Related
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107009976A (en) * | 2015-12-22 | 2017-08-04 | 福特全球技术公司 | Ignition switch disconnects EMS |
CN105866691B (en) * | 2016-03-29 | 2018-10-09 | 盐城工学院 | A kind of cadmium-nickel accumulator detection method of quantity of electricity and device |
CN105866691A (en) * | 2016-03-29 | 2016-08-17 | 盐城工学院 | Nickel-cadmium storage battery power detection method and device |
CN106125009A (en) * | 2016-08-31 | 2016-11-16 | 深圳天珑无线科技有限公司 | Battery performance detection method and battery performance detection device |
CN106125009B (en) * | 2016-08-31 | 2019-07-12 | 四川苏格通讯技术有限公司 | Battery performance detection method and battery performance detection device |
CN109596989B (en) * | 2018-12-29 | 2021-01-01 | 出门问问信息科技有限公司 | Method and device for displaying electric quantity of electronic equipment and electronic equipment |
CN109596989A (en) * | 2018-12-29 | 2019-04-09 | 出门问问信息科技有限公司 | Display methods, device and the electronic equipment of electric quantity for electronic equipment |
CN109633447A (en) * | 2019-01-09 | 2019-04-16 | 福建联迪商用设备有限公司 | Residual quantity display method and computer readable storage medium |
CN109633447B (en) * | 2019-01-09 | 2022-02-11 | 福建联迪商用设备有限公司 | Remaining power display method and computer-readable storage medium |
CN109884540A (en) * | 2019-03-19 | 2019-06-14 | 浙江绿源电动车有限公司 | A kind of lead-acid battery power measurement method |
CN110245164A (en) * | 2019-05-09 | 2019-09-17 | 阿里巴巴集团控股有限公司 | A kind of data backflow detection method, device and equipment |
CN110687466A (en) * | 2019-10-18 | 2020-01-14 | 苏州浪潮智能科技有限公司 | Electric quantity verification method and device |
CN113711069A (en) * | 2020-01-15 | 2021-11-26 | 深圳市大疆创新科技有限公司 | Battery abnormity detection method and system, battery and movable platform |
CN111781450A (en) * | 2020-06-30 | 2020-10-16 | 歌尔科技有限公司 | Electric parameter sampling method, sampling device, earphone and readable storage medium |
CN112014750A (en) * | 2020-09-01 | 2020-12-01 | 珠海艾派克微电子有限公司 | Battery electric quantity detection method, device, chip and storage medium |
CN113253126B (en) * | 2021-04-29 | 2022-04-26 | 南方电网调峰调频发电有限公司 | Method for selecting voltage and current sampling frequency and filtering time window of battery management system |
CN113253126A (en) * | 2021-04-29 | 2021-08-13 | 南方电网调峰调频发电有限公司 | Method for selecting voltage and current sampling frequency and filtering time window of battery management system |
CN114397588A (en) * | 2022-01-21 | 2022-04-26 | 河北工业大学 | Lithium ion battery capacity prediction method utilizing echelon |
CN114397588B (en) * | 2022-01-21 | 2025-03-21 | 河北工业大学 | A method for predicting the capacity of lithium-ion batteries for cascade utilization |
CN114636949A (en) * | 2022-03-03 | 2022-06-17 | 杭州华塑科技股份有限公司 | Method and device for judging battery charge and discharge state |
CN114636949B (en) * | 2022-03-03 | 2022-10-25 | 杭州华塑科技股份有限公司 | Method and device for judging charge and discharge states of battery |
CN114816959A (en) * | 2022-05-07 | 2022-07-29 | 深圳宇凡微电子有限公司 | Method and device for displaying battery power of LCD screen |
CN114816959B (en) * | 2022-05-07 | 2023-01-13 | 深圳宇凡微电子有限公司 | Method and device for displaying battery power of LCD screen |
CN119881670A (en) * | 2025-03-27 | 2025-04-25 | 凡己科技(苏州)有限公司 | Method for determining residual electric quantity of battery and vehicle |
Also Published As
Publication number | Publication date |
---|---|
CN104280686B (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104280686B (en) | Storage battery residual electric quantity detection method | |
CN104849672B (en) | Lithium battery motional impedance parameter identification method based on equivalent-circuit model | |
CN103901352B (en) | Show the method and device of battery of mobile terminal remaining capacity | |
CN107394906A (en) | A kind of sensor node electric power management circuit | |
CN106505695A (en) | A charging control method, device and terminal | |
CN102944847A (en) | Battery electric quantity detection method and system | |
CN112014749B (en) | Method, device, chip and storage medium for determining battery display electric quantity | |
US10338147B2 (en) | Methods and apparatus for determining a relative state of charge of a battery | |
CN2906637Y (en) | Battery power tester for electric bicycle | |
JP4764971B2 (en) | Battery level measuring device | |
US10044075B2 (en) | Portable electronic device with accessible-charge indicator | |
EP4290256B1 (en) | Soc estimation method, mobile power supply, and readable storage medium | |
CN103217649A (en) | Method, device and mobile device for displaying power | |
TWI528043B (en) | Battery SOC/SOH estimation circuit | |
US20180080992A1 (en) | Determination of a battery-model parameter | |
CN109581236A (en) | Detection method, device and the computer readable storage medium of capacity of lithium ion battery | |
CN112858938B (en) | Electricity calculation method, device, storage medium and electronic device | |
CN103647877A (en) | Method of increasing electric quantity display precision at the time of starting up of mobile terminal and the mobile terminal | |
CN101034138A (en) | Battery capacity monitoring system | |
CN107689660B (en) | Multi-order constant-current pulse charging control circuit of space storage battery and control method thereof | |
EP1343018A1 (en) | Battery charge monitor | |
CN103746433B (en) | The device of multi-functional charge-discharge circuit and composition thereof | |
CN203101597U (en) | Cell electricity quantity detection system | |
EP4513711A1 (en) | Charge balancing method and device, computer apparatus and storage medium | |
CN102955135A (en) | Method and system for detecting electric quantity of battery |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170215 Termination date: 20181013 |
|
CF01 | Termination of patent right due to non-payment of annual fee |