Hi all,
I need help about MPU6050 INT pin.
I can not activate it. It always stays at logic 0 level. Never rises.
My config values are below.
What config is missing or wrong?
Thanks a lot in advance.
Reset module:
PWR_MGMT_1 = 128
delay 50 ms (wait for 50ms for the gyro to stable)
PWR_MGMT_1= CLOCK_PLL_ZGYRO (PLL with Z axis gyroscope reference)
CONFIG=1 (DLPF_CFG = 1: Fs=1khz; bandwidth=42hz)
SMPLRT_DIV=1 (500Hz sample rate ~ 2ms)
GYRO_CONFIG = GYRO_FS_2000 (Gyro full scale setting)
ACCEL_CONFIG = ACCEL_FS_16 (Accel full scale setting)
FIFO_EN,%11111000 (TEMP,XG,YG,ZG,ACCEL ON; SLV1,2,3=OFF)
USER_CTRL=%01000111 (Reset FIFO)
delay 50 ms (Wait 50ms)
USER_CTRL=%01000000 (Enable FIFO)Try1:
INT_PIN_CFG= 128 + 32 + 16 (16+ interrupt status bits are cleared on any read operation
32+ INT pin is held high until the interrupt is cleared
16+ the INT pin is configured as push-pull.
128 The logic level for the INT pin is active low.)
Try2:
INT_PIN_CFG= 32 + 16
Try3:
INT_PIN_CFG= 16
Try4:
INT_PIN_CFG= 128 + 16
INT_ENABLE=1 (interupt occurs when data is ready.)
SIGNAL_PATH_RESET=0x07 (reset gyro and accel sensor)