4/11/2023 0 Comments Rotate 45 degrees diptraceIn the demonstration video given below, you will see that the ax, ay, and az value changes as I rotate the MPU6050 Module. While the Arduino is connected with the Laptop, first Upload the program and then open the Serial Monitor and make sure you select 38400 as the baud rate. Each time you add a new library you should reopen the Arduino IDE in order to load the library files. If your Arduino IDE is open close it and open it again. Download hartway_digital Library: hartway_digital Download Wire Library: WireĪfter you download the libraries zip folders then simply extract the folders, copy the folders and paste them into my document > Arduino’s > Libraries folder. The hartway_digial consists of the MPU6050.h and I2Cdev.h header files. The orange wire is connected with the VCC, Blue wire is connected with the GND, Green wire is connected with the SCL, Yellow wire is connected with the SDA, and White wire is connected with the INT pin of the MPU6050 Module.Ĭonnect the Orange wire which is the VCC wire with 3.3 volts of the Arduino, connect the Blue wire with the GND, Connect the Green wire which is the SCL wire with the Arduino’s Analog pin A5, connect the SDA wire with the Analog pin A4 and finally connect the INT pin of the module with pin number 2 of the Arduino.īefore you start the programming, first of all, make sure you download the following libraries The MPU6050 Module can be interfaced with the Arduino using Male to Female type jumper wires. The MPU6050 Eagle library can be downloaded which is given below.ĭownload MPU6050 Eagle Library: gy-521 MPU5060 Interfacing with Arduino: The circuit diagram is very simple, as you can see VCC is connected with 3.3 volts, GND is connected with the GND, SCL and SDA are connected with the Arduino’s Analog pins A5 and A4, while the INT pin of the MPU6050 module is connected with pin number 2 of the Arduino. if you want to learn how to make a schematic and PCB then watch my tutorial given below. This schematic is designed in Cadsoft eagle 9.1.0 version. Let’s have a look at the connection diagram. Out of these 8 pins I will be using only the VCC, GND, SCL, SDA, and INT. This Module can be used in a hand gesture controlled Robot, wheelchair, earthquake detection system, Self-balancing Robot, the self-balancing platform for a camera, Segway, etc.Īs you can see clearly this module has a total of 8 Pins which are clearly labeled. The MPU6050 always acts as a slave to the Arduino with the SDA and SCL pins connected to the I2C bus. The MPU6050 communicates with the Arduino through the I2C protocol. This is the GY-521 MPU6050 6DOF 3-Axis Gyroscope and Accelerometer Module. I would appreciate your support in this way! I may make a commission if you buy the components through these links. Without any further delay, let’s get started!!! The Electric Bike speed is controlled using the MPU6050. The same Sensor I also used in the SMART Electric Bike Project. Programming to display the values on the Serial Monitor and finally number.Libraries which you will need for this Module.MPU6050 GY-521 technical specifications.In this tutorial, I will try to keep things simple so that you can easily understand the whole mechanism. As usual, before making any intermediate or advanced level project, first I am going to explain the basics that every beginner should know. MPU6050 Arduino- This is my first getting started tutorial on the GY-521 MPU6050 six degrees of freedom 3-Axis Gyroscope and Accelerometer Module. Download hartway_digital Library: hartway_digital.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |