CN101900757B - Method and device for measuring direct current voltage - Google Patents

Method and device for measuring direct current voltage Download PDF

Info

Publication number
CN101900757B
CN101900757B CN200910051887A CN200910051887A CN101900757B CN 101900757 B CN101900757 B CN 101900757B CN 200910051887 A CN200910051887 A CN 200910051887A CN 200910051887 A CN200910051887 A CN 200910051887A CN 101900757 B CN101900757 B CN 101900757B
Authority
CN
China
Prior art keywords
voltage
measurement device
sample values
value
input direct
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.)
Active
Application number
CN200910051887A
Other languages
Chinese (zh)
Other versions
CN101900757A (en
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.)
Huiguo (Shanghai) Software Technology Co Ltd
Silicon Motion Inc
Original Assignee
Huiguo (Shanghai) Software Technology Co Ltd
Silicon Motion Inc
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 Huiguo (Shanghai) Software Technology Co Ltd, Silicon Motion Inc filed Critical Huiguo (Shanghai) Software Technology Co Ltd
Priority to CN200910051887A priority Critical patent/CN101900757B/en
Publication of CN101900757A publication Critical patent/CN101900757A/en
Application granted granted Critical
Publication of CN101900757B publication Critical patent/CN101900757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and a device for measuring a direct current voltage, which can still measure a precise voltage value in the limited precision of an analog-to-digital converter. The method comprises the following steps of: firstly, receiving an input direct current voltage; secondly, loading a temporary disturbing voltage signal to the input direct current voltage to obtain a change voltage, wherein the disturbing amplitude of the temporary disturbing voltage signal is larger than the precision of the analog-to-digital converter; thirdly, carrying out analog-to-digital conversion on the change voltage by the analog-to-digital converter to obtain a plurality of incomplete same sample values; fourthly, deducing an average sample value according to the sample values; and fifthly, outputting the average sample value as a measuring value of the input direct current voltage.

Description

