Coder Social home page Coder Social logo

imu-visualizer's Introduction

Overview

This is a small project that enables real-time visualization of an object's orientation in space, using an absolute orientation sensor like the Bosch Sensortec BNO055. It does pretty much the same thing as the Adafruit bunny example, but using a different software stack.

Instead of Processing, this project uses a server written in Julia and three.js. The sensor data is read from a microcontroller over a UART serial line to the server using LibSerialPort.jl. From there, the server sends JSON-formatted messages using the WebSockets protocol. Yowza! Now it's in your browsa! It looks something like this:

Microcontroller firmware

I used a Photon from Particle for this project. For now, the Particle is just sending data over the UART serial line, but in the future TCP/IP over WiFi will probably be added. The NAxesMotion library from the brackets-arduino repo, which wraps the BNO055 driver, was used to control the sensor. These libraries are intended for the Arduino environment, and did not quite work out of the box with my preferred toolchain for the Photon (namely ARM gcc and dfu-util), so I included modified versions in the firmware/ directory.

Running

Start the server by doing julia imu-server.jl and browse to localhost:8000.

imu-visualizer's People

Contributors

andrewadare avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

chrobione

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.