Temperature compensation of an inductive sensor

Information

  • Patent Application
  • 20030052696
  • Publication Number
    20030052696
  • Date Filed
    August 17, 2001
    23 years ago
  • Date Published
    March 20, 2003
    21 years ago
Abstract
This invention discloses an apparatus and method of determining the temperature of the core of an inductive coil sensor so that the effective inductance of the coil sensor can be temperature compensated to thereby provide an accurate measure of the level of fuel in a tank. The method comprises energizing the sensor with a prescribed voltage, de-energizing the sensor, measuring the resultant voltage across the sensor, and determining the core temperature from the measured resultant voltage across the sensor.
Description


TECHNICAL FIELD

[0001] This invention relates to inductive coil sensors and more particularly to temperature compensation of such sensors.



BACKGROUND

[0002] Inductive coils have been used to determine liquid levels by measuring the change in the effective inductance of a coil sensor obtained as a magnetic core moves within a current carrying coil. The further the core is inserted into the coil, the greater the effective inductance and vice versa. By measuring this effective inductance, the relative position of the core inside of the coil can be determined. The core is connected by way of a lever arm to a floatation device residing in the liquid. As the level of the liquid increases, the core is inserted further into the coil thus, increasing the effective inductance of the coil and as the level decreases, the core is retracted from the coil thus decreasing the effective inductance.


[0003] The effective inductance of the coil is determined by the number of turns in the coil, the current carried by the coil, the geometry of the coil, and the position of the core within the coil. The effective inductance is also affected by the magnetic permeability of the core. The number of turns, the current, and the geometry of the coil are all fixed parameters in the design of the coil sensor. The position of the core depends upon the liquid level, however, the magnetic permeability of the core is temperature dependent. Thus, the effective inductance will vary not only with fuel level but also with the temperature of the core. The temperature-dependence of the core's magnetic permeability has more effect the farther the core is inserted into the coil. In order to make an accurate automotive fuel level sensor, the temperature of the core needs to be determined so that the effective inductance can be temperature compensated.


[0004] One method for determining the temperature of the core is to add a temperature-sensitive device in close proximity to the core. Such devices include, but are not limited to, thermistors, RTD's and thermocouples. However, adding such devices increases the cost and reduces the reliability of the inductive fuel level sensor.



SUMMARY OF THE INVENTION

[0005] This invention discloses a method of determining the temperature of the core of an inductive coil sensor so that the effective inductance of the coil sensor can be temperature compensated to thereby provide an accurate measure of the level of fuel in a tank. It is impractical to directly measure the temperature of the core of the coil sensor since the core moves. However, since the temperature in a fuel tank varies relatively slowly, it is possible to measure a nearby temperature and assign that temperature to the core.


[0006] The temperature of the core, Tcore, is determined by the temperature of the sensor coil, Tcoil, since the coil is in close proximity to the core. Tcoil can be determined from the resistance of the coil, Rcoil. Thus a method of compensating for the temperature dependence of the core of a coil sensor is disclosed. The method comprises energizing the sensor with a prescribed voltage; after a prescribed time interval, measuring the resultant voltage across the sensor; and determining the core temperature from the measured resultant voltage across the sensor.


[0007] Once the temperature of the core is known, the effective inductance of the coil can be compensated for temperature changes. The inductive coil sensor is connected to a Fuel Control Unit. The Fuel Control Unit contains the electronics to measure the effective inductance of the coil and to read the coil resistance. The Fuel Control Unit uses the coil resistance to compensate the effective inductance of the coil and to provide an accurate measure of fuel level.







BRIEF DESCRIPTION OF THE DRAWINGS

[0008]
FIG. 1 is a generalized schematic diagram of an electromechanical system including an electric circuit having a coil sensor for determining the level of a liquid in a container;


[0009]
FIG. 2 is a schematic diagram of an exemplary embodiment of the electric circuit of FIG. 1 including a model of a coil sensor for determining the temperature of a liquid in a container;


[0010]
FIG. 3 is a graphical representation of experimental data depicting the effect of the temperature dependence of the magnetic permeability of the core of an inductive coil sensor on the temperature of the core, wherein a first graph shows the temperature dependence of the magnetic permeability of the core with the core substantially out of the coil, a second graph shows the temperature dependence of the magnetic permeability of the core with the core approximately half way within the coil and a third graph shows the temperature dependence of the magnetic permeability of the core with the core substantially fully within the coil;


