{"id":399,"date":"2022-06-08T09:55:17","date_gmt":"2022-06-08T09:55:17","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=399"},"modified":"2022-07-20T04:11:10","modified_gmt":"2022-07-20T04:11:10","slug":"ttp223b-touch-sensor-module-with-aries-v2-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/ttp223b-touch-sensor-module-with-aries-v2-board\/","title":{"rendered":"TTP223B Touch Sensor Module with ARIES V2 Board"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface TTP223B touch sensor module to Aries v2 board. Touch sensor also known as <strong>tactile sensor<\/strong> is used in detecting and recording <strong>physical touch<\/strong>. It is commonly used in robots for enabling basic movement and the ability to detect touch in its surroundings, smartphones, automotive, industrial applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Touch Sensor<\/h2>\n\n\n\n<p><strong>Touch sensor<\/strong> is a small and low-cost sensor made to replace old mechanical switches seen in the past. It works like a switch, where when there\u2019s contact, touch, or pressure on the surface of a touch sensor, it opens up an electrical circuit and allows currents to flow through it.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"292\" height=\"296\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-07-09-34-27.png\" alt=\"\" class=\"wp-image-1313\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram<\/h2>\n\n\n\n<p>There are 3 pins in the touch sensor module &#8211; VCC, GND and Signal (SIG). VCC pin provides supply power to the the sensor and GND pin is its ground connection. Signal pin is Active high pin in which it goes high when the sensor is touched.(Refer <a href=\"https:\/\/vakits.com\/sites\/default\/files\/TTP223B%20Touch%20Switch.pdf\" data-type=\"URL\" data-id=\"https:\/\/vakits.com\/sites\/default\/files\/TTP223B%20Touch%20Switch.pdf\">Touch Sensor datasheet<\/a>)<\/p>\n\n\n\n<p>Connect VCC and GND of the sensor module to +3.3V and GND respectively of ARIES v2 board. Then connect the Signal Pin of the touch sensor to the GPIO0 of Aries v2 board.<\/p>\n\n\n\n<p>Now, for powering up the ARIES v2 board via USB port of a Laptop\/Desktop\/PC and burning the code into the ARIES v2 board, we have to use a micro USB type B to USB type A cable. The cable should be connected to <strong>UART0<\/strong> port of the ARIES v2 board, and the Laptop\/Desktop\/PC should be preinstalled with VEGA SDK and Toolchain.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/TTB223B.png\" alt=\"\" class=\"wp-image-1353\" width=\"656\" height=\"516\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/TTB223B.png 505w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/TTB223B-300x236.png 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/figure>\n<\/div>\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-white-background-color has-background\"><tbody><tr><td><strong>Touch Sensor<\/strong><\/td><td><strong>ARIES V2 board<\/strong><\/td><\/tr><tr><td>VCC<\/td><td>3.3V<\/td><\/tr><tr><td>SIG<\/td><td>GPIO0<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>After setting up the toolchain and SDK path environments, clean the executable using <strong>make clean<\/strong> command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>cd examples\/gpio\/touch_sensor_pgm<\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>make clean<\/strong><\/code><\/pre>\n\n\n\n<p>Build the example program for Touch sensor by using <strong>make<\/strong> command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>make <\/strong><\/code><\/pre>\n\n\n\n<p>Before transferring the built program to board, ensure that you have connected the UART0 connector of the board to the PC.<\/p>\n\n\n\n<p>Open a new terminal, execute the following command <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo minicom aries<\/code><\/pre>\n\n\n\n<p>Now you can see the minicom terminal opened and the board UART terminal is ready.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"689\" data-id=\"593\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-5.png\" alt=\"\" class=\"wp-image-593\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-5.png 820w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-5-300x252.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-5-768x645.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>Use <strong>CTRL+A S<\/strong> to enter file sending menu and select <strong>xmodem<\/strong> by pressing <strong>Enter<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"143\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-30-16-14-03.png\" alt=\"\" class=\"wp-image-230\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-30-16-14-03.png 615w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-30-16-14-03-300x70.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n\n\n\n<p>In the next window, with <strong>Space bar<\/strong> select the <strong>touch_sensor_pgm.bin<\/strong> file to be transferred. By pressing <strong>Enter<\/strong>, transfer process starts.<\/p>\n\n\n\n<p>Wait until the process is completed. The screen should display how much data has been transferred.<\/p>\n\n\n\n<p>After completing transfer the Program will start to execute.<\/p>\n\n\n\n<p>The status &#8220;Touched \/Untouched&#8221; is displayed in minicom UART terminal when sensor is touched\/untouched as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/touch_sensor.png\" alt=\"\" class=\"wp-image-1361\" width=\"641\" height=\"525\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/touch_sensor.png 645w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/touch_sensor-300x246.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Untouched-4-edited.png\" alt=\"\" class=\"wp-image-1459\" width=\"641\" height=\"583\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface TTP223B touch sensor module to Aries v2 board. Touch sensor also known as tactile sensor is used in detecting and recording physical touch. It is commonly used in robots for enabling basic movement and the ability to detect touch in its surroundings, smartphones, automotive, industrial [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,15,14,1],"tags":[75,76,68,85,77,24],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-application-development","category-getting-started","category-tutorials","category-uncategorized","tag-aries-v2-board","tag-c-dac","tag-gpio","tag-tactile-sensor","tag-thejas-32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":27,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":1807,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/399\/revisions\/1807"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}