Closed erberj closed 3 years ago
Hi,
When you set the enableWakeOnMotion, the Gyro and Magnetic sensor are disabled. You can check the function for better understanding of what is does.
Only do the enable of WoM before going to sleep.
WoM is no longer supported.
Hi, wenn enabling IMU.enableWakeOnMotion(40.0,MPU9250::LP_ACCEL_ODR_7_81HZ);
delay(1000); IMU.readSensor(); delay(1000); imx = IMU.getMagX_uT(); imy = IMU.getMagY_uT(); imz = IMU.getMagZ_uT();
returns zero for all values. Even before the MCU MCU Atmel 8-bit AVR: ATMega328P-AU (32Kb Flash/2Kb RAM) goes into sleep the first time. What coud go wrong? If I define an interrupt without the wake part, it works fine. The MPU is connected via I2C
The values for accel and gyro are returned normaly
A question in the same context: // AK8963 registers
are those values correct or should'nt they bei 0x02 and 0x06?
Best Regards