[0011]
FIG. 4 is a graphical representation depicting the relative timing of the square wave driving pulse voltage, Vpulse, of FIG. 1 and the resultant voltage, Vcoil across the coil sensor;


[0012]
FIG. 5 is a graphical representation of the exponential decay of Vcoil wherein the core of the coil sensor is not inserted into the coil;


[0013]
FIG. 6 is a graphical representation of the exponential decay of Vcoil wherein the core of the coil sensor is fully inserted into the coil; and


[0014]
FIG. 7 is a schematic diagram of an exemplary embodiment of the electric circuit of FIG. 1 including a model of an inductive coil sensor for determining the level of a liquid in a container.







DETAILED DESCRIPTION OF THE INVENTION

[0015] An inductive coil is constructed by winding a given number of turns of conductive wire onto a bobbin. Copper is used as the wire material due to its low cost and low electrical resistance. Although the resistance of the coil, Rcoil, is small, it is easily measurable.


[0016] Copper has a very well defined change in resistance due to temperature. The temperature coefficient of resistance, α, for Copper as given by The Engineers' Manual by Hudson is 0.00393 per degree C. at 20 degrees C. By analyzing the change in resistance in the copper coil, Rcoil, the temperature change of the coil, Tcoil, can be determined.


[0017] Referring now to FIG. 1, an electromechanical system is shown generally at 100. The electromechanical system 100 comprises a circuit 100a for an inductive coil sensor 108. The circuit 100a comprises a core 108a mechanically linked by way of a lever arm 106 to a floatation device 106a resting in a liquid 104 within a container 102. The core 108a is moveable within an inductive coil 108b. As the flotation device 106a rises and falls with the level of the liquid 104, the core 108a falls and rises as the lever arm 106 pivots about point P. The movement of the core 108a within the coil 108b causes the effective inductance of the coil 108b to change in a measurable way. An input terminus 110a of input resistor 110 is energized by a square wave signal, Vpulse, having values of 0 volts and Vcc volts as seen for example at 202 in FIG. 4. Such a voltage input at 110a results in a corresponding coil voltage, Vcoil, at an output terminus 110b of the input resistor 110. Vcoil is amplified by an amplifier 130 which provides as output a signal, Vout, which is filtered at 140. The output of the filter is provided as input to an analog-to-digital converter (ADC) 146.


[0018] Referring to FIG. 2, an exemplary embodiment of the circuit 100a of FIG. 1 is shown. In FIG. 2, Vpulse is provided by an oscillator 120 connected to the base of a pnp bipolar junction transistor 112 (Q1) having a supply voltage, Vcc, of 5 volts provided by a power source 118. Q1 112 is used to switch Vcc to the coil sensor for about 100 msec through Rin. The coil sensor 108 of FIG. 1 can be modeled as a parallel RLC circuit 124, 126, 128. In the circuit shown in FIG. 2, Rin is chosen to be much larger than Rcoil. This allows the resistance of the coil to be neglected in determining the effective inductance of the coil to determine fuel level.


[0019] A method of measuring Rcoil is to measure the voltage across the coil, Vcoil. In order to measure Vcoil, a square wave used to measure the effective inductance is halted temporarily and Q1 in FIG. 2 would remain turned “on” until the coil is fully charged. To measure temperature, the square wave on Vpulse is stopped and Vpulse is set to 0 Volts to turn Q1 on. Once the coil is fully charged, the voltage across the coil is given by
1Vcoil=RcoilRcoil+Rin×Vin.(1)


[0020] as shown in FIG. 2. If Rin and Vcc do not vary with temperature, then Rcoil would be the only temperature dependent variable. To accomplish this, Rin is chosen to be a discrete resistor with a low temperature coefficient as is common with carbon resistors. The voltage difference between Vcc and Vin is negligible for low currents flowing through Q1. Thus, Vin≈Vcc, and
2VcoilRcoilRcoil+Rin×Vcc.(1a)


[0021] Vcc can vary somewhat with temperature but this can be neglected if the ADC is also powered by Vcc. Therefore, the coil voltage can be approximated to vary in the same fashion as the temperature coefficient of resistance of copper (0.393% per degree C.).


[0022]
FIG. 3 displays experimental data at 210, 212 and 214 that shows the effect of the temperature-dependence of the core's magnetic permeability with the distance that the core is within the sensor coil. It shows the effective inductance at the full position 210 varying by 4% from −40 degrees C. to 85 degrees C.


