(1) Field of the Invention
This invention relates generally to the area of reading out electronic sensors, and more particular, to sensors having variable resistance as e.g. potentiometers.
(2) Description of the Prior Art
One of the most convenient and inexpensive transducer is a potentiometer. A potentiometer is essentially a device, which can be configured so that a continuously variable voltage is produced that is proportional to the potentiometer's shaft position.
One of the applications of potentiometers is the usage as an analog input device in combination with devices as a joystick. A joystick position is determined by reading the resistance value of a potentiometer attached to the joystick. Potentiometers are a simple and very inexpensive system and can be designed to interface to a standard computer interface. Potentiometers can use a desktop as a position reference, and a joystick is usually suction or non-skid mounted to the desktop to prevent sliding.
Two potentiometers are required to define a position in a two-dimensional space.
Z=R1+R2,
wherein R1 is the variable resistance of potentiometer 1 and R2 is the variable resistance of potentiometer 2. The value of Z is measured by opening the switches 7 and 9 and closing switch 8. The total resistance of both potentiometers 1 and 2 calculates
wherein Vs is the voltage measured at port 4 and R3 is the known constant resistance of the resistor 3.
An additional switch 9 is required to measure the resistance of the potentiometers 1 and 2. For this measurement switch 7 is closed to have the complete voltage Vdd available for the maximum signal. Therefore Vs equals Vdd while switch 7 is closed.
The voltage V1 comprises the difference between the entry voltages of the sensor Vs 6 (in this case Vs equals Vdd) to the voltage measured at the output port 5.
wherein R1 is the resistance of the potentiometer 1.
The voltage V2 comprises the voltage level measured at the output port 5.
wherein R2 is the resistance of the potentiometer 2.
There are various problems linked to this prior art approach. There is no continuous measurement of the resistance of R1, R2 and of the total resistance Z possible. There are two time slots required to measure first the total resistance Z and secondly the resistance of each potentiometer. For a following analog-to-digital converter the time slots available are very short to convert the voltage values measured at port 5 and at port 4 and that will increase the noise to signal ratio. The voltage modulation of the voltages measured at port 4 and 5 is huge and therefore the time constant of a filter is quite limited.
Additionally for the measurement of the total resistance Z the signals are quite small because the voltage has to be divided between the sensor 10 and the resistor 3.
U.S. Pat. No. (4,864,513 to Levine et al.) describes a technique for forming a signal representing the operator adjustment of a potentiometer. This technique consists of measuring the reference time constant of the resistance between the fixed terminals of the potentiometer and a capacitor, measuring the variable time constant of the resistance of the potentiometer between a fixed terminal and the terminal variable by an operator setting and this same capacitor, and again measuring the reference time constant of the resistance between the fixed terminals of the potentiometer and the capacitor. These time constant measurements are made by discharging the capacitor, charging the capacitor through the appropriate terminal of the potentiometer and measuring the time required for the voltage across the capacitor to reach a predetermined threshold level.
U.S. Pat. No. (5,247,680 to Huber) discloses a circuit including an adjustment control (e.g. a potentiometer) that has two end connections and a slider that is adjustable for setting different resistance ratios. The two end connections of the potentiometer are each connected to one of two connections of a microprocessor and the slider is connected to one connection of a capacitor. The other capacitor connection is connected to a predetermined potential. To each of the two microprocessor connections at least one controllable switch is connected for optionally connecting a first potential or a second potential to the relevant microprocessor connection. The microprocessor executes a program run in which the capacitor that has previously been brought into an initial charge state is recharged first via one resistance section and then via the other resistance section of the potentiometer. In each case a measurement value Z corresponding to a capacitor-recharging period is determined and from the determined measurement values Z a digital data word signal is generated by forming the quotient thereof. This digital signal represents the resistance ratio set by the slider of the potentiometer.
U.S. Pat. No. (5,786,808 to Khoury) describes a digital positioning system for a joystick. The system uses a potentiometer having one input coupled to a constant supply voltage and a second input coupled to a joystick game port for generating a variable resistance representative of a current position of the joystick. A constant current source is coupled to the joystick game port for generating a current for converting the variable resistance representative of the current position of the joystick to a voltage level representative of the current position of the joystick. An analog-to-digital converter circuit is coupled to the joystick game port and is used to convert the voltage level representative of the current position of the joystick to a digital representation of the current position of the joystick.
A principal object of the present invention is to achieve a circuit and a method to measure continuously the resistance of variable resistors in a sensor.
In accordance with the object of the invention a circuit to measure continuously the resistance of variable resistors in a sensor has been achieved. Said circuit comprises first a sensor comprising more than one variable resistors in series and one or more output ports providing signals identifying the variable resistance of each of said variable resistors. Furthermore said circuit comprises a means of a constant current source providing a part of the current flowing through said sensor comprising variable resistors, a means of a variable current source for the remaining part of the current flowing through said sensor to adapt to variations of resistance of said sensor, a means of stabilizing the voltage across said sensor and a means to mirror said variable current. Furthermore said circuit comprises a means of stabilizing the voltage across said current mirror and means to use said mirrored current to identify the total resistance of said sensor.
Furthermore in accordance with the object of the invention a method to measure continuously the resistance of variable resistors in a sensor has been achieved. Said method comprises first providing a sensor comprising more than one variable resistors in series and one or more output ports providing signals identifying the variable resistance of each of said variable resistors, a means of a constant current source providing a part of the current flowing through said sensor comprising variable resistors, a means of a variable current source for the remaining part of the current flowing through said sensor to adapt to variations of resistance of said sensor, a means of stabilizing the voltage across said sensor, a means to mirror said variable current, a means of stabilizing the voltage across said current mirror, and a means to use said mirrored current to identify the total resistance of said sensor. Furthermore said method comprises stabilizing the voltage across said sensor, providing a constant current flowing through the sensor, providing a variable current flowing through the sensor to cover variations of resistance of said sensor, mirroring said variable current representing variations of the resistance of the sensor, identifying the total resistance of the sensor by measuring the voltage of said mirrored current across a known shunt resistor, and identifying the resistance of each variable resistor within the sensor by representing voltages.
In the accompanying drawings forming a material part of this description, there is shown:
The preferred embodiment disclose a method and a circuit capable to measure continuously the variable resistance of resistors as being used e.g. in combination with joysticks.
For example, if the current flowing through the sensor is 1 mA and the current source 22 is providing a constant current of 950 μA, a current of only 50 μA will flow through transistor 21. In case the current through said sensor 10 increases by 10 μA, said current through transistor 21 will increase subsequently from 50μ to 60 μA. This is a change of 20%. Without the constant current source 22 the current through transistor 21 would increase from 1000 μA to 1010μ. This is a change of 1% only compared to the 20% increase we have achieved by using the constant current source 22.
The transistor 23 has the function of a mirror of transistor 21. The amplifier 24 is stabilizing together with transistor 25 the voltage across transistor 23. Said voltage across transistor 23 has to have the same value as the voltage across transistor 21. This identity of voltage levels is a prerequisite that the currents through transistors 21 and 23 are not dependent on said voltage levels. The amount of current flowing through resistor 26 equals the amount of current flowing through the sensor 10 minus the current provided by the constant current source 22. Using the above-mentioned example, if a current of 1000 μA is flowing through sensor 10 and the current source 22 is providing 950 μA, a current of 50 μA will flow through resistor 26. The value of the total resistance Z of sensor 10 can be therefore identified by measuring the voltage level at gate 4. By said zooming effect of the current source 22 a high voltage scale is achieved to identify even small variations of the total resistance Z of the sensor 10.
The entry voltage level of the sensor 10 is signified by the voltage Vs 28. For example said voltage Vs can be 300 to 500 mV below Vdd depending upon the precision of the regulator comprising the amplifier 20 and transistor 21.
The variable resistance of the resistors 1 and 2 can be identified by measuring the voltage at port 5. The resistance of said variable resistors 1 and 2 can be calculated according to the equations shown in the prior art section:
wherein R1 is the resistance of the variable resistor 1, Vs is the entry voltage 28 of the sensor 10 and V1 is the difference of voltage between said entry voltage VS and the voltage measured at port 5. The resistance of the variable resistor 2 can be measured accordingly The voltage V2 comprises the voltage level measured at the output port 5.
wherein R2 is the resistance of the potentiometer 2.
The advantage of the circuit invented is first, that the measurement of the resistance of each potentiometer and of the total resistance of the sensor 10 can be done continuously, no modulation is required any more and second that the signal representing the total resistance of the sensor is much bigger compared to prior art and has got a much better scale.
For those skilled in art it is obvious that with the circuit invented any number of input parameters can be handled using additional potentiometers and additional output ports.
While the invention has been particularly shown and described with reference to the preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
03368013 | Feb 2003 | EP | regional |
Number | Name | Date | Kind |
---|---|---|---|
4864513 | Levine et al. | Sep 1989 | A |
5116136 | Newman et al. | May 1992 | A |
5247680 | Huber | Sep 1993 | A |
5444579 | Klein et al. | Aug 1995 | A |
5786808 | Khoury | Jul 1998 | A |
6181141 | Juntunen et al. | Jan 2001 | B1 |
6538503 | Burt | Mar 2003 | B2 |
6768318 | Burt et al. | Jul 2004 | B2 |
6801059 | Lee | Oct 2004 | B2 |
Number | Date | Country | |
---|---|---|---|
20040155663 A1 | Aug 2004 | US |