How to order Contact us Distributors Reviews
Register / Login

Select currency

If you'd like to view estimated pricing in other currencies then please select a currency below below.

GBP USD EUR JPY AUD NOK CHF NZD CAD

Please note:

  • Currency conversions are estimates and for information only
  • Your order will be billed in GBP
  • All prices exclude VAT / other local sales taxes
  • Shipping calculated during checkout


Adafruit VCNL4040 Proximity and Lux Sensor - STEMMA QT

by Adafruit
An image of Adafruit VCNL4040 Proximity and Lux Sensor - STEMMA QT An image of Adafruit VCNL4040 Proximity and Lux Sensor - STEMMA QT An image of Adafruit VCNL4040 Proximity and Lux Sensor - STEMMA QT An image of Adafruit VCNL4040 Proximity and Lux Sensor - STEMMA QT An image of Adafruit VCNL4040 Proximity and Lux Sensor - STEMMA QT

The VCNL4040 is a handy two-in-one sensor, with a proximity sensor that works from 0 to 200mm (about 7.5 inches) and light sensor with range of 0.0125 to 6553 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 VCNL4040 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 to know if it's time for bed, you're in luck! The VCNL4040 can do that too (bumble bee not included, Adafruit tried putting it in the anti-static bag but it started buzzing in a threatening manner)

"OK, finally I can get started on my bee measuring and light sensing project, but how do I use it?" you say. To make life easier so you can focus on your important work, Adafruit have taken the VCNL4040 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!).  They'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 favorite micro and you can use the CircuitPython/Python or Arduino drivers to easily interface with the VCNL4040 and make approximate approximations of proximity in no time!

To give you some ability to tune your measurements for your situation, the VCNL4040 lets you adjust the integration time (how long light is being measured) to set the sensitivity of your measurements depending on the lighting conditions. With an integration time of 80ms, since the sensor is only collecting measurements for a short period of time, each measured bit of light represents a larger amount of light. For this reason the maximum range in lux for the 80ms integration time is 6553.5 lux.

If you use a longer integration time and get the same amount of light measurements "events", you know that there is comparatively less light because we're waiting around longer for light to show up and getting the same number, meaning the rate of light events is lower. For this reason at the maximum integration time of 640ms the VCNL4040 will only measure up to 819.2 lux.

It is also worth keeping in mind that as you increase the integration time you are also increasing the sensitivity and resolution within the measurement range

In addition to adjusting the sensitivity of light measurements, you can change the current and duty cycle of the IR LED that powers the proximity detection to adjust how sensitive proximity measurements are

TECHNICAL DETAILS

  • Diagrams, libraries, code examples, datasheets, and more are all in the learning tutorial
  • Product Dimensions: 25.3mm x 17.8mm x 4.6mm / 1.0" x 0.7" x 0.2"
  • Product Weight: 1.7g / 0.1oz

Reviews

User photos

The VCNL4040 is a handy two-in-one sensor, with a proximity sensor that works from 0 to 200mm (about 7.5 inches) and light sensor with range of 0.0125 to 6553 lux.

ADA4161

You must register for an account and be logged in to view pricing or place an order on the Pimoroni Wholesale store.

If you represent a school or university, a business, or reseller of Maker products then you can sign up for a wholesale account.

If you already have an account you can login to your account here.

Alternatively the easiest way to get your hands on the products we offer is to order them directly from our customer facing online store.

SKU
ADA4161
EAN
0606034879690
Brand
Adafruit
Stock available
0 units
Backorder not allowed on this product
Weight
5g

Video introduction

Guides & tutorials

Search

 

Region

Your search returned no results.

Subscribe

We'll keep you up to date with new product launches!

The good ship

We've been sailing the Maker seas offering our wares since 2012.

  • read about our history
  • what our customers say
  • find a local distributor
  • contact our business team

We manufacture all of our products locally at our workshop in Sheffield, UK

Under one roof

Pimoroni are your one-stop shop for bulk and education purchasing of Raspberry Pi, Pimoroni, micro:bit, Adafruit, Sparkfun, and many other brands.

If you have any questions about what we offer then drop us a line.

Pimoroni Ltd

Unit 1, Parkway Business Park,
Parkway Drive,
Sheffield,
S9 4WN,
United Kingdom

Registered in England and Wales:
Company №: 07510759
VAT Reg №: GB 140 8707 21