Skip to content

i can't use mpu6050 by ur module as the demo. #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Irvingao opened this issue Nov 30, 2020 · 6 comments
Closed

i can't use mpu6050 by ur module as the demo. #19

Irvingao opened this issue Nov 30, 2020 · 6 comments

Comments

@Irvingao
Copy link

图片
i had tested the the code:
`from imu import MPU6050

imu = MPU6050('Y')
print(imu.accel.xyz)
print(imu.gyro.xyz)
print(imu.temperature)
print(imu.accel.z)`
i connnected "X9" and "X10" for "SCL" and ""SDA".
but always :MPUException: I2C failure when communicating with IMU.
Thank you for help!

@peterhinch
Copy link
Contributor

The 'Y' side I2C connection is on Y9 and Y10. See the docs.

@Irvingao
Copy link
Author

but i still met the same problem that" I2C failure when communicating with IMU". how can i do next?

@Irvingao
Copy link
Author

and when it inits, i have to wait for over 30 seconds, it that too slow
?

@Irvingao
Copy link
Author

and when it inits, i have to wait for over 30 seconds, it that too slow?

@peterhinch
Copy link
Contributor

I can't explain that behaviour. Initialisation is normally immediate. I wonder if you have a genuine InvenSense chip or a Chinese clone?

@peterhinch
Copy link
Contributor

Closing this. I assume it's resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants