Hi guys, I'm trying to build a gimbal-like system so I've placed the magnetometer pretty close to the motors.
When I do so, it seems to give me really wrong values (I used the Pololu heading sketch to verify). If I place the sensor about 5-6 inches away, the heading readings to me make sense again. Is there some kind of shield or technique I can use so that I can place the sensor near the motors? My contraption will look pretty poorly designed if I have to place the magnetometer on a stick away from the motors.
Any help greatly appreciated :)
LSM303DLHC interference from stepper and servo
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: LSM303DLHC interference from stepper and servo
Unfortunately, no. You need to keep the magnetometer well away from magnetic field sources such as motors.
- g3ck0
- Posts: 7
- Joined: Wed Jan 21, 2015 4:00 am
Re: LSM303DLHC interference from stepper and servo
So enclosing the sensor in a metal box would not make the situation any better?
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: LSM303DLHC interference from stepper and servo
A typical "Faraday Cage" is not effective at blocking static or low-frequency magnetic fields. A box constructed of superconducting material would, but it would also block the Earth's magnetic field.So enclosing the sensor in a metal box would not make the situation any better?
Please be positive and constructive with your questions and comments.