Hello,
I am trying to read magnetometer data from MPU9250 using dsPIC33F. The code was running well in MPU9150 platform and when I tried porting (with modification on the Bypass Enable bit) to MPU9250 it does not work.
I am able to read device ID and it shows 0x48. Then I did tried to read the calibration data by reading from ASAX,ASAY,ASAZ. This executes but all the data are the same. Then I tried to read the magneto registers by,
1. setting INT_PIN_CFG = 0x02 (this is as part of the initialisation of IMU)
2. power down and then setting AK8963_CNTL = 0x02 and tried 0x01 too (delay of 10ms)
3.read magneto registers and ST2 (as in datasheet they say in continuous mode we have to read ST2)
I am able to read accelerometer and gyroscope by populating it to FIFO and this part works well.At this stage am able to read data and which is sensitive to external mag field too but the mx,my, and mz values are the same.
Could someone help me to sort out this issue ? (Think timing delay is the culprit, and I am not using Interrupt lines)
- Log in to post comments
phpbb Topic ID
16986