Hello All,
I am able to use basic feature of MPU6050.
I have also used data ready interrupt but I am unable to use Motion Detection Interrupt.
Here is the sequence of command I have sent but it never trigger motion interrupt.
// Enable INTERRUPT
MPU6050_write_reg(MPU6050_INT_ENABLE, bit(MPU6050_MOT_EN));
// set motion thrashhold
MPU6050_write_reg(MPU6050_MOT_THR, 0x3);
// Clear the 'sleep' bit to start the sensor.
MPU6050_write_reg(MPU6050_PWR_MGMT_1, 0x0);
I have studied document very throughly and understood that need to setup threshold and enable interrupt.
I have done both.
Please suggest what I am missing .
And yes I am using directly oscilloscope to view interrupt signage. So no chance in coding issue in ISR.
Thanks
- Log in to post comments
phpbb Topic ID
16680