Visualizing Rotation Sensor via WebGL on a Raspberry Pi

MPU-6050 rotation sensor

There is a great article over at Raspberry Pi Tutorials. You may have to translate the language to read it if you cannot read German. Here is a link to the article on how to visualize the rotation of a sensor. I can imagine a lot of future applications being able to read the orientation of their equipment in situations where that could be crucial.

Visualize the MPU-6050 rotation sensor with WebGL on the Raspberry Pi

The Raspberry Pi is capable of many things, so rotation and acceleration values can easily be read out using a sensor such as the MPU-6050. The result, however, is simple numbers, which you will normally not imagine too much. However, it is very easy to visualize these numbers. This is easily done in modern browsers using WebGL, which can be used to render 2D and 3D objects in the browser.

To do this, we run a Node.JS web server on the Raspberry Pi, which both retrieves and visualizes the data. The sample code for this is attached at the end of the tutorial.

Visualize the MPU-6050 rotation sensor with WebGL on the Raspberry Pi

Happy Halloween from www.single-board.com!

Happy Halloween from www.single-board.com!

Halloween PumpkinPi for Raspberry Pi

Halloween PumpkinPi for Raspberry Pi

It’s time to grab the most terrifying Raspberry Pi board ever devised this Halloween! Ahhhhhh!

The Halloween PumpkinPi programmable kit is designed for any maker or hacker and an ideal kit for people new to Raspberry Pi or even the experienced users who want to practice the art of programming!

There are two versions of this product (via the “options” dropdown above):

  • Pre-soldered Kit – The Halloween PumpkinPi programmable kit is a do-it-yourself programming kit! Each kit is fully assembled (no soldering required) but you’ll need to code in your LED pattern to get your pumpkin terrifying the neighbors! We’ve got some example code to start you off which runs through a pattern on the 12 LEDs, but we can’t wait to see what you come up with!
    • Contents – 1x Halloween PumpkinPi – Ready to rock & roll!
  • Soldering Kit – Looking for more of a challenge? The Halloween PumpkinPi Solder Kit is a do-it-yourself solder kit that comes completely unassembled. Just follow our easy soldering guide on putting it all together, plug it into your Raspberry Pi and your Halloween Pumpkin will terrify the neighbors! The kit includes 12 LEDs and uses a CD4017BE counter & 555 timer chip to light and rotate the LED’s through a pre-defined pattern, no programming required!
    • Contents – 1x Halloween PumpkinPi PCB, 12 LEDs, CD4017BE Counter IC, 555 Timer IC, Resistors, 40 Pin Header