I am trying to access the MPU 6050 from an FPGA controller, for setting up the FPGA I have programmed the following registers only:
MPU6050_RA_PWR_MGMT_1
MPU6050_RA_GYRO_CONFIG
MPU6050_RA_SMPLRT_DIV
But I am still getting 0x00 when I try to read the Gyro output register.
My question is : which other registers I have to configure to make the gyro working to read it from it ??
I am trying to access the MPU 6050 from an FPGA controller, for setting up the FPGA I have programmed the following registers only:
MPU6050_RA_PWR_MGMT_1
MPU6050_RA_GYRO_CONFIG
MPU6050_RA_SMPLRT_DIV
But I am still getting 0x00 when I try to read the Gyro output register.
My question is : which other registers I have to configure to make the gyro working to read it from it ??
Yes I am quite sure from the code, I can read the address of the MPU6050 from 0x75.
My initialization code, is Only writing to the register 0x00 except the three registers
MPU6050_RA_PWR_MGMT_1 -- 0x02
MPU6050_RA_GYRO_CONFIG --0x0F
MPU6050_RA_SMPLRT_DIV -- 0x07
Is there any problem with this ?
- - - Updated - - -
Do I need to configure some thing else before using the Gyro ??
Yes I am quite sure from the code, I can read the address of the MPU6050 from 0x75.
My initialization code, is Only writing to the register 0x00 except the three registers
MPU6050_RA_PWR_MGMT_1 -- 0x02
MPU6050_RA_GYRO_CONFIG --0x0F
MPU6050_RA_SMPLRT_DIV -- 0x07
Is there any problem with this ?
- - - Updated - - -
Do I need to configure some thing else before using the Gyro ??
i beleive i2c address should be 0x68 or 0x69.
to disable sleep pin of MPU6050_RA_PWR_MGMT_1 at the end of initialisation.
mabee you will need to configure more register before the sleep deasertion like full range scale of giro and accelometer registers.