RGB and Gesture Sensor - APDS9960

The APDS9960 is a RGB and Gesture Sensor. The sensor uses I2C to interface with the mbed to reads in a gesture made along the x, y, or z axes and returns a string indicating the gesture's direction.(Currently NonFunctional)

Hello World

Import programSparkFun_APDS9960_Example

A example program for the APDS9960 Library.

Library

Import librarySparkFun_APDS9960

A library for the APDS9960 gesture sensor. This library is still incomplete.

Notes

APDS9960

Pin Description

Pin NameDescription
VLProvides power to the IR LED if PS jumper is disconnected. Must be between 3.0 - 4.5V.
GNDConnect to Ground
VCCProvides power to the APDS9960 sensor. Must be between 2.4 - 3.6V.
SDAI2C Data
SCLI2C Clock
INTExternal interrupt pin. Active LOW on interrupt event.

PS is the jumper that connects the power supplies of the sensor and the IR LED together. The jumper is closed by default. Header pins must be soldered to the breakout board in order to make it bread broad compatible.

Datasheet

Here is a link to the APDS9960's Datasheet:https://cdn.sparkfun.com/datasheets/Sensors/Proximity/apds9960.pdf

APDS9960 Shematic

APDS9960 Schematic

Pull up resistors are built into the breakout board for the I2C interface. External pull up resistors are unnecessary.

Wiring

Wiring used in example program:

mbed PinAPDS9960
GNDGND
VUVCC
p9SDA
p10SCL
INTp12

The breakout board can be ordered at: https://www.sparkfun.com/products/12787.