Code Monkey home page Code Monkey logo

mpu9250-data-visualization's Introduction

MPU9250-Data-Visualization

A useful tool to visualize at real time data of the MPU9250 sent through a COM port, using pyqtgraph and PyQt5

The MPU-9250 is a sensor from Invensense Inc that combine in one package both accelerometer, gyroscope and magnetometer. It embeds also a thermometer and other useful things. The datasheet can be found here.

Repository Contents

  • /Libraries — An Arduino library from sparkfun
  • /acq_mpu9250 — The Arduino code to send data to a COM port
  • mpuScrollingPlot.py — A Python script for "scrolling plotting"
  • mpuPlotSavedData.py — to visualize saved data

Required Python Package

  • import serial
  • import time
  • import numpy as np
  • from matplotlib import pyplot as plt
  • import pyqtgraph as pg
  • from pyqtgraph.Qt import QtCore, QtGui
  • import os
  • import pyqtgraph.console
  • import PyQt5

Sending data to a COM port

I use an Arduino board. Here is how I do it

How to connect?

Results

Here is the interface. It allows you to visualize data. you can also save the data between cursors and plot them later. Data's visualization interface

The script mpuPlotSavedData.py allows you to plot the saved data using matplotlib

Plotting saved data

Resources

mpu9250-data-visualization's People

Contributors

sanahm 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.