Designed to revolutionize user interfaces, our capacitive touch buttons offer a sleek and modern alternative to traditional mechanical buttons, elevating the overall design aesthetics of your solutions
A
A
Hardware Overview
How does it work?
Cap Extend 3 Click is based on the MTCH105, a five-channel proximity/touch controller with active guarding capability from Microchip. The MTCH105 IC uses a sophisticated scan optimization algorithm to attenuate noise from the signal actively. A good SNR is an essential prerequisite when implementing reliable capacitive touch detection. Good SNR, automatic environmental compensation, low power consumption, and simple I/O interface make this IC a perfect solution for building the Cap Extend 3 Click with four reliable touchpad sensors. The surface of Cap Extend 3 click is protected with acrylic glass. If a touch event is detected on one of the sensors connected to input pins of the IC (MTI0 to MTI4), the state of the corresponding channel output pin (MTO0 to MTO4) will be pulled to a logic LOW level, indicating that the channel has been activated - touch has been detected on that specific channel. This will also be indicated by a LED related to the activated channel. The output pins are working in an open drain configuration, thus, are pulled HIGH by the onboard resistors. Although the IC has five channels, only four buttons are implemented, as one of the channels is multiplexed with the active guard functionality. The guard control (GC) pin is multiplexed with the MTO2 pin, while the GUARD pin is multiplexed with the MTI2 pin. If the GC pin is pulled down to a GND level, it will set the MTI2/GUARD pin into the GUARD mode, which can absorb the noise around
the sensor pads. A PCB trace connected to this pin surrounds all the sensor pads, providing active guarding and enhancing the SNR significantly. It should be noted that when the Active Guard is activated, a LED on the MTO2 pin will be lit, indicating that the Guard function is enabled. A small onboard SMD jumper, labeled as JP2, can be left unpopulated, disconnecting the guard pin from the network of PCB traces that surround the sensor pads. This option is useful when the external sensor pads are used or when the active guard function is not required so that the MTI2/MTO2 can be used as an additional external cap touch sensor. Cap Extend 3 click also allows connecting of external sensors through the connector labeled as J1. The MTCH105 allows sensors of various sizes and shapes to be used and sensors made of several different materials - carbon printing on plastic film, Indium Tin Oxide (ITO) pad, wire/cable, and more. The external sensors connector allows expanding touch capabilities of the Cap Extend 3 beyond the click itself. All five channels are routed to this connector so that users can decide on their preferred sensor configuration and if the active guard feature will be used or replaced by another sensor. The sensitivity of the sensor pads can be adjusted via the onboard potentiometer connected between the VCC and GND. The potentiometer acts as a voltage divider, with its wiper connected to the MTSA pin of the MTCH105. Raising the
voltage level of this pin will result in the lower sensitivity of the MTCH105 inputs. The onboard SMD jumper labeled as the MODE SEL is used to select the working mode of the device. The device can work in either normal or low-power mode. While working in normal mode, the burst scan of the inputs will happen continuously, providing the shortest detection time. When set to work in the low power mode, the device will have a delay of 256ms between each burst scan interval. It will allow for significantly reduced power consumption, but the touch detection can be longer in this case. The device will work normally when the MTPM pin is set to the VCC level by switching the MODE SEL jumper to the position labeled HIGH. When the MODE SEL jumper is set to the position labeled as LOW, the MTPM pin will be set to the GND level, and the device will work in the low power mode. The device also features a timeout reset. This function is useful when a foreign object or its state obstructs the sensor pad and is otherwise stuck as activated. When the channel stays activated for 10 seconds, the corresponding channel will be reset and recalibrated. All the five-channel output pins of the MTCH105 are routed to the mikroBUS™ so that the MCU can easily read and detect their states. The channels are routed to the AN, PWM, INT, RST, and CS pins of the mikroBUS™.
Features overview
Development board
Arduino UNO is a versatile microcontroller board built around the ATmega328P chip. It offers extensive connectivity options for various projects, featuring 14 digital input/output pins, six of which are PWM-capable, along with six analog inputs. Its core components include a 16MHz ceramic resonator, a USB connection, a power jack, an
ICSP header, and a reset button, providing everything necessary to power and program the board. The Uno is ready to go, whether connected to a computer via USB or powered by an AC-to-DC adapter or battery. As the first USB Arduino board, it serves as the benchmark for the Arduino platform, with "Uno" symbolizing its status as the
first in a series. This name choice, meaning "one" in Italian, commemorates the launch of Arduino Software (IDE) 1.0. Initially introduced alongside version 1.0 of the Arduino Software (IDE), the Uno has since become the foundational model for subsequent Arduino releases, embodying the platform's evolution.
Microcontroller Overview
MCU Card / MCU

