Sorry for this super late reply. I was caught up with other work for a while.
I am a bit confused with the setting of the correct registers. In your code you seem to be setting registers associated with the digital filters. In the documentation I have ( the register map & descriptions) I cannot find the mention of the registers with which I can set the DHPF & DLPF, but I am assuming they are situated at register number 97 and 98.
What would the effect be to not set these registers at all? would it make the motion detection not work?
So far I have tried to:
- set the motion detection threshold register to 0x02
- left the accelerometer start up delay at 4ms
- Enabled the motion detect interrupt
- Then I try to continuously read the Int_status register testing to see if the motion detect interrupt bit gets set to 1 when I move the sensor.
So far getting nothing.
The documentation I have also doesn't show any registers associated with the DMP, and it seems to me like there are quite a few more settings to be made before interrupts will work.
Does anyone perhaps know the exact steps to go through, and which registers should be set to which values. I feel like the MPU6050 documentation itself leaves much to be desired.