SEN0187

SEN0187 Datasheet


SEN0187 RGB and Gesture Sensor

Part Datasheet
SEN0187 SEN0187 SEN0187 (pdf)
PDF Datasheet Preview
SEN0187 RGB and Gesture Sensor

Contents
• 1 Introduction
• 2 Specification
• 3 Layout
• 4 Tutorial

Requirements Connection Diagram How to use

Codes download Sample Code Other functions
• 5 Protocol/Library Explanation
• 6 Trouble Shooting

Introduction

The sensor module uses the APDS-9960 chip, this is a single 8 pin package digital RGB, ambient light, short and gesture sensor device. The device is compatible with I2C interface, with an interruput pin. And short-range and gestures are measured with infrared LED. RGB and environmental light perception measurement function could work under a variety of light conditions, such as covering by a variety of damping materials including a piece of dark glass. In addition, the integrated UV-IR shading filter can realize ambient light and color temperature detecting.

Specification
• Operating Voltage 3.3-5V
• Interface:

I2C interface x1 Interrupt pin x1
• Detecting range 100mm
• Module size 18.3x16.4mm

Layout

RGB and Gesture Sensor OPSITIVE

SDA SCL GND VCC INT

I2C DATA PORT I2C CLOCK PORT GND VCC Interrupt Output

Tutorial

We will use a simple example to teach you how to use the gesture Sensor. Our goal is to make the sensor to detect gestures up and down around the waving.

Requirements
• Hardware UNO x1 RGB and Gesture Sensor x1
• Software Arduino IDE V1.6.5 Click to Download Arduino IDE

Connection Diagram

Sensor Pin VCC GND SCL SDA INT

UNO Pin 5V GND SCL SDA 2

How to use

In this section, we will use a simple experiment to teach you how to use our gesture sensor. Our goal is to get the sensor detect the gesture UP, DOWN, left and right. Here we begin.

Codes download
• Download and install the RGB and Gesture Sensor Library:

Click to download library files 9960.zip Arduino Library Installation Tutorial Next, we need to open the ARDUINO IDE, and copy the following simple code to the IDE window. Then select the right serial port and board Arduino UNO . Wave your hand in front of the sensor, see what happen on the serial port.

Sample Code
1 #include <Wire.h> 2 #include <APDS9960.h> 3 4 // Pins 5 #define APDS9960_INT 2 // Needs to be an interrupt pin 6 7 APDS9960 apds = APDS9960 8 int isr_flag = 0 9 10 void setup
12 // Initialize Serial port
13 Serial.begin 9600 ;
14 Serial.println ;
16 Serial.println F "APDS-9960 - GestureTest" ;
19 // Initialize interrupt service routine
20 attachInterrupt 0, interruptRoutine, FALLING ;
22 // Initialize APDS-9960 configure I2C and initial values
23 if apds.init

Serial.println F "APDS-9960 initialization complete" ;
25 else

Serial.println F "Something went wrong during APDS-9960 init!" ;
29 // Start running the APDS-9960 gesture sensor engine
More datasheets: MV5491A | PCB-RULER-12INCH | FDD6796A | 74ACTQ574PC | 76000855 | FQB2N50TM | VRE202CA | VRE202M | VRE202C | VRE202MA


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived SEN0187 Datasheet file may be downloaded here without warranties.

Datasheet ID: SEN0187 509096