記事一覧

I tried 9 axis acceleration & gyro & magnetic sensor MPU 9250 with Arduino Nano

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.

MPU9250Arduino04.jpg

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".

MPU9250Arduino01.png

接続図

MPU9250Arduino05.png

Sketch

File -> Sketch example -> MPU9250_askiaaa -> GetData

MPU9250Arduino02.png

Write it, start Arduino, and confirm with serial monitor.

The data was confirmed.

MPU9250Arduino03.png

I think that I will use it with a digital stabilizer.

Thnak you! Good bye!

スポンサードリンク

コメント

コメントの投稿

非公開コメント

プロフィール

RoboTakao

Author:RoboTakao
みなさんご訪問ありがとうございます。ロボット作りたいけどお小遣いそんなにないし、簡単でローコストでロボットを作るための私のプロジェクトを紹介します。

ウェブサイトもありますのでそちらもよろしくお願いします。
http://robotakao.jp/

スポンサーリンク