The method of measuring DC voltage and dc voltage measurement device
Technical field
The invention relates to the measurement of voltage, particularly relevant for the measurement of DC voltage.
Background technology
Generally speaking, portable electronic devices is with powered battery.What battery was supplied is DC voltage.Battery is after power supply a period of time, and its voltage of supplying can descend along with effluxion.When the voltage of battery supplied drops to a degree, just be not enough to support the running of portable electronic devices, and portable electronic devices was lost efficacy.Therefore; For keeping the running of portable electronic devices; Portable electronic devices must possess the dc voltage measurement device; Monitor the voltage swing of battery supplied constantly,, and before the power shortage of battery, change the battery of portable electronic devices in advance so that let the user can learn the behaviour in service of battery at any time.
Because most portable electronic devices all is a digital device, general dc voltage measurement device can convert the input direct voltage that receives into digital value with analog-to-digital converter, again with this digital value output.After portable electronic devices is received this digital value, just can this digital value be converted on the screen that is shown in portable electronic devices, with the present electric weight of expression battery.Yet, be subject to the degree of accuracy of analog-to-digital converter, can't accurately represent the electric weight that input direct voltage is present often by the digital value that input direct voltage is converted to.For instance, input voltage range is that 5 analog-to-digital converters of 0V~3V have 32 (=2 5) plant output valve, its degree of accuracy is about 0.09V (=3/32), and the change in voltage in this degree of accuracy scope just can't be measured by analog-to-digital converter.
Fig. 1 is the synoptic diagram of existing dc voltage measurement method.The analog-to-digital converter of supposing the dc voltage measurement device has 5 kinds of output valves, is respectively 0,1,2,3,4.Output valve 0,1,2,3,4 is the input voltage range of correspondence-0.5V~0.5V, 0.5V~1.5V, 1.5V~2.5V, 2.5V~3.5V, 3.5V~4.5V respectively.When an input direct voltage was 2.8V, this input direct voltage dropped on the voltage range of 2.5V~3.5V, so analog-to-digital converter can convert this input direct voltage into digital output value 3.Even the dc voltage measurement device is constantly measured at t1, t2, t3, t4, t5 time point, analog-to-digital converter also only can be exported 5 digital output values 3.Therefore, the user only can obtain the summary voltage 3V of battery, can't learn precise voltage 2.8V.The erroneous judgement of user can be caused like this, thereby battery can't be changed timely battery electric quantity.Therefore, need a kind of method of measuring DC voltage, can under limited precision, still can measure accurate magnitude of voltage.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of method of measuring DC voltage, to solve the problem that prior art exists.At first, receive an input direct voltage.Then, load a temporary disturbance voltage signal and press in this input dc power, change voltage to obtain one, wherein the perturbation amplitude of this temporary disturbance voltage signal is greater than a degree of accuracy of an analog-to-digital converter.Then, this variation voltage is simulated to digital conversion, to obtain the incomplete same sample value of a plurality of sizes with this analog-to-digital converter.Then, derive an average sample value according to these sample values.Then, export the measured value of this average sample value as this input direct voltage.
The present invention more provides a kind of dc voltage measurement device.In an embodiment, this dc voltage measurement device comprises a disturbance circuit, an analog-to-digital converter and a controller.This disturbance circuit receives an input direct voltage, and loads a temporary disturbance voltage signal and press to obtain one in this input dc power and change voltage, and wherein the perturbation amplitude of this temporary disturbance voltage signal is greater than a degree of accuracy of an analog-to-digital converter.This analog-to-digital converter is simulated to digital conversion this variation voltage, to obtain the incomplete same sample value of a plurality of sizes.This controller is derived an average sample value according to these sample values, and exports the measured value of this average sample value as this input direct voltage.
Description of drawings
For let above-mentioned purpose of the present invention, feature and advantage can be more obviously understandable, elaborate below in conjunction with the accompanying drawing specific embodiments of the invention, wherein:
Fig. 1 is the synoptic diagram of existing dc voltage measurement method;
Fig. 2 is the block diagram according to dc voltage measurement device of the present invention;
Fig. 3 is the process flow diagram according to the method for measuring DC voltage of the present invention;
Fig. 4 is the block diagram according to an embodiment of dc voltage measurement device of the present invention;
The synoptic diagram of the variation voltage that Fig. 5 is produced for the disturbance circuit according to the dc voltage measurement device of Fig. 4 of the present invention;
Fig. 6 is the block diagram according to another embodiment of dc voltage measurement device of the present invention; And
The synoptic diagram of the variation voltage that Fig. 7 is produced for the disturbance circuit according to the dc voltage measurement device of Fig. 6 of the present invention.
The main element symbol description:
(Fig. 2)
200~dc voltage measurement device
202~disturbance circuit
204~analog-to-digital converter
206~controller
(Fig. 4)
400~dc voltage measurement device
402~disturbance circuit
404~analog-to-digital converter
406~controller
412~inductance
414~on-off element
(Fig. 6)
600~dc voltage measurement device
602~disturbance circuit
604~analog-to-digital converter
606~controller
612~string baud generator
614~adder circuit
Embodiment
Fig. 2 is the block diagram according to dc voltage measurement device 200 of the present invention.Dc voltage measurement device 200 receives an input direct current signal V In, and should import direct current signal V InConvert a digital output value A into.In an embodiment, dc voltage measurement device 200 comprises disturbance circuit 202, analog-to-digital converter 204 and controller 206.Fig. 3 is the process flow diagram according to the method 300 of measuring DC voltage of the present invention.Dc voltage measurement device 200 should input direct current signal V according to method 300 conversions InBe digital output value A, wherein the degree of accuracy of this digital output value A is higher than the degree of accuracy of analog-to-digital converter 204.Because existing dc voltage measurement device can be subject to the degree of accuracy of analog-to-digital converter; And can produce digital output value A with the degree of accuracy that is higher than analog-to-digital converter 204 according to dc voltage measurement device 200 of the present invention, it is high usefulness that dc voltage measurement device 200 of the present invention has existing dc voltage measurement device.
At first, disturbance circuit 202 receives an input direct voltage V In(step 302).Then, disturbance circuit 202 loads a temporary disturbance voltage signal in this input direct voltage V InOn, change voltage V to obtain one In' (step 304).The disturbance of temporary disturbance voltage signal only continues a bit of time, and perturbation amplitude is greater than the degree of accuracy of analog-to-digital converter 204.As the disturbance circuit 202 voltage V that changes In' afterwards, change voltage V In' just can be temporary at input direct voltage V InThe position do small size skew near accurate.Then, the variation voltage V of disturbance circuit 202 generations In' be transfused to analog-to-digital converter 204.Analog-to-digital converter 204 then changes voltage V to this In' simulate to digital conversion, to obtain a plurality of sample value S (step 306) of corresponding different measuring time point.Owing to change voltage V In' can be temporary at input direct voltage V InThe position do small size skew near accurate, by changing voltage V In' size of a plurality of sample value S of conversion gained is also incomplete same.
A plurality of sample value S that analog-to-digital converter 204 produces are transfused to controller 206.Then, controller 206 is derived an average sample value A (step 308) according to these sample values S.In an embodiment, controller 206 is chosen a plurality of sample values from these sample values, and then average these are selected sample value to obtain this average sample value A.In another embodiment, controller 206 is chosen a plurality of sample values from these sample values, and then these are selected sample value carries out weighted mean to obtain this average sample value A.These weights that are selected sample value are according to changing voltage V In' variation pattern and decide.If change voltage V In' increase convergence input direct voltage V gradually in time In, the time point of then taking a sample the more weight that is selected sample value in evening is healed big.
Because these are selected the big or small incomplete same of sample value and all are similar to this input direct voltage V InThe position accurate, so average sample value A can be used as input direct voltage V InApproximate value.In addition, owing to average sample value A is selected by a plurality of that sample value averages or weighted mean gets, so the degree of accuracy of average sample value A can be higher than the degree of accuracy that is selected sample value.In addition, if change voltage V In' be not with input direct voltage V InValue be center change, then controller 406 needs again this mean value is added an offset, to obtain this average sample value A on average being selected sample value with after obtaining mean value.At last, controller 206 this average sample value of output A are as this input direct voltage V InMeasured value (step 310).
Fig. 4 is the block diagram according to an embodiment of dc voltage measurement device 400 of the present invention.Dc voltage measurement device 400 comprises disturbance circuit 402, analog-to-digital converter 404, reaches controller 406.Disturbance circuit 402 at first should change voltage V In' by input direct voltage V InBe pulled down to an earth potential, then make to change voltage V In' progressively be charged to this input direct voltage V by this earth potential InCurrent potential.In an embodiment, disturbance circuit 402 comprises an electric capacity 412 and an on-off element 414.In an embodiment, disturbance circuit 402 has an output node 416, changes voltage V with output In' to analog-to-digital converter 404.Electric capacity 412 is coupled between output node 416 and the earth potential.Same, on-off element 414 also is coupled between output node 416 and the earth potential.Input direct voltage V InAlso be coupled to output node 416.
The variation voltage V that Fig. 5 is produced for the disturbance circuit 402 according to dc voltage measurement device 400 of the present invention In' synoptic diagram.Change voltage V In' be with curve 500 expressions.Before time point t0, the on-off element 414 of disturbance circuit 402 is opened.This moment, output node 416 was coupled to input direct voltage V In, therefore change voltage V In' maintain input direct voltage V InSize.Then, disturbance circuit 402 is shut on-off element 414 in time point t0, thereby output node 416 is coupled to earth potential.Therefore, the variation voltage V of output node 416 In' be pulled down to earth potential in time point t0.Then, disturbance circuit 402 is opened on-off element 414 again, thereby removes coupling between output node 416 and the earth potential.Because output node 416 still is coupled to input direct voltage V In, change voltage V In' in time through the input direct voltage V that gos up to level off to gradually InSize.
Change voltage V In' be sent to analog-to-digital converter 404.Hypothetical simulation to digital quantizer 404 is respectively at time point t1, t2, t3, t4, t5 sampling, to obtain sample 502,504,506,508,510 respectively.Hypothetical simulation to digital quantizer 404 has 5 kinds of output valves, is respectively 0,1,2,3,4.Output valve 0,1,2,3,4 is the voltage range of correspondence-0.5V~0.5V, 0.5V~1.5V, 1.5V~2.5V, 2.5V~3.5V, 3.5V~4.5V respectively.The voltage of sample 502,504 drops on the voltage range of 1.5V~2.5V, thereby analog-to-digital converter can be changed sample 502,504 and is digital output value 2.The voltage of sample 506,508,510 drops on the voltage range of 2.5V~3.5V, thereby analog-to-digital converter can be changed sample 506,508,510 and is digital output value 3.
Then, the digital output value 2,2,3,3,3 of 406 pairs of samples 502~510 of controller averages, and obtains mean value 2.6.Because disturbance circuit 402 is with input direct voltage V InDrop-down to obtain changing voltage V In', sample mean is converged than input direct voltage V InSize be low, so controller 406 adds the average sample value 2.8 of offset 0.2 finally to be exported with mean value 2.6 again.This average sample value 2.8 is quite near input direct voltage V InBig or small 2.8V.Only can obtain the summary voltage 3V of battery compared to the existing method of Fig. 1, the measured value of measured value 2.8V of the present invention gained than existing methods clearly is more accurate.
Fig. 6 is the block diagram according to another embodiment of dc voltage measurement device 600 of the present invention.Dc voltage measurement device 600 comprises disturbance circuit 602, analog-to-digital converter 604, reaches controller 606.Disturbance circuit 602 comprises a string baud generator 612 and an adder circuit 614.String baud generator 612 at first produces a string ripple D with as temporary disturbance voltage signal.In an embodiment, the amplitude of this string ripple D is greater than 1/2nd of the amplitude of the degree of accuracy of analog-to-digital converter 604, and string ripple D therefore capable of using produces the disturbance of amplitude greater than the degree of accuracy of analog-to-digital converter 604.Then, adder circuit 602 loads on input direct voltage V with string ripple D InGo up to obtain changing voltage V In'.Therefore change voltage V In' current potential be one with input direct voltage V InFor carrying out oscillation on small scale in the center, and analog-to-digital converter 604 can be taken a sample and changed voltage V In' and obtaining a plurality of digital sample values S, these digital sample values S varies in size but is similar to input direct voltage V InValue.Therefore, controller 606 can borrow these digital sample values S to derive the average sample value A with pinpoint accuracy, with as this input direct voltage V InMeasured value.
The variation voltage V that Fig. 7 is produced for the disturbance circuit 602 according to dc voltage measurement device 600 of the present invention In' synoptic diagram.Change voltage V In' be with curve 700 expressions.Before time point t0, the string baud generator 612 of disturbance circuit 602 does not produce string ripple D as yet, so the variation voltage V of adder circuit 614 generations In' maintain input direct voltage V InSize.Then, string baud generator 612 begins to produce string ripple D in time point t0, thus the variation voltage V that adder circuit 614 produces In' begin with input direct voltage V in time point t0 InFor carrying out oscillation on small scale in the center.Change voltage V In' be sent to analog-to-digital converter 604.Hypothetical simulation to digital quantizer 604 is respectively at time point t1, t2, t3, t4, t5 sampling, to obtain sample 702,704,706,708,710 respectively.Hypothetical simulation to digital quantizer 704 has 5 kinds of output valves, is respectively 0,1,2,3,4.Output valve 0,1,2,3,4 is the voltage range of correspondence-0.5V~0.5V, 0.5V~1.5V, 1.5V~2.5V, 2.5V~3.5V, 3.5V~4.5V respectively.
Because the voltage of sample 702,706,710 drops on the voltage range of 2.5V~3.5V, thereby analog-to-digital converter can be changed sample 702,706,710 and is digital output value 3.The voltage of sample 704,708 drops on the voltage range of 3.5V~4.5V, thereby analog-to-digital converter can be changed sample 704,708 and is digital output value 4.Then, the digital output value 3,4,3,4,3 of 706 pairs of samples 702~710 of controller averages, and obtains average sample value 3.4.This average sample value 3.4 is quite near input direct voltage V InBig or small 3.3V.If take the existing method of Fig. 1, then only can obtain the summary voltage 3V of battery.Therefore, the measured value of measured value 3.4V of the present invention gained than existing methods clearly is more accurate.
Though the present invention discloses as above with preferred embodiment; Right its is not that any those skilled in the art are not breaking away from the spirit and scope of the present invention in order to qualification the present invention; When can doing a little modification and perfect, so protection scope of the present invention is when being as the criterion with what claims defined.

