{"product_id":"mikroe-3414","title":"Saml Touch Click","description":"\u003cp\u003eSAML click is a perfect example of how simple the implementation of the Q-Touch\u003csup\u003e®\u003c\/sup\u003e technology from Microchip can be. Besides the ATSAML10 MCU itself, the Click board™ contains a few additional hardware components. Thanks to the highly integrated PTC module supported by the Q-Touch\u003csup\u003e®\u003c\/sup\u003e, development of complex touch applications becomes extremely simple and fast. Featuring many inherited benefits compared to mechanical buttons and sliders, this Click board™ can be used for the development of various HMI interfaces, touch-operated control panels, interfaces used in very harsh and humid environment, etc.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eHow Does It Work?\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe main component of SAML click is the \u003ca href=\"https:\/\/download.mikroe.com\/documents\/datasheets\/saml10-11.pdf\" target=\"_blank\"\u003eATSAML10\u003c\/a\u003e, an ultra-low power 32-bit ARM\u003csup\u003e®\u003c\/sup\u003e Cortex\u003csup\u003e®\u003c\/sup\u003e MicroController Unit (MCU) from \u003ca href=\"https:\/\/www.microchip.com\/\" target=\"_blank\"\u003eMicrochip\u003c\/a\u003e. Among many other features, this MCU is contains the enhanced Peripheral Touch Controller (PTC) module, making it a perfect solution for various capacitive touch-based applications that require superior noise immunity. One of the key features of the PTC module is its ability to reliably sense touch events, even when covered with water. SAML click demonstrates the overall hardware simplicity of one such application: capacitive pads are directly connected to the MCU pins, with no additional components required. Everything is already integrated within the PTC module of the ATSAML10 MCU itself, allowing very fast development. The only passive components on this click are the resistors that limit the current through the LEDs, and accompanying filtering capacitors.\u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"https:\/\/www.mikroe.com\/img\/images\/SAML-Touch-10-click-inner-img.jpg\" alt=\"Mikroe Human-Machine Interface SAML Touch Click\"\u003e\u003c\/p\u003e\n\u003cp\u003eAs mentioned before, the enhanced PTC module provides many benefits over similar solutions. The most distinctive it its parallel acquisition capability, allowing it to process all the inputs in parallel and simultaneous detection of multiple touch events. This increases the responsiveness of the touch interface, compared to traditional sequential acquisition circuits. It also provides better noise immunity and more robustness when used in harsh and humid environment. This allows the Click board™ to use an acrylic overlay, and still detects touch events with perfect accuracy.\u003c\/p\u003e\n\u003cp\u003eAnother feature of the enhanced PTC module is the Driven Shield Plus capability. This capability adds another layer of noise protection to the application. It allows touch sensors to work while exposed to moisture, sweat, rain, and even running water. Any of the capacitive touch channels can be used as a driven shield channel, offering IP-68 compliant protection.\u003c\/p\u003e\n\u003cp\u003eA cleverly designed firmware is responsible for events detection, visual feedback over LED indicators, and for the communication with the host MCU. The MCU firmware is written using Q-Touch® libraries from Microchip, which offer full support for PTC modules. The communication with the ATSAML10 is realized over the UART interface. A set of UART command strings are available for the touch detection, as well as for the touch slider position. However, the Click board™ is supported by a mikroSDK compatible library, offering simple functions, saving the developer to write UART command parsers. These functions allow faster development and simplified software design.\u003c\/p\u003e\n\u003cp\u003eThe Click board™ is designed to work with 3.3V only. If interfacing with systems that use 5V for their operation, an appropriate level translating circuitry has to be used.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSpecifications\u003c\/strong\u003e\u003c\/p\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eType\u003c\/td\u003e\n\u003ctd\u003eCapacitive\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eApplications\u003c\/td\u003e\n\u003ctd\u003eFeaturing many inherited benefits compared to mechanical buttons and sliders, this Click board™ can be used for the development of various HMI interfaces, touch-operated control panels, interfaces used in very harsh and humid environment, etc.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOn-board modules\u003c\/td\u003e\n\u003ctd\u003eATSAML10, a powerful, low-power, 32-bit ARM® Cortex® Micro Controller Unit (MCU) by Microchip.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eKey Features\u003c\/td\u003e\n\u003ctd\u003eATSAML10 onboard, a powerful MCU with the Integrated PTC capacitive touch peripheral module, parallel acquisition greatly improves responsiveness, Driven Shield Plus feature offers immunity to using the Click board™ in humid conditions, clean and visually appealing indication of the touch over LEDs, two buttons plus one slider, etc.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eUART\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInput Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eClick board size\u003c\/td\u003e\n\u003ctd\u003eL (57.15 x 25.4 mm)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePinout Diagram\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThis table shows how the pinout on \u003cstrong\u003eSAML Touch Click\u003c\/strong\u003e corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).\u003c\/p\u003e\n\u003ctable style=\"width: 549px;\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth colspan=\"4\"\u003e\u003ca href=\"http:\/\/www.mikroe.com\/mikrobus\/\"\u003e\u003cimg src=\"https:\/\/cdn.mikroe.com\/img\/mikrobus\/mikroBUS-logo-black.png\" alt=\"Mikrobus logo.png\"\u003e\u003c\/a\u003e\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003ctd\u003eAN\u003c\/td\u003e\n\u003ctd\u003ePWM\u003c\/td\u003e\n\u003ctd\u003e16\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e2\u003c\/td\u003e\n\u003ctd\u003eRST\u003c\/td\u003e\n\u003ctd\u003eINT\u003c\/td\u003e\n\u003ctd\u003e15\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e3\u003c\/td\u003e\n\u003ctd\u003eCS\u003c\/td\u003e\n\u003ctd\u003eRX\u003c\/td\u003e\n\u003ctd\u003e14\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eTX\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eUART Transmit\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e4\u003c\/td\u003e\n\u003ctd\u003eSCK\u003c\/td\u003e\n\u003ctd\u003eTX\u003c\/td\u003e\n\u003ctd\u003e13\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eRX\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eUART Receive\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e5\u003c\/td\u003e\n\u003ctd\u003eMISO\u003c\/td\u003e\n\u003ctd\u003eSCL\u003c\/td\u003e\n\u003ctd\u003e12\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e6\u003c\/td\u003e\n\u003ctd\u003eMOSI\u003c\/td\u003e\n\u003ctd\u003eSDA\u003c\/td\u003e\n\u003ctd\u003e11\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003ePower Supply\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003e3V3\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e7\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003ctd\u003e5V\u003c\/td\u003e\n\u003ctd\u003e10\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e Ground\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e8\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003e9\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eGround\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003eOnboard Settings And Indicators\u003c\/strong\u003e\u003c\/p\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eLabel\u003c\/th\u003e\n\u003cth\u003eName\u003c\/th\u003e\n\u003cth\u003eDefault\u003c\/th\u003e\n\u003cth\u003e Description\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eLD1 - LD6\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003eCapacitive slide bargraph indicator\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eLD7\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003eTouch button 1 LED indicator\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eLD8\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003eTouch button 2 LED indicator\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003eSoftware Support\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eWe provide a library for the \u003cstrong\u003eSAML Touch Click\u003c\/strong\u003e on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2757\/saml-touch-click\" target=\"_blank\"\u003eLibStock\u003c\/a\u003e page, as well as a demo application (example), developed using MikroElektronika \u003ca href=\"https:\/\/www.mikroe.com\/compilers\" target=\"_blank\"\u003ecompilers\u003c\/a\u003e. The demo can run on all the main MikroElektronika \u003ca href=\"http:\/\/shop.mikroe.com\/development-boards\" target=\"_blank\"\u003edevelopment boards\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eLibrary Description\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe library contains the function which parses the response received by the module, and checks the buttons and slider.\u003c\/p\u003e\n\u003cp\u003eKey functions:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ccode\u003evoid samltouch_parser(char *dataIn, samltouch_state_T *state)\u003c\/code\u003e - The function parses the response it receives\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eExamples description\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe application is composed of the three sections :\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eSystem Initialization - Initializes UART used for the communcation with SAML Touch module and UART used for infromation logging.\u003c\/li\u003e\n\u003cli\u003eApplication Initialization - Initializes driver init and timer init.\u003c\/li\u003e\n\u003cli\u003eApplication Task - running in parallel core state machine. Check that the button 1 or button 2 or the active slider is pressed. If it detects that the buttons 1 or 2 are pressed, it logs a button detection message. If it detects that the slider is active, it logs a message that the slider is active and its current position is 0-255.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cpre\u003evoid applicationTask()\n{\n\/\/ CORE STATE MACHINE\nsamltouch_process();\n\nif(timerCounter \u0026gt; 100)\n{\nif(SAML_Touch.button2 == 1)\n{\nmikrobus_logWrite( \"Button 2 is pressed.\", _LOG_LINE );\n}\nelse if(SAML_Touch.button1 == 1)\n{\nmikrobus_logWrite( \"Button 1 is pressed.\", _LOG_LINE );\n}\ntimerCounter = 0;\n}\n\nif(SAML_Touch.sw_state == 1)\n{\nmikrobus_logWrite( \"Slider is active.\", _LOG_LINE );\nif(SAML_Touch.sw_pos != 0)\n{\nmikrobus_logWrite( \"Slider position is \", _LOG_TEXT );\nIntToStr(SAML_Touch.sw_pos, demoText);\nmikrobus_logWrite( demoText, _LOG_LINE );\n}\n}\n}\n\n\u003c\/pre\u003e\n\u003cp\u003eAdditional Functions :\u003c\/p\u003e\n\u003cp\u003eAll additional functions such as timer initialization and default handler.\u003c\/p\u003e\n\u003cp\u003eThe full application code, and ready to use projects can be found on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2757\/saml-touch-click\" target=\"_blank\"\u003eLibStock\u003c\/a\u003e page.\u003c\/p\u003e\n\u003cp\u003eOther mikroE Libraries used in the example:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ccode\u003eString\u003c\/code\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ccode\u003eUART\u003c\/code\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ccode\u003eConversions\u003c\/code\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eAdditional notes and informations\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eDepending on the development board you are using, you may need \u003ca href=\"https:\/\/shop.mikroe.com\/usb-uart-click\" target=\"_blank\"\u003eUSB UART click\u003c\/a\u003e, \u003ca href=\"https:\/\/shop.mikroe.com\/usb-uart-2-click\" target=\"_blank\"\u003eUSB UART 2 click\u003c\/a\u003e or \u003ca href=\"https:\/\/shop.mikroe.com\/rs232-click\" target=\"_blank\"\u003eRS232 click\u003c\/a\u003e to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika \u003ca href=\"https:\/\/shop.mikroe.com\/compilers\" target=\"_blank\"\u003ecompilers\u003c\/a\u003e, or any other terminal application of your choice, can be used to read the message.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eMikroSDK\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThis click board is supported with \u003ca href=\"https:\/\/www.mikroe.com\/mikrosdk\"\u003emikroSDK\u003c\/a\u003e - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2249\/mikrosdk\"\u003eLibStock\u003c\/a\u003e and installed for the compiler you are using.\u003c\/p\u003e\n\u003cp\u003e\u003ca href=\"https:\/\/s3-us-west-2.amazonaws.com\/shop.mikroe.com\/downloads\/hmi\/saml-touch-click\/SAML10_Touch_click_v101_CAD.zip\"\u003e \u003c\/a\u003e\u003c\/p\u003e","brand":"MikroElektronika","offers":[{"title":"Default Title","offer_id":47400867463451,"sku":"MIKROE-3414","price":1579.0,"currency_code":"INR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0676\/3325\/0587\/products\/saml-touch-click-large_default-22x3CyoFGTbfLQja.jpg?v=1701959138","url":"https:\/\/mgsl.in\/products\/mikroe-3414","provider":"MG Super Labs","version":"1.0","type":"link"}