Cap Extend 3 Click Board
Cap Extend 3 Click Board
The Cap Extend 3 Click Board™ features four capacitive sensor pads integrated on the PCB, that can sense touch through a variety of different materials. This Click Board™ can sense touch through plastic, wood, or even metal, thanks to the proprietary Metal over Capacitive technology. All these materials can be used to protect the surface of the PCB and sensor pad traces, allowing the implementation of all kinds of human-machine interfaces and seamless integration of the touch-sensitive buttons into various kinds of front panels. The Click Board™ also features a connector used for connecting to external sensors.
Features like the multi-stage active noise suppression filtering, automatic environmental compensation, high signal-to-noise ratio (SNR) and support for a wide range of sensor pad shapes and sizes, allow this device to be used as a reliable replacement for buttons or switches in many applications, including light switches, office equipment and toys, display and keypad backlight activation, and similar applications where a reliable and aesthetically pleasing button alternative is required.
Software Support
We provide a library for the Cap Extend 3 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 GPIO driver and click driver functions, which detect a touch on determined pins. For more details, check the documentation.
Key functions
uint8_t capextend3_Touch_0()
- The function reads a state of the AN pin.
uint8_t capextend3_Touch_1()
- The function reads a state of the RST pin.
uint8_t capextend3_Touch_2()
- The function reads a state of the CS pin.
uint8_t capextend3_Touch_3()
- The function reads a state of the INT pin.
uint8_t capextend3_Touch_4()
- The function reads a state of the PWM pin.
Example Description
The demo application is composed of three sections:
- System Initialization - Initializes AN, RST, CS, PWM, INT pin as INPUT.
- Application Initialization - Initializes GPIO Driver.
- Application Task - (code snippet) - The USB UART shows the number of the button which is being touched.
void applicationTask() { touch_1 = capextend3_Touch_1(); touch_0 = capextend3_Touch_0(); touch_3 = capextend3_Touch_3(); touch_4 = capextend3_Touch_4(); if( touch_0 == 0 ) mikrobus_logWrite("Touch 0 ",_LOG_LINE); if( touch_1 == 0 ) mikrobus_logWrite("Touch 1 ",_LOG_LINE); if( touch_3 == 0 ) mikrobus_logWrite("Touch 3 ",_LOG_LINE); if( touch_4 == 0 ) mikrobus_logWrite("Touch 4 ",_LOG_LINE); Delay_ms( 100 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other MikroElektronika libraries used in the example:
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a 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 Extend 3 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 Extend 3 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.