Search

Cables & Connectors

Electronics Components

Motors & Controllers

On Sale items!

Get Professional Support

BBC Micro:bit

Robotics

On sale items!

Announcement


Check out our latest news to find out more about events, opportunities and partnerships.

Esmes' Electronics


Esmes' Electronics is a simple introduction to using the micro:bit written by a year 5 student.

Troys' tutorials


Learn with Troy by asking for support and, he will post a tutorial here to benefit all of our visitors. Free advice!

Feature teacher


Be inspired by some of our favorite teachers using our products.

Get professional support


Contact us now to request your own tutorial or learning resource.

This section doesn’t currently include any content. Add content to this section using the sidebar.

Image caption appears here

Add your deal, information or promotional text

SparkFun Proximity Sensor Breakout - 20cm, VCNL4040 (Qwiic)

3 items left

The SparkFun Proximity Sensor Breakout is a simple IR presence and ambient light sensor utilizing the VCNL4040. This type of sensor is often seen in automatic towel and soap dispensers or automatic faucets. With the ability to detect objects qualitatively up to 20cm away, you will be able to detect if something is there and if it is closer or further away since the last reading. Utilizing our handy Qwiic system, no soldering is required to connect it to the rest of your system. However, we still have broken out 0.1\"-spaced pins in case you prefer to use a breadboard.

The SparkFun Proximity Sensor Breakout is a great digital alternative to the popular analog based Sharp sensors. The VCNL4040 has no dead zone and can read all the way up to the face of the sensor. This sensor also has an ambient light sensor built it which is excellent if you need a digital light sensor for your next glitter cannon. If you need quantitative distance readings (for example sensing that an object is 177mm away) check out the SparkFun [2 meter](https://www.sparkfun.com/products/14539) and [4 meter](https://www.sparkfun.com/products/14667) Time of Flight (ToF) sensors with mm accuracy.

We\'ve written an Arduino library to flex every feature of this sensor. You can grab it from the Arduino Library Manager or from the [SparkFun repo](https://github.com/sparkfun/SparkFun_VCNL4040_Arduino_Library).

**Note:** The I2C address of the VCNL4040 is 0x60 and is hardware defined. A multiplexer/Mux is required to communicate to multiple VCNL4040 sensors on a single bus. If you need to use more than one VCNL4040 sensor consider using the [Qwiic Mux Breakout](https://www.sparkfun.com/products/16784).

***

*The [SparkFun Qwiic Connect System](https://www.sparkfun.com/qwiic) is an ecosystem of I2C sensors, actuators, shields and cables that make prototyping faster and less prone to error. All Qwiic-enabled boards use a common 1mm pitch, 4-pin JST connector. This reduces the amount of required PCB space, and polarized connections mean you can’t hook it up wrong.*

*The VCNL4040 Proximity Sensor Breakout can also be automatically detected, scanned, configured, and logged using the [OpenLog Artemis](https://www.sparkfun.com/products/16832) datalogger system. No programming, soldering, or setup required!*

***

Need a custom board? This component can be found in SparkFun\'s À La Carte board builder. You can have a custom design fabricated with this component - and your choice of hundreds of other sensors, actuators and wireless devices - delivered to you in just a few weeks.

***

->

Search