Communicate with MPU9250 magnetometer

By andrei.ciocan , 21 June 2014

Hello everyone,

I have gone through the forum posts and read all the information I was able to find, but still, I don't get a full answer. Has anyone managed to make the magnetometer (AK8963) from MPU9250 work? I can't get in contact with it and I have tried both the I2C master mode and the pass-through mode. I have read all the the MPU9250 product specification and register map, I have looked into some libraries I've found on the internet and I have tried some "solutions" I have found in this forum. But still nothing. I'm using an Arduino board based on the ATMEGA328P. I have the I2C bus running on 400khz and I'm communicating with the MPU9250 successfully. I configure it, write to registers, get data from the acc and gyro, but when it comes to try to get data from the magnetometer, I haven't succeeded yet. I implemented an "I2C scanner" code right after configuring the MPU9250 (disabling the I2C master mode and enabling bypass, which is the so called pass-through mode) and the only device I can find is the 0x68 (the MPU6500 inside the MPU9250), but there is no 0x0C device not he bus or any other address. I have seen split experiences and opinion, because some people say it works and some others say it doesn't. Some people have posted pieces of code that they claim to work, but some other people have tried that (me included) and it doesn't work, so maybe it has to do with some prior config, a particular step that it not clear, or even a couple of instruction where order matters and might change the configuration... anyway, I don't know, but I would like to get in contact with someone who has made this work and find out what is the problem I'm having. Thanks in avance for any piece of information or help anyone can provide me.

Jorge.

phpbb Topic ID
16269