Applications of Magnetic Position Sensors
Applications of Magnetic Position Sensors
SENSOR PRODUCTS
APPLICATION NOTE
To create the sensor from the AMR elements, the four The HMC1501 and HMC1512 are Honeywell’s AMR
elements are oriented in a diamond shape with the based magnetic position sensors that contain AMR
ends connected together by metalization to form the sensor bridges to be used in saturation mode. The
wheatstone bridge. Arbitrarily, the top and bottom HMC1501 contains one AMR bridge for a ±45° range
connections of the four identical elements are given a of position sensing, and the HMC1512 contains two
Direct Current (DC) stimulus in the form of a supply AMR bridges for a ±90° range of position sensing. The
voltage (Vs), with the remaining side connections to be bridge differential output voltage (DV) for the
measured. With no magnetic field supplied (0 gauss), HMC1501 is:
the side contacts should be at the same voltage,
POSITION SENSING
40
For simple magnetic position sensing, the HMC1501
20 sensor can used to detect the relative motion of a
Offset nearby magnet in linear or angular displacement.
0 Figure 4 shows a typical orientation.
-20 Ref
M
-40 Q
As you can see above, the most linear range for this
N
sensor bridge is in the ±45° range about the –180, -90, S
0, 90, and 180 degree points. Of these the 0 and ±180 moving magnet
points have a positive slope, and the ±90 points have Figure 4
a negative slope. These slopes can be taken to full Position Sensing
advantage for angular and linear positioning
applications. With the orientation of the stationary HMC1501, the
magnet can translate to ±45° and stay within a linear
Now that we have a fairly accurate method for slope of DV versus q for position sensing. Given a
magnetic field direction sensing established, it should typical supply voltage of 5 volts (Vs = +5Vdc), the
noted that some errors should be adjusted to enhance HMC1501 will provide about a 120 millivolt swing (± 60
the accuracies of the measurements. The first one is millivolts) on 2.5 volt bias voltage. The reason for the
the offset error voltage as depicted in figure 3 and 2.5 volts is that with the wheatstone bridge supply
mentioned earlier as a byproduct of manufacturing voltages at 0 and +5 volts, the bridge performs a rail
tolerances. To compensate for the offset, either analog splitter function to create two near +2.5 volt sources
signal processing or digital value corrections can be driven apart by DV as created by the magnetic field
used. In the analog signal processing solution, an and the offset error voltage. Figure 5 shows this
opposing error voltage can be summed into the bridge transfer curve.
To interface with output pins of the HMC1501 (OUT+, Another method of offset error voltage compensation
OUT-), an instrumentation amplifier circuit is typically is to just measure it at production test and subtract that
used. Instrumentation amplifiers can be purchased as value from all future measurements. The advantages
complete integrated circuits, or constructed via of this method is that the circuit component count
combinations of discrete components and integrated remains minimal (like figure 6), and no trimming
circuits; such as operational amplifiers (op-amps). The procedure is required. The disadvantage is that you
purpose of an instrumentation amplifier is to derive the may have to reduce the amplifier gain to
difference signal (OUT+ minus OUT-), and to provide accommodate all the error buildup in offset and
additional signal amplification as desired. Figure 6 sensitivity tolerances, plus tempco changes that are all
shows a typical instrumentation amplifier circuit using multiplied by the amplifier gain.
an op-amp with external discrete components.
WIDER POSITION SENSING
U1
Vbridge .01mf
Vcc 249k
5.0v
10.0k To go from ±45° to ±90° requires two HMC1501
OUT-
-
TLC072 output sensors or a single HMC1512 dual sensor part. By
OUT+
10.0k
+
U2
using two bridges with 45° displacement from each
Gnd2 other, the two linear slopes can be used additively.
Gnd1 HMC1501
249k Figure 8 shows a typical configuration.
Vref ~ Vcc/2
S
SHAFT beyond ±90°, the theta calculation will replicate again
Rotation N
N with postive and negative 90° readings jumping at the
end points. Further performance to 360° or ±180° can
HMC1512
be mapped into a microcontroller by using this circuit
plus a Hall Effect sensor to determine which side of
the shaft is being positionally measured via magnetic
Figure 8
polarity detection. Figure 10 shows the basic circuit
Wide Position Sensing
interface for the HMC1512.
Gnd A PIC12CE674
40 249k Microcontroller
Vref ~ Vcc/2
U3
20
U1
Vbridge B .01mf
Vcc 249k
5.0v
0 10.0k
OUT-
- TLC072
AN1
-20 OUT+ +
10.0k U2
Gnd B
-40 249k
HMC1512
Vref ~ Vcc/2
-60
-180 -90 -45 0 45 90 180 Figure 10
theta (degrees) HMC1512 Circuit
Figure 9
Sine, Cosine Waveforms LINEAR DISPLACEMENT SENSING
Because the sine (sensor bridge A) and cosine For extended length linear position sensing, multiple
(sensor bridge B) will match after the offset error sensor bridges can be lined up next to a traveling
voltages are subtracted, the ratio of bridge A to bridge magnet sliding past the bridges. For best resolution
B creates a tangent 2q function and the amplitude A and linearity, the ±45° range should be backed down a
values cancel. Thus the angle theta (q) is described bit to around ±30°. As part calculating how many
as: linearly arrayed bridges are needed for fixed amount
travel (displacement), the magnet to bridge standoff
q = 0.5 * arctan (DVa / DVb) distance should be determined. For common magnets
like ceramic and AlNiCo types with under a kilo-gauss
However because there are some trigonometric of magnetic field strength at the pole face, a maximum
nuances with the arctangent function when q gets of about 0.25 inches of standoff distance will be
close to ±45° and beyond, these special cases apply: reasonable; so that the nearest two to three bridges
will be in saturation (>80 gauss) from the magnet. For
For DVa = 0, q = 0° rare earth magnets, such as Neo-dymium types, with
pole face fields around 3 kilo-gauss or more; a
For DVb = 0 and DVa = <0, q = -45° standoff distance of 0.5” can be achieved. Figure 11
shows a typical array of four HMC1501 single bridge
For DVb = 0 and DVa = >0, q = +45° sensors with nominal magnet displacement ranges.
For DVa < 0 and DVb < 0, subtract 90° from q From Figure 11, a single bridge sensor produces a DV
versus position in a linear position arrangement. This
For DVa > 0 and DVb < 0, add 90° from q will create a waveform much like figures 3 and 5
except that the end points of displacement fall away
S 20
NdFeB
N 0
S 0.5”
Standoff -20
AlNiCo N
0.25”
-40
Sensor#1
Sensor#2
-60 Sensor#3
0.5” Spacing Sensor#4
(for NdFeB Magnets) -80
-2 -1 0 1 2
Figure 11
HMC1501 Array Position (inches)
60 Figure 13
HMC1501 Combined Bridge Waveforms
DV Signal Output (millivolts)
40 Vs = 5 volts
SENSOR
Figure 17
360° Position Sensing
N
As the magnetic flux rotates about the HMC1512 and SENSOR S
the hall effect sensor, the hall effect sensor’s voltage DISPLACEMENT
PATH
will reverse its polarity at the flux vector changes from
back-to-front to front-to-back through the silicon slab. Figure 19
Tilting Magnets Method
80
Sensor A
Sensor B The above figure shows two magnets tilted slightly
60 Hall from each other while maintaining a consistent gap in
DV Signal Output (millivolts)
40
spacing in which a sensor will travel between the
magnets. In the near position, a downward angled flux
20 path is produced, with a horizontal direction at mid-
travel, and an upward angle at the far position. Thus a
0 single bridge’s linear sensing range is spread out
through a fairly long displacement length. Either the
-20
magnets or the sensor itself can be made to move
-40
relative to the other.