-
Notifications
You must be signed in to change notification settings - Fork 144
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
Access data from DMP? #12
Comments
The datasheet is quite vague about the Digital Motion Processor which should be inside the MPU-6050, or at least the datasheet I have. In 7.9 the datasheet says the following:
The problem is, is that there's no mention of these DMP registers in the MPU-6050 register map and descriptions. (revision 4.2) I'd like to see if I can add it, but with documentation this vague I'm afraid I can't help you. So if you can find more information about the DMP, please share it. |
It seems that the i2c library built and managed by @jrowberg seems to solve the same. Here is the link: https://github.com/jrowberg/i2cdevlib I am a newbie when it comes to programming in C but I'll try and look through his library and figure out where he gets it from. |
So I looked into the code of i2cdevlib. The registers they use as the DMP config registers are 0x70 and 0x71, which are not in the register map documentation I found. Also, the code mentions that the DMP methods are not documented... |
If you look at the sparkfun libraries, they just let the DMP write to the FIFO, and then just read from the FIFO directly. So I guess one just needs to config the DMP to output values to the FIFO and then simply read the FIFO |
I think if this Arduino C library was 'converted' to Python (the important bits, particularly in the .h file), then this Python library could replicate the functionality. The Arduino library is sort of the gold standard library for using the DMP because of the exensive work that's gone into getting it working. I've thought about doing it but found it easier to simply implement on an Arduino and then pass values to the Python script over a serial connection rather than directly handle in Python. |
Two quick comments from my end:
|
Is it possible to modify the library in order to read data directly from the DMP?
The text was updated successfully, but these errors were encountered: