Skip to content
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

How to get data from MPU9250? #12

Open
Ericir3 opened this issue Apr 2, 2019 · 5 comments
Open

How to get data from MPU9250? #12

Ericir3 opened this issue Apr 2, 2019 · 5 comments

Comments

@Ericir3
Copy link

Ericir3 commented Apr 2, 2019

Is there any functions that can get data from MPU9250?

@RockySong
Copy link
Owner

Sorry buddy, not yet, you need to use I2C to read.
You can refer to https://github.com/RockySong/micropython-rocky/blob/omv_initial_integrate/ports/nxp_lpc546/tests2/sensors.py, and modify to fit to MPU2950.
There is also a sensor fusion library "ay_imu" in this repo, and demo script https://github.com/RockySong/micropython-rocky/blob/omv_initial_integrate/ports/nxp_lpc546/tests2/main.py
Welcome to port these stuff to MPU9250 on i.MX RT1050 and send pull request!

@Ericir3
Copy link
Author

Ericir3 commented Apr 4, 2019

Thanks for your reply and i'll try it. I think there's a small mistake in README.md that MPU9250 uses I2C3 but not I2C4(注:如需使用,会占用I2C扩展口(I2C4),因此其它器件的I2C slave地址不要与它(7位地址0x68/0x69)冲突。). Hope you can confirm that.

@RockySong
Copy link
Owner

RockySong commented Apr 4, 2019 via email

@Ericir3 Ericir3 closed this as completed Apr 5, 2019
@Ericir3 Ericir3 reopened this Apr 5, 2019
@Ericir3
Copy link
Author

Ericir3 commented Apr 5, 2019

In file "pin_mux.c", there is no pin settings for LPI2C3 or LPUART4. I just wonder how you realize I2C or UART transmit and receive functions with micropython?

@RockySong
Copy link
Owner

RockySong commented Apr 6, 2019 via email

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