2021-07-17 10:00 AM
For MPU6050 i am using accelerometer range of +/-2g with sensitivity of 16384.
For STM32F446RE board i am using I2C1 to interface with MPU6050 in standard mode with duty cycle as 50%. i am using PB6 as SCL and PB7 as SDA.
Help me in getting my values in range
2021-07-18 05:56 PM
Nobody here knows what you're doing in the code. Presumably you have a bug in there somewhere. "3.16" is outside of the +/- 2g range.
Either post your code or look at existing MPU6050 examples. Here is one of many:
https://controllerstech.com/how-to-interface-mpu6050-gy-521-with-stm32/