{"id":1378,"date":"2021-11-15T13:31:06","date_gmt":"2021-11-15T12:31:06","guid":{"rendered":"https:\/\/www.onetimenexttime.sk\/arduino\/?post_type=product&#038;p=1378"},"modified":"2021-11-15T13:53:03","modified_gmt":"2021-11-15T12:53:03","slug":"ky-023-ps2-game-joystick-axis-sensor-module","status":"publish","type":"product","link":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/","title":{"rendered":"KY-023 PS2 Game Joystick Axis Sensor Module"},"content":{"rendered":"<h2>KY-023 PS2 Game Joystick osov\u00fd senzorov\u00fd modul<\/h2>\n<p>&nbsp;<\/p>\n<p>Dvojosov\u00fd k\u013e\u00fa\u010dov\u00fd joystickov\u00fd senzorov\u00fd modul pomocou kol\u00edskov\u00e9ho potenciometra PS2, s (X, Y) 2-osov\u00fdm anal\u00f3gov\u00fdm v\u00fdstupom, (Z) 1 tla\u010didlov\u00fdm digit\u00e1lnym v\u00fdstupom. So senzorom Arduino roz\u0161iruj\u00faca doska m\u00f4\u017ee produkova\u0165 dia\u013ekov\u00e9 ovl\u00e1danie a in\u00e9 interakt\u00edvne diela. Okrem toho, aby tento produkt umo\u017enil z\u00e1kazn\u00edkom jednoduch\u0161ie s roz\u0161iruj\u00facou doskou arduino a \u010fal\u0161\u00edmi \u0161tandardn\u00fdmi rozhraniami, v dizajne osi X, Y, Z obvodu s\u00fa samostatn\u00e9 vodi\u010de, pou\u017e\u00edvate\u013e m\u00f4\u017ee pou\u017ei\u0165 3-pin ARDUINO \u0161peci\u00e1lne linku naozaj zapojte do roz\u0161iruj\u00facej dosky.<br \/>\nV\u00fdkon produktu:<br \/>\n1. Rozsah vstupn\u00e9ho nap\u00e4tia: DC 3,3V a\u017e 5V<br \/>\n2. V\u00fdstupn\u00fd sign\u00e1l: modul \u0161peci\u00e1lny obojsmern\u00fd anal\u00f3gov\u00fd v\u00fdstup a digit\u00e1lne v\u00fdstupn\u00e9 rozhranie, v\u00fdstupn\u00e1 hodnota zodpovedaj\u00faca (X, Y) biaxi\u00e1lnemu posunu, typ anal\u00f3gu; kl\u00e1vesy, ktor\u00e9 u\u017e\u00edvate\u013e stla\u010d\u00ed os Z, Jeho typ je digit\u00e1lny sp\u00edna\u010d.<br \/>\n3. Arduino ovl\u00e1da\u010d je mo\u017en\u00e9 naprogramova\u0165, z\u00e1suvku na roz\u0161iruj\u00facu dosku sn\u00edma\u010da, doplnen\u00fa o kreat\u00edvne dia\u013ekov\u00e9 interakt\u00edvne pr\u00e1ce.<br \/>\n4. Kr\u00ed\u017eov\u00fd joystick je obojsmern\u00fd 10K rezistor, s kol\u00edskou v r\u00f4znych smeroch, odpor odbo\u010dky so zmenou. Tento modul pou\u017e\u00edva nap\u00e1janie 5V, p\u00f4vodn\u00fd stav X, Y \u010d\u00edtacie nap\u00e4tie 2,5V alebo tak, pri stla\u010den\u00ed v smere \u0161\u00edpky sa hodnota \u010d\u00edtan\u00e9ho nap\u00e4tia zv\u00fd\u0161i maxim\u00e1lne na 5V; \u0161\u00edpky v opa\u010dnom smere na stla\u010denie, pre\u010d\u00edtajte si nap\u00e4tie kles\u00e1 , Minimum je 0V.<br \/>\nN\u00e1vod:<br \/>\nV \u00favode ako ho pou\u017e\u00edva\u0165 sa najprv pozrieme na to, ako to funguje, \u010do n\u00e1m ve\u013emi pom\u00f4\u017ee, je tu funkcia nasleduj\u00faceho diagramu:<br \/>\nV skuto\u010dnosti je tento modul potenciometrom, na v\u00fdstupnom porte x, y-rozmern\u00fdch d\u00e1t sa na\u010d\u00edtava anal\u00f3gov\u00e9 nap\u00e4tie. Tento obr\u00e1zok nevykres\u013euje vy\u0161\u0161ie uveden\u00fd z-rozmern\u00fd v\u00fdstup \u00fadajov, z-rozmern\u00fd v\u00fdstup len 0 a 1 je mo\u017en\u00e9 dosiahnu\u0165 tla\u010didlom. Celkovo ide o kombin\u00e1ciu potenciometra a tla\u010didla. V Arduino pou\u017e\u00edvame, rozmer x, y sme dostali dva anal\u00f3gov\u00e9 porty na \u010d\u00edtanie ich hodn\u00f4t, zatia\u013e \u010do v z-rozmernom sme pripojen\u00ed k digit\u00e1lnemu portu, pripojen\u00e9mu k nap\u00e1janiu a zemi.<br \/>\ntestovac\u00ed program:<\/p>\n<p>&nbsp;<\/p>\n<div>Int JoyStick_X = 0; \/\/ x<\/div>\n<div><\/div>\n<div>Int JoyStick_Y = 1; \/\/ y<\/div>\n<div><\/div>\n<div>Int JoyStick_Z = 3; \/\/ key<\/div>\n<div><\/div>\n<div>Void setup () {pinMode (JoyStick_X, INPUT);<\/div>\n<div><\/div>\n<div>\u00a0PinMode (JoyStick_Y, INPUT);<\/div>\n<div><\/div>\n<div>PinMode (JoyStick_Z, INPUT);<\/div>\n<div><\/div>\n<div>Serial.begin (9600); \/\/ 9600 bps}<\/div>\n<div><\/div>\n<div>Y = analogRead (JoyStick_Y); z = digitalRead (JoyStick_Z); void loop () {int x, y, z;<\/div>\n<div><\/div>\n<div>Serial.print (x, DEC); Serial.print ( &#8220;,&#8221;);<\/div>\n<div><\/div>\n<div>Serial.print (y, DEC); Serial.print ( &#8220;,&#8221;);<\/div>\n<div><\/div>\n<div>Serial.println (z, DEC);<\/div>\n<div><\/div>\n<div><img decoding=\"async\" src=\"https:\/\/ae01.alicdn.com\/kf\/H2554ec3b650b415fb9193e62afaa5f91F.jpg\" data-spm-anchor-id=\"a2g0o.detail.1000023.i1.60a5463cfayWlp\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>KY-023 PS2 Game Joystick osov\u00fd senzorov\u00fd modul &nbsp; Dvojosov\u00fd k\u013e\u00fa\u010dov\u00fd joystickov\u00fd senzorov\u00fd modul pomocou kol\u00edskov\u00e9ho potenciometra PS2, s (X, Y)&hellip;<\/p>\n","protected":false},"featured_media":1381,"template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"product_cat":[15,17,52],"product_tag":[],"class_list":{"0":"post-1378","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-nd","7":"product_cat-modul","8":"product_cat-motor-modul","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>KY-023 PS2 Game Joystick Axis Sensor Module - 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\/ky-023-ps2-game-joystick-axis-sensor-module\/\" \/>\n<meta property=\"og:locale\" content=\"sk_SK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KY-023 PS2 Game Joystick Axis Sensor Module - Arduino e-shop\" \/>\n<meta property=\"og:description\" content=\"KY-023 PS2 Game Joystick osov\u00fd senzorov\u00fd modul &nbsp; Dvojosov\u00fd k\u013e\u00fa\u010dov\u00fd joystickov\u00fd senzorov\u00fd modul pomocou kol\u00edskov\u00e9ho potenciometra PS2, s (X, Y)&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/\" \/>\n<meta property=\"og:site_name\" content=\"Arduino e-shop\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-15T12:53:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/1048.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"466\" \/>\n\t<meta property=\"og:image:height\" content=\"467\" \/>\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=\"2 min\u00faty\" \/>\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\/ky-023-ps2-game-joystick-axis-sensor-module\/\",\"url\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/\",\"name\":\"KY-023 PS2 Game Joystick Axis Sensor Module - Arduino e-shop\",\"isPartOf\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/1048.jpg\",\"datePublished\":\"2021-11-15T12:31:06+00:00\",\"dateModified\":\"2021-11-15T12:53:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/#breadcrumb\"},\"inLanguage\":\"sk-SK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"sk-SK\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/#primaryimage\",\"url\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/1048.jpg\",\"contentUrl\":\"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/1048.jpg\",\"width\":466,\"height\":467},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/#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\":\"KY-023 PS2 Game Joystick Axis Sensor Module\"}]},{\"@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":"KY-023 PS2 Game Joystick Axis Sensor Module - 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\/ky-023-ps2-game-joystick-axis-sensor-module\/","og_locale":"sk_SK","og_type":"article","og_title":"KY-023 PS2 Game Joystick Axis Sensor Module - Arduino e-shop","og_description":"KY-023 PS2 Game Joystick osov\u00fd senzorov\u00fd modul &nbsp; Dvojosov\u00fd k\u013e\u00fa\u010dov\u00fd joystickov\u00fd senzorov\u00fd modul pomocou kol\u00edskov\u00e9ho potenciometra PS2, s (X, Y)&hellip;","og_url":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/","og_site_name":"Arduino e-shop","article_modified_time":"2021-11-15T12:53:03+00:00","og_image":[{"width":466,"height":467,"url":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/1048.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Predpokladan\u00fd \u010das \u010d\u00edtania":"2 min\u00faty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/","url":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/","name":"KY-023 PS2 Game Joystick Axis Sensor Module - Arduino e-shop","isPartOf":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/#primaryimage"},"image":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/#primaryimage"},"thumbnailUrl":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/1048.jpg","datePublished":"2021-11-15T12:31:06+00:00","dateModified":"2021-11-15T12:53:03+00:00","breadcrumb":{"@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/#breadcrumb"},"inLanguage":"sk-SK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/"]}]},{"@type":"ImageObject","inLanguage":"sk-SK","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/#primaryimage","url":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/1048.jpg","contentUrl":"https:\/\/www.onetimenexttime.sk\/arduino\/wp-content\/uploads\/2021\/11\/1048.jpg","width":466,"height":467},{"@type":"BreadcrumbList","@id":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/produkt\/ky-023-ps2-game-joystick-axis-sensor-module\/#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":"KY-023 PS2 Game Joystick Axis Sensor Module"}]},{"@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\/1378"}],"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\/1381"}],"wp:attachment":[{"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/media?parent=1378"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product_cat?post=1378"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.onetimenexttime.sk\/arduino\/index.php\/wp-json\/wp\/v2\/product_tag?post=1378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}