Button Power Click
Button Power Click
Share
Button Power Click is a very interesting interactive gadget on a Click board™. It is an integrated capacitive touch sensor display in the form of a button. By utilizing an advanced capacitive touch sensing technology, the CTHS15CIC05ONOFF sensor can successfully replace the traditional mechanical button, allowing very simplified yet reliable user interfaces to be developed. Besides the touch detection, this sensor also features a green power symbol icon with backlight, which makes the Click board™ very useful for building various stylized and visually appealing interfaces.
The Click board™ is supported by the mikroSDK compliant library, which includes functions that simplify software development. The Click board™ comes as a fully tested product, ready to be used on a system equipped with mikroBUS™.
Featuring an advanced integrated touch sensor IC placed in a robust housing, able to sense the touch even when the hands are wet or when certain types of gloves are used, Button Power click represents an ideal solution for the development of interfaces for public gaming consoles and slot machines, media players, interfaces for various home appliances and other consumer equipment, and similar applications that can benefit from using a durable touch sensor in an attractive enclosure.
HOW DOES IT WORK?
Button Power click is equipped with the CTHS15CIC05ONOFF, a capacitive touch sensor display, by VCC (Visual Communications Company). This sensor is an all-in-one solution, an providing a capacitive touch sensing in an appealing housing, with the backlit power symbol icon on the top. There is a minimum number of pins used on this device: only four pins are exposed to the user. Besides the power supply pins (VCC and GND), two more pins are used. The touch detection is indicated by a HIGH logic level on the OUT pin of the CTHS15CIC05ONOFF sensor, while the IN pin is used as the power supply for two internal LEDs, which are connected in the common cathode configuration. The forward voltage of the LEDs is 3.2V typically. The OUT pin of the sensor is routed to the INT pin of the mikroBUS™, while the IN pin of the sensor is routed to the PWM pin of the mikroBUS™.
The power symbol icon on the top of the touch sensor is visible even when the backlight is off, thanks to the LEXAN™ polycarbonate film with an inverse print of the icon, placed on a top of the sensor. When the internal LEDs are turned ON, the light will pass through the translucent power symbol icon, resulting in a uniformly lit power symbol icon. An interesting lighting effect can be designed when touched, by applying a PWM signal to the IN pin.
The sensor IC, along with the sensing pad and two integrated LEDs, is enclosed in a small square casing, measuring 15mm by 15mm by 11mm. It forms a compact and robust touch button, which has many advantages over a mechanical button: it is not subject to wear since there are no moving parts, it does not exhibit any bouncing or chattering effect, it is durable and resistant to weather elements, etc. However, it can’t be used to close an electrical circuit, only to produce a logic signal, which is translated to appropriate action by the host MCU.
The sensor can be operated even with wet hands or while using certain types of gloves. The touch sensor can also be placed behind a clear glass or a plastic layer such as polycarbonate or acrylic, up to 3mm thick. Although the sensor will perform self-calibration after being powered, it is best to test its functionality in these cases, if the position is going to be fixed.
SPECIFICATIONS
Type | Capacitive |
Applications | An ideal solution for the development of various public gaming console and slot machine interfaces, media players, appliances and various consumer equipment interface applications, and similar applications that can benefit from using a durable touch sensor in an attractive housing |
On-board modules | CTHS15CIC05ONOFF, a capacitive touch sensor display, by VCC (Visual Communications Company) |
Key Features | An advanced integrated touch sensor IC placed in a robust and visually appealing housing with the backlit power symbol icon, able to sense the touch even when the hands are wet or when certain types of gloves are used. It can sense touch even behind a plastic layer or thin glass |
Interface | GPIO,PWM |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V |
PINOUT DIAGRAM
This table shows how the pinout on Button POWER click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
PWR | PWR | - | Power LED Indicator |
SOFTWARE SUPPORT
We provide a library for the ButtonPOWER Click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library contains button check functions and LED control.
Key functions:
-
void buttonpower_set_led_state ( uint8_t led_state )
- Led control -
uint8_t buttonpower_get_button_state ( void )
- Get button state
Examples description
The application is composed of three sections :
- System Initialization - Initializes LOG, PWM pin as OUTPUT and INT pin as input
- Application Initialization - Initializes GPIO driver init
- Application Task - Checks if the button is pressed, if yes the led light flashes and the message is written on the usb uart
void applicationTask() { uint8_t cnt; uint8_t button_state; button_state = buttonpower_get_button_state( ); if ( button_state == BUTTONPOWER_BUTTON_IS_PRESSED ) { mikrobus_logWrite( " >> Button is pressed ", _LOG_LINE ); for ( cnt = 0; cnt < 5; cnt++ ) { buttonpower_set_led_state( BUTTONPOWER_LED_OFF ); Delay_ms( 100 ); buttonpower_set_led_state( BUTTONPOWER_LED_ON ); Delay_ms( 100 ); } } }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- UART
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.
MIKROSDK
This 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.
For more information about mikroSDK, visit the official page.
Featured collection
-
Crazyflie 2.1+
Vendor:Regular price Rs. 26,499.00Regular priceUnit price / per -
Getting Started Bundle
Vendor:Regular price Rs. 26,399.00Regular priceUnit price / per -
Happy hacker bundle
Vendor:Regular price Rs. 33,599.00Regular priceUnit price / per -
STEM ranging bundle
Vendor:Regular price Rs. 43,999.00Regular priceUnit price / per -
Crazyradio 2.0
Vendor:Regular price Rs. 4,399.00Regular priceUnit price / per -
Lighthouse explorer bundle
Vendor:Regular price Rs. 89,999.00Regular priceUnit price / per -
Lighthouse positioning deck
Vendor:Regular price Rs. 9,899.00Regular priceUnit price / per -
Lighthouse V2 base station
Vendor:Regular price Rs. 30,349.00Regular priceUnit price / per -
Lighthouse swarm bundle
Vendor:Regular price Rs. 425,899.00Regular priceUnit price / per -
Loco explorer bundle
Vendor:Regular price Rs. 187,999.00Regular priceUnit price / per -
Loco positioning deck
Vendor:Regular price Rs. 9,899.00Regular priceUnit price / per -
Loco positioning node
Vendor:Regular price Rs. 18,699.00Regular priceUnit price / per -
Loco Swarm Bundle
Vendor:Regular price Rs. 529,609.00Regular priceUnit price / per -
Active marker deck
Vendor:Regular price Rs. 16,499.00Regular priceUnit price / per -
Motion capture marker deck
Vendor:Regular price Rs. 659.00Regular priceUnit price / per -
AI-Deck 1.1
Vendor:Regular price Rs. 27,999.00Regular priceUnit price / per -
AI-Deck Color Camera Module
Vendor:Regular price Rs. 2,199.00Regular priceUnit price / per -
AI-deck monocrome camera module
Vendor:Regular price Rs. 2,199.00Regular priceUnit price / per -
Flow deck v2
Vendor:Regular price Rs. 5,499.00Regular priceUnit price / per -
Crazyflie Bolt
Vendor:Regular price Rs. 21,999.00Regular priceUnit price / per -
Thrust upgrade bundle for Crazyflie 2.X
Vendor:Regular price Rs. 1,949.00Regular priceUnit price / perSold out -
Qi 1.2 wireless charging deck
Vendor:Regular price Rs. 3,849.00Regular priceUnit price / per -
7 mm DC-motor
Vendor:Regular price Rs. 439.00Regular priceUnit price / per -
Male long deck connector
Vendor:Regular price Rs. 219.00Regular priceUnit price / per -
250mAh LiPo battery
Vendor:Regular price Rs. 659.00Regular priceUnit price / per