ldc2 2.0.0.0
|
LDC 2 Click is a compact add-on board that measures inductance change which a conductive target causes when it moves into the inductor's AC magnetic field. This board features the LDC1041, inductance-to-digital converter (LDC) for inductive sensing solutions from Texas Instruments.
We provide a library for the LDC2 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 LDC2 Click driver.
ldc2_cfg_setup
Config Object Initialization function. ldc2_init
Initialization function. ldc2_default_cfg
Click Default Configuration function. ldc2_measure_resonance_impedance
This function measures the resonance impedance and proximity data. ldc2_measure_inductance
This function measures the inductance and sensor frequency. ldc2_get_sensor_frequency
This function reads and calculates the sensor frequency. This example demonstrates the use of LDC 2 click board.
The demo application is composed of two sections :
Initializes the driver and configures the click board.
Measures the resonance impedance and proximity as well as the inductance and sensor frequency approximately every 200ms and displays all values 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.