Arduino and Virtual Room Using MPU-9150 MARG


Introduction: Arduino and Virtual Room Using MPU-9150 MARG

About: You can find more of my work on Youtube Channel.

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!



    • Creative Misuse Contest

      Creative Misuse Contest
    • Clocks Contest

      Clocks Contest
    • Oil Contest

      Oil Contest

    6 Discussions

    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


    1 reply

    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 ?

    3 replies

    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!