Hi all,
Thank you for your comments and advise.
My M5Stack work fine too after update library by 0x1abin's advise.
Hi all,
Thank you for your comments and advise.
My M5Stack work fine too after update library by 0x1abin's advise.
Hi,
I bought M5Stack Gray for motion sencing of wheelchair.
I installed M5Stack library and sketched on my Mac and basic sketch worked fine.
Also I tried to install sample sketch "MP9250BasicAHRS", but it didn't.
MPU9250 I AM 0 I should be 71
MPU9250 is online...
x-axis self test: acceleration trim within : 2.2% of factory value
y-axis self test: acceleration trim within : 8.4% of factory value
z-axis self test: acceleration trim within : 1.6% of factory value
x-axis self test: gyration trim within : -0.0% of factory value
y-axis self test: gyration trim within : 0.0% of factory value
z-axis self test: gyration trim within : 0.8% of factory value
Guru Meditation Error: Core 1 panic'ed (IntegerDivideByZero). Exception was unhandled.
Core 1 register dump:
PC : 0x400d3ba5 PS : 0x00060730 A0 : 0x800d1412 A1 : 0x3ffb1f20
A2 : 0x3ffc2494 A3 : 0x3ffc2520 A4 : 0x3ffc252c A5 : 0x3ffb1f50
A6 : 0x00000000 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x00000000
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x00000002 A13 : 0x00000002
A14 : 0x3ffb1f50 A15 : 0x00000000 SAR : 0x0000001c EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000
It look like that MPU9250 didn't calibrate.
Is this following line correct?
// Calibrate gyro and accelerometers, load biases in bias registers
IMU.calibrateMPU9250(IMU.gyroBias, IMU.accelBias);
I've no idea to fix this problem and will you help or give advises?
Thank you,