Coder Social home page Coder Social logo

pyimu_3dvisualizer's Introduction

PyIMU_3Dvisualizer

IMU 3D visualizer with Python, OpenGL and NPX 9-DOF Breakout Board - FXOS8700 + FXAS21002 (originally MPU6050)

Note: In the original version the "Yaw" mode was not implemented yet. It has now been modified to include Yaw in the visualizer and receive the data string (yaw, pitch, roll) from the serial already filtered out.

In this example the 9-DOF- FXOS8700 + FXAS21002 Breakout Board is used, but as long as you send a serial string with the following format this program should always work:

"Orientation: 347.66, 1.26, 1.38 (YAW, PITCH, ROLL)"

Simulador 3D para acelerometro/gyroscopio MPU6050

animacion_IMU_3

Starting ๐Ÿš€

Pre-requisites ๐Ÿ“‹

  • Python 3

  • Tkinter

  • pySerial

  • pyOpenGL

  • IMU unit (NPX 9-DOF Breakout Board - FXOS8700 + FXAS21002 used in this example, similar should work)

  • Microcontroller (ESP32 used in my case, similar should work)

  • USB-Serial Converter (in case the microcontroller doesn't have one on-board included)

Wiki ๐Ÿ“–

Tutorials followed for the setup of the

"calibrated_orientation" sketch from Adafruit_AHRS library

Original article: https://learn.adafruit.com/how-to-fuse-motion-sensor-data-into-ahrs-orientation-euler-quaternions/overview

Original Visualizer: https://learn.adafruit.com/how-to-fuse-motion-sensor-data-into-ahrs-orientation-euler-quaternions/webserial-visualizer

Magnetic calibration performed with https://github.com/PaulStoffregen/MotionCal -> https://www.pjrc.com/store/prop_shield.html


Deprecated (original wiki):

Puedes ver mรกs acerca del proyecto en el video demo

Para comenzar es necesario contar con el microcontrolador encargado adquirir los datos del MPU6050 y enviarlos de forma serial.

Aqui hay algunos ejemplos de como hacerlo utilizando:

Formato de la trama de datos:

En la siguiente imagen se muestra el formato de la trama de datos necesarios.

Pruebas ๐Ÿ› ๏ธ

Autors โœ’๏ธ

Original author:

Contributors:

pyimu_3dvisualizer's People

Contributors

ma-lugo avatar marcofariasmx 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.