CN113189499A - Battery low-power processing algorithm - Google Patents

Battery low-power processing algorithm Download PDF

Info

Publication number
CN113189499A
CN113189499A CN202110247115.0A CN202110247115A CN113189499A CN 113189499 A CN113189499 A CN 113189499A CN 202110247115 A CN202110247115 A CN 202110247115A CN 113189499 A CN113189499 A CN 113189499A
Authority
CN
China
Prior art keywords
voltage
state
adc
low
voltage value
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
CN202110247115.0A
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 Elink Smart Co Ltd
Original Assignee
Shenzhen Elink Smart 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 Elink Smart Co Ltd filed Critical Shenzhen Elink Smart Co Ltd
Priority to CN202110247115.0A priority Critical patent/CN113189499A/en
Publication of CN113189499A publication Critical patent/CN113189499A/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/382Arrangements for monitoring battery or accumulator variables, e.g. SoC
    • G01R31/3835Arrangements for monitoring battery or accumulator variables, e.g. SoC involving only voltage measurements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
    • G01R19/2503Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques for measuring voltage only, e.g. digital volt meters (DVM's)
    • 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/367Software therefor, e.g. for battery testing using modelling or look-up tables

Landscapes

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

Abstract

The invention provides a battery low-power processing algorithm, which comprises the following steps of S1: starting; initializing a system; s2: the ADC collects voltage; if the acquired voltage value is greater than 3.3V, the normal working state is determined, and the device enters the dormancy state; if not, confirming the state of low electric quantity, and entering dormancy; s3: awakening; collecting voltage by adopting an ADC (analog to digital converter); if the acquired voltage value is not more than 3.3V, the sleep is directly entered again; if the acquired voltage value is greater than 3.3V and not greater than 3.4V, the intermediate state is determined; s4: if the voltage is larger than 3.4V, the ADC is used for collecting the voltage again, the specific processing mode effectively avoids frequent awakening and starting up caused by voltage fluctuation, the trigger frequency of low electric quantity is reduced, the power consumption of the whole machine is reduced, and the standby time of the equipment is prolonged.

Description

Battery low-power processing algorithm
[ technical field ]
The invention relates to the technical field of battery low-power processing algorithms, in particular to a battery low-power processing algorithm with a prominent application effect.
[ background art ]
Products powered by lithium batteries often need to detect the battery capacity condition, and based on the consideration of cost reduction, the lithium battery voltage is mostly detected by using an ADC (analog to digital converter) built in an MCU (microprogrammed control unit) and then converted into the capacity, rather than adopting an additional coulometer chip.
Because the current of the equipment is in a dynamic change state in the working process, the voltage at two ends of the battery can fluctuate up and down, the voltage of the equipment in the sleep state and the wake-up state is different, and the voltage fluctuation is more frequent particularly when the battery is in a low-power critical state.
A common low power determination algorithm is to set a threshold, for example, 3.3V, and when the battery voltage is lower than the threshold, the battery is determined to be low, and the device will sound an audible and visual alarm or display the alarm through a display interface. Due to the fact that the voltage of the battery fluctuates, low power is triggered frequently, and power consumption is increased when the device is awakened frequently. Even if various software filtering algorithms are employed such as: mean filtering, median filtering still does not effectively improve the problem.
[ summary of the invention ]
In order to overcome the problems in the prior art, the invention provides a battery low-power processing algorithm with outstanding application effect.
The invention provides a low battery handling algorithm, which comprises the following steps,
s1: starting; initializing a system;
s2: the ADC collects voltage; if the acquired voltage value is greater than 3.3V, the normal working state is determined, and the device enters the dormancy state; if not, confirming the state of low electric quantity, and entering dormancy;
s3: awakening; collecting voltage by adopting an ADC (analog to digital converter); if the acquired voltage value is not more than 3.3V, the sleep is directly entered again; if the acquired voltage value is greater than 3.3V and not greater than 3.4V, the intermediate state is determined;
s4: and if the voltage is larger than 3.4V, the voltage is collected by the ADC again.
Preferably, in the step S3, it is further determined whether the low battery state is last time; if yes, directly entering the sleep mode; if not, the normal working state is confirmed.
Compared with the prior art, the specific processing mode of the battery low-power processing algorithm effectively avoids frequent awakening and starting up caused by voltage fluctuation, reduces the trigger frequency of low power, reduces the power consumption of the whole machine, and increases the standby time of equipment.
[ description of the drawings ]
Fig. 1 is a circuit structure diagram of a conventional lithium battery power supply product.
Fig. 2 is a diagram of the algorithmic processing of the present invention.
Fig. 3 is a flow chart of an algorithm implementation of the present invention.
[ detailed description of the invention ]
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in 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.
Referring to fig. 1, a low battery handling algorithm 1 according to the present invention includes the following steps,
s1: starting; initializing a system;
s2: the ADC collects voltage; if the acquired voltage value is greater than 3.3V, the normal working state is determined, and the device enters the dormancy state; if not, confirming the state of low electric quantity, and entering dormancy;
s3: awakening; collecting voltage by adopting an ADC (analog to digital converter); if the acquired voltage value is not more than 3.3V, the sleep is directly entered again; if the acquired voltage value is greater than 3.3V and not greater than 3.4V, the intermediate state is determined;
s4: and if the voltage is larger than 3.4V, the voltage is collected by the ADC again.
Preferably, in the step S3, it is further determined whether the low battery state is last time; if yes, directly entering the sleep mode; if not, the normal working state is confirmed.
Common lithium batteries are typically polymer pouch batteries, or cylindrical 18650 lithium ion batteries. And the power is supplied to the main board through the protection board. The positive pole output of protection shield is sent to the ADC sense terminal of mainboard after through resistance bleeder circuit, and mainboard circuit is through gathering the ADC, then converts the magnitude of voltage into, and this value is battery voltage value.
The invention deals with voltage fluctuation by designing 2 threshold values, and further subdivides the voltage state of the battery into a normal state, an intermediate state and a low-power state. The algorithm processing is as shown in figure 2 of the attached drawings of the specification:
the X-axis is time t and the Y-axis is cell voltage u.
The curve chart expresses the change state of the battery voltage and is divided into A-E stages.
Stage A: the battery voltage is in a normal state, and the equipment works normally.
And (B) stage: low battery state, device sleep.
And C stage: and in the intermediate state, when the low-power state is changed into the intermediate state, the equipment is not allowed to be started.
The startup by mistake can not happen when the voltage fluctuates at the stage.
And D stage: and returning to the normal voltage state, and starting the equipment to work.
And E stage: and the intermediate state allows the equipment to be started when the normal state is changed into the intermediate state.
2 thresholds were designed:
enter Low-State threshold: 3.30V
Exit low battery state threshold: 3.40V
The algorithm implementation flow chart is shown in the attached figure 3 of the specification:
describing an algorithm:
and after power-on, initialization is executed, then the ADC collects the voltage of the battery, and if the voltage is more than 3.3V, the normal working state is entered. If the voltage is less than or equal to 3.3V, triggering low power, and then entering a sleep state.
When the device is awakened and then collects the electric quantity again, if the voltage of the battery is not more than 3.3V, the device is directly dormant. If more than 3.3V is measured in the surge state but 3.4V is not reached, an intermediate state is reached.
And checking whether the normal operation can be performed or not in the intermediate state, recovering the normal operation state if the normal voltage is reduced to the intermediate state voltage, and continuing to sleep if the normal voltage is returned to the intermediate state from the low-battery state. Therefore, the problem of frequently triggering low electric quantity when the electric vehicle is in a fluctuation state is effectively avoided.
And if the voltage is more than 3.4V after the wake-up, the normal working state is directly recovered.
Through the algorithm design, the intermediate state of 100mv is increased, voltage fluctuation is allowed, and the problems of frequently triggering low electric quantity and frequently starting up are avoided. According to the power consumption and voltage fluctuation rules of different products, the range of the intermediate state voltage can be properly adjusted so as to achieve the purpose of algorithm.
Since 2 thresholds are designed algorithmically: the low-power state threshold is entered, the low-power state threshold is exited, the three states are subdivided, frequent awakening and starting up caused by voltage fluctuation are effectively avoided, the trigger frequency of low power is reduced, the power consumption of the whole machine is reduced, and the standby time of the equipment is prolonged. And the intermediate state of 2 stages is processed, the equipment is allowed to work when the normal state enters the intermediate state, and the working time of the equipment is effectively increased.
Compared with the prior art, the specific processing mode of the battery low-power processing algorithm 1 effectively avoids frequent awakening and starting up caused by voltage fluctuation, reduces the trigger frequency of low power, reduces the power consumption of the whole machine, and increases the standby time of equipment.
The above-described embodiments of the present invention do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (2)

1. A low battery handling algorithm, comprising: comprises the following steps of (a) carrying out,
s1: starting; initializing a system;
s2: the ADC collects voltage; if the acquired voltage value is greater than 3.3V, the normal working state is determined, and the device enters the dormancy state; if not, confirming the state of low electric quantity, and entering dormancy;
s3: awakening; collecting voltage by adopting an ADC (analog to digital converter); if the acquired voltage value is not more than 3.3V, the sleep is directly entered again; if the acquired voltage value is greater than 3.3V and not greater than 3.4V, the intermediate state is determined;
s4: if the voltage is larger than 3.4V, performing ADC voltage collection again;
s5: thus circulating.
2. The low battery handling algorithm of claim 1, wherein: further determining whether the last time is in a low battery state in step S3; if yes, directly entering the sleep mode; if not, the normal working state is confirmed.
CN202110247115.0A 2021-03-05 2021-03-05 Battery low-power processing algorithm Pending CN113189499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110247115.0A CN113189499A (en) 2021-03-05 2021-03-05 Battery low-power processing algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110247115.0A CN113189499A (en) 2021-03-05 2021-03-05 Battery low-power processing algorithm

Publications (1)

Publication Number Publication Date
CN113189499A true CN113189499A (en) 2021-07-30

Family

ID=76973016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110247115.0A Pending CN113189499A (en) 2021-03-05 2021-03-05 Battery low-power processing algorithm

Country Status (1)

Country Link
CN (1) CN113189499A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116609687A (en) * 2023-05-17 2023-08-18 中山亿联智能科技有限公司 Battery electric quantity stable display algorithm

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101413992A (en) * 2007-10-19 2009-04-22 霍尼韦尔国际公司 Features to reduce low-battery reporting to security services at night
JP2010051080A (en) * 2008-08-20 2010-03-04 Nec Corp Power supply control circuit and power supply control method of portable electronic apparatus
CN107920292A (en) * 2017-11-14 2018-04-17 歌尔股份有限公司 A kind of power supply circuit and noise cancelling headphone
WO2018113128A1 (en) * 2016-12-20 2018-06-28 华为技术有限公司 Method for recognizing plug-and-play device, and electronic device
CN108627773A (en) * 2018-05-04 2018-10-09 深圳市道通智能航空技术有限公司 Battery power consumption control method, device and unmanned vehicle
CN210270015U (en) * 2019-05-29 2020-04-07 河南维境新能源汽车有限公司 Charging monitoring system of cleaning vehicle
CN111082399A (en) * 2020-01-21 2020-04-28 烟台创为新能源科技有限公司 Storage battery under-voltage protection circuit
CN111948557A (en) * 2020-07-30 2020-11-17 华帝股份有限公司 Method and device for detecting electric quantity of battery

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101413992A (en) * 2007-10-19 2009-04-22 霍尼韦尔国际公司 Features to reduce low-battery reporting to security services at night
JP2010051080A (en) * 2008-08-20 2010-03-04 Nec Corp Power supply control circuit and power supply control method of portable electronic apparatus
WO2018113128A1 (en) * 2016-12-20 2018-06-28 华为技术有限公司 Method for recognizing plug-and-play device, and electronic device
CN108475245A (en) * 2016-12-20 2018-08-31 华为技术有限公司 The recognition methods of PnP device and electronic equipment
CN107920292A (en) * 2017-11-14 2018-04-17 歌尔股份有限公司 A kind of power supply circuit and noise cancelling headphone
CN108627773A (en) * 2018-05-04 2018-10-09 深圳市道通智能航空技术有限公司 Battery power consumption control method, device and unmanned vehicle
CN210270015U (en) * 2019-05-29 2020-04-07 河南维境新能源汽车有限公司 Charging monitoring system of cleaning vehicle
CN111082399A (en) * 2020-01-21 2020-04-28 烟台创为新能源科技有限公司 Storage battery under-voltage protection circuit
CN111948557A (en) * 2020-07-30 2020-11-17 华帝股份有限公司 Method and device for detecting electric quantity of battery

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116609687A (en) * 2023-05-17 2023-08-18 中山亿联智能科技有限公司 Battery electric quantity stable display algorithm

Similar Documents

Publication Publication Date Title
US10523022B2 (en) Power management circuit for dynamically cut-off voltage of battery
CN110275115B (en) Method for detecting electric quantity of disposable battery
US12081056B2 (en) Controller and battery management methods
CN100559326C (en) Low voltage detection system
CN106546920B (en) Battery monitoring circuit and system
US20130311120A1 (en) Battery voltage detection method and apparatus
CN113189499A (en) Battery low-power processing algorithm
CN114407658B (en) Battery monitoring system, method, vehicle and storage medium
EP4123867A1 (en) Smart battery device, and electronic device thereof
CN103913706A (en) Lithium-battery electric-quantity detection method and device
US20020021110A1 (en) Power supply unit, battery, electrical apparatus, and memory effect detection method
CN101893925A (en) Start circuit
US9103894B2 (en) Battery-monitoring device
CN116243189A (en) Battery remaining capacity determining method and device, electronic equipment and storage medium
CN112946562B (en) Power failure protection method and device for double-core intelligent electric meter and double-core intelligent electric meter
CN114987368A (en) Control method and device for vehicle quiescent current, electronic equipment and storage medium
JP2018200306A (en) Battery residual amount detection circuit, electronic apparatus using the same, and detection method of battery residual amount
CN114116371A (en) Voltage monitoring method and device, electronic equipment and storage medium
CN111400074A (en) Watchdog simulating device and control method thereof
CN112078426A (en) Battery capacity determination method, device, equipment and storage medium
CN114563615B (en) Whole vehicle dark current measurement method, system, vehicle and storage medium
CN217981764U (en) Monitoring device and electronic equipment
CN115267564A (en) Battery voltage detection circuit and method
CN110635537B (en) Charging control method and device and robot
CN116435631B (en) Button cell low-power alarming 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: 20210730

RJ01 Rejection of invention patent application after publication