Library for the SparkFun Qwiic Proximity Sensor 20cm - VCNL4040
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.
Filename | Release Date | File Size |
---|---|---|
SparkFun_VCNL4040_Proximity_Sensor_Library-1.0.4.zip | 2023-05-08 | 20.22 KiB |
SparkFun_VCNL4040_Proximity_Sensor_Library-1.0.3.zip | 2022-01-31 | 20.21 KiB |
SparkFun_VCNL4040_Proximity_Sensor_Library-1.0.2.zip | 2018-06-11 | 20.15 KiB |
SparkFun_VCNL4040_Proximity_Sensor_Library-1.0.1.zip | 2018-04-20 | 20.16 KiB |
SparkFun_VCNL4040_Proximity_Sensor_Library-1.0.0.zip | 2018-04-20 | 14.54 KiB |