proximity21
2.1.0.0
|
Proximity 21 Click is a compact add-on board for high-precision proximity sensing and short-range distance measurements. This board features the VL53L4ED, a Time-of-Flight (ToF) proximity sensor from STMicroelectronics, known for its extended temperature capability and accuracy. This sensor provides a field of view (FoV) of 18°, measuring distances from 1mm up to 1300mm in standard conditions and up to 1150mm in extended temperature environments, with reliable performance even in ambient light conditions up to 5klx. The Click board™ features a unique Click Snap design, making the main IC area movable for versatile implementation.
We provide a library for the Proximity 21 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 21 Click driver.
proximity21_cfg_setup
Config Object Initialization function. proximity21_init
Initialization function. proximity21_default_cfg
Click Default Configuration function. proximity21_get_gpio1_pin
This function returns the GPIO1 (interrupt) pin logic state. proximity21_get_result
This function gets the results reported by the sensor. proximity21_clear_interrupt
This function clears the data ready interrupt. This example demonstrates the use of Proximity 21 Click board by reading and displaying the target distance in millimeters on the USB UART.
The demo application is composed of two sections :
Initializes the driver and performs the Click default configuration.
Waits for a data ready interrupt, then reads the measurement results and logs
the target distance (millimeters) and signal quality (the higher the value the better the signal quality) to the USB UART.
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.