proximity14
2.0.0.0
|
Proximity 14 Click is a compact add-on board that contains a close-range proximity sensing solution. This board features the VCNL36825T, a fully integrated proximity sensor from Vishay Semiconductors.
We provide a library for the Proximity14 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 Proximity14 Click driver.
proximity14_cfg_setup
Config Object Initialization function. proximity14_init
Initialization function. proximity14_default_cfg
Click Default Configuration function. proximity14_generic_write
Writing function. proximity14_generic_read
Reading function. proximity14_get_int
Get INT pin state. 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 demo application is composed of two sections :
Initialization of host communication modules (UART, I2C) and
additional pins. Reads device ID and sets default configuration.
In span of 100ms reads proximity data from device and logs result.
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.