MPU6050 (Gyroscope + Accelerometer + Temperature) Sensor Module

 MPU 6050 Sensor for Dron Making




MPU6050 (Gyroscope + Accelerometer + Temperature) Sensor Module

Introduction

MPU6050 Module



MPU6050 Module

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. Also, it has additional feature of on-chip Temperature sensor. It has I2C bus interface to communicate with the microcontrollers.

It has Auxiliary I2C bus to communicate with other sensor devices like 3-axis Magnetometer, Pressure sensor etc.

If 3-axis Magnetometer is connected to auxiliary I2C bus, then MPU6050 can provide complete 9-axis Motion Fusion output.

Let’s see MPU6050 inside sensors.

 



3-Axis Gyroscope

The MPU6050 consist of 3-axis Gyroscope with Micro Electro Mechanical System(MEMS) technology. It is used to detect rotational velocity along the X, Y, Z axes as shown in below figure.

MPU-6050 Orientation And Polarity Of Rotation

-  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 resulting signal is amplified, demodulated, and filtered to produce a voltage that is proportional to the angular rate.

-  This voltage is digitized using 16-bit ADC to sample each axis.

-  The full-scale range of output are +/- 250, +/- 500, +/- 1000, +/- 2000.

-  It measures the angular velocity along each axis in degree per second unit.



3-Axis Accelerometer

The MPU6050 consist 3-axis Accelerometer with Micro Electro Mechanical (MEMs) technology. It used to detect angle of tilt or inclination along the X, Y and Z axes as shown in below figure.


MPU-6050 Angle Of Inclination

-  Acceleration along the axes deflects the movable mass.

-  This displacement of moving plate (mass) unbalances the differential capacitor which results in sensor output. Output amplitude is proportional to acceleration.

-  16-bit ADC is used to get digitized output.

-  The full-scale range of acceleration are +/- 2g, +/- 4g, +/- 8g, +/- 16g.

-  It measured in g (gravity force) unit.

-  When device placed on flat surface it will measure 0g on X and Y axis and +1g on Z axis.


 



DMP (Digital Motion Processor)

The embedded Digital Motion Processor (DMP) is used to compute motion processing algorithms. It takes data from gyroscope, accelerometer and additional 3rd party sensor such as magnetometer and processes the data. It provides motion data like roll, pitch, yaw angles, landscape and portrait sense etc. It minimizes the processes of host in computing motion data. The resulting data can be read from DMP registers.


On-chip Temperature Sensor

On-chip temperature sensor output is digitized using ADC. The reading from temperature sensor can be read from sensor data register.


MPU-6050 Module

MPU-6050 Module Pin Description

The MPU-6050 module has 8 pins,

INT: Interrupt digital output pin.




AD0: I2C Slave Address LSB pin. This is 0th bit in 7-bit slave address of device. If connected to VCC then it is read as logic one and slave address changes.

XCL: Auxiliary Serial Clock pin. This pin is used to connect other 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 ground connection.

VCC: Power supply pin. Connect this pin to +5V DC supply.

MPU-6050 module has Slave address (When AD0 = 0, i.e. it is not connected to Vcc) as,

Slave Write address(SLA+W): 0xD0

Slave Read address(SLA+R): 0xD1


MPU-6050 has various registers to control and configure its mode of operation. So, kindly go through MPU-6050 datasheet and MPU-6050 Register Map.


Calculations


Note that gyroscope and accelerometer sensor data of MPU6050 module consists of 16-bit raw data in 2’s complement form.


Temperature sensor data of MPU6050 module consists of 16-bit data (not in 2’s complement form).

Now suppose we have selected,

-  Accelerometer full scale range of +/- 2g with Sensitivity Scale Factor of 16,384 LSB(Count)/g.

-  Gyroscope full scale range of +/- 250 °/s with Sensitivity Scale Factor of 131 LSB (Count)/°/s.

then,

To get sensor raw data, we need to first perform 2’s complement on sensor data of Accelerometer and gyroscope.

After getting sensor raw data we can calculate acceleration and angular velocity by dividing sensor raw data with their sensitivity scale factor as follows,


Accelerometer values in g (g force)

Acceleration along the X axis = (Accelerometer X axis raw data/16384) g.

Acceleration along the Y axis = (Accelerometer Y axis raw data/16384) g.

Acceleration along the Z axis = (Accelerometer Z axis raw data/16384) g.

Gyroscope values in °/s (degree per second)

Angular velocity along the X axis = (Gyroscope X axis raw data/131) °/s.

Angular velocity along the Y axis = (Gyroscope Y axis raw data/131) °/s.

Angular velocity along the Z axis = (Gyroscope Z axis raw data/131) °/s.

Temperature value in °/c (degree per Celsius)

Temperature in degrees C = ((temperature sensor data)/340 + 36.53) °/c.






