Skip to product information
1 of 2

vendor-unknown

How to use GY-521 3-Axis Acceleration gyroscope Module using Arduino Uno - KT985

How to use GY-521 3-Axis Acceleration gyroscope Module using Arduino Uno - KT985

SKU:KT985

1000 in stock

Regular price Rs. 999.00
Regular price Sale price Rs. 999.00
Sale Sold out
Shipping calculated at checkout.

For refund/return/replacement, call us at +91 95995 94524 For bulk and B2B enquiries kindly mail us at support@rees52.com

View full details

KIT INCLUDED:


HARDWARE REQUIRED

SOFTWARE REQUIRED

Arduino IDE 1.8.5 (programmable platform for Arduino)

Click To Download :https://www.arduino.cc/en/Main/Software

SPECIFICATIONS

GY-521 3-AXIS ACCELERATION GYROSCOPE MODULE

  • Accelerometer ranges: ±2, ±4, ±8, ±16g
  • Gyroscope ranges: ± 250, 500, 1000, 2000 °/s
  • Voltage range: 3.3V - 5V (the module include a low drop-out voltage regulator)

This simple module contains everything required to interface to the Arduino and other controllers via I2C (use the Wire Arduino library) and give motion sensing information for 3 axes - X, Y and Z.

PIN DESCRIPTION

GY-521 3-AXIS ACCELERATION GYROSCOPE MODULE

With this module, you can measure:

  • acceleration (= speed of movements) in three directions x, y, z;
  • a rotation or an angles (in three directions);
  • orientation
  • VCC (The breakout board has a voltage regulator. Therefore, you can connect the board to 3.3V and 5V sources.)
  • GND
  • SCL (Serial Clock Line of the I2C protocol.)
  • SDA (Serial Data Line of the I2C protocol.)
  • XDA (Auxiliary data => I2C master serial data for connecting the module to external sensors.)
  • XCL (Auxiliary clock => I2C master serial clock for connecting the module to external sensors.)
  • AD0 (If this pin is LOW, the I2C address of the board will be 0x68. Otherwise, if the pin is HIGH, the address will be 0x69.)
  • INT (Interrupt digital output)

CIRCUIT CONNECTION

The accelerometer measures the acceleration along one direction, while the gyroscope measures the angular acceleration on one axis.

Connections:

  • VCC -> 3.3 V / 5 V (better)
  • GND -> GND
  • SCL -> A5
  • SDA -> A4
  • XDA -> NC
  • XCL -> NC
  • ADO -> NC
  • INT -> NC

LIBRARIES REQUIRED

  • I2Cdev wire

Click to download https://drive.google.com/open?id=1V2hVX9eyigevA7h-loAFQ7-FQQ1EaFFP

Or you can install it from IDE

Sketch -> Include Library -> Manage Library -> Search for Wire

  • MPU6050

https://drive.google.com/open?id=1s7HN8meiyiXsmQlC9P-Sj97hO21Nk8jh

Or you can install it from IDE

Sketch -> Include Library -> Manage Library -> Search for MPU6050

CODE

Click to see the code:

https://drive.google.com/open?id=1TejkQKfUZGZMpTocmAMuy5Jk5KXFSOf2aYPkEIYZkUY


WORKING

Welcome to the Arduino Based Project which includes GY-521 MPU6050. The analogic pins are not set on INPUT because it's their default setting. The values read by the analogic pins will be sent to the serial port. Now, to view the output open the Serial Monitor, move the sensor and try to see how the values change. Accelerometers can be used for fun projects, for example to realize a game controller and many more applications.