GithubHelp home page GithubHelp logo

mpu6050-i2c-python-class's People

Contributors

thisisg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mpu6050-i2c-python-class's Issues

Thanks for providing this code!

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.

Small typo in library

y = ctypes.c_int16(a_v_raw.y - (a_grav.y*8192)).value

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.

ZeroDivisionError: float division by zero

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

Where to set the pins ?

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

How to use MPU65050_cal.py ?

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) ?

Xrange, FIFO_Buffer

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:

FIFO_buffer = mpu.get_FIFO_bytes(FIFO_buffer, packet_size)

to read like this: FIFO_buffer = mpu.get_FIFO_bytes(packet_size)

yaw calculation

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.