{"id":1477,"date":"2021-11-16T19:24:11","date_gmt":"2021-11-16T18:24:11","guid":{"rendered":"https:\/\/www.onetimenexttime.sk\/arduino\/?post_type=product&#038;p=1477"},"modified":"2021-11-16T19:29:30","modified_gmt":"2021-11-16T18:29:30","slug":"metal-touch-sensor-module-ky-036","status":"publish","type":"product","link":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/","title":{"rendered":"Metal touch sensor module KY-036"},"content":{"rendered":"<h2>Kovov\u00fd dotykov\u00fd senzorov\u00fd modul KY-036<\/h2>\n<p>&nbsp;<\/p>\n<p><strong>Vlastnosti:<\/strong><\/p>\n<p>Hlavn\u00fd \u010dip: LM393<br \/>\nPracovn\u00e9 nap\u00e4tie: pre DC 5V<br \/>\nJednokan\u00e1lov\u00fd v\u00fdstup sign\u00e1lu<br \/>\nN\u00edzko\u00farov\u0148ov\u00fd v\u00fdstupn\u00fd sign\u00e1l pou\u017e\u00edvan\u00fd pre alarm dotykov\u00e9ho senzora \u013eudsk\u00e9ho tela<br \/>\nNastavite\u013en\u00e1 citlivos\u0165<br \/>\nS pevn\u00fdm otvorom pre skrutku pre jednoduch\u00fa in\u0161tal\u00e1ciu<br \/>\nSpolupracuje s \u00faradn\u00edkom pre rady<br \/>\nOdkaz na f\u00f3rum: facebook.com\/123Neonado<br \/>\nMateri\u00e1l: PCB + mosadz<br \/>\nRozmery: 43 x 16 x 15 mm \/ 1,69 x 0,63 x 0,59 palca<br \/>\nHmotnos\u0165: 3 g \/ 0,11 oz<br \/>\nFarba: \u010dierna + modr\u00e1<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>____________________________________________________ priklad 1<\/strong><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"cpp\"><span class=\"kw4\">int<\/span> touchPin <span class=\"sy1\">=<\/span> A0<span class=\"sy4\">;<\/span>\r\n<span class=\"kw4\">int<\/span> sensorValue <span class=\"sy1\">=<\/span> <span class=\"nu0\">0<\/span><span class=\"sy4\">;<\/span>\r\n\u00a0\r\n<span class=\"kw4\">void<\/span> setup <span class=\"br0\">(<\/span><span class=\"br0\">)<\/span> \r\n<span class=\"br0\">{<\/span>\r\n  Serial.<span class=\"me1\">begin<\/span> <span class=\"br0\">(<\/span>9600<span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n<span class=\"br0\">}<\/span>\r\n\u00a0\r\n<span class=\"kw4\">void<\/span> loop <span class=\"br0\">(<\/span><span class=\"br0\">)<\/span> \r\n<span class=\"br0\">{<\/span>\r\n  sensorValue <span class=\"sy1\">=<\/span> analogRead <span class=\"br0\">(<\/span>touchPin<span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n  Serial.<span class=\"me1\">println<\/span> <span class=\"br0\">(<\/span>sensorValue, DEC<span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n  delay <span class=\"br0\">(<\/span>1000<span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n<span class=\"br0\">}<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>____________________________________________________ priklad 2\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div id=\"wpshdo_2\" class=\"wp-synhighlighter-outer\">\n<div id=\"wpshdi_2\" class=\"wp-synhighlighter-inner\">\n<pre class=\"cpp\"><span class=\"kw4\">int<\/span> analogInput <span class=\"sy1\">=<\/span> A0<span class=\"sy4\">;<\/span>\r\n<span class=\"kw4\">int<\/span> digitalInput <span class=\"sy1\">=<\/span> <span class=\"nu0\">3<\/span><span class=\"sy4\">;<\/span>\r\n\u00a0\r\n<span class=\"kw4\">void<\/span> setup <span class=\"br0\">(<\/span><span class=\"br0\">)<\/span>\r\n<span class=\"br0\">{<\/span>\r\n  pinMode <span class=\"br0\">(<\/span>analogInput, INPUT<span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n  pinMode <span class=\"br0\">(<\/span>digitalInput, INPUT<span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>     \r\n  Serial.<span class=\"me1\">begin<\/span> <span class=\"br0\">(<\/span>9600<span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n<span class=\"br0\">}<\/span>\r\n\u00a0\r\n\u00a0\r\n<span class=\"kw4\">void<\/span> loop <span class=\"br0\">(<\/span><span class=\"br0\">)<\/span>\r\n<span class=\"br0\">{<\/span>\r\n  <span class=\"kw4\">float<\/span> Analog<span class=\"sy4\">;<\/span>\r\n  <span class=\"kw4\">int<\/span> Digital<span class=\"sy4\">;<\/span>\r\n\u00a0\r\n  <span class=\"co1\">\/\/ Current value will be read and converted to the voltage<\/span>\r\n  analogValue <span class=\"sy1\">=<\/span> analogRead <span class=\"br0\">(<\/span>analogInput<span class=\"br0\">)<\/span> <span class=\"sy2\">*<\/span> <span class=\"br0\">(<\/span>5.0 <span class=\"sy2\">\/<\/span> 1023.0<span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span> \r\n  digitalValue <span class=\"sy1\">=<\/span> digitalRead <span class=\"br0\">(<\/span>digitalInput<span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n\u00a0\r\n  <span class=\"co1\">\/\/ and outputted here<\/span>\r\n  Serial.<span class=\"me1\">print<\/span> <span class=\"br0\">(<\/span><span class=\"st0\">\"Analog voltage value:\"<\/span><span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span> \r\n  Serial.<span class=\"me1\">print<\/span> <span class=\"br0\">(<\/span>analogValue, 4<span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>  \r\n  Serial.<span class=\"me1\">print<\/span> <span class=\"br0\">(<\/span><span class=\"st0\">\"V, \"<\/span><span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n  Serial.<span class=\"me1\">print<\/span> <span class=\"br0\">(<\/span><span class=\"st0\">\"Touch input:\"<\/span><span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n\u00a0\r\n  <span class=\"kw1\">if<\/span><span class=\"br0\">(<\/span>digitalValue<span class=\"sy1\">==<\/span><span class=\"nu0\">1<\/span><span class=\"br0\">)<\/span>\r\n  <span class=\"br0\">{<\/span>\r\n      Serial.<span class=\"me1\">println<\/span> <span class=\"br0\">(<\/span><span class=\"st0\">\" detected\"<\/span><span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n  <span class=\"br0\">}<\/span>\r\n  <span class=\"kw1\">else<\/span>\r\n  <span class=\"br0\">{<\/span>\r\n      Serial.<span class=\"me1\">println<\/span> <span class=\"br0\">(<\/span><span class=\"st0\">\" not detected\"<\/span><span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n  <span class=\"br0\">}<\/span>\r\n  Serial.<span class=\"me1\">println<\/span> <span class=\"br0\">(<\/span><span class=\"st0\">\"----------------------------------------------------------------\"<\/span><span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n  delay <span class=\"br0\">(<\/span>250<span class=\"br0\">)<\/span><span class=\"sy4\">;<\/span>\r\n<span class=\"br0\">}<\/span><\/pre>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kovov\u00fd dotykov\u00fd senzorov\u00fd modul KY-036 &nbsp; Vlastnosti: Hlavn\u00fd \u010dip: LM393 Pracovn\u00e9 nap\u00e4tie: pre DC 5V Jednokan\u00e1lov\u00fd v\u00fdstup sign\u00e1lu N\u00edzko\u00farov\u0148ov\u00fd v\u00fdstupn\u00fd&hellip;<\/p>\n","protected":false},"featured_media":1478,"template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"product_cat":[16,72,69],"product_tag":[],"class_list":{"0":"post-1477","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-ard","7":"product_cat-metal","8":"product_cat-sensors","10":"first","11":"instock","12":"shipping-taxable","13":"purchasable","14":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Metal touch sensor module KY-036 - Arduino e-shop<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/\" \/>\n<meta property=\"og:locale\" content=\"sk_SK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Metal touch sensor module KY-036 - Arduino e-shop\" \/>\n<meta property=\"og:description\" content=\"Kovov\u00fd dotykov\u00fd senzorov\u00fd modul KY-036 &nbsp; Vlastnosti: Hlavn\u00fd \u010dip: LM393 Pracovn\u00e9 nap\u00e4tie: pre DC 5V Jednokan\u00e1lov\u00fd v\u00fdstup sign\u00e1lu N\u00edzko\u00farov\u0148ov\u00fd v\u00fdstupn\u00fd&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/\" \/>\n<meta property=\"og:site_name\" content=\"Arduino e-shop\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-16T18:29:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17929.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"522\" \/>\n\t<meta property=\"og:image:height\" content=\"523\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Predpokladan\u00fd \u010das \u010d\u00edtania\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 min\u00fata\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/\",\"url\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/\",\"name\":\"Metal touch sensor module KY-036 - Arduino e-shop\",\"isPartOf\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17929.jpg\",\"datePublished\":\"2021-11-16T18:24:11+00:00\",\"dateModified\":\"2021-11-16T18:29:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/#breadcrumb\"},\"inLanguage\":\"sk-SK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"sk-SK\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/#primaryimage\",\"url\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17929.jpg\",\"contentUrl\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17929.jpg\",\"width\":522,\"height\":523},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Domov\",\"item\":\"https:\/\/www.onetimenexttime.sk\/arduino\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Obchod\",\"item\":\"https:\/\/www.onetimenexttime.sk\/arduino\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Metal touch sensor module KY-036\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/#website\",\"url\":\"https:\/\/www.onetimenexttime.sk\/arduino\/\",\"name\":\"Arduino e-shop\",\"description\":\"Home Assistant\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.onetimenexttime.sk\/arduino\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"sk-SK\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Metal touch sensor module KY-036 - Arduino e-shop","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/","og_locale":"sk_SK","og_type":"article","og_title":"Metal touch sensor module KY-036 - Arduino e-shop","og_description":"Kovov\u00fd dotykov\u00fd senzorov\u00fd modul KY-036 &nbsp; Vlastnosti: Hlavn\u00fd \u010dip: LM393 Pracovn\u00e9 nap\u00e4tie: pre DC 5V Jednokan\u00e1lov\u00fd v\u00fdstup sign\u00e1lu N\u00edzko\u00farov\u0148ov\u00fd v\u00fdstupn\u00fd&hellip;","og_url":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/","og_site_name":"Arduino e-shop","article_modified_time":"2021-11-16T18:29:30+00:00","og_image":[{"width":522,"height":523,"url":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17929.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Predpokladan\u00fd \u010das \u010d\u00edtania":"1 min\u00fata"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/","url":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/","name":"Metal touch sensor module KY-036 - Arduino e-shop","isPartOf":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/#primaryimage"},"image":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/#primaryimage"},"thumbnailUrl":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17929.jpg","datePublished":"2021-11-16T18:24:11+00:00","dateModified":"2021-11-16T18:29:30+00:00","breadcrumb":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/#breadcrumb"},"inLanguage":"sk-SK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/"]}]},{"@type":"ImageObject","inLanguage":"sk-SK","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/#primaryimage","url":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17929.jpg","contentUrl":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17929.jpg","width":522,"height":523},{"@type":"BreadcrumbList","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/metal-touch-sensor-module-ky-036\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Domov","item":"https:\/\/www.onetimenexttime.sk\/arduino\/"},{"@type":"ListItem","position":2,"name":"Obchod","item":"https:\/\/www.onetimenexttime.sk\/arduino\/"},{"@type":"ListItem","position":3,"name":"Metal touch sensor module KY-036"}]},{"@type":"WebSite","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/#website","url":"https:\/\/www.onetimenexttime.sk\/arduino\/","name":"Arduino e-shop","description":"Home Assistant","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.onetimenexttime.sk\/arduino\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"sk-SK"}]}},"_links":{"self":[{"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product\/1477"}],"collection":[{"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/media\/1478"}],"wp:attachment":[{"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/media?parent=1477"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product_cat?post=1477"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product_tag?post=1477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}