US20050107966A1 - System and method for determining voltage levels - Google Patents
System and method for determining voltage levels Download PDFInfo
- Publication number
- US20050107966A1 US20050107966A1 US10/410,033 US41003303A US2005107966A1 US 20050107966 A1 US20050107966 A1 US 20050107966A1 US 41003303 A US41003303 A US 41003303A US 2005107966 A1 US2005107966 A1 US 2005107966A1
- Authority
- US
- United States
- Prior art keywords
- voltage level
- power source
- recited
- time
- microcontroller
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/28—Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D3/00—Indicating or recording apparatus with provision for the special purposes referred to in the subgroups
- G01D3/08—Indicating or recording apparatus with provision for the special purposes referred to in the subgroups with provision for safeguarding the apparatus, e.g. against abnormal operation, against breakdown
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/25—Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
- G01R19/255—Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques using analogue/digital converters of the type with counting of pulses during a period of time proportional to voltage or current, delivered by a pulse generator with fixed frequency
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/40—Testing power supplies
Definitions
- the subject invention relates generally to a system and method for determining voltage levels and, more particularly, relates to a method for determining voltage levels in a system having a microcontroller.
- determining an analog voltage level include reading sensor values for pressure, temperature, position, etc., in control and user interface systems as well as determining supply voltage levels in battery operated devices, such as remote controls.
- the determining of supply voltage levels in battery operated devices may be required, by way of example, for estimation of remaining battery capacity to be used, for automatic adjustment of features such as backlighting intensity settings to compensate for declining battery voltage, etc.
- V (t) Vo (1 ⁇ e ⁇ t/RC ) (1)
- V′ the predetermined voltage value
- V′ the voltage level at which a digital input port pin of the low-cost microcontroller transitions from a logic “0” to a logic “1.” Since the transition point between a logic “0” and a logic “1” is generally a known relative constant for a given microcontroller technology, connecting an input-enabled port pin to the capacitor and time stamping the point during the charging cycle when the input reading switches from a logic “0” to a logic “1” is all that is required.
- FIG. 1 shows a typical circuit that may be used for this purpose. In the circuit illustrated in FIG.
- port pins P 10 and P 11 are first both set to the “output low” state (to fully discharge capacitor C 1 ) and then, after an appropriate period of time, P 11 is reversed to become a high impedance input port and allow charging of the capacitor to commence.
- the time (t) between switching P 11 to input mode and its observed transition from a logic “0” to a logic “1” is measured and used to calculate the voltage (Vo) as described above.
- a further analog to digital voltage measuring device is disclosed in U.S. Pat. No. 6,348,798 wherein a voltage measuring circuit is used to measure a voltage level of an unknown voltage source.
- the measuring circuit includes a capacitor configured for storing a charge from the unknown voltage source and a switch, such as a transistor, is configured to discharge the capacitor after the capacitor has reached a known threshold voltage.
- a microcontroller controls the switch and measures the amount of time (t) required to charge the capacitor to the required threshold voltage.
- the disclosed circuit requires an external comparator, e.g., a Motorola MC33464H-27AT1 reset controller, which is used to determine when the threshold voltage is reached and to provide a state-change logic signal to the microcontroller to signify to the microcontroller the end of the measured time (t).
- an external comparator e.g., a Motorola MC33464H-27AT1 reset controller, which is used to determine when the threshold voltage is reached and to provide a state-change logic signal to the microcontroller to signify to the microcontroller the end of the measured time (t).
- a charging circuit is placed in direct communication with a pin of the microcontroller.
- the charging circuit is charged using a constant voltage level and the microcontroller determines a time when the charging circuit attains a voltage level sufficient to transition the pin of the microcontroller from a state corresponding to a logic “0” to a state corresponding to a logic “1.” The determined time and a predetermined relationship between the power source voltage level and an input port transition voltage value of the low-cost microcontroller is then used to determine the power source voltage level of the power source.
- the invention also contemplates a readable media, such as a memory device, having instructions for performing various of the steps described hereinafter that are useful in determining voltage levels.
- the memory device may include, by way of example, a RAM, ROM, Smart Card, Disk Memory, etc.
- the memory device may be part of the microcontroller or may be separate but accessible to the microcontroller.
- FIG. 1 illustrates a prior art circuit for use in measuring voltage levels
- FIG. 2 illustrates an exemplary circuit for use in measuring voltage levels constructed in accordance with the principles of the subject invention
- FIG. 3 illustrates a flow chart diagram of exemplary steps for measuring voltage levels utilizing the circuit illustrated in FIG. 2 ;
- FIG. 4 illustrates a graph depicting an example of voltage measured as a function of time
- FIG. 5 illustrates an exemplary look-up table which functions to correlate measured time to a voltage.
- exemplary system and method for determining voltage levels is hereinafter described.
- the exemplary system and method may be used in connection with any device having a power source that is desired to be monitored.
- devices may include hand-held electronic devices such as remote controls, PDAs, portable video games, and the like, lap-top computers, etc.
- an exemplary voltage measuring circuit is provided that is designed to take advantage of the variable, Vcc dependent, nature of V IN HIGH of a microcontroller 14 .
- the exemplary voltage measuring circuit is used to “invert” the conventional approach to RC based voltage measurement such that the voltage (Vo) used to charge a capacitor C 1 is designed to be a constant voltage while the threshold voltage (V′), corresponding to the port pin's V IN HIGH , is designed to be recognized as a variable voltage.
- an exemplary voltage measuring circuit provided for use in connection with microcontroller 14 may include a resistor R 3 which is connected to the battery 10 at electrical junction 16 .
- the resistor R 3 may also be connected at electrical junction 18 to a charging circuit 12 comprised of a resistor R 1 and a capacitor C 1 , the capacitor C 1 being connected to resistor R 1 at electrical junction 20 .
- a resistor R 2 connected at electrical junction 20 provides an electrical path from electrical junction 20 to pin P 11 of microcontroller 14 while the capacitor C 1 provides an electrical path from electrical junction 20 to pin P 10 of microcontroller 14 .
- the Zener diode Z 1 may then be used to maintain the voltage (Vo) used to charge the capacitor C 1 of the charging circuit 12 at a generally constant level by being placed between electrical junction 18 and pin P 10 of microcontroller 14 . It is to be understood that other constant voltage sources may also be used in lieu of a Zener diode to charge the capacitor C 1 such as, for example, several semiconductor devices of known forward, generally fixed voltage drop connected in series or any other electrical device that is capable of producing a generally fixed voltage reference.
- Vdd T time to trigger
- Vdd T time to trigger
- V ZENER logic state of the input port of microcontroller 14
- This windowing effect is further illustrated in FIG. 4 . It will also be appreciated that this window may be adjusted up or down by varying the value of Z 1 . Still further, since the size of the window is dependent on the ratio of V IN HIGH to Vdd, lower ratios (e.g. 0.5 Vdd instead of 0.7 Vdd) will result in broader windows.
- R 1 and C 1 of the charging circuit 12 may be selected to provide any conveniently measurable time constant appropriate to the timing capabilities of the microcontroller used.
- resistors R 2 and R 3 primarily serve to limit current flow through I/O ports P 10 and P 11 and zener diode Z 1 to acceptable values during the charge and discharge cycles, their exact values are not critical to the measurement process as long as they are significantly lower than the value of resistor R 1 .
- exemplary method steps are illustrated in FIG. 3 .
- I/O pins P 10 and P 11 of the microcontroller 14 are preferably placed into an output state corresponding to logic “0.” Thereafter, a time period is provided to allow for the capacitor C 1 to drain, e.g., at least five times the RC value of the discharge circuit 22 comprising R 2 and C 1 , after which time the microcontroller 14 starts an internal timer to count time (t) while setting pin P 11 to an input sensing state.
- pin P 11 will have an input state corresponding to logic “0.”
- the microcontroller 14 then monitors the logic state of pin P 11 until such time as the voltage level causes pin P 11 to transition from the input state corresponding to logic “0” to an input state corresponding to logic “1.”
- the timing operation may be stopped in the case where a predetermined time expires before a transition from the input state corresponding to logic “0” to the input state corresponding to logic “1” occurs, e.g., at least five times the RC value of the charging circuit 12 comprising R 1 and C 1 . As noted previously, the expiration of this predetermined time would occur in cases where 0.7 Vdd is greater than V ZENER .
- the value of Vdd can be calculated using equation (4) above or, if only a few steps in the range are sufficient for a given application, the value may be read from a look up table such as illustrated in FIG. 5 , using techniques such as shown in the second part of the FIG. 3 flowchart. Note that the values in the table illustrated in FIG. 5 may actually correspond to the mid-points of ranges of time, e.g., the time opposite the 5.2 volt entry actually corresponds to an absolute voltage of 5.1, while the time opposite the 5.4 volt entry actually corresponds to 5.3 volts. Following the logic in the flowchart, it will be seen that this results in any voltage in the range 5.1>Vdd>5.3 being reported as “5.2 volts.”
- Vdd While establishing Vdd within an approximate range of values may be adequate for many applications, in certain cases where a higher degree of accuracy is desired various measures may be taken to improve the accuracy of the voltage measurement. Besides simply increasing the number of steps in the look-up table, certain adjustment factors may be applied to the values obtained from the look-up table or calculated directly. For example, some microcontroller I/O port implementations may not be capable of fully reaching ground potential when set as “Output Low” but may, in reality, settle at a few tens or hundreds of millivolts above ground. In this case, it will be appreciated that an appropriate correction may be applied to the measured voltage values in order to compensate for this phenomenon (which would cause, for example, electrical junction 24 of the exemplary circuit of FIG. 2 to be slightly offset from true ground potential during the measurement process). This correction may take the form of constant value or may be proportional to the measured voltage, depending on the characteristics of the specific microcontroller used.
- zener diodes may exhibit changes in nominal zener voltage at very low currents (i.e. as Vdd approaches V ZENER ), which changes are predictable and generally specified in manufacturer data sheets, adjustments may be made to the calculated look-up table values to compensate for the characteristic of the specific zener device used
- a calibration procedure when a fresh set of batteries is installed by taking an initial measurement of the (presumed known) fresh battery Vdd and establishing a correction factor which may then be applied to all subsequent measurements.
- Such a calibration process may be user-initiated via, for example, entry into a set-up mode of operation as is well known in the art or, alternatively, may be performed automatically whenever it is sensed that batteries have been removed and re-installed into a device incorporating the subject system. In this latter instance, a user should be admonished to always install freshly-purchased batteries in any such device.
- the calibration process may be performed at the factory using a known voltage reference and the resulting correction factor permanently stored in the non-volatile memory.
- the disclosed exemplary voltage measuring circuit has the advantage of eliminating the need for the use of an external comparator. Furthermore, the exemplary voltage measuring circuit has the advantage of allowing an absolute voltage level to be determined. To this end, the exemplary circuit illustrated in FIG. 2 contrasts to the Prior Art circuit illustrated in FIG. 1 in that resistor R 3 and zener diode Z 1 function to provide a constant voltage source to a charging circuit 12 defined by resistor R 1 and capacitor C 1 while the microcontroller 14 input pin P 11 changes logic state at a known fraction of Vdd.
Abstract
Description
- The subject invention relates generally to a system and method for determining voltage levels and, more particularly, relates to a method for determining voltage levels in a system having a microcontroller.
- In embedded microcontroller applications, the ability to determine an analog voltage level is sometimes necessary. Examples of determining an analog voltage level include reading sensor values for pressure, temperature, position, etc., in control and user interface systems as well as determining supply voltage levels in battery operated devices, such as remote controls. The determining of supply voltage levels in battery operated devices may be required, by way of example, for estimation of remaining battery capacity to be used, for automatic adjustment of features such as backlighting intensity settings to compensate for declining battery voltage, etc.
- Where the microcontroller in question is equipped with a built-in analog to digital converter, a comparator with a reference voltage, or similar capability, determination of voltage levels can be directly and easily accomplished. However, many inexpensive microcontrollers omit built-in analog to digital converters for reasons of cost saving (i.e., low-cost microcontrollers). In the case of low-cost microcontrollers, one method commonly used to approximate a voltage level is to measure the charging time of a capacitor connected to the voltage of interest through a series resistor. As is well know, the time dependent voltage (V(t)) measured across the capacitor during the charging cycle in such an arrangement can be expressed as:
V(t)=Vo(1−e −t/RC) (1)
Where: -
- t=time in seconds from start of charging;
- Vo=supply voltage;
- R=resistance value;
- C=capacitance value; and
- e=the natural log base (2.71828 . . . ).
Accordingly, if the time (t) taken to reach a predetermined voltage value (V′) can be measured, the value of the voltage source (Vo) can be calculated (for a known RC) as:
Vo=V′/(1−e −t/RC). (2)
- In the case of low-cost microcontrollers which support only digital inputs, this approach can be used by selecting the predetermined voltage value (V′) to be the voltage level at which a digital input port pin of the low-cost microcontroller transitions from a logic “0” to a logic “1.” Since the transition point between a logic “0” and a logic “1” is generally a known relative constant for a given microcontroller technology, connecting an input-enabled port pin to the capacitor and time stamping the point during the charging cycle when the input reading switches from a logic “0” to a logic “1” is all that is required. Prior Art
FIG. 1 shows a typical circuit that may be used for this purpose. In the circuit illustrated inFIG. 1 , in order to determine a voltage level (Vo), port pins P10 and P11 are first both set to the “output low” state (to fully discharge capacitor C1) and then, after an appropriate period of time, P11 is reversed to become a high impedance input port and allow charging of the capacitor to commence. The time (t) between switching P11 to input mode and its observed transition from a logic “0” to a logic “1” is measured and used to calculate the voltage (Vo) as described above. - Unfortunately, this approach cannot be used successfully in unregulated battery powered devices to determine the battery supply voltage level itself (or any other absolute voltage, for that matter). This is because the “0” to “1” logic transition point of an input port of a microcontroller is not an absolute value, but rather varies with the supply voltage Vdd. Specifically, the transition point Input High (VIN HIGH) is most often expressed as a ratio of Vdd, usually in the range 0.5 Vdd to 0.7 Vdd. Therefore, it will be appreciated that for a battery-powered (non-regulated) device, the previously described approach is only capable of determining a second voltage level as a ratio of Vdd—it cannot be used to determine an absolute voltage level. While this ratiometric approach is adequate for implementation of technologies such as FSR navigation pads and the like, it is not suitable for applications where the absolute value of Vdd is required such as, for example, backlight brightness adjustment. In this regard, attempting to solve equations (1) or (2) above for battery voltage measurement by substituting Vdd for Vo and 0.7 Vdd for V′ will quickly reveal that time (t) becomes a constant.
- A further analog to digital voltage measuring device is disclosed in U.S. Pat. No. 6,348,798 wherein a voltage measuring circuit is used to measure a voltage level of an unknown voltage source. The measuring circuit includes a capacitor configured for storing a charge from the unknown voltage source and a switch, such as a transistor, is configured to discharge the capacitor after the capacitor has reached a known threshold voltage. A microcontroller controls the switch and measures the amount of time (t) required to charge the capacitor to the required threshold voltage. Undesirably, the disclosed circuit requires an external comparator, e.g., a Motorola MC33464H-27AT1 reset controller, which is used to determine when the threshold voltage is reached and to provide a state-change logic signal to the microcontroller to signify to the microcontroller the end of the measured time (t).
- To overcome the disadvantages associated with these known circuits for determining voltage levels, an improved system and method for determining voltage levels is described hereinafter. Generally, for determining a voltage level of a power source in a system in which the power source is connected to a microcontroller, a charging circuit is placed in direct communication with a pin of the microcontroller. The charging circuit is charged using a constant voltage level and the microcontroller determines a time when the charging circuit attains a voltage level sufficient to transition the pin of the microcontroller from a state corresponding to a logic “0” to a state corresponding to a logic “1.” The determined time and a predetermined relationship between the power source voltage level and an input port transition voltage value of the low-cost microcontroller is then used to determine the power source voltage level of the power source.
- The invention also contemplates a readable media, such as a memory device, having instructions for performing various of the steps described hereinafter that are useful in determining voltage levels. In this regard, the memory device may include, by way of example, a RAM, ROM, Smart Card, Disk Memory, etc. Furthermore, the memory device may be part of the microcontroller or may be separate but accessible to the microcontroller.
- A better understanding of the objects, advantages, features, properties and relationships of the subject system and method will be obtained from the following detailed description and accompanying drawings which set forth illustrative embodiments which are indicative of the various ways in which the principles of the system and method may be employed.
- For a better understanding of the system and method for determining voltage levels, reference may be had to preferred embodiments shown in the following drawings in which:
-
FIG. 1 illustrates a prior art circuit for use in measuring voltage levels; -
FIG. 2 illustrates an exemplary circuit for use in measuring voltage levels constructed in accordance with the principles of the subject invention; -
FIG. 3 illustrates a flow chart diagram of exemplary steps for measuring voltage levels utilizing the circuit illustrated inFIG. 2 ; -
FIG. 4 illustrates a graph depicting an example of voltage measured as a function of time; and -
FIG. 5 illustrates an exemplary look-up table which functions to correlate measured time to a voltage. - With reference to the Figures, wherein like reference numerals refer to like elements, an exemplary system and method for determining voltage levels is hereinafter described. As will be appreciated, the exemplary system and method may be used in connection with any device having a power source that is desired to be monitored. By way of example only, devices may include hand-held electronic devices such as remote controls, PDAs, portable video games, and the like, lap-top computers, etc.
- More specifically, to measure voltage levels of a power supply, such as
batteries 10 illustrated inFIG. 2 , an exemplary voltage measuring circuit is provided that is designed to take advantage of the variable, Vcc dependent, nature of VIN HIGH of amicrocontroller 14. To this end, the exemplary voltage measuring circuit is used to “invert” the conventional approach to RC based voltage measurement such that the voltage (Vo) used to charge a capacitor C1 is designed to be a constant voltage while the threshold voltage (V′), corresponding to the port pin's VIN HIGH, is designed to be recognized as a variable voltage. In this manner, with a constant voltage (Vo), the charging curve V(t) of the capacitor is also a constant and, since the input port transition value VIN HIGH is known to be a percentage of the battery voltage level (Vdd), the absolute value of the battery voltage level (Vdd) can be derived from the measured time (t) based on the equation:
1−e −t/RC =V(t)/Vo. (3)
With knowledge that the voltage (Vo) is constant and V(t) at time=T is a known fraction (x) of the battery voltage level (Vdd), a measured value of time (T) yields the battery voltage level (Vdd) as:
Vdd=V(T)/x=(1−e −T/RC)Vo/x. (4)
Alternatively, time (T) may be calculated for a given value of Vdd using the equation:
T=−ln(1−xVdd/Vo)*RC (5)
For reasons that will become apparent, this latter equation (5) may then be used to create a look-up table, an example of which is illustrated inFIG. 5 , that correlates voltage values for the battery (Vdd) with expected time values (T). - For use in maintaining the voltage (Vo) used to charge the capacitor C1 at a generally constant value, the exemplary voltage circuit may employ, for example, a Zener diode Z1. Specifically, an exemplary voltage measuring circuit provided for use in connection with
microcontroller 14 may include a resistor R3 which is connected to thebattery 10 atelectrical junction 16. The resistor R3 may also be connected atelectrical junction 18 to a chargingcircuit 12 comprised of a resistor R1 and a capacitor C1, the capacitor C1 being connected to resistor R1 atelectrical junction 20. A resistor R2 connected atelectrical junction 20 provides an electrical path fromelectrical junction 20 to pin P11 ofmicrocontroller 14 while the capacitor C1 provides an electrical path fromelectrical junction 20 to pin P10 ofmicrocontroller 14. The Zener diode Z1 may then be used to maintain the voltage (Vo) used to charge the capacitor C1 of the chargingcircuit 12 at a generally constant level by being placed betweenelectrical junction 18 and pin P10 ofmicrocontroller 14. It is to be understood that other constant voltage sources may also be used in lieu of a Zener diode to charge the capacitor C1 such as, for example, several semiconductor devices of known forward, generally fixed voltage drop connected in series or any other electrical device that is capable of producing a generally fixed voltage reference. - By way of further example, using the equations set forth above, and assuming the component values for the circuit shown in
FIG. 2 are such that R1=100K ohm, R2=5K ohm, R3=500 ohm, C1=0.1 uF, and Z1=3.9 Volts, a 6-volt nominal (4-battery) supply, and a Motorola standard specification VIN HIGH=0.7 Vdd formicrocontroller 14, the results, illustrated graphically inFIG. 4 , could be used to generate a look-up table having the following values:Vdd T (time to trigger) 5.6 and above Never 5.5 43.6 mS 5.0 22.8 mS 4.5 16.5 mS 4.0 12.7 mS 3.9 and below 12 mS
It is to be noted that there is a “window” of measurement implicit in this approach, i.e., the highest battery voltage (Vdd) that can be measured is constrained by the fact that 0.7 Vdd cannot be greater than VZENER (3.9 in this case), or else the logic state of the input port ofmicrocontroller 14 will never transition, while the lowest measurable point is Vdd=VZENER since, once this point is reached, the input voltage to the chargingcircuit 12 is no longer controlled and simply tracks Vdd downwards resulting in a constant time value. This windowing effect is further illustrated inFIG. 4 . It will also be appreciated that this window may be adjusted up or down by varying the value of Z1. Still further, since the size of the window is dependent on the ratio of VIN HIGH to Vdd, lower ratios (e.g. 0.5 Vdd instead of 0.7 Vdd) will result in broader windows. - It will be additionally appreciated that other component values may also be used with equal success within the measuring circuit. In this regard, R1 and C1 of the charging
circuit 12 may be selected to provide any conveniently measurable time constant appropriate to the timing capabilities of the microcontroller used. Similarly, since resistors R2 and R3 primarily serve to limit current flow through I/O ports P10 and P11 and zener diode Z1 to acceptable values during the charge and discharge cycles, their exact values are not critical to the measurement process as long as they are significantly lower than the value of resistor R1. - For use in determining a voltage level, exemplary method steps are illustrated in
FIG. 3 . In accordance with this exemplary method, to read the supply voltage level, I/O pins P10 and P11 of themicrocontroller 14 are preferably placed into an output state corresponding to logic “0.” Thereafter, a time period is provided to allow for the capacitor C1 to drain, e.g., at least five times the RC value of thedischarge circuit 22 comprising R2 and C1, after which time themicrocontroller 14 starts an internal timer to count time (t) while setting pin P11 to an input sensing state. As will be appreciated, at this time pin P11 will have an input state corresponding to logic “0.” Themicrocontroller 14 then monitors the logic state of pin P11 until such time as the voltage level causes pin P11 to transition from the input state corresponding to logic “0” to an input state corresponding to logic “1.” - To prevent the system from becoming locked as it waits for a transition, the timing operation may be stopped in the case where a predetermined time expires before a transition from the input state corresponding to logic “0” to the input state corresponding to logic “1” occurs, e.g., at least five times the RC value of the charging
circuit 12 comprising R1 and C1. As noted previously, the expiration of this predetermined time would occur in cases where 0.7 Vdd is greater than VZENER. Once the timing operation has been stopped, owing to a transition or owing to a time-out, the value for the timer may be saved and pin P10 of themicrocontroller 14 may be placed into an input state to stop any further, unnecessary current draw through the Zener diode Z1. - Once a time value has been measured, the value of Vdd can be calculated using equation (4) above or, if only a few steps in the range are sufficient for a given application, the value may be read from a look up table such as illustrated in
FIG. 5 , using techniques such as shown in the second part of theFIG. 3 flowchart. Note that the values in the table illustrated inFIG. 5 may actually correspond to the mid-points of ranges of time, e.g., the time opposite the 5.2 volt entry actually corresponds to an absolute voltage of 5.1, while the time opposite the 5.4 volt entry actually corresponds to 5.3 volts. Following the logic in the flowchart, it will be seen that this results in any voltage in the range 5.1>Vdd>5.3 being reported as “5.2 volts.” - While establishing Vdd within an approximate range of values may be adequate for many applications, in certain cases where a higher degree of accuracy is desired various measures may be taken to improve the accuracy of the voltage measurement. Besides simply increasing the number of steps in the look-up table, certain adjustment factors may be applied to the values obtained from the look-up table or calculated directly. For example, some microcontroller I/O port implementations may not be capable of fully reaching ground potential when set as “Output Low” but may, in reality, settle at a few tens or hundreds of millivolts above ground. In this case, it will be appreciated that an appropriate correction may be applied to the measured voltage values in order to compensate for this phenomenon (which would cause, for example,
electrical junction 24 of the exemplary circuit ofFIG. 2 to be slightly offset from true ground potential during the measurement process). This correction may take the form of constant value or may be proportional to the measured voltage, depending on the characteristics of the specific microcontroller used. - Additionally, since it is known that zener diodes may exhibit changes in nominal zener voltage at very low currents (i.e. as Vdd approaches VZENER), which changes are predictable and generally specified in manufacturer data sheets, adjustments may be made to the calculated look-up table values to compensate for the characteristic of the specific zener device used
- In other cases, where both a high degree of accuracy and the ability to use inexpensive components with wide tolerances is desired, it may be advantageous to perform a calibration procedure when a fresh set of batteries is installed by taking an initial measurement of the (presumed known) fresh battery Vdd and establishing a correction factor which may then be applied to all subsequent measurements. Such a calibration process may be user-initiated via, for example, entry into a set-up mode of operation as is well known in the art or, alternatively, may be performed automatically whenever it is sensed that batteries have been removed and re-installed into a device incorporating the subject system. In this latter instance, a user should be admonished to always install freshly-purchased batteries in any such device.
- As a still further alternative, in instances when the microcontroller system is equipped with a non-volatile memory for storing set-up parameters, etc., the calibration process may be performed at the factory using a known voltage reference and the resulting correction factor permanently stored in the non-volatile memory.
- From the foregoing, it will be appreciated that the disclosed exemplary voltage measuring circuit has the advantage of eliminating the need for the use of an external comparator. Furthermore, the exemplary voltage measuring circuit has the advantage of allowing an absolute voltage level to be determined. To this end, the exemplary circuit illustrated in
FIG. 2 contrasts to the Prior Art circuit illustrated inFIG. 1 in that resistor R3 and zener diode Z1 function to provide a constant voltage source to a chargingcircuit 12 defined by resistor R1 and capacitor C1 while themicrocontroller 14 input pin P11 changes logic state at a known fraction of Vdd. - While various concepts have been described in detail, it will be appreciated by those skilled in the art that various modifications and alternatives to those concepts could be developed in light of the overall teachings of the disclosure. As such, the particular concepts disclosed are meant to be illustrative only and not limiting as to the scope of the invention which is to be given the full breadth of the appended claims and any equivalents thereof.
Claims (35)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US10/410,033 US6885952B1 (en) | 2003-04-09 | 2003-04-09 | System and method for determining voltage levels |
PCT/US2004/010792 WO2004093317A2 (en) | 2003-04-09 | 2004-04-06 | System and method for determining voltage levels |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US10/410,033 US6885952B1 (en) | 2003-04-09 | 2003-04-09 | System and method for determining voltage levels |
Publications (2)
Publication Number | Publication Date |
---|---|
US6885952B1 US6885952B1 (en) | 2005-04-26 |
US20050107966A1 true US20050107966A1 (en) | 2005-05-19 |
Family
ID=33298307
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/410,033 Expired - Lifetime US6885952B1 (en) | 2003-04-09 | 2003-04-09 | System and method for determining voltage levels |
Country Status (2)
Country | Link |
---|---|
US (1) | US6885952B1 (en) |
WO (1) | WO2004093317A2 (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050030196A1 (en) * | 2000-03-15 | 2005-02-10 | Harris Glen Mclean | State-based remote control system |
US20050052423A1 (en) * | 2000-03-15 | 2005-03-10 | Harris Glen Mclean | Online remote control configuration system |
US20070233731A1 (en) * | 2006-02-22 | 2007-10-04 | Logitech Europe S.A. | System and method for configuring media systems |
US20080036642A1 (en) * | 2000-03-15 | 2008-02-14 | Logitech Europe S.A. | Remote Control Multimedia Content Listing System |
US20110063855A1 (en) * | 2008-05-30 | 2011-03-17 | Koninklijke Philips Electronics N.V. | Round illumination device |
US8509400B2 (en) | 2005-04-20 | 2013-08-13 | Logitech Europe S.A. | System and method for adaptive programming of a remote control |
US8531276B2 (en) | 2000-03-15 | 2013-09-10 | Logitech Europe S.A. | State-based remote control system |
US8918544B2 (en) | 2011-03-31 | 2014-12-23 | Logitech Europe S.A. | Apparatus and method for configuration and operation of a remote-control system |
US9239837B2 (en) | 2011-04-29 | 2016-01-19 | Logitech Europe S.A. | Remote control system for connected devices |
CN108139447A (en) * | 2015-10-13 | 2018-06-08 | 罗伯特·博世有限公司 | The vehicles, the device and method for determining the voltage of the battery in the string of multiple series-connected cells of electrochemical energy accumulator |
KR102111654B1 (en) * | 2019-01-16 | 2020-05-15 | 김범수 | Method of Manufacturing Carbon Electrod Block Continuously in Bulk for Boiler |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7123033B1 (en) * | 2004-09-20 | 2006-10-17 | Cypress Semiconductor Corporation | Method and an apparatus to detect low voltage |
US7653823B2 (en) * | 2006-03-20 | 2010-01-26 | Lenovo (Singapore) Pte. Ltd. | Method and apparatus for informing computer of power environment |
US20070234087A1 (en) * | 2006-03-29 | 2007-10-04 | Lenovo (Singapore) Pte. Ltd. | Method and apparatus for preventing over-current computer operation from limited power source |
US8111577B2 (en) | 2007-04-17 | 2012-02-07 | Cypress Semiconductor Corporation | System comprising a state-monitoring memory element |
US8154255B2 (en) * | 2009-01-30 | 2012-04-10 | Dell Products L.P. | Systems and methods for waking up a battery system |
DE102009056838A1 (en) * | 2009-12-03 | 2011-06-09 | Siemens Aktiengesellschaft | Method and device for voltage measurement |
US8508401B1 (en) | 2010-08-31 | 2013-08-13 | Logitech Europe S.A. | Delay fixing for command codes in a remote control system |
DE102015219818A1 (en) * | 2015-10-13 | 2017-04-13 | Robert Bosch Gmbh | Electrically drivable locomotion device, device and method for determining a voltage of a cell of a string of a plurality of series-connected cells of an electrochemical energy store |
US11422601B2 (en) * | 2020-02-27 | 2022-08-23 | Dell Products, L.P. | Methods and systems for advanced battery charge capacity forecasting |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4951171A (en) * | 1989-05-11 | 1990-08-21 | Compaq Computer Inc. | Power supply monitoring circuitry for computer system |
US5652502A (en) * | 1994-11-10 | 1997-07-29 | Duracell, Inc. | Battery pack having a processor controlled battery operating system |
US5701068A (en) * | 1995-04-03 | 1997-12-23 | Electrosource, Inc. | Battery management system |
US5796334A (en) * | 1994-12-07 | 1998-08-18 | Schoepferisch Aeusserung Anstalt | Voltage monitoring circuit |
US6091227A (en) * | 1994-10-24 | 2000-07-18 | Norand Corporation | Process and apparatus for charging lithium cells or the like |
US6348798B1 (en) * | 2000-12-05 | 2002-02-19 | Alpha Smart, Inc. | Analog to digital voltage measuring device |
-
2003
- 2003-04-09 US US10/410,033 patent/US6885952B1/en not_active Expired - Lifetime
-
2004
- 2004-04-06 WO PCT/US2004/010792 patent/WO2004093317A2/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4951171A (en) * | 1989-05-11 | 1990-08-21 | Compaq Computer Inc. | Power supply monitoring circuitry for computer system |
US6091227A (en) * | 1994-10-24 | 2000-07-18 | Norand Corporation | Process and apparatus for charging lithium cells or the like |
US5652502A (en) * | 1994-11-10 | 1997-07-29 | Duracell, Inc. | Battery pack having a processor controlled battery operating system |
US5796334A (en) * | 1994-12-07 | 1998-08-18 | Schoepferisch Aeusserung Anstalt | Voltage monitoring circuit |
US5701068A (en) * | 1995-04-03 | 1997-12-23 | Electrosource, Inc. | Battery management system |
US6348798B1 (en) * | 2000-12-05 | 2002-02-19 | Alpha Smart, Inc. | Analog to digital voltage measuring device |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8653950B2 (en) | 2000-03-15 | 2014-02-18 | Logitech Europe S.A. | State-based remote control system |
US8330582B2 (en) | 2000-03-15 | 2012-12-11 | Logitech Europe S.A. | Online remote control configuration system |
US20050030196A1 (en) * | 2000-03-15 | 2005-02-10 | Harris Glen Mclean | State-based remote control system |
US8674815B1 (en) | 2000-03-15 | 2014-03-18 | Logitech Europe S.A. | Configuration method for a remote |
US8674814B2 (en) | 2000-03-15 | 2014-03-18 | Logitech Europe S.A. | State-based remote control system |
US7944370B1 (en) | 2000-03-15 | 2011-05-17 | Logitech Europe S.A. | Configuration method for a remote control via model number entry for a controlled device |
US8026789B2 (en) | 2000-03-15 | 2011-09-27 | Logitech Europe S.A. | State-based remote control system |
US8854192B1 (en) | 2000-03-15 | 2014-10-07 | Logitech Europe S.A. | Configuration method for a remote |
US8742905B2 (en) | 2000-03-15 | 2014-06-03 | Logitech Europe S.A. | Easy to use and intuitive user interface for a remote control |
US8531276B2 (en) | 2000-03-15 | 2013-09-10 | Logitech Europe S.A. | State-based remote control system |
US8704643B2 (en) | 2000-03-15 | 2014-04-22 | Logitech Europe S.A. | Convenient and easy to use button layout for a remote control |
US20050052423A1 (en) * | 2000-03-15 | 2005-03-10 | Harris Glen Mclean | Online remote control configuration system |
US20080036642A1 (en) * | 2000-03-15 | 2008-02-14 | Logitech Europe S.A. | Remote Control Multimedia Content Listing System |
US8509400B2 (en) | 2005-04-20 | 2013-08-13 | Logitech Europe S.A. | System and method for adaptive programming of a remote control |
US9207652B2 (en) | 2005-04-20 | 2015-12-08 | Logitech Europe S.A. | System and method for adaptive programming of a remote control |
US20070233731A1 (en) * | 2006-02-22 | 2007-10-04 | Logitech Europe S.A. | System and method for configuring media systems |
US20110063855A1 (en) * | 2008-05-30 | 2011-03-17 | Koninklijke Philips Electronics N.V. | Round illumination device |
US8918544B2 (en) | 2011-03-31 | 2014-12-23 | Logitech Europe S.A. | Apparatus and method for configuration and operation of a remote-control system |
US9239837B2 (en) | 2011-04-29 | 2016-01-19 | Logitech Europe S.A. | Remote control system for connected devices |
CN108139447A (en) * | 2015-10-13 | 2018-06-08 | 罗伯特·博世有限公司 | The vehicles, the device and method for determining the voltage of the battery in the string of multiple series-connected cells of electrochemical energy accumulator |
KR102111654B1 (en) * | 2019-01-16 | 2020-05-15 | 김범수 | Method of Manufacturing Carbon Electrod Block Continuously in Bulk for Boiler |
Also Published As
Publication number | Publication date |
---|---|
US6885952B1 (en) | 2005-04-26 |
WO2004093317A2 (en) | 2004-10-28 |
WO2004093317A3 (en) | 2004-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6885952B1 (en) | System and method for determining voltage levels | |
US4931737A (en) | Circuit for measuring the capacity of a battery | |
US6420851B1 (en) | Method of and device for determining the charge condition of a battery | |
US9882410B2 (en) | Electronic device, and capacitor capacitance detection method applied to the same | |
JP4479760B2 (en) | Charging apparatus and charging method | |
US11029200B2 (en) | Ambient luminosity level detection | |
GB2260231A (en) | Power management system for battery powered computers | |
US6348798B1 (en) | Analog to digital voltage measuring device | |
US8917101B2 (en) | Touch detection method and related touch control device | |
US7039150B1 (en) | Serial interface for a battery management system | |
JPH05150021A (en) | Electric power unit with power residual capacity measuring device and power residual capacity measuring circuit | |
KR101175369B1 (en) | Apparatus and Methode of measuring charges in a battery | |
US6954043B2 (en) | Power window driving apparatus | |
CN107144725B (en) | Novel method for small current detection | |
CN110501088B (en) | Temperature detection device and method and electronic equipment | |
CN113497283A (en) | Apparatus for battery and method for autonomously selecting battery configuration file for battery | |
KR100523143B1 (en) | Mobile phone having function of controlling battery-charge and method for charging battery | |
JP3488300B2 (en) | Charging device | |
US6977825B2 (en) | Voltage regulator using a transimpedance block to measure output | |
WO2001028064A2 (en) | Battery management system | |
JPH05152006A (en) | Power supply device provided with power supply remaining capacity measuring device and power supply remaining capacity measuring circuit | |
JPH04150734A (en) | Charging circuit for secondary battery | |
KR100525556B1 (en) | Apparatus for breaking current of charge | |
JP2837077B2 (en) | Electronics | |
JPS62228173A (en) | Battery voltage detection circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: UNIVERSAL ELECTRONICS INC., CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:HAYES, PATRICK H.;REEL/FRAME:013960/0423 Effective date: 20030408 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
FPAY | Fee payment |
Year of fee payment: 4 |
|
AS | Assignment |
Owner name: NISEL INVESTMENTS LIMITED LIABILITY COMPANY, DELAW Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:UNIVERSAL ELECTRONICS INC.;REEL/FRAME:021164/0534 Effective date: 20080617 |
|
FEPP | Fee payment procedure |
Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
FPAY | Fee payment |
Year of fee payment: 8 |
|
AS | Assignment |
Owner name: F. POSZAT HU, L.L.C., DELAWARE Free format text: MERGER;ASSIGNOR:NISEL INVESTMENTS LIMITED LIABILITY COMPANY;REEL/FRAME:037482/0846 Effective date: 20150812 |
|
FPAY | Fee payment |
Year of fee payment: 12 |