MPU6050 sensor module is complete 6-axis Motion Tracking iTagPro smart device. It combines 3-axis Gyroscope, 3-axis Accelerometer and Digital Motion Processor all in small package. Also, it has further characteristic of on-chip Temperature sensor. It has I2C bus interface to speak with the microcontrollers. If 3-axis Magnetometer is linked to auxiliary I2C bus, then MPU6050 can present full 9-axis Motion Fusion output. Let’s see MPU6050 inside sensors. The MPU6050 include 3-axis Gyroscope with Micro Electro Mechanical System(MEMS) technology. It is used to detect rotational velocity alongside the X, Y, Z axes as proven in below figure. When the gyros are rotated about any of the sense axes, the Coriolis Effect causes a vibration that is detected by a MEM inside MPU6050. The ensuing sign is amplified, demodulated, and filtered to produce a voltage that's proportional to the angular price. This voltage is digitized utilizing 16-bit ADC to sample each axis. It measures the angular velocity alongside every axis in degree per second unit.
The MPU6050 consist 3-axis Accelerometer with Micro Electro Mechanical (MEMs) know-how. It used to detect angle of tilt or inclination along the X, Y and Z axes as proven in beneath determine. Acceleration along the axes deflects the movable mass. This displacement of moving plate (mass) unbalances the differential capacitor which ends up in sensor output. Output amplitude is proportional to acceleration. 16-bit ADC is used to get digitized output. It measured in g (gravity force) unit. 1g on Z axis. The embedded Digital Motion Processor (DMP) is used to compute motion processing algorithms. It takes knowledge from gyroscope, accelerometer and ItagPro additional third social gathering sensor reminiscent of magnetometer and processes the information. It supplies movement data like roll, ItagPro pitch, yaw angles, landscape and portrait sense etc. It minimizes the processes of host in computing movement data. The ensuing information can be read from DMP registers. On-chip temperature sensor output is digitized using ADC. The reading from temperature sensor will be learn from sensor information register.
INT: Interrupt digital output pin. AD0: I2C Slave Address LSB pin. This is 0th bit in 7-bit slave tackle of system. If related to VCC then it is learn as logic one and slave handle adjustments. XCL: Auxiliary Serial Clock pin. This pin is used to attach different I2C interface enabled sensors SCL pin to MPU-6050. XDA: Auxiliary Serial Data pin. This pin is used to connect different I2C interface enabled sensors SDA pin to MPU-6050. SCL: Serial Clock pin. Connect this pin to microcontrollers SCL pin. SDA: Serial Data pin. Connect this pin to microcontrollers SDA pin. GND: Ground pin. Connect this pin to ground connection. VCC: Power supply pin. MPU-6050 has numerous registers to regulate and configure its mode of operation. So, kindly undergo MPU-6050 datasheet and MPU-6050 Register Map. Note that gyroscope and accelerometer sensor knowledge of MPU6050 module consists of 16-bit raw information in 2’s complement form.
Temperature sensor data of MPU6050 module consists of 16-bit data (not in 2’s complement kind). 2g with Sensitivity Scale Factor of 16,384 LSB(Count)/g. 250 °/s with Sensitivity Scale Factor of 131 LSB (Count)/°/s. To get sensor uncooked information, we need to first carry out 2’s complement on sensor data of Accelerometer and gyroscope. Accelerometer X axis uncooked data/16384) g. Accelerometer Y axis raw information/16384) g. Accelerometer Z axis uncooked information/16384) g. Gyroscope X axis raw data/131) °/s. Gyroscope Y axis raw information/131) °/s. Gyroscope Z axis uncooked data/131) °/s. MPU9250: This sensor iTagPro smart device module combines a 3-axis accelerometer, 3-axis gyroscope, and 3-axis magnetometer in a single package. LSM6DS3: This sensor module additionally combines a 3-axis accelerometer and 3-axis gyroscope, but has a lower energy consumption and smaller measurement than the MPU6050. ADXL345: This sensor module offers a 3-axis accelerometer with a full-scale vary of ±2g, ±4g, ±8g, or ±16g. BNO055: This sensor module gives a 3-axis accelerometer, 3-axis gyroscope, and 3-axis magnetometer, together with a built-in processor for fusion of sensor data. Here, we shall be utilizing Korneliusz Jarzebski’s MPU6050 library from GitHub. Download this library from right here. The output on the serial window will display the X, Y, and Z uncooked readings from the accelerometer adopted by their normalized values. These values will be continuously displayed on the serial monitor with a delay of 10 milliseconds between every studying.