proximity15 2.0.0.0
|
Proximity 15 Click is a compact add-on board that contains a close-range proximity sensing solution. This board features the VL53L1, a state-of-the-art, Time-of-Flight (ToF), a laser-ranging miniature sensor from STMicroelectronics.
We provide a library for the Proximity15 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 Proximity15 Click driver.
proximity15_cfg_setup
Config Object Initialization function. proximity15_init
Initialization function. proximity15_default_cfg
Click Default Configuration function. proximity15_get_distance
This function waits for the data ready, then reads the distance measured by the sensor in milimeters and clears interrupts. proximity15_set_inter_measurement_period
This function programs the inter measurement period in miliseconds. proximity15_set_timing_budget
This function programs the timing budget in miliseconds. This example demonstrates the use of Proximity 15 click board.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which
enables the sensor and sets it to long distance mode with 50ms timing budget and 100ms inter measurement periods.
Reads the distance measured by the sensor in milimeters and displays the value on the USB UART approximately every 100ms.
In order to measure longer distance, increase the timing budget and inter measurement periods.
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.