Interfacing GY-521 module with evive

About This Tutorial
In this tutorial we will interface the GY-521 module with evive. The GY-521 module contains a 3-axis accelerometer, a 3-axis gyroscope, a temperature sensor, and a digital motion processor. We will display the value of each sensor on the serial monitor.
Tutorial Info

Components Required

Introduction

This tutorial explains how to interface the GY-521 module with evive. Module has MPU6050 on it, which has a 3-axis accelerometer ,3-axis gyroscope and a Digital Motion Processor  on it. This module works on the principle of MEMS(Micro electro-mechanical system).

Before running into the details of working with the module, first, we should have an idea about what an accelerometer or a gyroscope is. Starting with the accelerometer: it gives a measure of acceleration along all 3 axes- x,y and z. Every accelerometer module has a micro-electromechanical structure which suffers a displacement due to acceleration this displacement is sensed in terms of change in capacitance which changes out voltage given by accelerometer unit. The GY-521 module has registers that store the acceleration value of all axes.

Similarly, gyroscope gives the amount of rotation along each of the x,y and z-axes. Rotation along x,y and z-axes are popularly known as roll, pitch, and yaw respectively. Gyroscope sensor also has a special structure that vibrates due to the rotation of the sensor leading to a change in the capacitance and hence output voltage changes.

Applications

  • Navigation
  • Automobiles
  • Robotics
  • Smartphones
  • Aircrafts

Circuit diagram

  • Connect “VCC” of GY-521 with “VCC” of evive
  • Connect “GND” of GY-521 with “GND” of evive
  • Connect “SDA”  of GY-521 with “SDA” of evive  (Serial data )
  • Connect “SCL” of GY-521 with “SCL” of evive    (Serial clock )

Arduino code

This code demonstrates the Interfacing of GY-521 module with evive. We are going to display the readings of the accelerometer, Gyroscope, and the temperature sensor on the serial monitor. In this code, we have used the Wire library which is used for “I2C” communication (Inter Integrated Circuit communication) 

Expected result

Share this Tutorial
Share on facebook
Facebook
Share on twitter
Twitter
Share on google
Google+
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Related Projects & Tutorials
How to use evive’s Real-time Clock
This tutorial discusses what is a real-time clock, and how to use evive's real-time clock to show time, date, and day with the help of an Arduino IDE sketch.
All articles loaded
No more articles to load
Featured Projects
Space-Battle-Game on Scratch
Space Battle

This project will show you how to make a cool space battle game on your own in PictoBlox (Scratch-based programming) and play using your Smartphone!

All articles loaded
No more articles to load

Leave a Reply

Close Menu
×

Cart