SparkFun_VCNL4040_Arduino_Library (community library)

Summary

Name Value
Name SparkFun_VCNL4040_Arduino_Library
Version 1.0.2
Installs
Author SparkFun Electronics
Maintainer SparkFun Electronics
URL https://github.com/sparkfun/SparkFun_VCNL4040_Arduino_Library
Repository https://github.com/sparkfun/SparkFun_VCNL4040_Arduino_Library
Download .tar.gz

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.

Example Build Testing

Device OS Version:

This table is generated from an automated build. Success only indicates that the code compiled successfully.

Library Read Me

This content is provided by the library maintainer and has not been validated or approved.

SparkFun VCNL4040 Proximity Sensor Library

SparkFun Proximity Sensor (Qwiic) - VCNL4040 (image removed)

SparkFun Proximity Sensor Breakout - 20cm, VCNL4040 (Qwiic) (SEN-15177)

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.

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • library.properties - General library properties for the Arduino package manager.

Documentation

License Information

This product is open source!

Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

Browse Library Files