In this video series i will show you step by step tutorial to make powerful drone in this particular video I will review MPU6050 Gyroscope sensor to sense motion and balance the Dron, to make Flight controller it is very necessary to study and hands on this sensor, Amazon Purchase Link https://www.amazon.in/INVENTO-1800KV-Brushless-Propeller-Quadcopter/dp/B07VJ2FLR3/ref=sr_1_10?keywords=bldc+motor&qid=1639195032&sr=8-10 https://www.amazon.in/INVENTO-1800KV-Brushless-Propeller-Quadcopter/dp/B07VJ2FLR3/ref=sr_1_10?keywords=bldc+motor&qid=1639195032&sr=8-10 https://www.amazon.in/Generic-Steering-Tester-Servo-Motor/dp/B019DORFME/ref=sr_1_3?keywords=servo+tester&qid=1639195174&sr=8-3 Play list How to make Drone Part 1 https://www.youtube.com/watch?v=GGYKeETepu0 How to make Drone Part 2 https://youtu.be/ARAIBfHJz7Q MPU6050 (Gyroscope + Accelerometer + Temperature) Sensor Module https://youtu.be/YLiD3bPA2uo Code and Circuit Diagram: https://arduinobymanmohan.blogspot.com/p/mpu6050-gyroscope-accelerometer.html Manmohan Pal Email: mannmohanpal@gmail.com Whatsapp: 8989811397 Facebook: https://www.facebook.com/mannmohan.pal.7 Facebook Page: https://www.facebook.com/Electronics-by-Manmohan-Pal-1802344069857656/ Instagam: #manmohan.pal Twitter: @ManmohanPal15 Youtube channel: https://www.youtube.com/user/mannmohanpal Blog: http://electronics4ubymanmohanpal.blogspot.in/ My other Youtube Channel Manmohan Pal https://www.youtube.com/channel/UCDnhARnHOEIPuNIEp5vPdGQ Easy Electronics By Manmohan Pal https://www.youtube.com/channel/UC3o5qRRPPJUhhiHKrJX-yhg NodeMcu Esp8266 by Manmohan Pal https://www.youtube.com/channel/UC4FXFd3RxL-Q1ZERJ4JvqJA Other videos you may find use ful Playlist for Arduino Tutorial https://www.youtube.com/watch?v=JMjJDCpNVc0&list=PL-W6psKgiPqX57846z5htDft0YuR8bXSY How to make bare bone Arduino on breadboard (ATMEGA328P) by Manmohan Pal https://www.youtube.com/watch?v=oA_NNvG4dEU Bluetooth Car using Arduino + HC05 +Android APP by Manmohan Pal https://www.youtube.com/watch?v=1T0QCpnQrOo&t=186s RF Remote Control Robo Car using 433Mhz RF Module by Manmohan Pal https://www.youtube.com/watch?v=safPeO38_2A How To Identify 8*8 Led Matrix Pins by Manmohan Pal https://www.youtube.com/watch?v=ZXF62U0ziJ8 RF Remote Control Car Using 433 Mhz RF transmitter and Receiver Kit by Manmohan Pal https://www.youtube.com/watch?v=rcaQluS7Gzw RF Remote Control Car Using 433 Mhz RF transmitter and Receiver Kit by Manmohan Pal https://www.youtube.com/watch?v=rcaQluS7Gzw RF Remote Control Circuit Using 433 Mhz Module and HT12E Encoder and HT12D Decoder IC by Manmohan https://www.youtube.com/watch?v=51TNQiaXm3U IC L293 Moter Driver H Bridge IC by Manmohan Pal https://www.youtube.com/watch?v=1Gh-aVm5rDg RF Remote Control Circuit Using 433 Mhz Module and HT12E Encoder and HT12D Decoder IC by Manmohan https://www.youtube.com/watch?v=51TNQiaXm3U Wireless 4 Channel 433 Mhz RF Remote Control Transmitter and Receiver Unboxing by Manmohan Pal https://www.youtube.com/watch?v=ZFjDGuFBMnI 433 Mhz RF Module Tx and Rx with Arduino Nano, RF Remote Control Circuit by Manmohan Pal https://www.youtube.com/watch?v=JHN7kgguCG8 Wireless 4 Channel 433 Mhz RF Remote Control Transmitter and Receiver Unboxing by Manmohan Pal https://www.youtube.com/watch?v=ZFjDGuFBMnI RF 4 Channel Remote Control Relay Module using 433 Mhz RF Transmitter and Reciever bu Manmohan Pal https://www.youtube.com/watch?v=1bgBXruwxfE&t=58s https://www.youtube.com/watch?v=C1qGVaGgGOo 433 Mhz RF Module Tx and Rx with Arduino Nano, RF Remote Control Circuit by Manmohan Pal https://www.youtube.com/watch?v=JHN7kgguCG8&t=607s Remote Control Relay Module 4 Channel 5 volt by Manmohan Pal https://www.youtube.com/watch?v=67_CzDsuyfw Arduino Nano Unboxing| Uploading First Program on Arduino Nano- By Manmohan Pal https://www.youtube.com/watch?v=OxQcPwc8Wl0


No comments:

Post a Comment

Wifi Home automation Diy kit

 Wifi Home automation Diy kit By Manmohan Pal Wifi Home Automation Kit Hi, This is Manmohan Pal, I am glad to present a DIY kit for Home Aut...