tfmini 2.0.0.0
|
TFmini Click is an adapter Click boardâ„¢ used to interface a compatible ToF (Time of Flight) LiDAR sensor with the host MCU. This board features one four positions 1.25mm connector suitable for a TFmini LiDAR module (TFmini Plus and TFmini-S) specially made to measure an object's distance. Depending on the used LiDAR module, it is possible to achieve different measurement ranges and the use of a different serial interface, such as the UART or I2C. This Click boardâ„¢ is suitable for various industrial environments like pedestrian detection, vehicle testing, and altitude.
We provide a library for the TFmini 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 TFmini Click driver.
tfmini_cfg_setup
Config Object Initialization function. tfmini_init
Initialization function. tfmini_default_cfg
Click Default Configuration function. tfmini_get_firmware_version
This function reads the sensor firmware version. tfmini_get_measurement
This function reads the output data frame and obtains the distance, strength and temperature values from it. tfmini_send_frame
This function sends a command frame to the sensor. This example demonstrates the use of TFmini click board by reading the measurements from the attached TFmini-S or TFmini Plus sensors.
The demo application is composed of two sections :
Initializes the driver and the click board, and reads the firmware version of the attached sensor.
Reads the target distance, signal strength and the internal sensor temperature every 100ms approximately, and displays the results on 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.