Claims (10)

1. dc voltage measurement device comprises:
One disturbance circuit receives an input direct voltage, and loads a temporary disturbance voltage signal and press to obtain one in this input dc power and change voltage, and wherein the perturbation amplitude of this temporary disturbance voltage signal is greater than a degree of accuracy of an analog-to-digital converter;
This analog-to-digital converter is simulated to digital conversion this variation voltage, to obtain the incomplete same sample value of a plurality of sizes of different measuring time point; And
One controller is derived an average sample value according to these sample values, and exports the measured value of this average sample value as this input direct voltage.
2. dc voltage measurement device as claimed in claim 1 is characterized in that, this disturbance circuit should change voltage and be pulled down to an earth potential, then will change voltage and progressively be charged to the current potential of this input direct voltage by this earth potential, should change voltage to produce.
3. dc voltage measurement device as claimed in claim 2 is characterized in that, this disturbance circuit comprises:
One electric capacity is coupled between the output node and an earth potential of this variation voltage, and wherein this output node more is coupled to this input direct voltage; And
One on-off element is coupled between this output node and this earth potential, thereby is shut coupling drop-down this variation voltage of this output node and this earth potential, thereby then is opened to remove this variation voltage that charges that couples between this output node and this earth potential.
4. dc voltage measurement device as claimed in claim 1 is characterized in that, this temporary disturbance voltage signal is a string ripple, and this string wave amplitude is greater than 1/2nd of this degree of accuracy.
5. dc voltage measurement device as claimed in claim 1 is characterized in that, this disturbance circuit comprises:
One string baud generator produces a string ripple with as this temporary disturbance voltage signal, and wherein this string wave amplitude is greater than 1/2nd of this degree of accuracy; And
One adder circuit loads on this input dc power with this string ripple and presses to obtain this variation voltage.
6. dc voltage measurement device as claimed in claim 1 is characterized in that, this controller is chosen a plurality of first sample values from these sample values, and on average these first sample values to obtain this average sample value.
7. dc voltage measurement device as claimed in claim 1; It is characterized in that; This controller is chosen a plurality of first sample values from these sample values, and on average these first sample values to be obtaining a mean value, and this mean value is added that an offset is to obtain this average sample value.
8. dc voltage measurement device as claimed in claim 1 is characterized in that, this controller is chosen a plurality of first sample values from these sample values, and these first sample values of weighted mean are to obtain this average sample value.
9. dc voltage measurement device as claimed in claim 8 is characterized in that, this variation voltage levels off to this input direct voltage in time gradually, and the sampling time point of these first sample values evening more, and the weight of these first sample values is bigger.
10. dc voltage measurement device as claimed in claim 1 is characterized in that, this input direct voltage is a cell voltage.
CN200910051887A 2009-05-25 2009-05-25 Method and device for measuring direct current voltage Active CN101900757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910051887A CN101900757B (en) 2009-05-25 2009-05-25 Method and device for measuring direct current voltage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910051887A CN101900757B (en) 2009-05-25 2009-05-25 Method and device for measuring direct current voltage

