I am trying to get raw sensor measurements from the AK8975 magnetometer/compass in the MPU-9150. I can do this by communicating directly to the sensor with the MPU-9150 in I2C bypass mode. Now, I would like the compass values to appear in the external sensor registers of the MPU-9150. However because the MPU-9150 needs to be set to single measurement mode each time before new data appears, this complicates matters, and as far as I know I can't just use the automated I2C slave settings to grab a reading every cycle.
From the post here it seems that there is a continuous measurement mode
https://invensense.tdk.com/developers/forum/viewtopic.php?f=3&t=345&hilit=ak8975
I found the data sheet for AK8975 here:
http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&ved=0CF8QFjAB&url=http%3A%2F%2Fnexp.tistory.com%2Fattachment%2Fcfile10.uf%4020418A044C7330720F6435.pdf&ei=l6YzUIeGFequ6gHG64GIAw&usg=AFQjCNG_1Ei8kLSe5XbEk6wRJzk6NB0EJw&sig2=pUPwtMS-7SzbyyhW4w1YkA
but it does not include a MODE = 0b0010 as suggested by sectionsbest. Is there a newer version of this document? Where can I get it?
Nevertheless, I tried switching to MODE = 0b0010 but the sensor registers (0x03 to 0x08 on the AK8975) don't get new data with each read unless MODE is set to 0b0010 or 0b0001 before each read, so this doesn't seem to help.
Unrelated, this forum's search feature really sucks! Type in "compass magnetometer raw" and you get the message: "the following words in your search query were ignored because they are too common words". At least it would cut the posts down to some reasonable manually searchable amount. Half the words I try to search are "too common". Is there a way for the admins to remove this limitation?
- Log in to post comments
phpbb Topic ID
14610