MPU6050 Accelerometer and Gyroscope Sensor Guide With Arduino Pro.
Casimira Boake 于 2 天之前 修改了此页面


MPU6050 sensor module is complete 6-axis Motion Tracking Device. It combines 3-axis Gyroscope, 3-axis Accelerometer and Digital Motion Processor all in small package deal. Also, it has additional feature of on-chip Temperature sensor. It has I2C bus interface to speak with the microcontrollers. If 3-axis Magnetometer is connected 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) expertise. It is used to detect rotational velocity along the X, Y, Z axes as proven in beneath determine. When the gyros are rotated about any of the sense axes, the Coriolis Effect causes a vibration that's detected by a MEM inside MPU6050. The resulting sign is amplified, demodulated, and filtered to provide a voltage that's proportional to the angular fee. This voltage is digitized utilizing 16-bit ADC to sample every axis. It measures the angular velocity alongside each axis in degree per second unit.


The MPU6050 consist 3-axis Accelerometer with Micro Electro Mechanical (MEMs) expertise. It used to detect angle of tilt or iTagPro geofencing inclination along the X, Y and Z axes as shown in under figure. Acceleration along the axes deflects the movable mass. This displacement of transferring plate (mass) unbalances the differential capacitor iTagPro support which leads to 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 movement processing algorithms. It takes knowledge from gyroscope, accelerometer and extra third celebration sensor similar to magnetometer and processes the data. It provides motion information like roll, pitch, yaw angles, landscape and portrait sense etc. It minimizes the processes of host in computing motion knowledge. The resulting data might be learn from DMP registers. On-chip temperature sensor output is digitized utilizing ADC. The reading from temperature sensor can 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 deal with of gadget. If linked to VCC then it is learn as logic one and slave tackle changes. 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 other 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 floor connection. VCC: Power provide pin. MPU-6050 has various registers to manage and configure its mode of operation. So, kindly go through MPU-6050 datasheet and MPU-6050 Register Map. Note that gyroscope and accelerometer sensor information of MPU6050 module consists of 16-bit uncooked data in 2’s complement type.


Temperature sensor information of MPU6050 module consists of 16-bit knowledge (not in 2’s complement type). 2g with Sensitivity Scale Factor iTagPro key finder of 16,384 LSB(Count)/g. 250 °/s with Sensitivity Scale Factor of 131 LSB (Count)/°/s. To get sensor iTagPro geofencing raw data, 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 uncooked data/16384) g. Accelerometer Z axis uncooked information/16384) g. Gyroscope X axis uncooked knowledge/131) °/s. Gyroscope Y axis uncooked knowledge/131) °/s. Gyroscope Z axis raw knowledge/131) °/s. MPU9250: iTagPro geofencing This sensor module combines a 3-axis accelerometer, 3-axis gyroscope, and ItagPro 3-axis magnetometer in a single package deal. LSM6DS3: This sensor module also combines a 3-axis accelerometer and 3-axis gyroscope, however has a decrease energy consumption and smaller dimension than the MPU6050. ADXL345: This sensor module gives a 3-axis accelerometer with a full-scale vary of ±2g, ItagPro ±4g, ±8g, or ±16g. BNO055: This sensor module offers a 3-axis accelerometer, 3-axis gyroscope, and 3-axis magnetometer, together with a constructed-in processor for fusion of sensor data. Here, we will probably be utilizing Korneliusz Jarzebski’s MPU6050 library from GitHub. Download this library from 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 probably be repeatedly displayed on the serial monitor with a delay of 10 milliseconds between each studying.