Wish List 0

Apds9960 Rgb Gesture Sensor Detection I2C Breakout Module For Arduino

Rs. 176.00 Rs. 212.00

-This is APDS9960 RGB Gesture Sensor Detection I2C Breakout Module for Arduino; a small breakout board with a integrated APDS-9960 sensor that gives ambient light and colour measuring; proximity detection, and touchless gesture sensing.
-With this RGB and Gesture Sensor you'll be able to manage a laptop; microcontroller, robotic, and more with a easy swipe of your hand.
-This is in reality, the same sensor that the Samsung Galaxy S5 uses and is probably one of the fine gesture sensors on the market for the fee.

-The APDS9960 is a extreme little piece of hardware with integrated UV and IR blocking filters; four separate diodes touchy to exclusive directions, and an I2C compatible interface.
-For your comfort; we've damaged out the subsequent pins: VL (elective energy to IR LED); GND (Ground), VCC (strength to APDS-9960 sensor), SDA (I2C statistics), SCL (I2C clock); and INT (interrupt).
-Each APDS-9960 additionally has a detection variety of 4 to eight inches (10 to 20 cm).

Features : 
1. Operational Voltage: 3.3V.
2. Operating Range: 4-8in (10-20cm).
3. I2C Interface (I2C Address: 0x39).
4. Ambient Light and RGB Color Sensing, Proximity Sensing, and Gesture Detection in an Optical Module

5.Ambient Light and RGB Color Sensing
– UV and IR blocking filters
– Programmable gain and integration time
– Very high sensitivity – Ideally suited for operation behind dark glass

6.Proximity Sensing
– Trimmed to provide a consistent reading
– Ambient light rejection
– Offset compensation
– Programmable driver for IR LED current
– Saturation indicator bit

7.Complex Gesture Sensing
– Four separate diodes sensitive to different directions
– Ambient light rejection
– Offset compensation
– Programmable driver for IR LED current
– 32 dataset storage FIFO
– Interrupt driven I2C communication

8.I2C-bus Fast Mode Compatible Interface
– Data Rates up to 400 kHz
– Dedicated Interrupt Pin


SPECIFICATIONS:
-Model                       APDS9960
-Input Voltage (Volt)        3.3
-Operating Current (mA)      790
-Operating Range (cm)        10 – 20
-Operating Temperature (°C)  -30 ~ +85
-Interface                   Digital
OVERVIEW:
Operational Voltage            :  3.3V.
Operating Range                 :  4-8in (10-20cm).
Ambient Light & RGB Color Sensing.
Proximity Sensing.
Gesture Detection.
I2C Interface (I2C Address: 0x39).
 

PACKAGE INCLUDES:

1 PCS x Apds9960 Rgb Gesture Sensor


//SOURCE CODE TAKEN FROM BELOW LINK

//http://arduinolearning.com/code/arduino-and-apds-9960-sensor-example.php


#include <Wire.h>

#include <SparkFun_APDS9960.h>

 

// Pins

#define APDS9960_INT    2 // Needs to be an interrupt pin

 

// Constants

 

// Global Variables

SparkFun_APDS9960 apds = SparkFun_APDS9960();

int isr_flag = 0;

 

void setup() {

 

  // Set interrupt pin as input

  pinMode(APDS9960_INT, INPUT);

 

  // Initialize Serial port

  Serial.begin(9600);

  Serial.println();

  Serial.println(F("--------------------------------"));

  Serial.println(F("SparkFun APDS-9960 - GestureTest"));

  Serial.println(F("--------------------------------"));

 

  // Initialize interrupt service routine

  attachInterrupt(0, interruptRoutine, FALLING);

 

  // Initialize APDS-9960 (configure I2C and initial values)

  if ( apds.init() ) {

    Serial.println(F("APDS-9960 initialization complete"));

  } else {

    Serial.println(F("Something went wrong during APDS-9960 init!"));

  }

 

  // Start running the APDS-9960 gesture sensor engine

  if ( apds.enableGestureSensor(true) ) {

    Serial.println(F("Gesture sensor is now running"));

  } else {

    Serial.println(F("Something went wrong during gesture sensor init!"));

  }

}

 

void loop() {

  if( isr_flag == 1 ) {

    detachInterrupt(0);

    handleGesture();

    isr_flag = 0;

    attachInterrupt(0, interruptRoutine, FALLING);

  }

}

 

void interruptRoutine() {

  isr_flag = 1;

}

 

void handleGesture() {

    if ( apds.isGestureAvailable() ) {

    switch ( apds.readGesture() ) {

      case DIR_UP:

        Serial.println("UP");

        break;

      case DIR_DOWN:

        Serial.println("DOWN");

        break;

      case DIR_LEFT:

        Serial.println("LEFT");

        break;

      case DIR_RIGHT:

        Serial.println("RIGHT");

        break;

      case DIR_NEAR:

        Serial.println("NEAR");

        break;

      case DIR_FAR:

        Serial.println("FAR");

        break;

      default:

        Serial.println("NONE");

    }

  }

}

https://youtu.be/A3QRyixnEl8

15 days

Write a review

Please login or register to review