Skip to content

Library to support the VCNL4010 proximity and ambient light sensor

License

Notifications You must be signed in to change notification settings

orbitrod/VCNL4010

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VCNL4010 library

Arduino library for using the Vishay VCNL4010 sensor. The sensor is a fully integrated proximity and ambient light sensor with infrared emitter, I2C interface and interrupt function in a small package. It is available as a breakout board from Adafruit at https://www.adafruit.com/product/466. The VCNL4010 datasheet can be found at http://www.vishay.com/docs/83462/vcnl4010.pdf.

Ambient light sensing

The ambient light sensor (ALS) returns a 16-bit value starting at close to 0 for no light and goes upwards as the light level increases.

Proximity sensing

The proximity sensor has a range of approximately 200mm (2 cm, or 3/4 of an inch) and goes from 65536 when the closest reflector is touching the device to a value of around 2000 when nothing is being reflected in range.

A detailed library description and further details are available at the GitHub VCNL4010 Wiki

DOI

Zanshin Logo

About

Library to support the VCNL4010 proximity and ambient light sensor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%