Tutorial to Interface GY-85 IMU 9DOF Sensor With Arduino
by mybotic in Circuits > Arduino
24934 Views, 13 Favorites, 0 Comments
Tutorial to Interface GY-85 IMU 9DOF Sensor With Arduino
Description
GY-85 IMU 9DOF Sensor that has nine (9) axis which are three (3)-axis gyroscope, triaxial accelerometer and three (3)-axis magnetic field. Communication with the HMC5883L, ITG3205 and ADXL345 is simple and all done through an I2C interface. The power and 2-wire interface pins are all broken out to a 0.1" pitch header. Uses famous HMC5883L, ITG3205 and ADXL345 magnetometer chips. Supports 3.0V to 5.0V IO levels on I2C SCL and SDA pins.
Specification:
- Power supply :3V - 5V
- IO Voltage Level: 3V - 5V
- Communication : IIC communication protocol,fully compatible with the 3-5V System and circuit contain LLC
Step 1: Materials Preparation
In this tutorial, you will need :
1. Arduino Uno Board and USB Cable.
2. GY-85 IMU 9DOF Sensor
3. Jumper Wires
4. LCD 16X2
5. Breadboard
6. 10K Potentiometer
7. Push Button
8. Arduino IDE Software
Step 2: Pin Description
VCC : Power supply
GND : GND power
SCL: I2C Clock Input
SDA : I2C Data IO
DRDY: Data Ready Output
Step 3: Pin Connection
Connect GY-85 IMU 9DOF Sensor to Arduino Uno Board as following :
- 3.3V to +5V
- GND to GND
- SCL tO A5
- SDA to A4
Connect LCD to Arduino Uno Board as following :
- VSS to +5V
- VDD to GND
- RS to 12
- RW to GND
- E to 11
- D4 to 5
- D5 to 4
- D6 to 3
- D7 to 2
- A/VSS to +5V
- K/VDD to GND
Connect 10K Potentiometer to LCD as following (refer image for potentiometer pinout) :
- GND to GND
- Data to v0
- VCC to +5V
Step 4: Connect Arduino to Computer
After complete your circuit, connect your Arduino Uno Board to your computer via USB Cable. You can see that your LCD will on.
Step 5: Sample Source Code
You may download the sample source code and open it on your Arduino IDE. Choose the correct board and port. Then, upload your Code into your Arduino Uno Board.
Downloads
Step 6: Library
You have to download these libraries before uploading the sample source code into your Arduino IDE to allow Arduino to communicate with LCD and GY-85 IMU 9DOF Sensor. Download the ZIP file below > Open Zip File > Extract to your Arduino Uno Library folder. Refer the image above for your references.
Step 7: Result : Serial Monitor and Serial Oscilloscope
This GY-85 IMU 9DOF Sensor come with result as following:
- when device rotate around it's X-axis, X-axis remain the same while the other two axis changed.
- when device rotate around it's Y-axis, Y-axis remain the same while the other two axis changed.
- when device rotate around it's Z-axis, Z-axis remain the same while the other two axis changed.
Moreover, this GY-85 IMU 9DOF Sensor will also provide the result of Roll Degree, Pitch Degree as well as Heading Degrees.