SparkFun VCNL4040 Proximity Sensor Library

Library for the SparkFun Qwiic Proximity Sensor 20cm - VCNL4040

Author
SparkFun Electronics
Website
https://github.com/sparkfun/SparkFun_VCNL4040_Arduino_Library
Category
Sensors
License
NOASSERTION
Library Type
Contributed
Architectures
Any

The VCNL4040 is a simple IR presence and ambient light sensor. This sensor is excellent for detecting if something has appeared in front of the sensor. We often see this type of sensor on automatic towel dispensers, automatic faucets, etc. You can detect objects qualitatively up to 20cm away. This means you can detect if something is there, and if it is closer or further away since the last reading, but it's difficult to say it is 7.2cm away. If you need quantitative distance readings (for example sensing that an object is 177mm away) check out the SparkFun Time of Flight (ToF) sensors with mm accuracy.

Downloads

Filename Release Date File Size
SparkFun_VCNL4040_Proximity_Sensor_Library-1.0.2.zip 2018-06-11 17.36 KiB
SparkFun_VCNL4040_Proximity_Sensor_Library-1.0.1.zip 2018-04-20 17.37 KiB
SparkFun_VCNL4040_Proximity_Sensor_Library-1.0.0.zip 2018-04-20 13.01 KiB