索引

  • 1.简介
  • 2. PAJ7260u2手势识别传感器规格参数:
  • 3. 9 gestures代码:
  • 4. 15 gestures代码

资料

1.简介

手势识别传感器是一款集成3D手势识别和运动跟踪为一体的交互式传感器,传感器可以在有效范围内识别手指的顺时针/逆时针转动方向和手指的运动方向等。

该PAJ7260u2手势识别传感器是将手势识别功能与通用I2C接口集成到单个芯片中的PAJ7620U2。它可以识别13种手势,包括向上移动,向下移动,向左移动,向右移动,向前移动,向后移动,顺时针方向,圆周 - 逆时针方向,向下,向下,从左到右,从左到右。这些手势信息可以通过I2C总线简单访问。该PAJ7260u2手势识别传感器模块设计核心芯片为 PAJ7260u2,是一个支持与I2C协议通信的身体红外识别IC。传感器可以应用于各类互动交互艺术产品,试想一下,挥一挥手,打开台灯,挥一挥手,打开音乐。一切尽在弹指间。PAJ7260u2手势识别传感器特点:

2. PAJ7260u2手势识别传感器规格参数:

  • 手势速度在正常模式下为60°/ s至600°/ s,游戏模式为60°/ s至1200°/ s
  • 环境光免疫力:<100k Lux
  • 内置接近检测
  • 传感器:PAJ7620U2
  • 电源:2.8V至3.3V,I / O电压为1.8V〜3.3V
  • 接口:IIC
  • 工作温度:-40°C至+ 85°C
  • 尺寸:25 * 20mm;

3. 9 gestures代码:

/*Copyright (c) 2015 seeed technology inc.Website    : www.seeed.ccAuthor     : WuruibinModified Time: June 2015Description: This demo can recognize 9 gestures and output the result, including move up, move down, move left, move right,move forward, move backward, circle-clockwise, circle-counter clockwise, and wave.The MIT License (MIT)Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.
*/#include <Wire.h>
#include "paj7620.h"/*Notice: When you want to recognize the Forward/Backward gestures, your gestures' reaction time must less than GES_ENTRY_TIME(0.8s).You also can adjust the reaction time according to the actual circumstance.
*/
#define GES_REACTION_TIME       500             // You can adjust the reaction time according to the actual circumstance.
#define GES_ENTRY_TIME          800             // When you want to recognize the Forward/Backward gestures, your gestures' reaction time must less than GES_ENTRY_TIME(0.8s).
#define GES_QUIT_TIME           1000void setup()
{uint8_t error = 0;Serial.begin(9600);Serial.println("\nPAJ7620U2 TEST DEMO: Recognize 9 gestures.");error = paj7620Init();         // initialize Paj7620 registersif (error){Serial.print("INIT ERROR,CODE:");Serial.println(error);}else{Serial.println("INIT OK");}Serial.println("Please input your gestures:\n");
}void loop()
{uint8_t data = 0, data1 = 0, error;error = paj7620ReadReg(0x43, 1, &data);              // Read Bank_0_Reg_0x43/0x44 for gesture result.if (!error){switch (data)                                   // When different gestures be detected, the variable 'data' will be set to different values by paj7620ReadReg(0x43, 1, &data).{case GES_RIGHT_FLAG:delay(GES_ENTRY_TIME);paj7620ReadReg(0x43, 1, &data);if (data == GES_FORWARD_FLAG){Serial.println("Forward");delay(GES_QUIT_TIME);}else if (data == GES_BACKWARD_FLAG){Serial.println("Backward");delay(GES_QUIT_TIME);}else{Serial.println("Right");}break;case GES_LEFT_FLAG:delay(GES_ENTRY_TIME);paj7620ReadReg(0x43, 1, &data);if (data == GES_FORWARD_FLAG){Serial.println("Forward");delay(GES_QUIT_TIME);}else if (data == GES_BACKWARD_FLAG){Serial.println("Backward");delay(GES_QUIT_TIME);}else{Serial.println("Left");}break;case GES_UP_FLAG:delay(GES_ENTRY_TIME);paj7620ReadReg(0x43, 1, &data);if (data == GES_FORWARD_FLAG){Serial.println("Forward");delay(GES_QUIT_TIME);}else if (data == GES_BACKWARD_FLAG){Serial.println("Backward");delay(GES_QUIT_TIME);}else{Serial.println("Up");}break;case GES_DOWN_FLAG:delay(GES_ENTRY_TIME);paj7620ReadReg(0x43, 1, &data);if (data == GES_FORWARD_FLAG){Serial.println("Forward");delay(GES_QUIT_TIME);}else if (data == GES_BACKWARD_FLAG){Serial.println("Backward");delay(GES_QUIT_TIME);}else{Serial.println("Down");}break;case GES_FORWARD_FLAG:Serial.println("Forward");delay(GES_QUIT_TIME);break;case GES_BACKWARD_FLAG:Serial.println("Backward");delay(GES_QUIT_TIME);break;case GES_CLOCKWISE_FLAG:Serial.println("Clockwise");break;case GES_COUNT_CLOCKWISE_FLAG:Serial.println("anti-clockwise");break;default:paj7620ReadReg(0x44, 1, &data1);if (data1 == GES_WAVE_FLAG){Serial.println("wave");}break;}}delay(100);
}

4. 15 gestures代码

/*Copyright (c) 2015 seeed technology inc.Website    : www.seeed.ccAuthor     : WuruibinModified Time: June 2015Description: This demo can recognize 15 gestures and output the result.You can adjust the reaction time according to the actual circumstanceby modifying "#define GES_REACTION_TIME  500".The MIT License (MIT)Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.
*/#include <Wire.h>
#include "paj7620.h"/*Notice: When you want to recognize the Forward/Backward gesture or other continuous gestures, your gestures' reaction time must less than GES_REACTION_TIME(0.8s).You also can adjust the reaction time according to the actual circumstance.
*/
#define GES_REACTION_TIME       800
#define GES_QUIT_TIME           1000void setup()
{uint8_t error = 0;Serial.begin(9600);Serial.println("\nPAJ7620U2 TEST DEMO: Recognize 15 gestures.");error = paj7620Init();            // initialize Paj7620 registersif (error){Serial.print("INIT ERROR,CODE:");Serial.println(error);}else{Serial.println("INIT OK");}Serial.println("Please input your gestures:");
}void loop()
{uint8_t data = 0, data1 = 0, error;error = paj7620ReadReg(0x43, 1, &data);              // Read Bank_0_Reg_0x43/0x44 for gesture result.if (!error){switch (data)                                   // When different gestures be detected, the variable 'data' will be set to different values by paj7620ReadReg(0x43, 1, &data).{case GES_RIGHT_FLAG:delay(GES_REACTION_TIME);paj7620ReadReg(0x43, 1, &data);if (data == GES_LEFT_FLAG){Serial.println("Right-Left");}else if (data == GES_FORWARD_FLAG){Serial.println("Forward");delay(GES_QUIT_TIME);}else if (data == GES_BACKWARD_FLAG){Serial.println("Backward");delay(GES_QUIT_TIME);}else{Serial.println("Right");}break;case GES_LEFT_FLAG:delay(GES_REACTION_TIME);paj7620ReadReg(0x43, 1, &data);if (data == GES_RIGHT_FLAG){Serial.println("Left-Right");}else if (data == GES_FORWARD_FLAG){Serial.println("Forward");delay(GES_QUIT_TIME);}else if (data == GES_BACKWARD_FLAG){Serial.println("Backward");delay(GES_QUIT_TIME);}else{Serial.println("Left");}break;break;case GES_UP_FLAG:delay(GES_REACTION_TIME);paj7620ReadReg(0x43, 1, &data);if (data == GES_DOWN_FLAG){Serial.println("Up-Down");}else if (data == GES_FORWARD_FLAG){Serial.println("Forward");delay(GES_QUIT_TIME);}else if (data == GES_BACKWARD_FLAG){Serial.println("Backward");delay(GES_QUIT_TIME);}else{Serial.println("Up");}break;case GES_DOWN_FLAG:delay(GES_REACTION_TIME);paj7620ReadReg(0x43, 1, &data);if (data == GES_UP_FLAG){Serial.println("Down-Up");}else if (data == GES_FORWARD_FLAG){Serial.println("Forward");delay(GES_QUIT_TIME);}else if (data == GES_BACKWARD_FLAG){Serial.println("Backward");delay(GES_QUIT_TIME);}else{Serial.println("Down");}break;case GES_FORWARD_FLAG:delay(GES_REACTION_TIME);paj7620ReadReg(0x43, 1, &data);if (data == GES_BACKWARD_FLAG){Serial.println("Forward-Backward");delay(GES_QUIT_TIME);}else{Serial.println("Forward");delay(GES_QUIT_TIME);}break;case GES_BACKWARD_FLAG:delay(GES_REACTION_TIME);paj7620ReadReg(0x43, 1, &data);if (data == GES_FORWARD_FLAG){Serial.println("Backward-Forward");delay(GES_QUIT_TIME);}else{Serial.println("Backward");delay(GES_QUIT_TIME);}break;case GES_CLOCKWISE_FLAG:Serial.println("Clockwise");break;case GES_COUNT_CLOCKWISE_FLAG:Serial.println("anti-clockwise");break;default:paj7620ReadReg(0x44, 1, &data1);if (data1 == GES_WAVE_FLAG){Serial.println("wave");}break;}}delay(100);
}

