Project tutorial
MPU 6050 Teapot Project

MPU 6050 Teapot Project © CC BY-NC-SA

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!

  • 8 views
  • 0 comments
  • 1 respect

Components and supplies

Necessary tools and machines

Apps and online services

About this 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!

Supplies:

Hardware

Software

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

GND - GND

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 :

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

https://processing.org/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.

//#define OUTPUT_READABLE_YAWPITCHROLL
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.
#define OUTPUT_TEAPOT
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.)

code and library can be found 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 : https://www.instructables.com/id/Worlds-best-Paper...

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 - https://www.patreon.com/missioncriticalTwitter @ akshaymomaya1

Instagram @officialmissioncritical

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

Comments

Similar projects you might like

Virtual Arduino Tennis

Project tutorial by Arduino “having11” Guy

  • 6,431 views
  • 14 comments
  • 13 respects

How to make Arduino Piano keyboard

Project tutorial by Sharifdeen Ashshak

  • 165 views
  • 0 comments
  • 1 respect

Smart Face Tracking Robot Car

Project tutorial by Sebastian Hernandez

  • 11,161 views
  • 7 comments
  • 53 respects

Arduino Arcade LEGO Games Box

Project tutorial by LenkaDesign

  • 9,175 views
  • 10 comments
  • 41 respects

Hookah Lighting

Project tutorial by Turai Botond

  • 3,844 views
  • 0 comments
  • 5 respects

ATtiny85 Mini Arcade: Snake

Project tutorial by Arduino “having11” Guy

  • 3,675 views
  • 7 comments
  • 22 respects
Add projectSign up / Login