Reply To: Compass heading "freeze" when using MAG, ACC and GYR in same program

Home Forums Forums Technical Support for BerryIMU Compass heading "freeze" when using MAG, ACC and GYR in same program Reply To: Compass heading "freeze" when using MAG, ACC and GYR in same program

#5863
Mark Williams
Keymaster

Have you enabled the magnetometer?

        //Enable the magnetometer
        writeMagReg( CTRL_REG5_XM, 0b11110000);   // Temp enable, M data rate = 50Hz
        writeMagReg( CTRL_REG6_XM, 0b01100000);   // +/-12gauss
        writeMagReg( CTRL_REG7_XM, 0b00000000);   // Continuous-conversion mode

And are you reading the values every loop?
readMAG(magRaw);

If you still have issues, paste your code here so I can look further.

Mark --OzzMaker.com --

Blip, blop, bloop…