thisisg / mpu6050-i2c-python-class Goto Github PK
View Code? Open in Web Editor NEWUsing an MPU6050 over I2C with Python on a BeagleBone Black
License: Other
Using an MPU6050 over I2C with Python on a BeagleBone Black
License: Other
Hello,
I'm currently working on a project using reinforcement learning to make two roombas play a game against eachother. And i'm looking at the MPU6050 sensor to acquire perfect positioning (yaw and distance) by using your repo.
So I calibrate my sensor and read the yaw using 'DMP_get_euler_roll_pitch_yaw(quat, grav)' function. But these values seem to fluctuate from time to time. Also the readings seem incorrect, for instance i'll turn my sensor 90 degrees but the function only returns 50°. Could this be because I didn't calibrate my sensor properly?
Sincerely yours!
Vincent
Hey @thisisG ,
Sorry to open a ticket for this. I just wanted to thank you for the nice work you did here.
I also wanted to let you know that I reused most of it on a personal project (with the proper credits given to you, and a reference to this repo), keeping the original license as well as all the original headers from your source code files.
Of course, feel free to close this issue after read.
When i run the program, i get the following error
File "/home/pi/Desktop/raspi code/MPU6050.py", line 825, in DMP_get_roll_pitch_yaw a_grav_vect.z*a_grav_vect.z)) ZeroDivisionError: float division by zero
i am kind of new to python programming so i can't really make head or tails of this error, can you please help me with this
MPU6050-I2C-Python-Class/MPU6050.py
Line 810 in 1cd8bf5
Hey, this is an awesome library! It really needs more recognition. I found a small typo in the above link where the y acceleration is copied twice instead of calculating the z accel.
Hi, im currently working with this code and i need to use also slave address in order to get info from MPU9250 with magnetometer AK8963, any idea how should i put the configuration to use both?
I am using this code for the magnetometer: https://github.com/FaBoPlatform/FaBo9AXIS-MPU9250-Python/blob/master/FaBo9Axis_MPU9250/MPU9250.py
Thank u
Hello, I'm trying to use your library but I don't see where to set the pins sda and scl, than it fails.
Can someone help ?
Thanks
To make it work with Python3, change "xrange" in MPU6050.py to "range"
To make test_MPU.py work remove "FIFO_buffer" from line 43:
to read like this: FIFO_buffer = mpu.get_FIFO_bytes(packet_size)
It is supposed to be a "calibration procedure" but it never stops, also what to do with the values printed, are there offsets of means (which is the opposite) ?
Hi!
What are the right input parameters for this function?
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.