CN102175906A - Voltage detection method and charging device using same - Google Patents
Voltage detection method and charging device using same Download PDFInfo
- Publication number
- CN102175906A CN102175906A CN2010106235271A CN201010623527A CN102175906A CN 102175906 A CN102175906 A CN 102175906A CN 2010106235271 A CN2010106235271 A CN 2010106235271A CN 201010623527 A CN201010623527 A CN 201010623527A CN 102175906 A CN102175906 A CN 102175906A
- Authority
- CN
- China
- Prior art keywords
- voltage
- chip microcomputer
- adj
- current
- battery
- 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
Links
Images
Abstract
The invention relates to a voltage detection method and a charging device using the method. The method comprises the following steps: connecting an external precise voltage source with a voltage division resistor; a central processing unit of a singlechip calculating the value of V-adj/D-adj according to the formula, namely V-adj*K/D-adj=Vref/2n; storing the value of V-adj/D-adj into a storage unit by the singlechip; disconnecting the external precise voltage source, and connecting a chargeable battery; and calculating the value of the detected voltage by the central processing unit of the singlechip according to the formula V-detection=D-detection*V-adj/D-adj. Compared to the prior art, the charging device using the above voltage detection method can accurately detect the battery voltage and output the current after the current is calibrated, thereby reliably controlling the charging of the battery.
Description
Technical field
The present invention relates to the voltage detecting technology, be specifically related to a kind of charging device that detects voltage method and use this method.
Background technology
Electronic product is extensive use of rechargeable battery, it have can repeat repeatedly to charge, advantage capacious.Particularly lithium battery is little with its volume, and capacity is big, and the characteristics of life-span length more people are accepted, and are applied to every field more and more.If but the intelligent degree of user's improper use or charger and/or consumer is not high, will shorten battery life, and then influence new technology applying at industry-by-industry.Want to allow farthest bring into play the serviceable life of battery, on charger and consumer, do improvement, be undoubtedly a kind of main approach.
Charger will reach high-precision voltage detecting and electric current output at present, need adjust certain or some electronic components of each product.Such product ubiquity cost height, intelligent degree deficiency, control detection error are bigger than normal.This just presses for from voltage detection method and charger or consumer and sets about, and seeks the charging method that a kind of price is low, calibration is convenient, control is reliable, the precision intelligence degree is high and uses the device of this method.
Summary of the invention
In order to overcome the deficiencies in the prior art, one of purpose of the present invention provides a kind of detection voltage method that can accurately detect voltage.
Two of purpose of the present invention provides and a kind ofly can accurately detect voltage, electric current is calibrated back output, the charging device of the above-mentioned detection voltage method of use that the charging of battery is reliably controlled.
One of in order to achieve the above object, the technical solution used in the present invention is as follows:
A kind of detection voltage method is made AD conversion sampled voltage with single-chip microcomputer, and the AD converting unit by delivering to single-chip microcomputer after the divider resistance dividing potential drop may further comprise the steps:
A, outside accurate voltage source is connected with divider resistance, the CPU (central processing unit) of single-chip microcomputer is according to formula V
_ adj* K/D
_ adj=V
Ref/ 2
n, calculate V
_ adj/ D
_ adjValue, wherein,
V
_ adj: the magnitude of voltage of accurate voltage source sampling;
K: intrinsic standoff ratio is the ratio of divider resistance;
D
_ daj: the magnitude of voltage of accurate voltage source is corresponding digital quantization value after the single-chip microcomputer sampling;
V
Ref: the Chip Microcomputer A reference voltage;
N: the figure place of Chip Microcomputer A;
B, single-chip microcomputer are V
_ adj/ D
_ adjValue store in the storage unit;
C, outside accurate voltage source is removed, inserted rechargeable battery, the CPU (central processing unit) of single-chip microcomputer is according to formula V
_ survey=D
_ survey* V
_ adj/ D
_ adjCalculate the magnitude of voltage that detects voltage, wherein V
_ survey: the magnitude of voltage that detects voltage; D
_ survey: the magnitude of voltage corresponding digital quantization value after the single-chip microcomputer sampling that detects voltage.
As optimized choice, D
_ surveyBe after single-chip microcomputer sorts through 32 continuous sampling, the mean value that the centre calculates for 16 times.
As optimized choice, D
_ adjBe after single-chip microcomputer sorts through 32 continuous sampling, the mean value that the centre calculates for 16 times.
As optimized choice, described storage unit is EEPROM.
In order to achieve the above object two, the technical solution used in the present invention is as follows:
A kind of charging device that has used the detection voltage method of one of purpose, comprise battery charging module, battery detecting module and single-chip microcomputer, described single-chip microcomputer comprises CPU (central processing unit), AD converting unit, storage unit and control module, and described CPU (central processing unit) is connected with AD converting unit, storage unit and control module respectively; Described battery detecting module comprises voltage sampling circuit, and the output terminal of described voltage sampling circuit is connected with the AD converting unit of single-chip microcomputer; The control module of single-chip microcomputer is connected with the current control unit of battery charging module; The current control unit of battery charging module is connected with the battery detecting module.
As optimized choice, described battery detecting module also comprises current sampling circuit, and the output terminal of described current sampling circuit is connected with the AD converting unit of single-chip microcomputer.
As optimized choice, described voltage sampling circuit is made up of divider resistance R1, divider resistance R2, current-limiting resistance R3, divider resistance R1 is connected in series with divider resistance R2, the end of current-limiting resistance R3 is connected the junction of divider resistance R1 and divider resistance R2, the other end of current-limiting resistance R3 is connected with the AD converting unit, the end of divider resistance R1 is connected with the anode end, divider resistance R2 one end ground connection; Described current sampling circuit is by power resistor R4, current-limiting resistance R5 forms, the end of current-limiting resistance R5 is connected with the AD converting unit, the current-limiting resistance R5 other end is connected with battery cathode end, power resistor R5 respectively, the end ground connection of power resistor R5, the other end of power resistor R5 is connected with the battery cathode end.
As optimized choice, described voltage sampling circuit also is provided with capacitor C 1, an end ground connection of capacitor C 1, and the other end is connected with the AD converting unit link of current-limiting resistance R3.
As optimized choice, described current sampling circuit also is provided with capacitor C 2, an end ground connection of capacitor C 2, and the other end is connected with the AD converting unit link of current-limiting resistance R5.
As optimized choice, described storage unit is EEPROM.
The present invention compared with prior art, the battery detecting module detects voltage by single-chip microcomputer calibration, thereby reaches the process that accurately detects cell voltage and control charging current in real time.The present invention also can detect accurately to cell voltage, battery charge is adjusted accurately, and saved cost.
Description of drawings
Fig. 1 is the process flow diagram of the detection voltage method of the embodiment of the invention;
Fig. 2 is the circuit connection diagram of a kind of charging device of the embodiment of the invention;
Fig. 3 is the structure connection diagram of the current detection module of Fig. 2 when inserting outside accurate voltage source.
Embodiment
As shown in Figure 1, a kind of detection voltage method is made AD conversion sampled voltage with single-chip microcomputer, and the AD converting unit by delivering to single-chip microcomputer after the divider resistance dividing potential drop may further comprise the steps:
Step 101: outside accurate voltage source is connected with divider resistance, and the CPU (central processing unit) of single-chip microcomputer is according to formula V
_ adj* K/D
_ adj=V
Ref/ 2
n, calculate V
_ adj/ D
_ adjValue, wherein,
V
_ adj: the magnitude of voltage of accurate voltage source sampling;
K: intrinsic standoff ratio is the ratio of divider resistance;
D
_ adj: the magnitude of voltage of accurate voltage source is corresponding digital quantization value after the single-chip microcomputer sampling;
V
Ref: the Chip Microcomputer A reference voltage;
N: the figure place of Chip Microcomputer A;
Step 102: single-chip microcomputer is V
_ adj/ D
_ adjValue store in the EEPROM;
Step 103: outside accurate voltage source is removed, inserted rechargeable battery, the CPU (central processing unit) of single-chip microcomputer is according to formula V
_ survey=D
_ survey* V
_ adj/ D
_ adjCalculate the magnitude of voltage that detects voltage, wherein V
_ survey: the magnitude of voltage that detects voltage; D
_ survey: the magnitude of voltage corresponding digital quantization value after the single-chip microcomputer sampling that detects voltage.
D
_ surveyAnd D
_ adjBe after single-chip microcomputer sorts through 32 continuous sampling, the mean value that the centre calculates for 16 times.
As shown in Figure 2, a kind of charging device 10 that has used the detection voltage method of present embodiment comprises battery charging module 11, battery detecting module 12 and single-chip microcomputer 13.Described battery charging module 11 is same as the prior art, is provided with current control unit 111.Battery detecting module 12 comprises voltage sampling circuit 121 and current sampling circuit 122.Single-chip microcomputer 13 comprises AD converting unit 131, CPU (central processing unit) 132, EEPROM133, control module 134, and centre unit 132 is connected with AD converting unit 131, EEPROM133, control module 134 respectively.
The control module 134 of single-chip microcomputer 13 is connected with the current control unit 111 of battery charging module 11; The current control unit 111 of battery charging module 11 is connected with battery detecting module 12, to form the loop, control charging output current.
Described voltage sampling circuit 121 is made up of divider resistance R1, divider resistance R2, current-limiting resistance R3, capacitor C 1, divider resistance R1 is connected in series with divider resistance R2, the end of current-limiting resistance R3 is connected the junction of divider resistance R1 and divider resistance R2, the other end of current-limiting resistance R3 is connected with AD converting unit 131, the end of divider resistance R1 is connected with the anode end, divider resistance R2 one end ground connection, one end ground connection of capacitor C 1, the other end is connected with AD converting unit 131 links of current-limiting resistance R3.
Described current sampling circuit 122 is by power resistor R4, current-limiting resistance R5 capacitor C 2, composition, the end of current-limiting resistance R5 is connected with AD converting unit 131, the current-limiting resistance R5 other end is connected with battery cathode end, power resistor R5 respectively, the end ground connection of power resistor R5, the other end of power resistor R5 is connected with the battery cathode end, an end ground connection of capacitor C 2, and the other end is connected with AD converting unit 131 links of current-limiting resistance R5.
Described single-chip microcomputer 13 is used to calculate the V when outside accurate voltage source inserts battery detecting module 12
_ adj/ D
_ adjValue, and V
_ adj/ D
_ adjValue store in the EEPROM133; Be used to calculate the detection magnitude of voltage (V when rechargeable battery inserts battery detecting module 12
_ survey); Be used for the charging current of battery charging module 11 outputs precisely being controlled according to detecting magnitude of voltage.
Now in conjunction with the detection voltage method of present embodiment, the principle of work and the process of the charging device of detailed description present embodiment are as follows:
Below the process of the detection voltage that obtains battery is described in detail.
When producing, at first to calibrate sampled voltage, i.e. the magnitude of voltage of the accurate voltage source that calibration is outside is to obtain best battery voltage sampling precision.For example, adopt the outside accurately calibration in advance of 8400mV ± 5mV for five series lithium batteries.
When making analog digital (AD) conversion sampling high voltage with single-chip microcomputer 13, general by the AD converting unit 131 of delivering to single-chip microcomputer 13 behind the electric resistance partial pressure.The CPU (central processing unit) 132 of single-chip microcomputer 13 converts according to following formula:
V×K/D=V
ref/2
n…………①
V: the magnitude of voltage of being sampled;
K: intrinsic standoff ratio is the ratio of divider resistance, is R2/ (R1+R2);
D: the digital quantization value of single-chip microcomputer sampling;
V
Ref: the AD reference voltage of single-chip microcomputer 13;
N: the figure place of the AD of single-chip microcomputer 13.
In general measurement is calculated, want to detect certain fixed point pressure point, the formula artificial hand digital quantization value of calculating corresponding single-chip microcomputer sampling gets final product thus, the artificial hand is here regarded the divider resistance of sampling channel and AD reference voltage as that ideal value considers to calculate at last, but can there be deviation in actual conditions, so single chip computer measurement also has certain error when controlling.
For fear of the error of the resistance and the AD reference voltage of sampling channel, present embodiment adopts a kind of special algorithm to avoid error.
Special algorithm principle is: because sampling many times all is to convert through identical sampling channel parameter and AD reference voltage, so can be in advance accurate once sampling first, sampled data is deposited in the electricallyerasable ROM (EEROM) (EEPROM) 133 of single-chip microcomputer 13, later sampling can relatively convert with accurate sampling first, calculates the numerical value of surveying.
It below is reasoning process to this algorithm.
As shown in Figure 3, at first the accurate voltage source 14 of outside is connected with battery detecting module 12, accurate first once sampling is referred to as the calibration sampling to this sampling, promptly the accurate voltage source 14 of outside is calibrated, and applies mechanically formula 1.:
V
_adj×K/D
_adj=V
ref/2
n…………②
V
_ adj: the magnitude of voltage of this calibration;
D
_ adj: the magnitude of voltage of this calibration is corresponding digital quantization value after single-chip microcomputer 13 samplings;
Then the accurate voltage source 14 of outside is removed, inserted rechargeable battery, 1. later detection sampling applies mechanically formula:
V
_ survey* K/D
_ survey=V
Ref/ 2
n3.
2. and 3. get by formula:
V
_ survey=D
_ survey* V
_ adj/ D
_ adj4.
V
_ survey: the magnitude of voltage of this detection;
D
_ survey: the magnitude of voltage of this detection is corresponding digital quantization value after single-chip microcomputer 13 samplings.
Thus formula 4. as can be seen, measurement result V
_ surveyIrrelevant, only relevant with calibration voltage sample quantization value with the resistance and the AD reference voltage of sampling channel with calibration voltage.So, we are when measuring other point voltage, as long as can learn external detection voltage with this formula by single-chip microcomputer 13 sampling calculating.The D here
_ surveyWith D
_ adjAll be that middle 16 times mean value is considered as authentic data through after 32 the continuous sampling ordering.
Single-chip microcomputer 13 according to said method computing draw detect magnitude of voltage after, transmit control signal by the charge the battery current control unit 111 of module 11 of control module 134, with accurate control battery charging module 11 output charging currents.
During with this algorithm, the calibration sampled voltage should be tried one's best accurately ,≤± 5mV.What time following select for use element to note, to reach optimum efficiency.
The low drift of the divider resistance impedance of sampling channel;
The low drift of Chip Microcomputer A reference voltage output;
The Chip Microcomputer A integral non-linear error is as far as possible little.
The foregoing description is more preferably embodiment a kind of of the present invention, and the common variation that those skilled in the art carry out in the present invention program's scope and replacing all should be included in protection scope of the present invention.
Claims (10)
1. one kind is detected voltage method, makes AD conversion sampled voltage with single-chip microcomputer, and the AD converting unit by delivering to single-chip microcomputer after the divider resistance dividing potential drop is characterized in that, may further comprise the steps:
A, outside accurate voltage source is connected with divider resistance, the CPU (central processing unit) of single-chip microcomputer is according to formula V
_ adj* K/D
_ adj=V
Ref/ 2
n, calculate V
_ adj/ D
_ adjValue, wherein,
V
_ adj: the magnitude of voltage of accurate voltage source sampling;
K: intrinsic standoff ratio is the ratio of divider resistance;
D
_ adj: the magnitude of voltage of accurate voltage source is corresponding digital quantization value after the single-chip microcomputer sampling;
V
Ref: the Chip Microcomputer A reference voltage;
N: the figure place of Chip Microcomputer A;
B, single-chip microcomputer are V
_ adj/ D
_ adjValue store in the storage unit;
C, outside accurate voltage source is removed, inserted rechargeable battery, the CPU (central processing unit) of single-chip microcomputer is according to formula V
_ survey=D
_ survey* V
_ adj/ D
_ adjCalculate the magnitude of voltage that detects voltage, wherein V
_ survey: the magnitude of voltage that detects voltage; D
_ survey: the magnitude of voltage corresponding digital quantization value after the single-chip microcomputer sampling that detects voltage.
2. a kind of detection voltage method as claimed in claim 1 is characterized in that D
_ surveyBe after single-chip microcomputer sorts through 32 continuous sampling, the mean value that the centre calculates for 16 times.
3. a kind of detection voltage method as claimed in claim 1 is characterized in that D
_ adjBe after single-chip microcomputer sorts through 32 continuous sampling, the mean value that the centre calculates for 16 times.
4. as the method for each described a kind of calibration voltage of claim 1-3, it is characterized in that described storage unit is EEPROM.
5. charging device that has used detection voltage method as claimed in claim 1, comprise battery charging module and battery detecting module, it is characterized in that, also comprise single-chip microcomputer, described single-chip microcomputer comprises CPU (central processing unit), AD converting unit, storage unit and control module, and described CPU (central processing unit) is connected with AD converting unit, storage unit and control module respectively; Described battery detecting module comprises voltage sampling circuit, and the output terminal of described voltage sampling circuit is connected with the AD converting unit of single-chip microcomputer; The control module of single-chip microcomputer is connected with the current control unit of battery charging module; The current control unit of battery charging module is connected with the battery detecting module.
6. a kind of charging device as claimed in claim 5 is characterized in that, described battery detecting module also comprises current sampling circuit, and the output terminal of described current sampling circuit is connected with the AD converting unit of single-chip microcomputer.
7. a kind of charging device as claimed in claim 6, it is characterized in that, described voltage sampling circuit is made up of divider resistance R1, divider resistance R2, current-limiting resistance R3, divider resistance R1 is connected in series with divider resistance R2, the end of current-limiting resistance R3 is connected the junction of divider resistance R1 and divider resistance R2, the other end of current-limiting resistance R3 is connected with the AD converting unit, and the end of divider resistance R1 is connected with the anode end, divider resistance R2 one end ground connection; Described current sampling circuit is by power resistor R4, current-limiting resistance R5 forms, the end of current-limiting resistance R5 is connected with the AD converting unit, the current-limiting resistance R5 other end is connected with battery cathode end, power resistor R5 respectively, the end ground connection of power resistor R5, the other end of power resistor R5 is connected with the battery cathode end.
8. a kind of charging device as claimed in claim 7 is characterized in that described voltage sampling circuit also is provided with capacitor C 1, an end ground connection of capacitor C 1, and the other end is connected with the AD converting unit link of current-limiting resistance R3.
9. a kind of charging device as claimed in claim 7 is characterized in that described current sampling circuit also is provided with capacitor C 2, an end ground connection of capacitor C 2, and the other end is connected with the AD converting unit link of current-limiting resistance R5.
10. as each described a kind of charging device of claim 5-9, it is characterized in that described storage unit is EEPROM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010106235271A CN102175906A (en) | 2010-12-31 | 2010-12-31 | Voltage detection method and charging device using same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010106235271A CN102175906A (en) | 2010-12-31 | 2010-12-31 | Voltage detection method and charging device using same |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102175906A true CN102175906A (en) | 2011-09-07 |
Family
ID=44519111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010106235271A Pending CN102175906A (en) | 2010-12-31 | 2010-12-31 | Voltage detection method and charging device using same |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102175906A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015085469A1 (en) * | 2013-12-09 | 2015-06-18 | 吉瑞高新科技股份有限公司 | System and method for detecting power supply voltage and power supply system |
WO2015161822A1 (en) * | 2014-04-25 | 2015-10-29 | 华为技术有限公司 | Busbar voltage measurement method and circuit |
CN107181300A (en) * | 2017-06-15 | 2017-09-19 | 广州极飞科技有限公司 | Charge protector, the method and apparatus for calibrating charging equipment |
CN112667064A (en) * | 2020-12-25 | 2021-04-16 | 中孚信息股份有限公司 | Detection voltage calibration method and system of data processing equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5644210A (en) * | 1994-12-28 | 1997-07-01 | Samsung Electronics Co., Ltd. | Charging control method and circuit of recharging battery |
CN101354431A (en) * | 2008-08-26 | 2009-01-28 | 崧顺电子(深圳)有限公司 | Apparatus and method for recognizing battery types |
CN101704359A (en) * | 2008-08-26 | 2010-05-12 | 王丹 | Electric car charger |
-
2010
- 2010-12-31 CN CN2010106235271A patent/CN102175906A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5644210A (en) * | 1994-12-28 | 1997-07-01 | Samsung Electronics Co., Ltd. | Charging control method and circuit of recharging battery |
CN101354431A (en) * | 2008-08-26 | 2009-01-28 | 崧顺电子(深圳)有限公司 | Apparatus and method for recognizing battery types |
CN101704359A (en) * | 2008-08-26 | 2010-05-12 | 王丹 | Electric car charger |
Non-Patent Citations (1)
Title |
---|
杜菊等: "一种高精度的电压检测技术方案及实现方法", 《电子技术应用》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015085469A1 (en) * | 2013-12-09 | 2015-06-18 | 吉瑞高新科技股份有限公司 | System and method for detecting power supply voltage and power supply system |
WO2015161822A1 (en) * | 2014-04-25 | 2015-10-29 | 华为技术有限公司 | Busbar voltage measurement method and circuit |
CN107181300A (en) * | 2017-06-15 | 2017-09-19 | 广州极飞科技有限公司 | Charge protector, the method and apparatus for calibrating charging equipment |
CN112667064A (en) * | 2020-12-25 | 2021-04-16 | 中孚信息股份有限公司 | Detection voltage calibration method and system of data processing equipment |
CN112667064B (en) * | 2020-12-25 | 2023-03-24 | 中孚信息股份有限公司 | Detection voltage calibration method and system of data processing equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102207541B (en) | Method for measuring direct current internal resistance, full charge capacity and remaining power of battery pack | |
CN102944847B (en) | Battery electricity detection method and system | |
US11693060B2 (en) | Battery monitoring device and method | |
CN100585423C (en) | Battery fuel gauge circuit | |
CN103344921B (en) | Lithium-ion-power cell health state evaluation system and method | |
KR101146404B1 (en) | Battery management system and battery pack comprising the same | |
CN105891730B (en) | A kind of computational methods of automobile power cell capacity | |
CN102590609B (en) | The method of mobile terminal and measurement mobile terminal power consumption | |
CN201303252Y (en) | Intelligent battery management solar charge controller | |
CN101383436B (en) | Battery charging method and apparatus | |
CN109696637B (en) | Method for monitoring capacity of lithium disposable battery | |
CN104282960B (en) | Battery module | |
CN102854471A (en) | Method and device for metering electric quantity of battery | |
CN104880673A (en) | Method for measuring battery electric quantity and mobile terminal | |
CN107181300A (en) | Charge protector, the method and apparatus for calibrating charging equipment | |
CN102175906A (en) | Voltage detection method and charging device using same | |
CN112327180A (en) | Lithium ion battery self-discharge evaluation and voltage balance adjustment method thereof | |
US20130169214A1 (en) | Series-Type Charging Device and Charging Method Thereof | |
CN201937299U (en) | Charging device | |
CN203101597U (en) | Cell electricity quantity detection system | |
CN116826209A (en) | Method, system, storage medium and device for obtaining battery connection in battery pack | |
CN109669138A (en) | A kind of method of precise determination power lead storage battery residual capacity | |
CN201732152U (en) | Detection system for storage battery packs | |
CN203101598U (en) | Cell electricity quantity detection system | |
CN211086534U (en) | SOC estimation system based on hybrid energy storage device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110907 |