Code Monkey home page Code Monkey logo

imu-demo's Introduction

Mongoose IMU Demo

This is a set of apps that demonstrate the Mongoose IMU library. This IMU library supports lots of gyroscope, accelerometer and magnetometer sensors commonly found on the market today.

Demo Apps

Mongoose OS

The primary component is a Mongoose OS application (currently for ESP32) that interfaces the IMU library and emits binary packets over serial console (which is why mos console won't do much but print out garbage). The sensors are initialized and a Madgwick AHRS (attitude and heading reference system) is started with an update frequency of 100Hz. The AHRS serves to fuse the data from individual sensors:

  • Accelerometer: measures the acceleration of the device in three directions, typically X, Y, and Z axes that are perpendicular to one another. One of these, typically Z, is being pulled towards earth and therefore measures grativy. Most accelerometers will have a range of between 2G and 16G.
  • Gyroscope: measures the angular rate, also in three axes. Most gyro's will have a range of between 250deg/sec and 2000deg/sec.
  • Magnetometers: measures the earth's magnetic field through the device, also in three directions.

These sensors yield 9 values, which can be combined by an AHRS into a stable representation of the device's position in 3D space.

Console application

There's a simple console application based on ncurses which reads the raw data in addition to the Quaternion that is computed by the microcontroller, and derives the Roll, Pitch and Yaw just like an airplane would.

Console Demo

Chrome application

This more sophisticated Chrome Extension will draw the device in your browser including graphs of the sensor data and other goodies. It's used by the author of the IMU library mostly to validate correctness of new drivers.

Chrome Demo

Disclaimer

This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

imu-demo's People

Contributors

pimvanpelt avatar v-kiniv avatar

Watchers

James Cloos 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.