Template: 10 DOF IMU Sensor D Arduino Guide
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 |
Examples
- Arduino_IDE_Installation_Steps.
- Download the Demo Code to your PC and unzip.
- Install the Arduino IDE on your PC.
- Go into 10_DOF_IMU_Sensor_D_Code/Arduino/10Dof-D_Demo.
- Run the 10Dof-D_Demo.ino file.
- Select the correct Board and the Port.
- 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.
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).