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.
SparkFun labored with love to create this code. Feel like supporting open source hardware? Buy a breakout board from SparkFun!
- /Documents - Datasheets
- /Hardware - Eagle design files (.brd, .sch)
- Arduino Library - Library for reading proximity, ambient light, and IR values.
- Hookup Guide - Hookup guide for getting started with the SparkFun VCNL4040 Proximity Sensor.
This product is open source!
If you have any questions or concerns on licensing, please contact [email protected].
Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release any derivative under the same license.
Distributed as-is; no warranty is given.
- Your friends at SparkFun.