Asked — Edited

Compass Use I2c On Ezb V 4

Hello all, I am asking if anyone else has used compass guided navigation? I am looking at a Tilt Compensated Magnetic Compass with I2C serial communication. I have never used one ,but I have a feeling in order to make sure my bot is going the correct direction outdoors I will need a compass at the least ( maybe a GPS in the future)

Any feedback is great, reaching out for help here.


Upgrade to ARC Pro

Your robot can be more than a simple automated machine with the power of ARC Pro!


Tilt compensation is SUPER important. Do not even bother using a compass that doesn't do hardware tilt compensation. And, ensure you can read the datasheet on how to use it, because the documentation might be terrible and it'll just never work.

Where you mount the compass is super important as well. The motors are electro-magnetic, which create a PILE of interference. Wires around the compass will create interference as well. When a mobile phone is designed, there is a significant amount of design and engineering to place the compass and shield from components. There is also software compensation built into mobile phones for static interference - meaning, hardware interference of the PCB/Casing that doesn't change. This is pre-loaded into data tables in flash on the i2c sensor.


OK so here is the one that others were recommending as a good sensor

It seems to have all the requirements, I am wondering where I will put it since the ezb has a wifi adapter on board, hopefully wifi is outside the rf range that would cause interference.


Yeah - wifi won't cause interference. Magnetic interference is electro-magnetic, so it's things like electricity on wires and electric magnets (motors). The shielding of the chassis may cause a weak/uneven magnetic detection.


That product looks very good - given that it has filters and compensation built-in. Nice find


Alright, understood, I will put the sensor in the head, the highest point away from the electrical wiring, sabertooth and motors, but close to the ezb so I can keep the wires SHORT. I read somewhere else on here that is important.


yeah - i2c is a pain in the butt because it needs low interference. Any capacitance on the signal wires causes huuuuuuuuuuge problems. That sensor uses serial UART as well, which is more stable - so you could use that if i2c is causing grief.


Awesome sauce, I saw that, but I was not sure which was best for the application. Thanks for the help


Thanks ptp, I saw that when I was googling the sensor. It appears to be the 3rd generation which instills a bit of confidence bugs are worked out.