{"id":698,"date":"2019-05-15T15:35:55","date_gmt":"2019-05-15T12:35:55","guid":{"rendered":"https:\/\/www.aydiner.gen.tr\/?p=698"},"modified":"2022-01-30T22:31:37","modified_gmt":"2022-01-30T19:31:37","slug":"arduino-ile-mz80-kizilotesi-sensor-kullanimi","status":"publish","type":"post","link":"https:\/\/www.aydiner.gen.tr\/index.php\/2019\/05\/15\/arduino-ile-mz80-kizilotesi-sensor-kullanimi\/","title":{"rendered":"Arduino ile MZ80 K\u0131z\u0131l\u00f6tesi Sens\u00f6r Kullan\u0131m\u0131"},"content":{"rendered":"<h3>MZ80 Yak\u0131nl\u0131k Sens\u00f6r\u00fc \u00d6zellikleri<\/h3>\n<p>Bu&nbsp; MZ80 K\u0131z\u0131l\u00f6tesi Sens\u00f6r, g\u00fcvenlik sistemleri, mesafelerin \u00f6l\u00e7\u00fclmesi ve giri\u015f \/ \u00e7\u0131k\u0131\u015f ortamlar\u0131n\u0131n izlenmesini i\u00e7eren projeler i\u00e7in m\u00fckemmel bir se\u00e7imdir.<\/p>\n<p><a href=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-700\" src=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-2.jpg\" alt=\"\" width=\"533\" height=\"262\" data-id=\"700\" srcset=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-2.jpg 777w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-2-600x295.jpg 600w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-2-300x147.jpg 300w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-2-768x378.jpg 768w\" sizes=\"auto, (max-width: 533px) 100vw, 533px\" \/><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-699\" src=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-001.jpg\" alt=\"\" width=\"340\" height=\"262\" data-id=\"699\" srcset=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-001.jpg 495w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-001-300x232.jpg 300w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Sens\u00f6r arkas\u0131nda bulunan trimpot ile alg\u0131 mesafesi 80 cm ye kadar ayarlanabilir.<\/p>\n<p>MZ80 ba\u011flant\u0131s\u0131 \u00e7ok basittir, \u00e7\u00fcnk\u00fc sens\u00f6rde sadece 3 kablo bulunur: K\u0131rm\u0131z\u0131(Vcc) , Siyah(GND) ve Sar\u0131(sinyal).<\/p>\n<p><!--more-->Sinyal pimi Arduino\u2019nun dijital portlar\u0131ndan birine ba\u011flanacak ve bir nesne tespit edildi\u011finde 0 (LOW) de\u011ferini olu\u015fturacakt\u0131r.<\/p>\n<p>\u00d6nemli Not: Bu sens\u00f6r\u00fcn baz\u0131 versiyonlar\u0131 mavi (GND), Pembe (Vcc) ve Siyah (Sinyal) \u015feklinde olabilir<\/p>\n<p><a href=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-697\" src=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80.jpg\" alt=\"\" width=\"1152\" height=\"492\" data-id=\"697\" srcset=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80.jpg 1152w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-600x256.jpg 600w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-300x128.jpg 300w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-768x328.jpg 768w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2019\/05\/mz80-1024x437.jpg 1024w\" sizes=\"auto, (max-width: 1152px) 100vw, 1152px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">int YESIL_LED = 3;\r\nint KIRMIZIL_LED = 5;\r\nint BUZZER = 7;\r\nint MZ80_PINI = 9;\r\nint SENSOR_DURUMU = 0;\r\nvoid setup()\r\n{\r\n\/\/ SENSOR PININI GIRIS OLARAK AYARLA\r\npinMode(MZ80_PINI, INPUT);\r\n\/\/ PINLERI CIKI\u015e OLARAK AYARLA\r\npinMode(YESIL_LED, OUTPUT);\r\npinMode(KIRMIZIL_LED, OUTPUT);\r\npinMode(BUZZER, OUTPUT);\r\n}\r\nvoid loop()\r\n{\r\nSENSOR_DURUMU = digitalRead(MZ80_PINI);\r\nif (SENSOR_DURUMU == 0)\r\n{\r\n\/\/ E\u011eER SENSORE YAKLA\u015eILMI\u015eSA\r\ndigitalWrite(YESIL_LED, LOW);\r\ndigitalWrite(KIRMIZIL_LED, HIGH);\r\n\/\/ BUZZER SINYAL VER VE KIRMIZI LEDI YAK\r\nfor (int i = 1; i &lt;= 3; i++)\r\n{\r\ndigitalWrite(BUZZER, HIGH);\r\ndelay(100);\r\ndigitalWrite(BUZZER, LOW);\r\ndelay(100);\r\n}\r\ndelay(100);\r\n}\r\nelse\r\n{\r\n\/\/ SENSORDE SINYAL YOKSA KIRMIZI, YESIL LEDI VE BUZZERI DURDUR\r\ndigitalWrite(YESIL_LED, HIGH);\r\ndigitalWrite(KIRMIZIL_LED, LOW);\r\ndigitalWrite(BUZZER, LOW);\r\n}\r\n}<\/pre>\n<p>direnc.net ten al\u0131nt\u0131 yap\u0131ld\u0131<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MZ80 Yak\u0131nl\u0131k Sens\u00f6r\u00fc \u00d6zellikleri Bu&nbsp; MZ80 K\u0131z\u0131l\u00f6tesi Sens\u00f6r, g\u00fcvenlik sistemleri, mesafelerin \u00f6l\u00e7\u00fclmesi ve giri\u015f \/ \u00e7\u0131k\u0131\u015f ortamlar\u0131n\u0131n izlenmesini i\u00e7eren projeler [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":699,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-698","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ino"],"_links":{"self":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts\/698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/comments?post=698"}],"version-history":[{"count":0,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts\/698\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/media\/699"}],"wp:attachment":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/media?parent=698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/categories?post=698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/tags?post=698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}