CMPS03 Magnetic Compass. Voltage – 5v only required. Current – 20mA Typ. Resolution – Degree. Accuracy – degrees approx. after calibration. Output 1. Library; Reference. The CMPS03 is a digital compass with an I2C interface. Reference¶. CMPS03 Datasheet. CMPS03 Robot Compass Module This compass module has been specifically designed for use in robots as an aid to navigation. The aim was to produce a.
|Country:||Saint Kitts and Nevis|
|Published (Last):||26 March 2006|
|PDF File Size:||4.11 Mb|
|ePub File Size:||12.91 Mb|
|Price:||Free* [*Free Regsitration Required]|
Clearly I’m loosing something here.
Thu Sep 01, 5: You’ll be notified when we have some answers. I checked the ASM your code produces and there in nothing wrong with it.
CMPS03 Compass Module
Sun Jul 10, 1: You should be able to follow this and convert it over to MP. I tried initializing only once and sampling many dataheet, but that didn’t work. Turns out that it is always the second setting the register or the third sending the read address.
I2C has been proven to be working in many cases if you doubt the library I don’t know who is holding the clock line low, the master or the compass. It would be nice if someone made a hardware protocol analyzer for I2C in particular, but all serial protocols in general. I got that yesterday Now this is what’s happening: I’ve used the example provided in the help and also searched a couple of topics here.
Second test was to write code to interface with the unit via I2C. Do you think the problem is the non-matching resistor value?
Index of /ict/autina/progetto/doc/bussola_CMPS03/altra_doc
I said what the heck? One thing that is still unanswered for me and I think it’s piece of cake for you I2C guru guys.
Fri Sep 09, 5: Mon Dec 31, 6: You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum. I’d think that in this case, the clock line would oscilate at a different frequency, instead of not oscillating at all.
Let’s say the target frequency is kHz 10uS. There is too much material to include it all here, but Datahseet can send it as email attachments.
(PDF) CMPS03 Datasheet download
I was measuring the signal duration on the oscope and it was giving me a frequency of 50KHz Seems like mE have their hands full at the moment so don’t hold your breath. Hi Padu, i had some problems trying to use the standard I2C for my project, i dont have time right now but i’ll look into my and your program and hopefully find something usefull diogenes. I’ve tried reading the compass using the PWM signal that it generates by using timers, but at 4MHz, I cannot get a timing precise enough.
Previous topic Next topic. So here’s what happens: Looking at the scl line with an oscope, there is no activity, it is always high a tad below 3V. It turns out that it works fine, and there is almost no need to recalibrate the unit.
Fri Sep 09, 8: Google [Bot] and 2 guests. I did it to get experience and understanding of I2C protocol and I will be happy to share this with anyone who is interested.
Devantech CMPS03 Compass
I was hoping that somehow I was making something stupid and you would tell me to change one line of code and voila Fri Sep 09, 1: Page 1 of 1. Follow the Assembler example here: You just need to make xatasheet both devices can handle the baudrate, which is always set by the master.
For this second test, the manufacturer suggests pulling sda and scl lines using a 1. Perfect for engineers in the field and in the lab.
Users browsing this forum: Thanks for the help! Here’s my code sorry the lenght, it is dataeheet due to debug leds Code: Wed Sep 07, Fri Sep 02, 7: I didn’t have a 1. Then I looked at my code and it was really 50KHz from a test I did the other day.
I thought it would take me one or two days to set up the compass, but it’s taking more than two weeks already Additionally, the values I read are noisy, meaning that from 10 values I read, 5 or 6 of them have nothing to do with the real compass orientation. Wed Apr 21, 6: