The SparkFun VCNL4040 Breakout provides simple, qualitative proximity detection up to 20cm with zero dead zone and an integrated ambient light sensor, all accessible via Qwiic.
In stock in Australia
Shipping from $4.90
+232 more from our supplier in 7-10 days
Our Code: SKU-005342
Supplier Link: [SparkFun MPN:15177]
The SparkFun Proximity Sensor Breakout is a simple, high-performance IR presence and ambient light sensor built around the VCNL4040 from Vishay. If you have ever used an automatic paper towel dispenser or a touchless soap dispenser, you have likely interacted with this type of technology.
This sensor is the perfect digital alternative to popular analogue "Sharp" sensors. But what separates it from them is that it has absolutely no dead zone. Unlike many sensors that require an object to be at least 4cm away to be detected, the VCNL4040 can detect objects up to the face of the sensor, making it ideal for close-range detection and touchless interfaces.
It is essential to understand that this is a qualitative sensor, not a quantitative one.
If your project requires precise, millimetre-accurate distance measurements, we recommend checking out our Time-of-Flight (ToF) sensors. But for detecting presence, gestures, or collisions, the VCNL4040 is what you need.
In addition to proximity, the VCNL4040 features a built-in Ambient Light Sensor (ALS). This allows the board to measure lux and the lighting conditions of the environment, making it great for adjusting screen brightness, controlling automatic night lights, or triggering your next glitter cannon.
Utilising the handy Qwiic Connect System, no soldering is required to connect the VCNL4040 to the rest of your system. However, if you want to skip the programming entirely, this breakout is fully compatible with the SparkFun OpenLog Artemis and DataLogger systems. When connected, the sensor is automatically detected, scanned, configured, and logged. This allows you to start gathering proximity data immediately! No programming, soldering, or complex setup required.
By eliminating the "blind zone" found in legacy sensors, the VCNL4040 offers effective detection from 0 to 20cm. Paired with excellent ambient light suppression, it ensures consistent readings in fluctuating environments, making it a dependable solution for precise, short-range presence detection.
Range: ~0cm to 20cm (Qualitative detection)
*Technical Note: The I2C address of the VCNL4040 is hardware-defined. To use multiple sensors on a single bus, you will need a multiplexer like the Qwiic Mux Breakout.