Compass sensor.... Wich one is best for propeller?
Botdocter
Posts: 271
Hello guys,
I want to add a compass module to my robot. I looked some up but the best modules don't have propeller code in the obex.
I had a look at the hm55b and the hm6345. Those seem to output raw data so i must filter it before i can use it. Also they don't have tilt compensation.
Preferably i would like this one: Devantech CMPS09 compass
It also has a accelerometer build in.
There is no propeller code for it though. Would it be hard to interface to it?
It has a i2c, pwm and serial output.
Any other suggestions are welcome!!
I want to add a compass module to my robot. I looked some up but the best modules don't have propeller code in the obex.
I had a look at the hm55b and the hm6345. Those seem to output raw data so i must filter it before i can use it. Also they don't have tilt compensation.
Preferably i would like this one: Devantech CMPS09 compass
It also has a accelerometer build in.
There is no propeller code for it though. Would it be hard to interface to it?
It has a i2c, pwm and serial output.
Any other suggestions are welcome!!
Comments
It's obvious your keyboard is working -- write some code!
The CMPS09 is an I2C device and there are plenty of I2C objects available.
There is an object for the MicroMag 3-Axis Magnetometer. Sparkfun also sells another triple axis magnetometer for $10 less than the MicroMag. The less expensive one uses I2C.
I think one of the downside to these magnetometers is you would need to write the calibration software yourself (which could be fun, it's on my todo list).
I couldn't find the Ap Note about calibration online so I'm attaching a copy.
Duane
Ap_Note_Multipoint_Calibration_Primer_(APNOTE_-_1001766_-_R01).pdf
John Abshier
Do you happen to know where to find info on how to calibrate?
And how is that with the HM55B?
John Abshier
@Johnny Mac:
I know i could write my own. But since my project is quite big (for me) i'd like to use the most compatible options so atleast i know that it should work with the code that was written for it.
I also bought a IR Thermometer sensor. To measure body temp. This one has propeller code allready in the obex.
Anyway, thank you!
Did you manage to get it together with the gps data? Or in other words: Do you know how i can calculate the compass and gps so i can let my bot drive from point 1 (robot locat.) to point 2? I have searched all over the internet but can't find any clear formula( that i can read)
Hope this helps,
Hugh
The obex reference is "GPS Float Demo" It includes all of the NEMA string parsing and a rumbline navigation demo. I have played with it some to test my GPS receiver and it works well!.
RS_Jim
Allthough i don't need the parsing script since that is done by roborealm on the pc. (usb gps mouse)
And can i add my compass to this code too?
Now that it's working i'm going to the next step.
Could anyone tell me (help me) to convert this into spin?
It is for calculating the bearing from robot location to end location.