Author Options:

HMC5883L with external magnet Answered

GY-273 HMC5883L Compass

A. I'm waiting for my chip to arrive and will attach it to a RasPi.
B.  My question is: if I align my chip to "N" then rotate a magnet round the chip - i.e. a weathervane - thoughts on how that might work?
C. Can my magnet, if too strong/close, damage my chip?



The forums are retiring in 2021 and are now closed for new topics and comments.

5 years ago

If you are just trying to figure out which way the weathervane is pointing, would you be better off with a rotary encoder on the shaft of the vane? Or the sensor should be on the end of the weathervane, you can use a slip ring to wire it up so the wires are not tangled when it rotates. Good luck.