Good day everyone,
Can anyone here direct me to an electronic compass for hobby robotics that is in the $10-$40 price range and has +/-1 degree accuracy?
Thankyou in adavance.
Thanks everyone,
The only thing I need to know is how I should connect one of these to a Bot Board 2. I’ve been looking at the wiring diagrams and I notice they both have SDA and SCL connections on them in addition to the ground and VCC. I don’t know anything about digital compasses so could someone explain what SDA and SCL means and how you would go about connecting this to a BB2.
Mine is I2C. the SRF08 rangefinder and other devices are also I2C. Should be an example talking to a rangefinder with IC2 on this forum.
Alan KM6VV
I use that one and it works well enough. Calibrating it is a slight issue though, i’ve never been able to get mine within 20 degrees accuracy though. Your other option is to get a 3-axis magnetometer and perform the degree calculations yourself.
-1
I used the CMPS03 compass,
superdroidrobots.com/shop/item.aspx?itemid=128
Which appears to have better accuracy (3 ~ 4 degrees?). I2C interface. I have code running in C on a PIC to read it and other Daventech devices.
The CMPS09 - Tilt Compensated Magnetic Compass seems to be a newer version, probably replacing the '03.
Resolution - 0.1 Degree !
Alan KM6VV
Performing my own calculations never has ended all that well.
Is this what I’m looking for? lynxmotion.net/viewtopic.php?f=4&t=6029&p=60716&hilit=range+I2C#p60716
Where did you find the CMPS09? I didn’t see it on the website you linked me to. I’ll probobly use the CMPS03 anyways. 0.1 degree accuracy is a bit overkill for my project.
Yes, that link is about I2C. The data sheets tell you what registers to read to get heading.
The EEPROM example should get you started.
The Acroname link seems to be the same as the '09 part.
I was searching for Deventech and compass when I found it.
robot-electronics.co.uk/htm/cmpsatom.shtml
Alan KM6VV
Thanks a lot for the help.