Back to Trending
RepositoryC++
Edubgr

Edubgr/MPU6050-MotionTracking

Movement data collection using MPU6050 and Raspberry Pi. And obtaining the position and velocity with Python and Matplotlib, with visualization and data processing.

116stars
22forks
2issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: position

#1 Repository of the month

1
TINIX TRENDING·Topic: motion-tracking

#1 Repository of the month

1
TINIX TRENDING·Topic: mpu6050

#1 Repository of the month

Description

This program was designed to determine the position and rotation of a body using the MPU6050 and a Raspberry Pi.

From the acceleration and quaternion values ​​obtained by the sensor, it is possible to determine the rotation, position and velocity of a body, using due processes. The program is still a robust version, which needs some improvements. Long movements with few pauses tend to have poor accuracy for position and velocity, due to the drift obtained by integrating acceleration data. However, rotation works in all cases, obtaining a rotation identical to the rotation performed by the body.

Instructions

To make it work, create the necessary circuit on a protoboard, run the program "Collect data" on your raspberry, press the button to start collecting the movement data and press it again to finish. Copy the files into the "Datas" folder and paste them into the "Processing data" program. Then run it on your computer or raspberry, following the appropriate procedures.

Example

The program is able to return different types of graphs of different types of data. Examples of results and movements performed can be seen in:

https://www.youtube.com/watch?v=dDBdsNAT8Fs

https://www.youtube.com/watch?v=ekyY6dQ9t6o

Square shaped movement

Straight-line movement

Parable shaped movement

360 degree rotation around the y axis

Contact

For any questions, please contact me eduguibar@gmail.com - Eduardo Guimarães 2021

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
iwatake2222/rotation_master

Provide conversion between the major representations of 3D rotation and visualize the orientation of a rigid body

266
Feb 18, 2022
RepositoryC++
Cultrarius/Swarmz

A free, header-only C++ swarming (flocking) library for real-time applications

141
Oct 31, 2019
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
RepositoryPython
Asabeneh/30-Days-Of-Python

The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw

80.0k
Sep 30, 2026
RepositoryJavaScript
rawify/Quaternion.js

The RAW JavaScript Quaternion library

194
Sep 17, 2025
Repository
HardlyDifficult/Tutorials

Gamedev tutorials.

123
Oct 22, 2017
RepositoryGo
joshuaferrara/go-satellite

Calculate orbital information of satellites in GoLang.

101
Dec 20, 2023
RepositoryJavaScript
rawify/Trackball.js

The RAW library to add a virtual Trackball to your DOM

50
Sep 12, 2025
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026