Architecture
AVR
MCU Memory (KB)
32
Silicon Vendor
Microchip
Pin count
28
RAM (Bytes)
2048
You complete me!
Accessories
Click Shield for Arduino UNO has two proprietary mikroBUS™ sockets, allowing all the Click board™ devices to be interfaced with the Arduino UNO board without effort. The Arduino Uno, a microcontroller board based on the ATmega328P, provides an affordable and flexible way for users to try out new concepts and build prototypes with the ATmega328P microcontroller from various combinations of performance, power consumption, and features. The Arduino Uno has 14 digital input/output pins (of which six can be used as PWM outputs), six analog inputs, a 16 MHz ceramic resonator (CSTCE16M0V53-R0), a USB connection, a power jack, an ICSP header, and reset button. Most of the ATmega328P microcontroller pins are brought to the IO pins on the left and right edge of the board, which are then connected to two existing mikroBUS™ sockets. This Click Shield also has several switches that perform functions such as selecting the logic levels of analog signals on mikroBUS™ sockets and selecting logic voltage levels of the mikroBUS™ sockets themselves. Besides, the user is offered the possibility of using any Click board™ with the help of existing bidirectional level-shifting voltage translators, regardless of whether the Click board™ operates at a 3.3V or 5V logic voltage level. Once you connect the Arduino UNO board with our Click Shield for Arduino UNO, you can access hundreds of Click boards™, working with 3.3V or 5V logic voltage levels.
Used MCU Pins
mikroBUS™ mapper
Take a closer look
Click board™ Schematic

Step by step
Project assembly
Track your results in real time
Application Output
1. Application Output - In Debug mode, the 'Application Output' window enables real-time data monitoring, offering direct insight into execution results. Ensure proper data display by configuring the environment correctly using the provided tutorial.

2. UART Terminal - Use the UART Terminal to monitor data transmission via a USB to UART converter, allowing direct communication between the Click board™ and your development system. Configure the baud rate and other serial settings according to your project's requirements to ensure proper functionality. For step-by-step setup instructions, refer to the provided tutorial.

3. Plot Output - The Plot feature offers a powerful way to visualize real-time sensor data, enabling trend analysis, debugging, and comparison of multiple data points. To set it up correctly, follow the provided tutorial, which includes a step-by-step example of using the Plot feature to display Click board™ readings. To use the Plot feature in your code, use the function: plot(*insert_graph_name*, variable_name);. This is a general format, and it is up to the user to replace 'insert_graph_name' with the actual graph name and 'variable_name' with the parameter to be displayed.

Software Support
Library Description
This library contains API for Cap Extend 3 Click driver.
Key functions:
capextend3_Touch_0
- Function reads state of AN pincapextend3_Touch_1
- Function reads state of RST pincapextend3_Touch_2
- Function reads state of CS pin
Open Source
Code example
The complete application code and a ready-to-use project are available through the NECTO Studio Package Manager for direct installation in the NECTO Studio. The application code can also be found on the MIKROE GitHub account.
/*!
* \file
* \brief Cap Extend 3 Click example
*
* # Description
* This application features four capacitive sensor pads,
* that can sense touch through a variety of different materials.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initialize GPIO Driver
*
* ## Application Task
* Depending on which button is touched the usb uart
* will show number of that button.
*
* \author MikroE Team
*
*/
// ------------------------------------------------------------------- INCLUDES
#include "board.h"
#include "log.h"
#include "capextend3.h"
// ------------------------------------------------------------------ VARIABLES
static capextend3_t capextend3;
static log_t logger;
// ------------------------------------------------------ APPLICATION FUNCTIONS
void application_init ( void )
{
log_cfg_t log_cfg;
capextend3_cfg_t cfg;
/**
* Logger initialization.
* Default baud rate: 115200
* Default log level: LOG_LEVEL_DEBUG
* @note If USB_UART_RX and USB_UART_TX
* are defined as HAL_PIN_NC, you will
* need to define them manually for log to work.
* See @b LOG_MAP_USB_UART macro definition for detailed explanation.
*/
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info(&logger, "---- Application Init ----");
// Click initialization.
capextend3_cfg_setup( &cfg );
CAPEXTEND3_MAP_MIKROBUS( cfg, MIKROBUS_1 );
capextend3_init( &capextend3, &cfg );
}
void application_task ( void )
{
uint8_t touch_0;
uint8_t touch_1;
uint8_t touch_2;
uint8_t touch_3;
uint8_t touch_4;
touch_0 = capextend3_touch_0( &capextend3 );
touch_1 = capextend3_touch_1( &capextend3 );
touch_2 = capextend3_touch_2( &capextend3 );
touch_3 = capextend3_touch_3( &capextend3 );
touch_4 = capextend3_touch_4( &capextend3 );
if ( touch_2 == 0 )
{
log_printf( &logger, "Active Guard\r\n" );
}
if ( touch_0 == 0 )
{
log_printf( &logger, "Touch 0 \r\n" );
}
if ( touch_1 == 0 )
{
log_printf( &logger, "Touch 1 \r\n" );
}
if ( touch_3 == 0 )
{
log_printf( &logger, "Touch 3 \r\n" );
}
if ( touch_4 == 0 )
{
log_printf( &logger, "Touch 4 \r\n" );
}
if ( ( touch_0 && touch_1 && touch_2 && touch_3 && touch_4 ) == 0 )
{
log_printf( &logger, "------------------------\r\n" );
}
Delay_ms( 100 );
}
void main ( void )
{
application_init( );
for ( ; ; )
{
application_task( );
}
}
// ------------------------------------------------------------------------ END