[0023] As seen in FIGS. 2 and 4, Vin is alternately energized and de-energized at 110a by a square wave pulse, Vpulse, 202 having values of zero volts and Vcc volts. When Vpulse is positive (Q1 off), Vcoil grows exponentially as seen at 208 in FIG. 4. When Vpulse is zero (Q1 on), the inductor 126 is charging and Vcoil decays exponentially as seen at 204a. Depending upon the time constant, τL, of the coil sensor 108, as seen at 206a, Vcoil will decay to a substantially constant value VL after a prescribed time interval, t0. It will be appreciated from FIGS. 5 and 6 that as the core 108a moves into and out of the coil 108b, the time constant, τL, of the coil sensor 108 changes and the rate of the exponential decay 204b, 204c will change. Thus, FIG. 5 is representative of the sensor 108 charging when the core 108a is substantially out of the coil 108b and FIG. 5B is representative of the sensor 108 charging when the core 108a is more fully encompassed by the coil 108b. Q1 is left turned on for a sufficiently long time interval, t1>t0 (e.g., 100 msec) until Vcoil settles to the substantially DC voltage level of VL at 206b and 206c. At such time, in the circuit model 108 of FIG. 2, inductor 126 acts as a short circuit and capacitor 124 acts an open circuit. Thus, at t1 a voltage divider is created between Vin at 110a, Vcoil at 110b and electrical ground at 148. Thus,
3VL(Tcoil)=Rcoil(Tcoil)Rcoil(Tcoil)+Rin×Vcc.(2)


[0024] In the circuit of FIG. 2, VL is about 120 mV if Rcoil is about 25 Ohms. If VL has been measured at a reference temperature T0, then
4VL(T0)=Rcoil(T0)Rcoil(T0)+Rin×Vcc.(3)


[0025] Rcoil varies with temperature Tcoil according to the equation:




R


coil
(Tcoil)=Rcoil(T0)[1+α(Tcoil−T0)],  (4)



[0026] where α is the temperature coefficient of resistance. Equations (2) and (3) can be substituted into equation (4) to give the difference between Tcoil and T0:
5Tcoil-T0=1α[(VL(Tcoil)VL(T0))(Vcc-VL(T0)Vcc-VL(Tcoil))-1].(5)


[0027] It will be appreciated that in Eq. 5, Vin may be substituted for Vcc.


[0028] To measure Tcoil, the oscillator 120 is stopped periodically (e.g., once every second) in the low state. Approximately 100 msec are allowed to pass whereupon Vcoil→VL, from which is found VL(Tcoil). T0, VL(T0), Vcc and α are known and Tcoil can be determined from Eq. 5. Due to the proximity of the core 108a and the coil 108b to one another within the coil sensor 108, Tcore=Tcoil.


[0029] Once the temperature of the coil is known, then the temperature compensated effective inductance of the sensor at T0, Vsensor(T0), can be calculated from the uncompensated effective inductance of the sensor at Tcoil, Vsensor(Tcoil), according to:
6Vsensor(T0)=Vsensor(Tcoil)-(Vempty+βempty(Tcoil-T0))(Vfull+βfull(Tcoil-T0))-(Vempty+βempty(Tcoil-T0))×Vcc(6)


[0030] where βempty is the temperature dependence of Vempty and βfull is the temperature dependence of Vfull. If Vempty is measured with the core outside of the coil, then Vempty will not be affected by temperature and then βempty=0. If we let βfull=β, then Eq. 6 simplifies to:
7Vsensor(T0)=Vsensor(Tcoil)-VemptyVfull-Vempty+β(Tcoil-T0)×Vcc(6a)


[0031] where Vempty is Vsensor(T0) at the empty position and at temperature T0, Vfull is Vsensor(T0) when the core is substantially fully inserted into the coil at temperature T0, and β is the temperature dependence of the core's magnetic permeability. Vsensor is the output voltage, Vop, of the integrating Opamp 130 of FIG. 7. It will be appreciated that in Eqs. 6 and 6a, Vin may be substituted for Vcc.


[0032] It will be appreciated that since Rin>>Rcoil, Eqs. 2 and 3 can be simplified:
8VL(Tcoil)Rcoil(Tcoil)Rin×Vccand(2a)VL(T0)Rcoil(T0)Rin×Vcc(3a)


[0033] This leads to a simplification of Eq. 5; namely:
9Tcoil-T01α[VL(Tcoil)VL(T0)-1](5a)


[0034] Equation 5a is a useful approximation for implementation on a microprocessor.


