CN111948556A - Anti-fluctuation battery electric quantity detection method and device - Google Patents

Anti-fluctuation battery electric quantity detection method and device Download PDF

Info

Publication number
CN111948556A
CN111948556A CN202010750245.1A CN202010750245A CN111948556A CN 111948556 A CN111948556 A CN 111948556A CN 202010750245 A CN202010750245 A CN 202010750245A CN 111948556 A CN111948556 A CN 111948556A
Authority
CN
China
Prior art keywords
battery
voltage
data
value
stage
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
CN202010750245.1A
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.)
Vatti Co Ltd
Original Assignee
Vatti 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 Vatti Co Ltd filed Critical Vatti Co Ltd
Priority to CN202010750245.1A priority Critical patent/CN111948556A/en
Publication of CN111948556A publication Critical patent/CN111948556A/en
Pending legal-status Critical Current

Links

Images

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/385Arrangements for measuring battery or accumulator variables
    • G01R31/387Determining ampere-hour charge capacity or SoC
    • G01R31/388Determining ampere-hour charge capacity or SoC involving voltage measurements
    • 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Secondary Cells (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a method and a device for detecting the electric quantity of a fluctuation-proof battery, wherein the method for detecting the electric quantity of the fluctuation-proof battery comprises the following steps: s1, continuously collecting the battery voltage for multiple times to obtain multiple voltage values; the collection interval time is 1-100 milliseconds; s2, calculating the difference value of the voltage values of the previous and the next two times to obtain a voltage amplitude, if the voltage amplitude exceeds a set amplitude threshold value, judging that the battery is in a load impact stage, wherein the voltage value in the stage is invalid data, and filtering the invalid data; otherwise, judging that the battery is in a stability approaching stage, wherein the voltage value in the stage is effective data; and S3, judging whether the battery is in a low-charge state or not according to the valid voltage data. The battery electric quantity detection device comprises a voltage acquisition unit, a data processing unit, an electric quantity judgment unit and a storage unit. The invention can prevent the condition of low-power false alarm caused by large voltage fluctuation caused by battery load impact, improve the accuracy of battery low-power detection and avoid influencing normal power utilization work.

Description

Anti-fluctuation battery electric quantity detection method and device
Technical Field
The invention belongs to the technical field of battery power supply, and particularly relates to a method and a device for detecting the electric quantity of a battery, which are used for preventing fluctuation.
Background
In the battery power supply system, when the battery electric quantity is too low, the normal work of the electric equipment can be influenced, so that the battery electric quantity needs to be detected in real time, and whether the battery electric quantity is too low is judged. However, in daily work, false alarm of low battery level is easily caused at the moment of opening the electric switch.
Disclosure of Invention
In order to solve the problems and deficiencies of the prior art, the invention aims to provide a method and a device for detecting battery power, which can prevent false alarm of low battery power and improve the detection precision of low battery power.
In order to achieve the above object, the present invention firstly provides a method for detecting battery capacity to prevent fluctuation, comprising the following steps:
s1, continuously collecting the battery voltage for multiple times to obtain multiple voltage value data; the collection interval time is 1-100 milliseconds;
s2, calculating the difference value of the two voltage values in the collected voltage value data to obtain a voltage amplitude, if the voltage amplitude exceeds a set amplitude threshold value, judging that the battery is in a load impact stage, wherein the voltage value in the stage is invalid data, and filtering the invalid data; otherwise, judging that the battery is in a stability approaching stage, wherein the voltage value in the stage is effective data;
and S3, judging whether the battery is in a low-charge state or not according to the valid voltage data.
Further, the setting method of the amplitude threshold value comprises the following steps: and acquiring the average value of the voltage amplitude of the battery in the load impact stage in multiple tests, and taking half of the average value as an amplitude threshold value.
Further, if the voltage amplitude is less than the duration time of the amplitude threshold value and is greater than or equal to the specified time, the battery is judged to enter a stability approaching stage.
Further, before step S1, the method further includes: and electrifying to initialize all voltage value parameter variables and configuring a storage unit for storing voltage value data.
Further, step S3 is specifically: and when the detected effective voltage value is smaller than the set voltage threshold value, judging that the battery is in a low-power state.
Further, or taking the average value of a plurality of continuous effective voltage values, and if the average value is smaller than the set voltage threshold value, judging that the battery is in a low-battery state.
Further, after step S3, when it is detected that the battery is in a low state, a low power prompt is issued.
The invention also provides a device for detecting the electric quantity of the anti-fluctuation battery, which adopts the method for detecting the electric quantity of the anti-fluctuation battery and comprises the following steps:
the voltage acquisition unit is used for acquiring battery voltage value data;
the data processing unit is used for calculating and processing the voltage value data acquired by the voltage acquisition unit, eliminating the voltage value data in the battery load impact stage and taking the voltage value in the stability approaching stage as effective data;
the electric quantity judging unit judges whether the battery is in a low electric quantity state or not according to the effective data provided by the data processing unit;
the voltage acquisition unit is used for acquiring voltage data of the voltage acquisition unit, and the data processing unit is used for calling the voltage data in the storage unit to calculate and process.
Further, the storage unit is a register
Compared with the prior art, the invention has the beneficial effects that:
the electric switch opens in the twinkling of an eye, and the battery receives the load impact, and the voltage fluctuation range is big this moment, need filter the voltage value in this stage, prevents to lead to the condition that low-power misstatement appears because of battery load impact causes voltage fluctuation by a wide margin, ensures like this that to gather voltage value data reliable effective, promotes the accuracy that the battery low-power detected, avoids influencing normal power consumption work. According to the collected voltage value data, the difference value of the voltage of the two times is calculated and compared with the amplitude threshold value to judge whether the battery is in a load impact stage, if the battery is in the load impact stage, the voltage value in the stage is not counted, and if the battery is in a stability approaching stage, the voltage value data is effective data and can be used for judging whether the battery is in a low-power state.
Drawings
FIG. 1 is a first flowchart of a first method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method of the first embodiment of the present invention;
FIG. 3 is a diagram of the connection relationship of units according to the second embodiment of the present invention;
fig. 4 is a diagram showing a change in a battery load surge voltage.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
the first embodiment of the present invention first provides a method for detecting battery power to prevent fluctuation, as shown in fig. 1, including the following steps:
s1, continuously collecting the battery voltage for multiple times to obtain multiple voltage value data; the collection interval time is 1-100 milliseconds;
s2, calculating the difference value of the two voltage values in the collected voltage value data to obtain a voltage amplitude, if the voltage amplitude exceeds a set amplitude threshold value, judging that the battery is in a load impact stage, wherein the voltage value in the stage is invalid data, and filtering the invalid data; otherwise, judging that the battery is in a stability approaching stage, wherein the voltage value in the stage is effective data;
and S3, judging whether the battery is in a low-charge state or not according to the valid voltage data.
As shown in fig. 4, when the electrical switch is turned on, the battery is subjected to load impact, the current is very large instantaneously, the voltage fluctuation range is large, and particularly when the internal resistance of the battery is large, the discharge capacity is weak, and the output voltage fluctuation range is larger, so that voltage data in the battery load impact stage needs to be eliminated to improve the battery power detection accuracy.
By adopting the method, the difference value of the voltage values of the two times is calculated according to the collected continuous voltage value data and compared with the specified range to judge whether the battery is in a load impact stage, if the battery is in the load impact stage, the voltage data in the stage is not counted, and if the battery is in a stability approaching stage, the voltage value data is effective data and can be used for judging whether the battery is in a low-power state. Therefore, the situation that the low power is misreported due to the fact that the voltage is greatly fluctuated due to the impact of the battery load can be prevented, the data of the voltage value is reliably and effectively acquired, the accuracy of the low power detection of the battery is improved, and the influence on the normal power utilization work is avoided.
The present embodiment preferably compares the absolute value of the difference with a set amplitude threshold, and if the absolute value is greater than the amplitude threshold, it is determined that the battery is in a load impact stage.
In this embodiment, the setting method of the amplitude threshold is as follows: firstly, carrying out a plurality of tests, counting voltage value data obtained by the plurality of tests, calculating an average value of the voltage value amplitude of the battery at the load impact stage, and taking half of the average value as an amplitude threshold value. And taking the amplitude threshold value as a fixed standard for each detection, and comparing the amplitude threshold value with data in detection. This can further improve voltage detection accuracy and efficiency.
And if the fluctuation amplitude of the voltage value is less than the duration time of the amplitude threshold value and is more than or equal to the specified time, judging that the battery enters a stability approaching stage, wherein the specified time is filtering time. This makes it possible to further accurately judge whether or not the battery is in the load surge stage.
Before step S1, the method further includes: and electrifying to initialize all voltage value parameter variables and configuring a storage unit for storing voltage value data. Therefore, real-time voltage data can be continuously acquired, and the influence of the previous legacy data on the current detection is avoided.
Step S3 specifically includes: and when the detected effective voltage value is less than or equal to the set voltage threshold value, judging that the battery is in a low-battery state. When the battery capacity is insufficient, the output voltage is also reduced, so that when the voltage is reduced to a certain value, the battery capacity can be judged to be insufficient.
In this embodiment, in order to improve the detection accuracy, an average value of a plurality of continuous effective voltage values is obtained, and if the average value is smaller than a set voltage threshold, it is determined that the battery is in a low-power state.
After step S3, when it is detected that the battery is in a low state, a low power prompt is issued. After receiving the prompt, the battery can be replaced or charged.
The specific method of this embodiment includes the following steps, as shown in fig. 2:
the first step is as follows: electrifying initialization parameter variables, configuring relevant registers:
now, the voltage value is marked as ad _ now _ volt ═ Null; the device is used for recording the currently acquired voltage value of the battery;
the pre-voltage value is marked as ad _ pre _ volt being Null; the battery voltage value acquisition module is used for recording the voltage value of the battery acquired at the previous time;
the cumulative average value is marked as ad _ average _ volt ═ Null; when the voltage of the battery is stable, the arithmetic mean value is taken by using the collected N voltage values;
fourthly, recording the voltage value before fluctuation as: ad _ tend _ volt ═ Null (Null value), and when the battery voltage is detected to be going up (rising or returning to a steady state), the voltage value before rising is recorded: ad _ trend _ volt is ad _ pre _ volt.
Filtering time: and the timer _ delay _ volt is Null, and is used for further ensuring the reliability of the voltage value and filtering unstable voltage data in the load impact stage.
The second step is that: detecting the battery voltage every M milliseconds, recording a voltage value by using ad _ now _ volt, calculating a voltage difference value before and after Dev _ volt is ad _ now _ volt-ad _ pre _ volt, and taking an absolute value of the difference value as | Dev _ volt |.
The third step: the value of the amplitude threshold Set _ Range (the amplitude of the battery subjected to impact fluctuation) is Set, the average value of the voltage fluctuation amplitude in the load impact stage can be counted after multiple times of load impact is tested, and half of the average value is taken as the value of the Set _ Range.
The fourth step: when the Dev _ volt is more than or equal to Set _ Range, the current battery is indicated to be impacted by the load; when Dev _ volt >0, it indicates that the battery voltage recovers (rises) after being impacted by the load, and the voltage value before rising is recorded by ad _ trend _ volt ═ ad _ pre _ volt; when Dev _ volt <0, it indicates that the battery voltage is being impacted by the load and is falling.
The fifth step: when | Dev _ volt | < Set _ Range, which indicates that the current battery voltage has already stabilized, N voltage values may be sampled, and an arithmetic mean may be calculated and recorded as ad _ average _ volt.
And a sixth step: when the ad _ average _ volt is not less than the ad _ trend _ volt, the battery voltage is recovered to a stability approaching stage after load impact: and setting the Low-battery voltage value as Set _ Low _ Volt, wherein if the ad _ average _ Volt is not more than Set _ Low _ Volt, the acquired voltage is really in a Low-battery state after the battery voltage is stabilized.
The seventh step: to further ensure the reliability of the voltage values acquired, the filtering time may be timed: as long as the Set _ Time (determined according to the test data for multiple times) is continuously carried out for seconds, no load impact fluctuation is detected, namely the timer _ delay _ volt is more than or equal to the Set _ Time; the system sends out a low power prompt to provide a basis for processing the low power function action.
Example two:
an embodiment of the present invention provides an anti-fluctuation battery power detection apparatus, which employs the anti-fluctuation battery power detection method provided in the embodiment one, and as shown in fig. 3, the method includes:
the voltage acquisition unit is used for acquiring battery voltage value data;
the data processing unit is used for calculating and processing the voltage value data acquired by the voltage acquisition unit, eliminating the voltage value data in the battery load impact stage and taking the voltage value in the stability approaching stage as effective data;
the electric quantity judging unit judges whether the battery is in a low electric quantity state or not according to the effective data provided by the data processing unit;
and the data processing unit calls the voltage data in the storage unit to calculate and process.
In the embodiment, the storage unit is preferably a register, the data access speed of the register is high, and the use cost is low.
The detection device for the battery power of the embodiment can prevent the low power misinformation caused by the large fluctuation of the voltage due to the impact of the battery load, ensure the reliability of the collected voltage value, improve the accuracy of the detection of the low power of the battery, and avoid the influence on the normal power utilization work.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A method for detecting the electric quantity of a fluctuation-proof battery is characterized by comprising the following steps:
s1, continuously collecting the battery voltage for multiple times to obtain multiple voltage value data; the collection interval time is 1-100 milliseconds;
s2, calculating the difference value of the two voltage values in the collected voltage value data to obtain a voltage amplitude, if the voltage amplitude exceeds a set amplitude threshold value, judging that the battery is in a load impact stage, wherein the voltage value in the stage is invalid data, and filtering the invalid data; otherwise, judging that the battery is in a stability approaching stage, wherein the voltage value in the stage is effective data;
and S3, judging whether the battery is in a low-charge state or not according to the valid voltage data.
2. The method for detecting battery power of claim 1, wherein the amplitude threshold is set by: and acquiring the average value of the voltage amplitude of the battery in the load impact stage in multiple tests, and taking half of the average value as an amplitude threshold value.
3. The method for detecting battery power of claim 1 or 2, wherein if the duration of the voltage amplitude less than the amplitude threshold is greater than or equal to a predetermined time, the battery is determined to enter a stability approaching phase.
4. The method for detecting battery power according to claim 1, further comprising, before step S1: and electrifying to initialize all voltage value parameter variables and configuring a storage unit for storing voltage value data.
5. The method for detecting battery power according to claim 4, wherein step S3 specifically comprises: and when the detected effective voltage value is smaller than the set voltage threshold value, judging that the battery is in a low-power state.
6. The method according to claim 5, wherein an average value of a plurality of consecutive effective voltage values is obtained, and if the average value is smaller than a set voltage threshold, the battery is determined to be in a low state.
7. The method according to claim 6, wherein after step S3, when the battery is detected to be in a low state, a low power prompt is issued.
8. A battery level detection device that employs the fluctuation-prevention battery level detection method according to any one of claims 1 to 7, comprising:
the voltage acquisition unit is used for acquiring battery voltage data;
the data processing unit is used for calculating and processing the voltage value of the voltage acquisition unit, eliminating the voltage value in a battery load impact stage and taking the voltage value in a stability approaching stage as effective data;
the electric quantity judging unit judges whether the battery is in a low electric quantity state or not according to the effective data provided by the data processing unit;
and the data processing unit calls the voltage data in the storage unit to calculate and process.
9. The device for detecting the amount of battery power of claim 8, wherein said storage unit is a register.
CN202010750245.1A 2020-07-30 2020-07-30 Anti-fluctuation battery electric quantity detection method and device Pending CN111948556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010750245.1A CN111948556A (en) 2020-07-30 2020-07-30 Anti-fluctuation battery electric quantity detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010750245.1A CN111948556A (en) 2020-07-30 2020-07-30 Anti-fluctuation battery electric quantity detection method and device

Publications (1)

Publication Number Publication Date
CN111948556A true CN111948556A (en) 2020-11-17

Family

ID=73338274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010750245.1A Pending CN111948556A (en) 2020-07-30 2020-07-30 Anti-fluctuation battery electric quantity detection method and device

Country Status (1)

Country Link
CN (1) CN111948556A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113848485A (en) * 2021-10-11 2021-12-28 珠海格力电器股份有限公司 Electric quantity detection method and positioning equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202486292U (en) * 2011-11-07 2012-10-10 浙江绿源电动车有限公司 Battery electric quantity acquiring device
CN103048629A (en) * 2013-01-24 2013-04-17 圣邦微电子(北京)股份有限公司 Method and device for metering lithium battery electric quantity
CN109270467A (en) * 2017-07-18 2019-01-25 美的智慧家居科技有限公司 The battery electricity detection method and device of equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202486292U (en) * 2011-11-07 2012-10-10 浙江绿源电动车有限公司 Battery electric quantity acquiring device
CN103048629A (en) * 2013-01-24 2013-04-17 圣邦微电子(北京)股份有限公司 Method and device for metering lithium battery electric quantity
CN109270467A (en) * 2017-07-18 2019-01-25 美的智慧家居科技有限公司 The battery electricity detection method and device of equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113848485A (en) * 2021-10-11 2021-12-28 珠海格力电器股份有限公司 Electric quantity detection method and positioning equipment

Similar Documents

Publication Publication Date Title
CN111948557A (en) Method and device for detecting electric quantity of battery
EP2417467B1 (en) Method and system for transient and intermittent earth fault detection and direction determination in a three-phase medium voltage electric power distribution system
CN106569129B (en) Motor safety detection method and system and electric machine control system
WO2009059530A1 (en) Method and system for detecting internal battery abnormalities during charging and discharging states
CN108802554B (en) Capacitor leakage abnormity detection method and system and computer equipment
CN109066579B (en) Overvoltage protection method and device
CN111948555A (en) Anti-fluctuation battery electric quantity detection method and device
CN110174636A (en) A kind of detection method, system and the read/write memory medium of electric energy meter period switching
CN111948556A (en) Anti-fluctuation battery electric quantity detection method and device
CN111781520A (en) Power battery or super capacitor internal resistance test system and test method
CN213069110U (en) Intelligent detection device for lead-acid battery in communication base station
CN203838302U (en) Fault detection system for charge-discharge circuit
CN107863989A (en) Telephone line fault monitoring system and monitoring method
CN115932614B (en) Method and system for detecting battery charge state of charge and discharge of lithium battery energy storage system
CN103337837A (en) Power supply circuit protective control method
CN105628058B (en) Capacitance type detector, method and system
CN109884553A (en) Super capacitor energy-storing power supply internal resistance consistency real-time online diagnostic method and system
CN116088362A (en) Device micro-power consumption intelligent control device, method, system and medium
CN114217125A (en) Intelligent ammeter capable of preventing electricity theft, electricity theft prevention system and electricity theft prevention detection method thereof
CN111735559B (en) Capacitive edge calculation pressure transmitter acquisition and diagnosis circuit and working method thereof
CN211826422U (en) Diagnostic circuit for ground wire fault of insulating equipment
CN218497025U (en) Collection system of voltage accumulation value
CN108490817B (en) Signal sampling processing circuit
CN113030749B (en) Current detection method, device, equipment, system and storage medium
CN109470378B (en) Method for preventing failure false detection, AD detection circuit and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201117