2016年12月12日 星期一
[Ardunio]MPU9250
手邊的MPU9255是九加一軸感測器
基本上就是MPU9250加上溫度,
MPU9250是三軸加速度計加上三軸陀螺儀加上三軸羅盤
挺威的,
今天測試拿掉範例的中斷,直接存取Row data
看起來應該正常,但因為時間趕,得多測幾次看看有沒有bug。
MPU9250規格書
https://www.invensense.com/products/motion-tracking/9-axis/mpu-9250/
2016年12月3日 星期六
[Ardunoi]Wire.h
Wire Library
This library allows you to communicate with I2C / TWI devices. On the Arduino boards with the R3 layout (1.0 pinout), the SDA (data line) and SCL (clock line) are on the pin headers close to the AREF pin. The Arduino Due has two I2C / TWI interfaces SDA1 and SCL1 are near to the AREF pin and the additional one is on pins 20 and 21.
As a reference the table below shows where TWI pins are located on various Arduino boards.
As of Arduino 1.0, the library inherits from the Stream functions, making it consistent with other read/write libraries. Because of this, send() and receive() have been replaced with read() and write().
|
訂閱:
文章 (Atom)
[Sensor]MPU92/65
MPU92/65是很久以前買的感測器 基本上有加速度計、陀螺儀、電子羅盤、溫度計 以下是該電子商城的介紹 https://www.factoryforward.com/product/gy-87-mpu-9265-3-axis-9-dof-attitude-gyro-magnet...
-
程式碼 ========================================================= #include <Servo.h> #define Servo_Pin 7 // 定義伺服馬達輸出腳位(...
-
昨天發現NB風扇一直發生出運轉聲音,之前使用都不會這樣, 打開工作管理員,發現有個程序固定會占用30%左右的CPU效能, 如下 wlanext.exe Windows Wireless LAN 802.11 Extensibility Framework 這個程序只知...
-
本文引用自 https://www.arduino.cn/thread-12445-1-1.html // 控制 LED 亮滅, 每秒閃爍 5 次: 亮 0.1 秒滅 0.1 秒 ... // Prescaler 用 64 volatile int ggy...