
These additional pins allow GY-521 MPU6050 to act as a master for the second I2C bus. The GY-5 also has two auxiliary SDA, SCL pins, which are an additional I2C controller for the GY-521 MPU6050. Therefore, we connect the SDA and SCL pins of GY-521 to A5 and A4 pins of Arduino Uno. The SCL and SDA pins on Arduino Uno are the A5 and A4 pins (look at analog pins) respectively. The SDA and SCL pins of the GY-521 are used for I2C communication, so these pins must be connected to the SDA and SCL pins of Arduino.
Asus invensense sensor collection code 10 serial#
Whenever we move the sensor, the pitch and roll values on the serial monitor will change according to the movement. These pitch and roll values are shown on the serial monitor output screenshot given below. The Arduino reads these acceleration values from the sensor and then calculate the pitch and roll values using the functions provided by the MPU6050 library. This change in capacitance is measured and corresponds to the acceleration value. So, when acceleration is applied in any direction, the capacitance between the plates and the mass will change. Its structure has a mass attached to a spring which moves along one direction and has fixed outer plates. The accelerometer sensors measure the acceleration by measuring the change in capacitance. We can give 5V input because the sensor module has a voltage regulator for converting the 5V input into 3.3V

SDA (Serial data line): Responsible for the primary I2C communication SCL (Serial clock line): Responsible for the primary I2C communication The GY-521 breakout board has a total of 8 pins which are as follows: The DMP unit is responsible for combining the raw data and performing some calculations to remove the errors in each sensor. The chip also includes a 16-bit analog to digital converter on each channel and a DMP (Digital Motion Processor) unit. This makes it a 6 DOF IMU (6 degrees of freedom inertial measurement unit). The GY-521 has an InvenSense MPU6050 chip which contains a 3-axis accelerometer and a 3-axis gyro meter. In this article, we are going to interface the GY-521 accelerometer with Arduino.
