- 描述
- 評價 (0)
描述
描述
Arduino GY-45 三軸數字傾角感測模組 飛思卡爾 MMA8452 晶片模組
Arduino GY-45 三軸數字傾角感測模組 輕鬆地在項目中使用小型 MMA8452 加速度計。MMA8452 是一款智能低功耗三軸,具有12位分辨率。該加速度計具有嵌入式功能,具有靈活的用戶可編程選項,可配置為兩個中斷引腳。嵌入式中斷功能可以節省總體功耗,從而減輕主處理器不斷輪詢數據的負擔。
Arduino GY-45 三軸數字傾角感測模組 具有14 位分辨率的智能低功耗、三軸、電容式微機械加速度傳感器。這款加速度傳感器具有豐富的嵌入式功能,帶有靈活的用戶可編程選項,可以配置多達兩個中斷引腳。嵌入式中斷功能可以節省整體功耗,解除主處理器不斷輪詢數據的負擔。
同時具備訪問低通濾波數據和高通濾波數據的功能,可以將所需的數據分析降至最低程度,從而實現晃動檢測和快速的響應。該器件可被配置成利用任意組合可配置嵌入式的功能生成慣性喚醒中斷信號,能同時在靜止狀態保持低功耗模式。
- MMA8452 晶片, 高精度傾斜傳感器模塊
- 模塊型號:GY-45
- 供電電源:3-5v(通信完全兼容5v工作系統)
- 模塊尺寸長*寬=14.5mm * 20.5 mm
- 安裝孔直徑3mm ,孔距15mm
提供文檔
- MMA8452Q : 3軸12位/8位數字加速度傳感器
- AN4076 :MMA8451、2、3Q的數據操作與基本設置
- AN4068 :使用MMA8451、2、3Q實現嵌入式方向檢測
- AN4069 :MMA8451、2、3Q的偏移校準
- AN4070 :使用MMA8451、2、3Q實現動作和自由落體檢測
- AN4073 :利用MMA8451Q中的32採樣先進先出(FIFO)緩存
- AN4077 : MMA845xQ設計檢查表和線路板貼裝安裝指南
- AN4076SW :AN4076示例代碼,附AN4076應用筆記
Arduino GY-45 三軸數字傾角感測模組 是一款具有12位分辨率的智能低功耗、三軸、電容式微機械加速度傳感器。這款加速度傳感器具有豐富嵌入式功能,帶有靈活的用戶可編程選項,可以配置多達兩個中斷引腳。嵌?朧街卸瞎δ芸梢越謔≌騫模獬鞔砥韃歡下盅蕕母旱!MA8452具有±2g/±4g/±8g的用戶可選量程,可以實時輸出高通濾波數據和非濾波數據。該器件可被配置成利用任意組合可配置嵌入式的功能生成慣性喚醒中斷信號,這就使MMA8452Q在監控事件同時,在靜止狀態保持低功耗模式。
特性
- 供電電壓:1.95 V 至3.6 V
- 接口電壓:1.6 V 至3.6 V
- ±2g/±4g/±8g 動態量程可選
- 輸出數據速率(ODR) 範圍: 1.56 Hz 至800 Hz
- 噪聲:99μg/√Hz
- 12位和8位數字輸出
- I2C 數字輸出接口(在上拉電阻為4.7 kΩ 時,最高頻率可達2.25 MHz)
- 適用於6個中斷來源的2個可編程中斷引腳
- 3 個運動檢測嵌入式通道
- 自由落體或運動檢測: 1通道
- – 脈衝檢測: 1通道
- – 晃動檢測: 1通道
- 帶有設定滯後補償的方向(橫向/縱向)檢測
- 自動喚醒和自動休眠的ODR可自動更改
- 高通濾波數據可實時輸出
- 自檢測
- 符合RoHS 標準
- 功耗: 6 μA – 165 μA
- 典型應用
- 電子羅盤應用
- 靜止方向檢測(橫向/縱向、上/下、左/右、前/?笪恢檬侗穡?
- 筆記本、電子書閱讀器和便攜式電腦跌落和自由落體檢測
- 實時方向檢測(虛擬現實和遊戲機3D 用戶位置反饋)
- 實時活動分析(步程計步進計數、用於HDD 的自由墜落檢測、推測航行法GPS 備份)
- 適用於便攜式節能產品的動作檢測(用於手機、PDA、GPS、遊戲機的自動睡眠和自動喚醒)
- 衝擊和振動檢測(機電一體化補償、裝運和保修使用記錄)
- 用戶界面(通過方向更改實現菜單滾動、用於按鈕替換的標籤檢測)
Ardruino 範例與說明
Arduino GY-45 三軸數字傾角感測模組 ARDUINO 連接範例
我使用上面模塊中的以下連接到我的Arduino
Arduino連接 | 模塊連接 |
5V | VCC_IN |
GND | GND |
SDA | SDA |
SCL | SCL |
採用 Adafruit library – https://github.com/adafruit/Adafruit_MMA8451_Library/archive/master.zip
由於 I2C 定址必須要修改 Adafruit header file called Adafruit_MMA8451.h 為 0x1c (28)
#define MMA8451_DEFAULT_ADDRESS (0x1C)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
#include <Wire.h> #include "Adafruit_MMA8451.h" #include <Adafruit_Sensor.h> Adafruit_MMA8451 mma = Adafruit_MMA8451(); void setup(void) { Serial.begin(9600); Serial.println("Adafruit MMA8451 test!"); if (! mma.begin()) { Serial.println("Couldnt start"); while (1); } Serial.println("MMA8451 found!"); mma.setRange(MMA8451_RANGE_2_G); Serial.print("Range = "); Serial.print(2 << mma.getRange()); Serial.println("G"); } void loop() { // Read the 'raw' data in 14-bit counts mma.read(); Serial.print("X:t"); Serial.print(mma.x); Serial.print("tY:t"); Serial.print(mma.y); Serial.print("tZ:t"); Serial.print(mma.z); Serial.println(); /* Get a new sensor event */ sensors_event_t event; mma.getEvent(&event); /* Display the results (acceleration is measured in m/s^2) */ Serial.print("X: t"); Serial.print(event.acceleration.x); Serial.print("t"); Serial.print("Y: t"); Serial.print(event.acceleration.y); Serial.print("t"); Serial.print("Z: t"); Serial.print(event.acceleration.z); Serial.print("t"); Serial.println("m/s^2 "); /* Get the orientation of the sensor */ uint8_t o = mma.getOrientation(); switch (o) { case MMA8451_PL_PUF: Serial.println("Portrait Up Front"); break; case MMA8451_PL_PUB: Serial.println("Portrait Up Back"); break; case MMA8451_PL_PDF: Serial.println("Portrait Down Front"); break; case MMA8451_PL_PDB: Serial.println("Portrait Down Back"); break; case MMA8451_PL_LRF: Serial.println("Landscape Right Front"); break; case MMA8451_PL_LRB: Serial.println("Landscape Right Back"); break; case MMA8451_PL_LLF: Serial.println("Landscape Left Front"); break; case MMA8451_PL_LLB: Serial.println("Landscape Left Back"); break; } Serial.println(); delay(500); } |
GY-45 MMA8452 3-Axis Accelerometer Module Info
GY-45 MMA8452 3-Axis Accelerometer Module is a breakout board based on three axis accelerometer IC MMA8451. MMA8451 is a14 bit resolution smart, low power consumption, capacitor-type micro mechanical accelerator. This product has rich embedded system function, flexible programmer options, up to two interruptions. MMA8451 supports 2g/4g/8g range for choosing.
GY-45 MMA8452 3-Axis Accelerometer Module – General Specifications
- MMA8451 three-axis accelerometer
- I2C digital ouput
- Up to two interruption function
- Three motion detection channels
- Free fall down detection
- Pulse detection
- Vibration detection
- 1.95 V to 3.6 V supply voltage
- 1.6 V to 3.6 V interface voltage
- ±2g/±4g/±8g dynamically selectable full-scale
- Output Data Rates (ODR) from 1.56 Hz to 800 Hz
- 12-bit and 8-bit digital output
- I2C digital output interface (operates to 2.25 MHz with 4.7 kΩ pullup)
- Two programmable interrupt pins for six interrupt sources
- Three embedded channels of motion detection
- Orientation (Portrait/Landscape) detection with set hysteresis
- High Pass Filter Data available real-time
- Current Consumption: 6 μA – 165 μA
Tags
GY-45 MMA8452 3-Axis Accelerometer Module – Technical Specifications
- Power Supply: 3-5V
- Dimensions: 14.5mm x 20.5 mm
評價 (0)
相關商品
-
運動 / 位置 / 加速度
Grove – 3-Axis Digital Gyro 三軸數字陀螺儀
0 out of 5NT$740原始價格:NT$740。NT$650目前價格:NT$650。 (未稅)加入購物車產品速覽 -
運動 / 位置 / 加速度
Grove – 3-Axis Digital Accelerometer(±16g) 3軸數字加速度計
0 out of 5NT$410原始價格:NT$410。NT$352目前價格:NT$352。 (未稅)加入購物車產品速覽 -
運動 / 位置 / 加速度
L3G4200D三軸數位陀螺儀感測器 角速度模組 GY-50
0 out of 5NT$190原始價格:NT$190。NT$145目前價格:NT$145。 (未稅)加入購物車產品速覽 -
運動 / 位置 / 加速度
模擬壓電式陶瓷震動感測器 Arduino 振動感測器模組
0 out of 5NT$50原始價格:NT$50。NT$35目前價格:NT$35。 (未稅)加入購物車產品速覽
商品評價
目前沒有評價。