micropython-rocky
micropython-rocky copied to clipboard
How to get data from MPU9250?
Is there any functions that can get data from MPU9250?
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!
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.
Thank you for your corrections!
发送自 Windows 10 版邮件https://go.microsoft.com/fwlink/?LinkId=550986应用
发件人: Ericir3 [email protected] 发送时间: Thursday, April 4, 2019 3:00:23 PM 收件人: RockySong/micropython-rocky 抄送: Rocky Song; Comment 主题: Re: [RockySong/micropython-rocky] How to get data from MPU9250? (#12)
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.
― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/RockySong/micropython-rocky/issues/12#issuecomment-479775410, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC5fgVFjxlwrKlRU0oc0qcqmSl-b7wOHks5vdaMHgaJpZM4cXeUb.
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?
This not implemented with pin_mux.c, as pins are re-allocated dynamically. The mechanism is defining pins in i2c.h or uart.h.
发件人: Ericir3 [email protected] 发送时间: 2019年4月5日 11:08 收件人: RockySong/micropython-rocky 抄送: Rocky Song; Comment 主题: Re: [RockySong/micropython-rocky] How to get data from MPU9250? (#12)
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?
― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/RockySong/micropython-rocky/issues/12#issuecomment-480133810, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC5fgS47XpbHZ7_2EAUXhltBnymNR4Vjks5vdr48gaJpZM4cXeUb.