Author Topic: compass sensor cmps03 vs HMC6352  (Read 2360 times)

0 Members and 1 Guest are viewing this topic.

Offline Jak24Topic starter

  • Full Member
  • ***
  • Posts: 96
  • Helpful? 0
compass sensor cmps03 vs HMC6352
« on: January 04, 2011, 10:45:54 AM »

I am currently looking for compass sensors for my robot, the two sensors that seem to be the most
popular are the cmps03:
and the HMC6352:
I currently have a cmps03 for my robot but i have some trouble with it because it isn't accurate
(most of time it give OK readings which are only off by a little, but if a bigger metal part comes near it then it immediately
messes up as it gives a reading that are 20-30 degrees off)
and also this is a problem because my robots structure includes some metal parts which disturb the sensor.
The HMC6352 on the other hand i have no experience with, apparently it has ''Stray magnetic field protection'' but i really don't
know if it can really sustain a good reading.
There is a another possible method of protecting the compass from stray magnetic fields, it is a metal with shielding capabilities
called Mu Metal:
I know a person that used the cmps03 and had a problem caused by a large magnet in the motor, so they found some of this
mu metal in an old hard drive and apparently it did work.
Now my question is, does anyone know if the HMC6352 could really avoid readings from the stray magnetic fields and get the accurate readings?
or did any one have the same problem which i am having, and what could i do about it?



Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: compass sensor cmps03 vs HMC6352
« Reply #1 on: January 04, 2011, 12:06:12 PM »
Any external magnetic field will be noticed by the magnetometer (compass). That is what it is intended to measure..the Earth's magnetic field.

For motors on a Bot, the motors can be shielded to keep the rotating magnetic field they produce from interfering with the compass. But you can not shield the compass since then it will not measure the Earth's magnetic field.

If the metal structure of the Bot remains fixed in relation to the compass then there will be a constant error offset that can be calibrated out. But any other magnetic materials in the passing environment will affect the readings from any compass (that includes to ancient magnetic needle type).

''Stray magnetic field protection''
This is to keep the magnetic sensing elements inside the compass from becoming saturated and no longer sensitive to the weak magnetic field of the Earth. What the internal electronics do is a Set/Reset of the sensor elements. This does not mitigate the proximity of strong magnetic field disturbing the reading.

Here are a few links that should help:[q=AN00022,p=1,l=en]|filters=[]
And search for Philips app note: AN00022


Get Your Ad Here