ldctouch 2.0.0.0
|
LDC Touch Click is a compact add-on board optimized for inductive touch applications. This board features the LDC3114-Q1, a four-channel inductance-to-digital converter for low-power proximity and touch-button sensing from Texas Instruments. It comes with an adjustable sensitivity per input channel and operational power mode selection and measures frequency shifts caused by micro-deflection in the conductive targets formed by button presses. These presses are reported through a compatible I2C interface beside four LED indicators for its visual indication. This Click boardâ„¢ enables touch button design for human-machine interface and precise linear position sensing of metal targets for automotive, consumer, and industrial applications by allowing access to the raw data representing the inductance value.
We provide a library for the LDC Touch 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 LDC Touch Click driver.
ldctouch_cfg_setup
Config Object Initialization function. ldctouch_init
Initialization function. ldctouch_default_cfg
Click Default Configuration function. ldctouch_get_int_pin
This function returns the INT pin logic state. ldctouch_get_data
This function reads status, out_state, and all buttons raw data. ldctouch_set_operation_mode
This function sets the operation mode. This example demonstrates the use of LDC Touch click board by configuring
the buttons to trigger on finger press, and reading the buttons state in the loop.
The demo application is composed of two sections :
Initializes the driver and configures the buttons to be active on finger press.
Waits for the button active event interrupt and then reads and displays the buttons
state and their raw data on the USB UART every 200ms approximately.
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.