Electronic – Use magnetic field to estimate distance – best sensor type

magnetometersensor

I want to measure the position of something that movies along a single axis over a range of 150mm at a frequency of roughly 1kHz. You can imagine that it is the piston on a shock absorber. I could attach a small magnet to the moving element. I think it should be possible to position a magnetic sensor at one end of the range of motion and then capture the magnetic field as the item moves back and forth. The problem is that most magnetic sensor that I can find are hall-effect sensors that are designed to switch from 0 to 1 over a very short distance. What I need is a gradual change in voltage output over the range of motion so that I can estimated the piston position based on the sensor voltage over the 150mm of travel.

TMR sensors seem to be inherently better suited as they have a more linear response to magnetic field, but I can't seem to find a simple sensor. They are all configured as angle sensors (would these work for my application?) or proximity sensors.

If I can just get the raw response voltage and capture that with an adc on a microcontroller I think this would be fine.

Any ideas?

Best Answer

Any ideas?

Maybe (just maybe) you could engineer the equivalent to a linear voltage displacement transducer (LVDT). It uses three coils and a linear moving target to estimate position: -

enter image description here

Conceptually it is the same as a food-industry three coil metal detector: -

enter image description here

The thing about the metal detector is that the aperture design (the hole in which the product travels) is big enough to allow whatever mechanism you have planned to fit in it but, bear in mind that only the "target" must be metal.

You would excite the centre coil at tens to hundreds of kHz and look for the phase of the signal on the receive coils. At dead centre the receive signal is zero and the left side would produce the opposite phase signal to right-side.

I could attach a small magnet to the moving element

A piece of ferrite would work nicely.