{"id":1465,"date":"2021-11-16T18:13:43","date_gmt":"2021-11-16T17:13:43","guid":{"rendered":"https:\/\/www.onetimenexttime.sk\/arduino\/?post_type=product&#038;p=1465"},"modified":"2021-11-16T18:17:24","modified_gmt":"2021-11-16T17:17:24","slug":"tilt-switch-module-ky-020","status":"publish","type":"product","link":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/","title":{"rendered":"Tilt switch module KY-020"},"content":{"rendered":"<h2>Modul nakl\u00e1pacieho sp\u00edna\u010da KY-020<\/h2>\n<p>&nbsp;<\/p>\n<p>Modul sp\u00edna\u010da naklonenia a digit\u00e1lne rozhranie, vstavan\u00fdch 13 LED vytv\u00e1ra jednoduch\u00fd obvod na v\u00fdrobu v\u00fdstra\u017en\u00e9ho svetla naklonenia 13 sa dod\u00e1va s digit\u00e1lnymi rozhraniami LED,<\/p>\n<p>rozhranie sn\u00edma\u010da naklonenia pre pr\u00edstup k digit\u00e1lnemu 3, ke\u010f sn\u00edma\u010d vypnutia naklonenia zaznamen\u00e1 k\u013e\u00fa\u010dov\u00fd sign\u00e1l, LED sa rozsvieti, inak zhasne.<\/p>\n<p><strong>Zdrojov\u00fd k\u00f3d :<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p data-spm-anchor-id=\"a2g0o.detail.1000023.i1.651b2b3eBYNuZn\">int Led = 13 ;\/\/ define LED Interface<\/p>\n<p>\u00a0\u00a0\u00a0int buttonpin = 3; \/\/ define the tilt switch sensor interfaces<\/p>\n<p>int val ;\/\/ define numeric variables val<\/p>\n<p>void setup()<\/p>\n<p>pinMode(Led, OUTPUT) ;\/\/ define LED as output interface<\/p>\n<p>pinMode(buttonpin, INPUT) ;\/\/ define the output interface tilt switch sensor<\/p>\n<p>void loop<\/p>\n<p>val = digitalRead(buttonpin) ;\/\/ digital interface will be assigned a value of 3 to read val<\/p>\n<p>if(val == HIGH) \/\/ When the tilt sensor detects a signal when the switch, LED flashes<\/p>\n<p>digitalWrite(Led, HIGH);<\/p>\n<p>else<\/p>\n<p>digitalWrite(Led, LOW);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Modul nakl\u00e1pacieho sp\u00edna\u010da KY-020 &nbsp; Modul sp\u00edna\u010da naklonenia a digit\u00e1lne rozhranie, vstavan\u00fdch 13 LED vytv\u00e1ra jednoduch\u00fd obvod na v\u00fdrobu v\u00fdstra\u017en\u00e9ho&hellip;<\/p>\n","protected":false},"featured_media":1466,"template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"product_cat":[16,69,71],"product_tag":[],"class_list":{"0":"post-1465","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-ard","7":"product_cat-sensors","8":"product_cat-vibracie","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>Tilt switch module KY-020 - 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\/tilt-switch-module-ky-020\/\" \/>\n<meta property=\"og:locale\" content=\"sk_SK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tilt switch module KY-020 - Arduino e-shop\" \/>\n<meta property=\"og:description\" content=\"Modul nakl\u00e1pacieho sp\u00edna\u010da KY-020 &nbsp; Modul sp\u00edna\u010da naklonenia a digit\u00e1lne rozhranie, vstavan\u00fdch 13 LED vytv\u00e1ra jednoduch\u00fd obvod na v\u00fdrobu v\u00fdstra\u017en\u00e9ho&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/\" \/>\n<meta property=\"og:site_name\" content=\"Arduino e-shop\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-16T17:17:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17918.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\/tilt-switch-module-ky-020\/\",\"url\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/\",\"name\":\"Tilt switch module KY-020 - Arduino e-shop\",\"isPartOf\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17918.jpg\",\"datePublished\":\"2021-11-16T17:13:43+00:00\",\"dateModified\":\"2021-11-16T17:17:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/#breadcrumb\"},\"inLanguage\":\"sk-SK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"sk-SK\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/#primaryimage\",\"url\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17918.jpg\",\"contentUrl\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17918.jpg\",\"width\":522,\"height\":523},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/#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\":\"Tilt switch module KY-020\"}]},{\"@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":"Tilt switch module KY-020 - 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\/tilt-switch-module-ky-020\/","og_locale":"sk_SK","og_type":"article","og_title":"Tilt switch module KY-020 - Arduino e-shop","og_description":"Modul nakl\u00e1pacieho sp\u00edna\u010da KY-020 &nbsp; Modul sp\u00edna\u010da naklonenia a digit\u00e1lne rozhranie, vstavan\u00fdch 13 LED vytv\u00e1ra jednoduch\u00fd obvod na v\u00fdrobu v\u00fdstra\u017en\u00e9ho&hellip;","og_url":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/","og_site_name":"Arduino e-shop","article_modified_time":"2021-11-16T17:17:24+00:00","og_image":[{"width":522,"height":523,"url":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17918.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\/tilt-switch-module-ky-020\/","url":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/","name":"Tilt switch module KY-020 - Arduino e-shop","isPartOf":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/#primaryimage"},"image":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/#primaryimage"},"thumbnailUrl":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17918.jpg","datePublished":"2021-11-16T17:13:43+00:00","dateModified":"2021-11-16T17:17:24+00:00","breadcrumb":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/#breadcrumb"},"inLanguage":"sk-SK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/"]}]},{"@type":"ImageObject","inLanguage":"sk-SK","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/#primaryimage","url":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17918.jpg","contentUrl":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/17918.jpg","width":522,"height":523},{"@type":"BreadcrumbList","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/tilt-switch-module-ky-020\/#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":"Tilt switch module KY-020"}]},{"@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\/1465"}],"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\/1466"}],"wp:attachment":[{"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/media?parent=1465"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product_cat?post=1465"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product_tag?post=1465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}