How does it work?
Proximity 14 Click as its foundation uses the VCNL36825T, a new fully integrated proximity sensor designed to increase efficiency and performance in consumer and industrial applications from Vishay Semiconductors. Featuring a vertical-cavity surface-emitting laser (VCSEL), the VCNL36825T combines a photodiode, signal processing IC, and 12-bit ADC in a compact SMD package, with a small 1.6mm light hole. With a range of 20cm, it also provides collision detection and features low power consumption down to 6.63µA to increase efficiency in these applications.
The VCNL36825T simplifies the use and design-in of a proximity sensor as no mechanical barriers are required to isolate the emitter from the detector optically. The proximity sensor uses intelligent cancellation to eliminate cross-talk, while a smart-persistence scheme ensures accurate sensing and faster response time. The VCSEL wavelength peaks at 940nm and has no visible “red-tail”.
Proximity 14 Click communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting Standard Mode operation with a clock frequency up to 100kHz and Fast Mode up to 400kHz. It also features an intelligent interrupt function that enables the sensor to work independently until a predefined proximity event or threshold occurs. It then sets an interrupt that requires the MCU to awaken, which reduces power consumption by eliminating polling communication traffic between the sensor and MCU.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before use with MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Proximity
Applications
Can be used for consumer and industrial applications because no mechanical barriers are required to isolate the emitter from the detector optically
On-board modules
VCNL36825T – fully integrated proximity sensor from Vishay Semiconductors
Key Features
Low power consumption, high precission, integrated proximity sensor with vertical cavity surface emitting laser, I2C configurable, interrupt feature, and more
Interface
I2C
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on Proximity 14 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
Proximity 14 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Operating Range | – | – | 200 | mm |
Proximity Resolution | – | 12 | – | bits |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the Proximity 14 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Proximity 14 Click driver.
Key functions:
proximity14_cfg_setup
– Config Object Initialization function.proximity14_init
– Initialization function.proximity14_default_cfg
– Click Default Configuration function.
Examples description
This example showcases the ability of the device to read proximity value. It can be configured to detect objects up to 20cm of distance.
The application is composed of three sections :
void application_task ( void ) { uint16_t temp_data = 0; proximity14_generic_read( &proximity14, PROXIMITY14_REG_DATA, &temp_data ); log_printf( &logger, " > Data: %urn", temp_data ); Delay_ms( 100 ); }
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Proximity14
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
mikroSDK
This Click board™ is supported with mikroSDK – MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.