Template: 10 DOF IMU Sensor D Arduino Guide

From Waveshare Wiki
Jump to: navigation, search

The Arduino example is written for the Arduino UNO. If you want to connect it to other Arduino boards, you may need to change the connection.

User Guides of Arduino

Hardware connection

Sensor Arduino Description
VCC 5V Power input
GND GND Power ground
SDA SDA I2C data inpu
SCL SCL I2C clock pin

10 DOF IMU Arduino 2.jpg

Examples

MQ5 Arduino 1.jpg
  • Build the project and upload it to the board.
  • Open the serial monitor of the Arduino IDE or the SSCOM software and check the serial data.
10 DOF IMU Arduino 1.jpg

Serial output data meaning

Roll, Pitch, Yaw Roll (°), Pitch (°), Yaw (°)
Acceleration LSB, can be transferred to g
Gyroscope GLSB, can be transferred to °/s
Magnetic LSB, can be transferred μT
Angle Direction (°), it is equal to Yaw degree
Pressure hPa
Altitude m
Temperature

Note:
①: The acceleration output by the serial port of the sample program is the original value of the register (the value of the register). After this value is divided by 16384, it can be converted into a value in g (gravitational acceleration constant).
②: The angular velocity output by the serial port of the sample program is the original value of the register (the value of the register). After this value is divided by 32.8, it can be converted into a value in dps (angle/second).
③: The value of the magnetic sensor output by the serial port of the sample program is the original value of the register (that is, the value of the register). This value is multiplied by 0.15 to convert it into a value in μT (10-6 Tesla).