2
\$\begingroup\$

this may be more of a geometry question than an EE one, but i'll ask it here anyway. I'm trying to build a weather vane, and am looking at using several linear hall effect sensors (such as the allegro 1324) laid out around a shaft with a free-spinning magnet on it.

how many sensors would i need? this is what i'm looking at doing now (they're the sot23w package)

sample schematic

i could get away with 3 laid out on the corners of an equilateral triangle, but... can i get away with half of the schematic above, and just look at the effect from the north pole vs the south pole?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ How many magnets? What spacing? What kind of position accuracy do you need? Do you have some intelligence at the other end to implement a CORDIC? \$\endgroup\$
    – user16222
    Commented Feb 14, 2014 at 7:37
  • \$\begingroup\$ one neodymium magnet. arduino on the other side, so should be doable \$\endgroup\$
    – kolosy
    Commented Feb 14, 2014 at 15:26

2 Answers 2

2
\$\begingroup\$

Your magnet has a south pole and a north pole. A noth pole will produce the opposite signal in a Hall sensor compared to a south pole and so, if you have two Hall sensors at 90 degrees, you can infer any angle from the two readings you acquire.

You have to watch out for increased noise though but this should not be a problem with reasonably sensitive devices. Check the data sheet. Worst case scenario for noise is this: -

enter image description here

The magnet poles are furthest away from both sensor active areas. Any rotation in either direction makes the magnetic field stronger on one sensor and if these sensors are calibrated and fairly accurate you can use the sensor that has the strongest reading to determine angle.

Having said that I'd probably go for three sensors at 120 degrees.

\$\endgroup\$
1
  • \$\begingroup\$ This actually isn't a horrible scenario... i'm using this for a weathervane on an autonomous sailboat, and i can position the sensor in a way where that arrangement (or the inverse) happens when the boat is directly up or down wind. i can have a slight blind spot in either scenario. \$\endgroup\$
    – kolosy
    Commented Feb 14, 2014 at 15:28
0
\$\begingroup\$

Check out the MagAlpha devices. Only one sensor will do the whole job and the precision will be much higher. You just need a ring magnet that is magnetized diametrically.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.