Cap Touch Click Board
Cap Touch Click Board
The Cap Touch Click Board™ is a capacitive touch sensing button, integrated on a Click Board™. It can be activated by touch. This Click Board™ can sense touch even through plastic, wood, or other dielectric materials, which can be used to protect the surface of the PCB and the sensor pad trace itself. Unlike the mechanical button, the capacitive touch button lasts much longer, it is not prone to damage and wears over time and it is very reliable.
Software Support
We provide a library for the Cap Touch Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library Description
Initializes and defines GPIO driver and driver's functions. This function determines in which mode Cap Touch will works. The click can use a PWM library for setting the click in sync mode. Driver library also checks OUT pin state.
Key functions:
void captouch_setFastMode(void);
- Function sets fast mode
void captouch_setLowPowerMode(void);
- Function sets low power mode
uint8_t captouch_getOut(void);
- Function gets state of OUT pin
Example Description
The demo application is composed of three sections:
- System Initialization - Initializes peripherals and pins.
- Application Initialization - Initializes click driver.
- Application Task - Sets the click on fast mode or low power mode and detects changes on OUT pin. The click also can go to sync mode by using a PWM library. By using a PWM library we can set period of PWM timer.
void applicationTask() { uint8_t out = 0; captouch_setFastMode(); //captouch_setLowPowerMode(); out = captouch_getOut(); if (out != 0) { mikrobus_logWrite( "Touch detected", _LOG_LINE ); } }
The full application code, and ready to use projects can be found on our LibStock page.
Additional Notes and Information
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.
MIKROSDK
The Cap Touch Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Cap Touch Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.