WEBVTT

00:00:03.120 --> 00:00:06.320
Welcome to the NVE
Sensor Design Corner.

00:00:06.320 --> 00:00:10.640
A customer asked how they could sense
15 mm of linear motion

00:00:10.640 --> 00:00:13.294
from 5 to 10 millimeters off axis.

00:00:14.172 --> 00:00:16.172
We're recommending a magnetic angle sensor.

00:00:16.880 --> 00:00:19.073
That's right--an angle sensor.

00:00:19.683 --> 00:00:23.311
The sensor detects the field
in two perpendicular axes,

00:00:23.311 --> 00:00:26.675
and calculates the angle
of the field between the axes.

00:00:27.204 --> 00:00:28.560
In this configuration,

00:00:28.560 --> 00:00:31.885
the angle is roughly proportional
to the linear displacement.

00:00:33.920 --> 00:00:38.537
To test it out, we connected an angle sensor
evaluation board to an Arduino.

00:00:39.311 --> 00:00:41.745
A linear stepper moves the magnet.

00:00:42.640 --> 00:00:47.280
We're using multiple
5 mm-diameter, 2.5 mm-thick magnets

00:00:47.280 --> 00:00:50.480
so we can show the tradeoffs
between magnet length,

00:00:50.480 --> 00:00:53.110
output range, and linearity.

00:00:53.639 --> 00:00:57.533
We'll start with two magnets
for 5 millimeters of magnet length.

00:00:59.120 --> 00:01:01.175
The angle range is large.

00:01:01.663 --> 00:01:04.334
The sensor resolution is a tenth of a degree,

00:01:04.334 --> 00:01:09.250
so the linear resolution is about
eight microns over 15 mm of travel,

00:01:09.250 --> 00:01:11.698
although with a fair amount of nonlinearity.

00:01:12.560 --> 00:01:16.349
If need be, we can calibrate the sensor
to correct the nonlinearity.

00:01:16.919 --> 00:01:18.933
More on that in another video.

00:01:19.421 --> 00:01:21.631
Next, a 10 mm magnet.

00:01:24.880 --> 00:01:27.260
The output range decreases slightly

00:01:28.522 --> 00:01:30.589
but the linearity improves.

00:01:31.851 --> 00:01:34.421
Finally, a 15 mm magnet.

00:01:37.840 --> 00:01:42.421
The resolution decreases a bit more
and the linearity improves further.

00:01:43.561 --> 00:01:48.000
The customer was going to use
a 10 mm magnet as a reasonable tradeoff

00:01:48.000 --> 00:01:50.794
between resolution and linearity.

00:01:51.730 --> 00:01:56.134
As you'd expect,
a 10 mm magnet has the same characteristics

00:01:56.134 --> 00:01:59.209
as the four 2.5 mm magnets we tested.

00:02:01.129 --> 00:02:02.835
Here's the Arduino program.

00:02:03.781 --> 00:02:06.337
We can read the sensor
with a single line of code.

00:02:07.196 --> 00:02:09.639
The program sends the data
to a terminal monitor.

00:02:10.681 --> 00:02:13.314
CoolTerm terminal monitor plots the data.

00:02:14.000 --> 00:02:16.600
CoolTerm also scales the graph to degrees,

00:02:16.880 --> 00:02:20.240
since the sensor output
is in tenths of a degree.

00:02:20.800 --> 00:02:23.267
So we've seen how a magnetic angle sensor

00:02:23.267 --> 00:02:26.086
can be used to accurately measure
linear displacement.

00:02:27.432 --> 00:02:29.866
Here's a link to the evaluation board we used.

00:02:30.560 --> 00:02:32.986
Click, e-mail, or call us
for more information.