PAJ7260u2手势识别传感器相关推荐

  1. Arduino PAJ7620手势识别传感器 实验

    第37课 PAJ7620手势识别传感器 1.1 介绍: 该模块基于PAJ7620U2手势识别传感器,它可识别9种不同方向的手势,包括上.下.左.右.前.后.顺时针.逆时针.摇摆.手势识别模块使用i2c ...

  2. STM32驱动PAJ7620手势识别传感器

    STM32驱动PAJ7620手势识别传感器 传感器简介 模块原理图 STM32F407ZGT6开发板与传感器连接 代码片 总结 原文链接:https://www.yourcee.com/newsinf ...

  3. Ardunio开发实例-PAJ7620手势识别传感器

    PAJ7620手势识别传感器 PAJ7620将手势识别功能与通用I2C接口集成到单个芯片中,形成图像分析传感器系统. 它可以识别9种人的手势,例如上,下,左,右,前进,后退,顺时针旋转,逆时针旋转和挥 ...

  4. Arduino开发PAJ7620U2手势识别传感器

    介绍 中午逛淘宝的时候看到这个传感器,发现它可以识别9种不同方向的手势,上.下左.右.前.后.顺时针.逆时针.摇摆,看起来很棒棒,就买了一个,价格在20-40元不等(销量靠前的店比较贵). 目的是想使 ...

  5. 手势识别智能传感器发展和未来的探究

    手势识别智能传感器发展和未来的探究 手势识别技术对于我们来说并不陌生,该项技术在很早之前便已成功商用,如今在各大厂商努力完善下也逐渐成熟,现有大部分消费类产品都在试图增加这一识别功能,以提高自身产品竞 ...

  6. 清华大学精密仪器系:智能传感器太重要了!

    来源:科技导报 整理:由动感传感 论文原标题:<智能传感器技术的研究进展及应用展望> 作者:清华大学精密仪器系 | 尤政 本文是来自清华大学精密仪器系的一篇关于智能传感器技术研究和发展探索 ...

  7. AliOS Things手势识别应用演示

    1. 概述 手势识别作为一种辅助的人机交互方式,在人机脱离的场景下可以提供方便的交互体验.本文介绍基于AliOS Things + STM32F413H Discovery开发板实现手势交互功能的演示 ...

  8. Fritzing软件绘制Arduino面包板接线图传感器模块库文件300

    一.硬件接线图 二.硬件材料 1)主控板 1.1*Arduino UNO开发板 2.1*Arduino UNO R3 CH340版本 3.1*Arduino Nano开发板 4.1*Arduino M ...

  9. Ardiuno驱动Apds9960手势识别

    Ardiuno驱动Apds9960手势识别 关于Apd9960手势识别传感器 APDS-9960相关引脚 相关库的下载 相关代码 注意事项 实验现象 小结 原文链接:https://www.yourc ...

最新文章

  1. 英伟达GPU“屠榜”,谷歌TPU“退赛”,MLPerf最新推理榜单出炉
  2. 398. Random Pick Index - LeetCode
  3. 每秒递减的方波扫频信号怎么生成_逆变器是怎么工作的?
  4. cephfs linux kernel client针对superblock操作流程的分析
  5. pyqt 多线程使用
  6. 渗透测试中dns log的使用
  7. 基于JAVA+SpringMVC+MYSQL的在线课程学习系统
  8. Nebula Challenge 04
  9. 趣味菜单C语言,趣味C语言
  10. flow-shop调度问题、job shop调度问题、open shop调度问题 是什么 区别
  11. 手机开机显示设备服务器信息,原 live-server启动一个本地服务器(手机访问)
  12. Unity3D脚本访问与参数传递
  13. 网页学习小技巧哈哈哈
  14. php发邮件附件,PHP使用PHPMailer发送邮件和附件的方法
  15. self和[self class]
  16. 【区块链 | Solidity】Solidity开发教程:用Web3.js构建第一个Dapp
  17. 元素布局之排排坐、对齐齐
  18. 小知识:Access端口和Trunk端口
  19. echarts数据可视化图表(二):双柱状图
  20. K210人脸识别+RFID录入信息

热门文章

  1. 基于Android平台的WiFi_displaysink端的设计与实现
  2. 网络流量采集(二)——基于硬件探针的流量采集网络
  3. Cannot find module 'semver' 错误
  4. Gavin老师Transformer直播课感悟 - Rasa项目实战之电商零售对话机器人通过Rasa interactive进行问题修正与调试演示(八十四)
  5. 港澳联考数学可以用计算机吗,联考数学满分、北大学霸教你决胜港澳台联考
  6. 隐性收入 hidden income
  7. 程序员应知——破窗与童子军军规
  8. 电话手表算术游戏不是计算机,数学逻辑智能 | 别开玩笑了,数学逻辑智能可不只是算术能力!...
  9. 【控制台】快开学了,闲的没事,画个圈圈诅咒你
  10. add1顶部菜单html,menuStrip1动态添加菜单及快捷键