Publications (2)

Publication Number Publication Date
CN101900757A CN101900757A (en) 2010-12-01
CN101900757B true CN101900757B (en) 2012-10-10

Family

ID=43226458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910051887A Active CN101900757B (en) 2009-05-25 2009-05-25 Method and device for measuring direct current voltage

Country Status (1)

Country Link
CN (1) CN101900757B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10789883B2 (en) * 2017-11-02 2020-09-29 Novatek Microelectronics Corp. Sensing apparatus for display panel and operation method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5012242A (en) * 1989-07-10 1991-04-30 Pioneer Electronic Corporation Input data processor for D/A converter utilizing dithering
CN101140302A (en) * 2006-09-07 2008-03-12 普立尔科技股份有限公司 Detecting device of battery voltage reference position and detecting method thereof
CN101277111A (en) * 2007-03-30 2008-10-01 恩益禧电子股份有限公司 Dither circuit and analog digital converter having dither circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5012242A (en) * 1989-07-10 1991-04-30 Pioneer Electronic Corporation Input data processor for D/A converter utilizing dithering
CN101140302A (en) * 2006-09-07 2008-03-12 普立尔科技股份有限公司 Detecting device of battery voltage reference position and detecting method thereof
CN101277111A (en) * 2007-03-30 2008-10-01 恩益禧电子股份有限公司 Dither circuit and analog digital converter having dither circuit

