Adafruit VCNL4040 Proximity and Lux Sensor - STEMMA QT

SKU: ADA4161 Brand: Adafruit
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...
$11.50 AUD, inc GST
$10.45 AUD, exc GST

In stock, ships same business day if ordered before 2PM
Delivered by Tue, 26th of Nov

Quantity Discounts:

  • 10-25 $10.04 (exc GST)
  • 25+ $9.73 (exc GST)
- +

2 from local stock, 1 supplier stock; your order will dispatch between Dec 1 to Dec 10. And yes, stock levels and lead times are accurate!

Shipping:

  • $7+ Standard (5+ days*, tracked)
  • $11+ Express (2+ days*, tracked)
  • FREE Pickup (Newcastle only - must order online*)

Shipping costs may increase for heavy products or large orders.

Exact shipping can be calculated on the view cart page.

*Conditions apply, see shipping tab below.

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.

Adafruit have 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!).  Adafruit have 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 Adafruit's 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 Adafruit are 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

    Product Comments

    Exact shipping can be calculated on the view cart page (no login required).

    Products that weigh more than 0.5 KG may cost more than what's shown (for example, test equipment, machines, >500mL liquids, etc).

    We deliver Australia-wide with these options (depends on the final destination - you can get a quote on the view cart page):

    • $3+ for Stamped Mail (typically 10+ business days, not tracked, only available on selected small items)
    • $7+ for Standard Post (typically 6+ business days, tracked)
    • $11+ for Express Post (typically 2+ business days, tracked)
    • Pickup - Free! Only available to customers who live in the Newcastle region (must order online and only pickup after we email to notify you the order is ready). Orders placed after 2PM may not be ready until the following business day.

    Non-metro addresses in WA, NT, SA & TAS can take 2+ days in addition to the above information.

    Some batteries (such as LiPo) can't be shipped by Air. During checkout, Express Post and International Methods will not be an option if you have that type of battery in your shopping cart.

    International Orders - the following rates are for New Zealand and will vary for other countries:

    • $12+ for Pack and Track (3+ days, tracked)
    • $16+ for Express International (2-5 days, tracked)

    If you order lots of gear, the postage amount will increase based on the weight of your order.

    Our physical address (here's a PDF which includes other key business details):

    Unit 18, 132 Garden Grove Parade
    Adamstown
    NSW, 2289
    Australia

    Take a look at our customer service page if you have other questions such as "do we do purchase orders" (yes!) or "are prices GST inclusive" (yes they are!). We're here to help - get in touch with us to talk shop.

    Have a product question? We're here to help!

    Write Your Own Review

    Guides

    The Maker Revolution

    The Maker Revolution celebrates the creation of new devices and the modification of existing ones - ...
    The Maker Revolution celebrates the creation of new devices and the modification of existing ones - ...

    Projects

    Pi Zero Motion Sensing Camera

    The Pi Zero Motion Sensing Camera is a portable security camera using a Pi Zero 2W, Pi Zero camera,...
    The Pi Zero Motion Sensing Camera is a portable security camera using a Pi Zero 2W, Pi Zero camera,...

    555 Timer Step Sequencer Synthesiser

    If you, like me, have been inhaling so much flux that the bronchioles of your lungs have mutated to...
    If you, like me, have been inhaling so much flux that the bronchioles of your lungs have mutated to...

    Wireless QI Phone Charger Powered by Raspberry Pi

    I have a new phone and want the battery health to last as long as possible. Charging it to 100% ove...
    I have a new phone and want the battery health to last as long as possible. Charging it to 100% ove...
    Feedback

    Please continue if you would like to leave feedback for any of these topics:

    • Website features/issues
    • Content errors/improvements
    • Missing products/categories
    • Product assignments to categories
    • Search results relevance

    For all other inquiries (orders status, stock levels, etc), please contact our support team for quick assistance.

    Note: click continue and a draft email will be opened to edit. If you don't have an email client on your device, then send a message via the chat icon on the bottom left of our website.

    Makers love reviews as much as you do, please follow this link to review the products you have purchased.