產品網站: https://www.sparkfun.com/products/11028
規格書: https://cdn.sparkfun.com/datasheets/Sensors/IMU/Triple_Axis_Accelerometer-Gyro_Breakout_-_MPU-6050_v12.pdf
datasheet: http://43zrtwysvxb2gf29r5o0athu.wpengine.netdna-cdn.com/wp-content/uploads/2015/02/MPU-6000-Datasheet1.pdf
datasheet 重點頁數: pg21, pg39, pg28
連接訊號接腳如下:
接腳 | 說明 | Arduino 測試專案的接腳 |
Vdd | 5v, 3.3v | 5v, 3.3v |
GND | GND | GND |
INT | Interrupt | Digital Pin 2 |
FSYNC | Frame 垂直同步 | |
SCL | 訊號 | Analog Pin 5 |
SDA | 訊號 | Analog Pin 4 |
VIO | VLOGIC | 5v, 3.3v |
CLK | 時脈訊號 | |
ASCL | Config | |
ADA | Config |
Arduino 測試程式:
從官方下載: https://github.com/sparkfun/MPU-6050_Breakout
I2C 庫:
從官方下載: http://www.i2cdevlib.com/devices/mpu6050#source
把兩個庫加入到 Arduino Library 即可。
reference:
https://diyhacking.com/arduino-mpu-6050-imu-sensor-tutorial/
http://flyerworldjackychi.blogspot.tw/2016/02/a-quadcopter-controller-on-raspberry-pi.html
download:
MPU6050,zip (by Jeff Rowberg)
I2Cdev.zip
沒有留言:
張貼留言