[0035] In FIG. 2, the amplifier 130 of FIG. 1 comprises an operational amplifier 134 having resistors 132 and 138 and capacitor 136 in a negative feedback circuit. The operational amplifier 134 accepts as input thereto Vcoil, at a positive terminal, and provides as output Vout. Vout is an amplified VL (Gain=R138/R132=33.2, Vout is about 4 Volts, given that Rcoil is about 25 Ohms) which is filtered by an RC lowpass filter 142, 144 and provided as input to a microcontroller ADC 146 to determine coil temperature. The microcontroller ADC 146 then uses a look up table to adjust the fuel level as measured in above procedure.


[0036] In FIG. 7, in an exemplary embodiment of the circuit 100a, diode D1, connected between nodes 110b and 110c, causes the circuit 100 to analyze the negative portion 208 of the Vcoil waveform. The negative voltage 208 is used rather than the positive voltage 204, 206 because a wiring harness short to either electrical ground or battery voltage will produce a zero output at the Opamp 134. Resistor 144 provides the aforesaid discharge resistance with current flowing through the diode 140 and determines the time constant for exponential decay in combination with the inductive coil (Lcoil/R144). Resistors 146, 132 and capacitor 148 filter the input signal Vout, to the operational amplifier 134. The Opamp 134 acts as an integrator to provide an analog voltage output, Vop=Vsensor that corresponds to fuel level, which is read by a microcontroller (not shown). Resistor 156 is used to to set the offset voltage to the integrator integrator 134. Capacitor 152 is connected to resistor 156 and to electrical ground. The positive terminal of the integrator 134 is connected to electrical ground at 154.


[0037] While preferred embodiments have been shown and described, various modifications and substitutions may be made thereto without departing from the spirit and scope of the invention. Accordingly, it is to be understood that the present invention has been described by way of illustration only, and such illustrations and embodiments as have been disclosed herein are not to be construed as limiting the claims.


Claims
  • 1. A method of compensating for the temperature dependence of the effective inductance of a magnetic core in an inductive coil sensor, the method comprising: charging the sensor to generate a voltage across the sensor; measuring the voltage across the sensor at the temperature of the sensor; measuring the voltage across the sensor at a reference temperature based upon the voltage measured across the sensor at the temperature of the sensor and the voltage measured across the sensor at the reference temperature, calculating the temperature of the sensor with respect to the reference temperature; determining the effective inductance of the sensor at the temperature of the sensor; and calculating the temperature compensated effective inductance of the sensor at the reference temperature.
  • 2. The method as set forth in claim 1 wherein charging the sensor comprises: alternately energizing and de-energizing the sensor with a voltage waveform; and maintaining the voltage waveform at one value of the voltage waveform.
  • 3. The method as set forth in claim 2 wherein measuring the voltage across the sensor at the temperature of the sensor comprises measuring the voltage across the sensor when the voltage across the sensor is at a substantially constant value.
  • 4. The method as set forth in claim 3 wherein measuring the voltage across the sensor at the reference temperature comprises measuring the voltage across the sensor when the voltage across the sensor is at a substantially constant value.
  • 5. The method as set forth in claim 4 wherein calculating the temperature of the sensor with respect to the reference temperature comprises calculating the temperature of the sensor with respect to the reference temperature according to the equation
  • 6. The method as set forth in claim 1 wherein calculating the temperature compensated effective inductance of the sensor at the reference temperature comprises calculating the compensated effective inductance of the sensor at the reference temperature according to the equation
  • 7. A temperature compensated inductive coil sensor, the sensor comprising: an inductive coil receptive of a magnetic core moveable within the coil; a device linked to the magnetic core and responsive to the level of a fluid in a container; and a circuit charging the inductive coil generating thereby a voltage across the inductive coil indicative of the temperature compensated effective inductance of the sensor.
  • 8. The sensor as set forth in claim 7 wherein the inductive coil is positioned within the fluid.
  • 9. The sensor as set forth in claim 7 wherein the inductive coil is positioned remote from the fluid.
  • 10. The sensor as set forth in claim 7 wherein the device is a flotation device.
  • 11. The sensor as set forth in claim 7 wherein the circuit comprises: means for alternately energizing and de-energizing the coil with a voltage waveform; a signal converter for converting the voltage generated across the inductive coil from analog to digital form; and wherein the digital form of the voltage generated across the inductive coil is indicative of the temperature compensated effective inductance of the sensor.
  • 12. The sensor as set forth in claim 11 wherein the voltage waveform is a binary voltage waveform.