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
Pin Description
Pin Name | Description |
---|---|
VL | Provides power to the IR LED if PS jumper is disconnected. Must be between 3.0 - 4.5V. |
GND | Connect to Ground |
VCC | Provides power to the APDS9960 sensor. Must be between 2.4 - 3.6V. |
SDA | I2C Data |
SCL | I2C Clock |
INT | External 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
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 Pin | APDS9960 |
---|---|
GND | GND |
VU | VCC |
p9 | SDA |
p10 | SCL |
INT | p12 |
The breakout board can be ordered at: https://www.sparkfun.com/products/12787.
You need to log in to post a discussion
Discussion topics
Topic | Replies | Last post |
---|---|---|
It looks like you forgot to change the permission to public | 0 |
24 Apr 2018
by
|