Introduction: MPU 6050 Teapot Project

In our previous Blog, we discussed the basics of M.P.U. 6050,which is an Accelerometer and Gyroscope for our Arduino Board, today in this Blog, we will use our M.P.U. 6050 to control a Graphic unit or say Model Paper Plane, which is commonly known as Teapot, with our M.P.U. 6050, so let’s get started!


Step 1: Watch the Video!

Step 2: Brush Up the Basics

in our previous Blog post, we have Briefly covered Arduino M.P.U. 6050 Interfacing and we will use similar concepts, so it would be advisable to glance through this Post !

Step 3: Connections

The connections are almost same as before, only modification is that we need to use Interrupt pin so we Connect INT to D2.

connections for our Arduino UNO and NANO are as following:

VCC - 5v


SCL - A5

SDA - A4

INT - D2

( connections Fritizing File is added in this step for further clarification )

Step 4: Get IDE Ready

for this project, we will need two IDE or say Compilers, one is our Arduino IDE, and other one is Processing IDE

Arduino IDE :

The Arduino Integrated Development Environment (IDE) is a cross-platform application (for Windows, macOS, Linux) that is written in functions from C and C++. It is used to write and upload programs to Arduino compatible boards, but also, with the help of 3rd party cores, other vendor development boards.

Processing IDE :

Processing is an open-source graphical library and integrated development environment (IDE) built for the electronic arts, new media art, and visual design communities with the purpose of teaching non-programmers the fundamentals of computer programming in a visual context.
Processing uses the Java language, with additional simplifications such as additional classes and aliased mathematical functions and operations. It also provides a graphical user interface for simplifying the compilation and execution stage.

Links to Download :

Step 5: Code Arduino!

We will be starting the Code with Arduino IDE.

  • First lets import I2C dev and MPU 6050 libraries (Link attached in this step)
the library we used in previous tutorial is different from the one used here.
  • go to Examples and open DMP6 example
  • jump to line 100 and comment this definition line.
use " // " to comment the line and remove " // " to uncomment the lines
  • Uncomment the 117th line and we are good to go, so we will simply upload the code to Arduino board.
Remember the Comport of Arduino and Close the Comport

Download the Library here!

Step 6: Code Processing IDE

  • Open the Library location of Processing Software by default location path is my documents in windows.
  • Paste 2 libraries (linked below) to the Library folder of Processing.
  • Open the attached example code ( attached in this Step ).
  • Change COM port( it should be the same com port that you used to upload code on Arduino.)

Download the Library here!

Step 7: Run the Code!

all the code is successfully uploaded on both Arduino IDE and Processing, its time to Hit Run and enjoy the Awesome Animation!

We can literally play with this for hours, almost everyone is stuck inside lock-down, and this would be a fun experiment to try. This tutorial wasn’t technical, yet this visual processing game is very satisfying and worth the efforts.

Step 8: Make a Paper Plane! ( OPTIONAL )

it would be great to make a Paper plane and Attach MPU 6050 Sensor on it, but why reinvent the Wheel? here is a blog about how to make a paper plane :

simply use Double sided tape and attach the sensor on Plane!

Step 9: Thank You!

I hope you guys liked this simple yet Fun tutorial, if so give this Blog a thumbs up, share it with your friends and don’t forget to subscribe to Mission Critical, it’s totally Free, anyway I will see you guys in the next one, Goodbye!

also, checkout our social media links!

Patreon -
Twitter @ akshaymomaya1

Instagram @officialmissioncritical


Arduino Contest 2020

Participated in the
Arduino Contest 2020