Also Published As

Publication number Publication date
CN101900757A (en) 2010-12-01

Similar Documents

Publication Publication Date Title
Yakovlev Energy-modulated computing
CN103901352B (en) Show the method and device of battery of mobile terminal remaining capacity
CN103592508B (en) A kind of current sensing means for coulomb metering
CN102944266A (en) Open channel water meter based on stage-discharge relation
CN102967831B (en) On-line detection system and detection method of lead-acid storage battery performance
CN109581236A (en) Detection method, device and the computer readable storage medium of capacity of lithium ion battery
CN102890243A (en) Measuring circuit and measuring device for battery capacity as well as battery capacity meter
CN102879743A (en) Method for analyzing and calculating remaining power value of lithium ion battery in real time
CN105676141B (en) A kind of battery capacity on-line measurement system and its measuring method based on damped oscillation
CN201392382Y (en) Generating energy testing instrument of solar cell component
CN103135057B (en) A kind of method for fast measuring of self-discharge of battery performance
CN205353342U (en) Single -phase carrier wave smart electric meter communication module interface load bearing capability tester
CN101900757B (en) Method and device for measuring direct current voltage
CN203786177U (en) Secondary voltage division device for adaptive direct current line voltage divider
CN104734710A (en) Test system for ADC chip characteristic parameter test precision
CN203758598U (en) Photovoltaic weight scale with recording function
CN201698207U (en) Analog quantity collecting module based on FPGA (Field Programmable Gate Array)
CN201937299U (en) Charging device
CN101567693A (en) Analog-to-digital converting apparatus with lower temperature dependence
CN101770811B (en) Sampling hold circuit of clock-controlled floating-gate MOS tube based on threshold cancellation function
CN207571292U (en) The sensor calibration apparatus of included instrument calibration
CN207571242U (en) Transmission line of electricity distributed fault accurate positioning device
CN201724764U (en) Multi-channel ground stress data collection instrument
CN202003014U (en) Volume management circuit for lithium thionyl chloride battery
TWI390213B (en) Dc voltage measuring apparatus and method for dc voltage measurement

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