Apparatus and method for magnetic sensor output compensation based upon ambient temperature
10914795 ยท 2021-02-09
Assignee
Inventors
Cpc classification
International classification
Abstract
A circuit has a magnetic sensor that produces an uncompensated magnetic sensor output signal. A temperature sensor produces an ambient temperature signal. A compensation circuit is connected to the magnetic sensor and the temperature sensor. The compensation circuit is configured to add a computed temperature compensation signal to the uncompensated magnetic sensor output signal to produce a magnetic sensor temperature compensated output signal that reduces thermally induced variation of the uncompensated magnetic sensor output signal.
Claims
1. A circuit, comprising: a magnetic sensor that produces an uncompensated magnetic sensor output signal; a temperature sensor that produces an ambient temperature signal; and a compensation circuit connected to the magnetic sensor and the temperature sensor, the compensation circuit configured to add a computed temperature compensation signal to the uncompensated magnetic sensor output signal to produce a magnetic sensor temperature compensated output signal that reduces thermally induced variation of the uncompensated magnetic sensor output signal, wherein the compensation circuit forms the computed temperature compensation signal as a function of the ambient temperature signal, a room temperature signal, a room temperature coefficient gain signal, a temperature coefficient gain signal and the uncompensated magnetic sensor output signal.
2. The circuit of claim 1 wherein the compensation circuit computes a temperature differential signal based upon a difference between the ambient temperature signal and the room temperature signal.
3. The circuit of claim 2 wherein the compensation circuit computes a gain ratio signal based upon the temperature coefficient gain signal divided by the room temperature coefficient gain signal.
4. The circuit of claim 3 wherein the compensation circuit multiplies the gain ratio signal and the temperature differential signal to form a gain variation signal.
5. The circuit of claim 4 wherein the compensation circuit multiplies the gain variation signal by the uncompensated magnetic sensor output signal to form the computed temperature compensation signal.
Description
BRIEF DESCRIPTION OF THE FIGURES
(1) The invention is more fully appreciated in connection with the following detailed description taken in conjunction with the accompanying drawings, in which:
(2)
(3)
(4) Like reference numerals refer to corresponding parts throughout the several views of the drawings.
DETAILED DESCRIPTION OF THE INVENTION
(5)
(6)
(7) Gain variation computation block 201, multiplier 204, adder 210, bridge amplifier 220 and bridge circuit 222 implement computations disclosed herein. The gain variation computation block 201, multiplier 202 and adder 210 may be implemented in hardware, software or hybrid hardware and software circuits. In the case of a software implementation, a simple processor and associated memory may be used to implement the disclosed signal processing. That is, the memory stores instructions executed by the processor to implement the disclosed signal processing operations. In the case of a hardware implementation, adder 210 may be an operational amplifier, multiplier 204 may be a discrete analog multiplier IC, or a custom designed IC that is placed in the same or different IC as the TMR sensor. The gain variation computation block 201 may be implemented with a set of operational amplifiers with a gain programmed as a function of the temperature sensor output signal.
(8) The magnetic sensor temperature compensated output signal (V.sub.comp) can be expressed as follows:
V.sub.comp=V.sub.sense(G*T*V.sub.sense)/G.sub.0
Where Vsense is the output signal from the magnetic sensor 102 on node 104. G is a temperature coefficient of gain, which is a value that may be established from empirical data (e.g., 2.53110.sup.3 in one embodiment). T is the difference between the ambient temperature signal from temperature sensor 108 on node 110 and a room temperature signal value (e.g., corresponding to 23 C.). G.sub.0 is a temperature coefficient of gain value at room temperature.
(9) The gain variation computation block 201 is configured to produce a gain variation signal, which may be characterized as (G*T)/G.sub.0. The gain variation signal is applied to node 202. The multiplier 204 produces a computed temperature compensation signal, which may be characterized as (G*T*V.sub.sense)/G.sub.0. The adder 210 adds the output signal from the magnetic sensor 102 on node 104, referred to as V.sub.sense, to the computed temperature compensation signal to form the magnetic sensor temperature compensated output signal (V.sub.comp) on node 212. Bridge circuit 222 and amplifier 220 provide a gain to the output signal from the magnetic sensor, if necessary.
(10) The disclosed correction voltage (V.sub.comp) reduces the Temperature Coefficient of Sensitivity by a factor of 10. The disclosed circuitry substantially eliminates the 5% error range of a standard magnetic sensor 102 across its operating temperature range.
(11) The foregoing description, for purposes of explanation, used specific nomenclature to provide a thorough understanding of the invention. However, it will be apparent to one skilled in the art that specific details are not required in order to practice the invention. Thus, the foregoing descriptions of specific embodiments of the invention are presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed; obviously, many modifications and variations are possible in view of the above teachings. The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, they thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the following claims and their equivalents define the scope of the invention.