proximity20
2.1.0.0
|
Proximity 20 Click is a compact add-on board for short-range proximity sensing applications up to 200mm. This board features two VCNL36828P proximity sensors from Vishay Semiconductor. Key features include a 940nm VCSEL for immunity to a red glow, intelligent cancellation technology to minimize crosstalk, and a smart persistence scheme for reduced measurement response time.
We provide a library for the Proximity 20 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.
This library contains API for Proximity 20 Click driver.
proximity20_cfg_setup
Config Object Initialization function. proximity20_init
Initialization function. proximity20_default_cfg
Click Default Configuration function. proximity20_read_proximity
This function reads the proximity data from U2 and U3 sensors. proximity20_set_device_address
This function sets the device slave address. proximity20_enable_device
This function enables the device by setting the EN pin to high logic state. This example demonstrates the use of Proximity 20 Click board by reading and displaying the proximity data on the USB UART.
The demo application is composed of two sections :
Initializes the driver and logger, and performs the Click default configuration.
Reads the proximity data from 2 sensors and displays the results on the USB UART every 200ms. The higher the proximity value, the closer the detected object.
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:
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. UART terminal is available in all MikroElektronika compilers.