Arduino and Virtual Room Using MPU-9150 MARG





Introduction: 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!



  • Epilog Challenge 9

    Epilog Challenge 9
  • Paper Contest 2018

    Paper Contest 2018
  • Gluten Free Challenge

    Gluten Free Challenge

We have a be nice policy.
Please be positive and constructive.




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


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

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

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!

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 ?


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