手勢識別感測器模組 PAJ7620U2手勢傳感器 可識別多種手勢操控的運動方向識別模組
功能:可識別多種手勢操控的運動方向識別模組用手勢控制您的設備 簡介: 1. 手勢識別晶片, PAJ7620U2 2. I2C介面 安裝簡單 3.可以識別9個手勢 向上移動/向下移動/向左移動/向右移動, 順時針 逆時針 前 後 搖擺 應用:利用 GY- PAJ7620U2 手勢識別感測器模組 來調節音量,控制機器人,遙控裝置 arduino手勢感測器 9手勢識別 Arduino UNO / Seeeduino / Arduino Mega2560 規格: 1.介面接口:IIC 2. 九種手勢識別 3.工作電源:3~5V 4.尺寸:21 *16*1mm 5.傳感器:PAJ7620U2 6.檢測範圍:5 – 10cm 7.環境光免疫力:<100k Lux 8.手勢速度模式:正常和遊戲
工程資料: https://cdn.shopify.com/s/files/1/2386/9605/files/PAJ7620U2_GDS-R1.0_29032016_41002AEN.pdf?2328
Library GY- PAJ7620U2手勢識別感測器模組 下載: https://github.com/Seeed-Studio/Gesture_PAJ7620
範例: / ---------------------------------------------------------------- / // Arduino I2C Scanner // Re-writed by Arbi Abdul Jabbaar // Using Arduino IDE 1.8.7 // Using GY-87 module for the target // Tested on 10 September 2019 // This sketch tests the standard 7-bit addresses // Devices with higher bit address might not be seen properly. / ---------------------------------------------------------------- / #include //include Wire.h library void setup() { Wire.begin(); // Wire communication begin Serial.begin(9600); // The baudrate of Serial monitor is set in 9600 while (!Serial); // Waiting for Serial Monitor Serial.println("\nI2C Scanner"); } void loop() { byte error, address; //variable for error and I2C address int nDevices; Serial.println("Scanning..."); nDevices = 0; for (address = 1; address < 127; address++ ) { // The i2c_scanner uses the return value of // the Write.endTransmisstion to see if // a device did acknowledge to the address. Wire.beginTransmission(address); error = Wire.endTransmission();
if (error == 0) { Serial.print("I2C device found at address 0x"); if (address < 16) Serial.print("0"); Serial.print(address, HEX); Serial.println(" !"); nDevices++; } else if (error == 4) { Serial.print("Unknown error at address 0x"); if (address < 16) Serial.print("0"); Serial.println(address, HEX); } } if (nDevices == 0) Serial.println("No I2C devices found\n"); else Serial.println("done\n"); delay(5000); // wait 5 seconds for the next I2C scan }
|