Hall Effect Sensor

Guy Lavoie

Active Member
Here is something I found a week ago that might be very useful:

http://www.allegromicro.com/sf/1321

This is a linear hall effect sensor. What this does is put out a voltage that is proportional to the strength of a static magnetic field perpendicular to it. I ordered two sample units which arrived today. I took the A1321EUA, which has the most gain.

The application I'm going to use it for is to measure the level of fuel oil in my 275 gal. tank. The tank has a plastic dome about one inch in diameter and 4 inches high on top. In it there is a round indicator disk connected to a float mechanism, to give you an idea of the amount of oil in the tank. The total travel from empty to full is about 3 inches. Having a non contact sensor like this is important for something like an oil tank, since any sparks or contact closures could provoke an explosion (although this is very unlikely for fuel oil). Also, the plastic must remain hermetically sealed because any opening will let the fuel oil evaporate and the smell is quite strong.

So I hooked up a +5 volt power supply to the chip and played with a moderately strong magnet to see the voltage change with distance. It works like a charm! The sensing range seems to be just about right too. To use with my tank, I needed a rather flat magnet to glue on top of the indicator disk. After a bit of thinking, I remembered the very flat, yet strong magnets used in hard disk drives for the head positioning mechanism. Disk drives have two sets of flat magnets between which there is a "voice-coil" that is driven like a speaker cone to position the heads. I yanked apart an old 500 meg drive that gave me 4 such magnets.

Hall effect sensors are polarity sensitive and behave like a bridge circuit. With no magnetic field, it puts out 2.5 volts. When the North end of a magnet approaches, the voltage goes one way while a South end makes it go the other way. I arranged mine to range from 2.5 down to 0 volts, to make any mathematical gain adjustments easy. The range is non-linear, with the largest voltage swing occuring when the magnet is close. This can be compensated for mathematically too in the device interpreting the reading. My intention is to connect it to a SECU16 analog input. It seems to drive a 1k resistor quite easily, so the 10k input impedance of an analog input should not be a problem.
 
Guy:

Good find. So I take it that the range of these units is entirely based on the magnetic field strength, i.e. the strength of the magnet itself?

If so, I wonder what the magnet flux would equate to for something say in the many feet range? In other words could we ever get a commercially available magnet to accomplish this that was safe to use?

I'm thinking applications like garage door opener and possibly that all important water softener salt monitor.

Regards,

BSR
 
I know I'm bringing up a year old thread, but Guy, what were the maximum distances you were able to acheive playing around with this sensor? What were the output voltage ranges for those distances?
 
A year and 10 days to be exact! :D

The range will depend on the strength of your magnet. I used a magnet from the head positioning mechanism of an old hard disk. These small, flat magnets are very powerful. I was able to detect a voltage change up to a distance of about 3 inches away from the sensor.
 
Back
Top