Introduction: Arduino and Virtual Room Using MPU-9150 MARG

Picture of Arduino and Virtual Room Using MPU-9150 MARG

This is easy to follow Arduino tutorial to make a virtual room using MARG MPU-9150 orientation sensor.

Other Arduino-based tutorials available here and here.

Step 1: Download Everything Below and Follow Instructions in the Video

Download # MPU-9150 MARG Sensor Library for Arduino (*.rar file)

Download # Arduino Code (*.ino file)

Download # Processing Software from here

Download # Processing Code (*.rar (archived *.pde file and content files))

Have Fun!


kovacp1 (author)2016-06-06

Do you have something that shows a step-by-step of how to install all of these (4) files ? The video is impossible to see and I really would like to install all of these pieces and try this demo


hypnotistas (author)kovacp12016-06-06

Sorry, I won't do that, just install arduino software from and processing 2.2.1 version from and follow the video.

aqibisl786 (author)2015-07-24

Arduino code is working correctly. can you please tell how do i integrate MPU-9150 with my computer mouse ?

hypnotistas (author)aqibisl7862015-07-24

You mean you want to use sensor to control your mouse cursor? If it is so I suggest you watch this tutorial: but don't forget that you'll need Arduino Pro or Arduino Leonardo for this. Arduino Nano/Uno/Mega/Duemilanove and so on won't fit for this task. Good Luck!

aqibisl786 (author)hypnotistas2015-07-25

yes, the link( is exactly what is required.

I have following devices,

1. a-star 32u4 micro - a tiny arduino leonardo clone

2. MPU-9150

Is it possible to control the mouse using above device ?

hypnotistas (author)aqibisl7862015-07-26

Connect the sensor, upload the code and you'll know this for sure.

About This Instructable




Bio: You can find more of my work on Youtube Channel.
More by hypnotistas:User Interface for Augmented Reality using Unity3D and Vuforia (Incorporating Different Scenes)Augmented Reality Fusion Effects using MultiTarget Tracking (Unity3D, Vuforia)Augmented Reality and Kinect for Face Tracking
Add instructable to: