Creative Commons License
.

In our previous Blog, we discussed the basics of mpu6050 arduino.  M.P.U. 6050 is an Accelerometer and Gyroscope for our Arduino Board. So today in this Blog, we will use our MPU 6050 arduino to control a Graphic unit or say Model Paper Plane. which is commonly known as mpu 6050 teapot, with our Arduino.

so let’s start!

Supplies for mpu 6050 teapot:

Hardware
  1. Arduino Nano and
  2. M.P.U. 6050 and 
  3. Jumper Wire
Software
  1. Arduino IDE and
  2. Processing IDE

Step 1: Watch the Video!

Step 2: Brush Up the Basics

check the previous Blog post on mpu6050 arduino.

we have Briefly covered Arduino M.P.U. 6050 Interfacing . and here 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.However only modification is that we need to use Interrupt pin . So we Connect INT to D2.

mpu 6050 teapot

So connections for our Arduino UNO and NANO are as following:

VCC – 5v

GND – GND

SCL – A5

SDA – A4

INT – D2

( for further clarification connections Fritizing File is added )

Step 4: Get IDE Ready

But in this project 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).

It is written in functions from C and C++. And hence 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 :

It is an open-source graphical library and integrated development environment (IDE).And 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. and 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 :

https://www.arduino.cc/en/Main/Software

https://processing.org/download/

Step 5: Code Arduino!

so We will be starting the Code with Arduino IDE.

  • First lets import I2C dev and M.P.U. 6050 libraries (Link attached in this step).
  • and this library is different from the one we used in previous tutorial.
  • go to Examples and open DMP6 example
  • and jump to line 100 . comment this definition line.
//#define OUTPUT_READABLE_YAWPITCHROLL

use ” // ” to comment the line .And  remove ” // ” to uncomment the lines

  • and Uncomment the 117th line and we are good to go.
  • so we will simply upload the code to Arduino board.
#define OUTPUT_TEAPOT

Remember the Comport of Arduino and Close the Comport mpu 6050 teapot

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.
  • and Paste 2 libraries (linked below) to the Library folder of Processing.
  • so Open the attached example code ( attached in this Step ).
  • and 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!

and upload the code on arduino IDE and processing .

mpu 6050 teapot

And now its time to Hit Run and enjoy the Awesome Animation!

We can literally play with this for hours. Try this fun experiment because almost everyone is stuck inside lock-down. 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 M.P.U. 6050 Sensor on it. but why reinvent the Wheel? here is a blog about how to make a paper plane : https://www.instructables.com/id/Worlds-best-Paper…

therefore 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 using MPU6050 teapot arduino. hence give this Blog a thumbs up, and also share it with your friends and don’t forget to subscribe to Mission Critical,  because it’s totally Free.

anyway I will see you guys in the next one, Goodbye! and therefore checkout our social media links!

Patreon – https://www.patreon.com/missioncritical
Twitter @ akshaymomaya1

Instagram @officialmissioncritical

Facebook https://www.facebook.com/officialmissioncritical/

also checkout

mpu 6050 teapot tutorial

MPU6050 Tutorial | How to Program MPU 6050 With Arduino

Arduino LCD Stick Man Game!

arduino mpu6050 teapot

mpu 6050 teapot



Write A Comment

Minov

A Market Place for your Innovations

0