🎉 Up to 70% Off Selected ItemsShop Sale
HomeStore

Adafruit VCNL4030 Proximity and Lux Sensor

Product image 1
Product image 2
Product image 3
Product image 4
Product image 5
Product image 6
Product image 7

Adafruit VCNL4030 Proximity and Lux Sensor

The VCNL4030 Sensor combines proximity detection up to 300mm with ambient light sensing, with adjustable settings and easy I2C connectivity for quick integration.


The VCNL4030 is a handy two-in-one sensor, with a proximity sensor that works from 0 to 300mm (about 12 inches) and light sensor with range of 0.004 to 16,768 lux.

We've all been there. That thing is close but how close? When you need to measure a small distance with reasonable accuracy, such as the rough height of particularly calm bumble bee, the VCNL4030 Proximity Sensor from Vishay can do that for you. If perchance you also needed to measure the amount of light at the same time, perhaps to let the bee know if it's time for bed, you're in luck! The VCNL4030 can do that too (bumble bee not included, we tried putting it in the anti-static bag but it started buzzing in a threatening manner)

Please note: there's quite a few chips in the VCNL4xxx series, with varying ranges and prices. While the sensors look and sound similar, the firmware for these chips is not identical, so you cannot swap the VCNL4030 for VCNL4040 or others without recompiling with the respective libraries!

The VCNL4030 has a nice set of configuration knobs that let you tweak both the proximity sensor (PS) and light sensor (ALS) - for example integration time, dynamic range and sensitivity. Higher integration times mean slower conversion but you can measure dimmer light more precisely. Conversely shorter times mean fast conversion, and can measure brighter lights without oversaturating the sensor. For proximity you can also set up the duty cycle and built-in IR LED current. This lets you balance conversion speed, measurement range, precision and power usage as necessary.

To make life easier so you can focus on your important work, we've taken the VCNL4030 and put it onto a breakout PCB along with support circuitry to let you use this little wonder with 3.3V (Feather/Raspberry Pi) or 5V (Arduino/ Metro328) logic levels. Additionally since it speaks I2C you can easily connect it up with two wires (plus power and ground!). We've even included SparkFun qwiic compatible STEMMA QT connectors for the I2C bus so you don't even need to solder! Just wire up to your favourite micro and you can use our CircuitPython/Python or Arduino drivers to easily interface with the VCNL4030 and make approximate approximations of proximity in no time!

Please note: Feather and QT Cable are not included.

Features

  • Dual-function sensor: proximity (0-300mm) and ambient light (0.004-16,768 lux)
  • I2C interface with STEMMA QT/Qwiic connectors (no soldering required)
  • Compatible with 3.3V and 5V logic levels
  • Configurable integration time, dynamic range, and sensitivity
  • Adjustable IR LED current and duty cycle for proximity sensing
  • Includes CircuitPython/Python and Arduino libraries
  • Breakout PCB with support circuitry included

Specifications

  • Product Dimensions: 25.5mm x 17.7mm x 4.7mm
  • Product Weight: 1.7g

Resources

  • Primary Guide

Package Contents

  • 1x Adafruit VCNL4030 Proximity and Lux Sensor
  • 1x 6-pin header

Please note: Feather and QT Cable are not included. 

$7.76
Adafruit VCNL4030 Proximity and Lux Sensor—
$7.76

Product Information

Shipping & Returns

Description

The VCNL4030 Sensor combines proximity detection up to 300mm with ambient light sensing, with adjustable settings and easy I2C connectivity for quick integration.


The VCNL4030 is a handy two-in-one sensor, with a proximity sensor that works from 0 to 300mm (about 12 inches) and light sensor with range of 0.004 to 16,768 lux.

We've all been there. That thing is close but how close? When you need to measure a small distance with reasonable accuracy, such as the rough height of particularly calm bumble bee, the VCNL4030 Proximity Sensor from Vishay can do that for you. If perchance you also needed to measure the amount of light at the same time, perhaps to let the bee know if it's time for bed, you're in luck! The VCNL4030 can do that too (bumble bee not included, we tried putting it in the anti-static bag but it started buzzing in a threatening manner)

Please note: there's quite a few chips in the VCNL4xxx series, with varying ranges and prices. While the sensors look and sound similar, the firmware for these chips is not identical, so you cannot swap the VCNL4030 for VCNL4040 or others without recompiling with the respective libraries!

The VCNL4030 has a nice set of configuration knobs that let you tweak both the proximity sensor (PS) and light sensor (ALS) - for example integration time, dynamic range and sensitivity. Higher integration times mean slower conversion but you can measure dimmer light more precisely. Conversely shorter times mean fast conversion, and can measure brighter lights without oversaturating the sensor. For proximity you can also set up the duty cycle and built-in IR LED current. This lets you balance conversion speed, measurement range, precision and power usage as necessary.

To make life easier so you can focus on your important work, we've taken the VCNL4030 and put it onto a breakout PCB along with support circuitry to let you use this little wonder with 3.3V (Feather/Raspberry Pi) or 5V (Arduino/ Metro328) logic levels. Additionally since it speaks I2C you can easily connect it up with two wires (plus power and ground!). We've even included SparkFun qwiic compatible STEMMA QT connectors for the I2C bus so you don't even need to solder! Just wire up to your favourite micro and you can use our CircuitPython/Python or Arduino drivers to easily interface with the VCNL4030 and make approximate approximations of proximity in no time!

Please note: Feather and QT Cable are not included.

Features

  • Dual-function sensor: proximity (0-300mm) and ambient light (0.004-16,768 lux)
  • I2C interface with STEMMA QT/Qwiic connectors (no soldering required)
  • Compatible with 3.3V and 5V logic levels
  • Configurable integration time, dynamic range, and sensitivity
  • Adjustable IR LED current and duty cycle for proximity sensing
  • Includes CircuitPython/Python and Arduino libraries
  • Breakout PCB with support circuitry included

Specifications

  • Product Dimensions: 25.5mm x 17.7mm x 4.7mm
  • Product Weight: 1.7g

Resources

  • Primary Guide

Package Contents

  • 1x Adafruit VCNL4030 Proximity and Lux Sensor
  • 1x 6-pin header

Please note: Feather and QT Cable are not included. 

Adafruit VCNL4030 Proximity and Lux Sensor | The Pi Hut