m-rtijn / mpu6050

A Python module for accessing the MPU-6050 digital accelerometer and gyroscope on a Raspberry Pi.
MIT License
296 stars 145 forks source link

Ask #38

Closed ronnifadhlillah closed 2 years ago

ronnifadhlillah commented 2 years ago

How to know the register map of MPU 6050 without a documentation ? by the way thank you.

m-rtijn commented 2 years ago

You can find the MPU 6050 register map here: https://cdn.sparkfun.com/datasheets/Sensors/Accelerometers/RM-MPU-6000A.pdf

ronnifadhlillah commented 2 years ago

Hallo @m-rtijn , by the way thank you for the answer. But can i know the register map using code ? not documentation.

m-rtijn commented 2 years ago

Hallo @m-rtijn , by the way thank you for the answer. But can i know the register map using code ? not documentation.

I'm not sure what you mean by this. Are you looking for the i2c address of the mpu6050 chip? If so, you can find it using i2cdetect.

ronnifadhlillah commented 2 years ago

thank you for the answer. i've try to use i2detect but the result is not what i expected. i2detect can detect i2c device address but i want to know slave address of i2c device.

For example i use mpu6050 in hex is 0x68 but i want to know a hex / address of GYRO_CONFIG (based on the documentation the gyro_config address is 0x1B). If i dont have a documentation how to proof that GYRO_CONFIG address is 0x1B.

m-rtijn commented 2 years ago

That is not possible. The register map from the manufacturer about the sensor is the only way to find this type of information.

ronnifadhlillah commented 2 years ago

Hallo @m-rtijn ,understood. Thank you for the answer , i appreciate your answer.