lightranger5 2.0.0.0
|
LightRanger 5 Click is a compact add-on board that contains a ranging sensor with multi-target detection. This board features the TMF8801, a dToF (direct time of flight) optical distance sensor achieving up to 2500mm target detection distance from company AMS-TAOS.
We provide a library for the LightRanger5 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 LightRanger5 Click driver.
lightranger5_cfg_setup
Config Object Initialization function. lightranger5_init
Initialization function. lightranger5_default_cfg
Click Default Configuration function. lightranger5_get_status
LightRanger 5 get status function. lightranger5_set_factory_calib_data
LightRanger 5 set factory calib data function. lightranger5_measure_distance
LightRanger 5 measure distance function. This is an example that demonstrates the use of the LightRanger 5 click board. This demo application shows an example of distance measurement.
The demo application is composed of two sections :
Initialization of I2C module, log UART and additional pins. After driver initialization and default settings, the app performs and check factory calibrationa and check and wait for OK status. This process takes a few seconds, so please wait. After current status is OK, app performs the configuration of the TMF8801 sensor: read and write calibration data, set algorithm state and command data.
This is an example that shows the use of a LightRanger 5 click board. A new data ready is checked as soon as possible which signals the time required for the ranging sensor to perform the distance measurement. Results are being sent to the Usart Terminal where you can track their changes.
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.