Git Product home page Git Product logo

arduino-mpu6050's Introduction

Arduino with IMU

Playing around with a 6DOF IMU (MPU-6050), Arduino, Python and OpenGL

The Arduino Uno is sending pitch and roll data via bluetooth. A python script is receiving the data and displaying a little cube accordingly. The IMU data consists of gyro and accelerometer data, processed by a complementary filter.

Prerequisite Python Libraries

  1. PyOpenGL
  2. Pygame
  3. pySerial

Deployment

  1. connect Arduion with MPU-6050 (connection diagram can be found at https://bit.ly/2VqX6p5)
  2. Connect the Arduino MPU-6050 bundle to PC
  3. In Arduino IDE, uploading arduino_imu_firmware.ino
  4. In any Python IDE, run boxctrl_6d0f_imu.py

Reference

You need:

This was one of my first experiments. I only used the accelerometer. The reaction is very jerky and not precise at all.

Raw accelerotmeter data

Additionally using the gyros and mixing accelerometer and gyro data with a complementary filter improved precision, smoothness and response sensitivity a lot. As an option I also added yaw data from the gyro but that data is not filtered hence the error accumulates up pretty quickly.

Filtered accelerotmeter and gyro data

This is about 10 years old stuff - Here's the wayback link to my discontinued wiki: http://web.archive.org/web/20190626080855/http://mattzz.no-ip.org/wiki/Projects/PlayingWithInertialMeasurementUnits

arduino-mpu6050's People

Contributors

mattzzw avatar roytwu avatar imjeffparedes avatar

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.