I tried 9 axis acceleration & gyro & magnetic sensor MPU 9250 with Arduino Nano
- 2018/10/12
- 00:39
I tried 9 axis acceleration & gyro & magnetic sensor MPU 9250 with Arduino Nano
Hello everyone! I’m RoboTakao.
Previously, I tried using 6 axis acceleration & gyro MPU 6050, but this time I will report about 9 axis acceleration & gyro & magnetic sensor MPU 9250 with ArduinoNano.

In the near future, I would like to improve accuracy by putting it in the digital stabilizer I made before.
Specification
Module model:GY-9250
Chip:MPU-9250
Core voltage:DC2.4V~3.6V
・I/O voltage:1.71V~Core voltage
・Interface:I2CまたはSPI
・Size:13x11mm
・Weight:0.45g
Acceleration
・Measurement range ±2 / ±4 / ±8 / ±16g
・Resolution:16bit
・Output rate:0.24~4000Hz
Gyro
・Measurement range ±250 / ±500 / ±1000 / ±2000dps(°/sec)
・Resolution:16bit
・Output rate:4~8000Hz
Compass(AK8963)
・Measurement range:±4800μT
・Resolution:14bit/16bit
This module has compatibility as pin assignment is almost common.
As a characteristic of this chip, the MPU 6050 of the 6-axis sensor and the AK 8963 of the magnetic sensor are all housed in the inside, and the slave address of the I2C also has 0x68 and 0x0C.
The sketch using the MPU 6050 can be used as it is.
This time I will install the library from Arduino IDE library manager.
Tools -> Manage libraries
When searching by inserting MPU9250 in the search window, I will install "MPU9250_asukiaa" because it will find a library called "MPU9250_asukiaa".

接続図

Sketch
File -> Sketch example -> MPU9250_askiaaa -> GetData

Write it, start Arduino, and confirm with serial monitor.
The data was confirmed.

I think that I will use it with a digital stabilizer.
Thnak you! Good bye!
スポンサードリンク