{"id":1255,"date":"2019-04-09T17:18:23","date_gmt":"2019-04-09T17:18:23","guid":{"rendered":"http:\/\/mikrobotik.com\/wp2\/?p=1255"},"modified":"2023-03-31T16:27:50","modified_gmt":"2023-03-31T13:27:50","slug":"ir_sensor_kullan","status":"publish","type":"post","link":"https:\/\/www.mikrobotik.com\/wp2\/2019\/04\/09\/ir_sensor_kullan\/","title":{"rendered":"IR Sens\u00f6rleri Do\u011fru Kullan\u0131yor muyuz?"},"content":{"rendered":"<p><strong><span style=\"color: #ff0000;\">IR sens\u00f6r devresinin ger\u00e7ekle\u015ftirilmi\u015f hali Bu sayfan\u0131n en sonundad\u0131r. Denenerek, Sonradan eklenmi\u015ftir.<\/span> <\/strong>\u00d6nceki bilgiler <strong>TEOR\u0130 ve PROTOT\u0130P<\/strong> devreye aittir.<\/p>\n<p>IR sens\u00f6rler a\u015fa\u011f\u0131daki resimde g\u00f6sterildi\u011fi gibi I\u015eIK tayf\u0131n\u0131n \u0130nfrared b\u00f6lgesinde yer almaktad\u0131r. Bu \u0131\u015f\u0131k g\u00f6r\u00fcnmez \u0131\u015f\u0131k k\u0131sm\u0131nda yer ald\u0131\u011f\u0131ndan G\u00f6z\u00fcm\u00fczle g\u00f6remeyiz fakat kameralar vas\u0131tas\u0131yla g\u00f6r\u00fcn\u00fcr hale gelecektir. Visible light denilen b\u00f6lge g\u00f6rebildi\u011fimiz \u0131\u015f\u0131k b\u00f6lgesidir. Dikkat ederseniz bu b\u00f6lgenin her iki yan\u0131ndaki frekanslar g\u00f6r\u00fclmeyen b\u00f6lgelerdir.<br \/>\n<img decoding=\"async\" class=\"aligncenter size-full wp-image-1256 lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/em_spectrum.jpg\" alt=\"\" width=\"619\" height=\"389\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 619px; --smush-placeholder-aspect-ratio: 619\/389;\" \/><\/p>\n<p>Konumuz infrared \u0131\u015f\u0131k sistemi oldu\u011funa g\u00f6re bu b\u00f6lgede yer alan ledlerin, dalga boyu nedir dersek. Ledlerin genellikle 900-940 nanometre dalga boyunda yap\u0131ld\u0131\u011f\u0131n\u0131 s\u00f6yleyebiliriz. Bu G\u00f6r\u00fcnmez \u0131\u015f\u0131k b\u00f6lgesi ve g\u00f6r\u00fcn\u00fcr \u0131\u015f\u0131k b\u00f6lgesi yans\u0131tma kurallar\u0131nda, birbirine benzer \u015fekilde davran\u0131rlar. Yani yans\u0131t\u0131c\u0131 \u00f6zelli\u011fi iyi olan bir y\u00fczey ile ayn\u0131 devre ile daha fazla mesafe alg\u0131lanabilir, \u0131\u015f\u0131\u011f\u0131 emen bir y\u00fczey ise, mesafe k\u0131salacakt\u0131r.<br \/>\nBunlara dikkat etmeniz gerekir. Yani yapaca\u011f\u0131n\u0131z devrenin neyi alg\u0131lamas\u0131n\u0131 istiyorsan\u0131z ona g\u00f6re g\u00fcc\u00fcn\u00fc ayarlaman\u0131z gerekir. ( <strong><span style=\"color: #ff6600;\">Bu videoda g\u00f6sterilmi\u015ftir.<\/span><\/strong> )<br \/>\nBu \u00f6zelli\u011fi kullan\u0131larak RENK ay\u0131r\u0131m\u0131 da yap\u0131labilmektedir. \u00d6rnek olarak <strong><a href=\"http:\/\/wiki.seeedstudio.com\/Grove-Infrared_Reflective_Sensor\/\" target=\"_blank\" rel=\"noopener\">Bu sayfaya bakabilirsiniz.<\/a><\/strong> Devir sayac\u0131 olarak kullan\u0131lm\u0131\u015f bir \u00f6rnek mevcuttur.<\/p>\n<figure id=\"attachment_1258\" aria-describedby=\"caption-attachment-1258\" style=\"width: 369px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"wp-image-1258 lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/Infrared_Reflective_Sensor-9.jpg\" alt=\"\" width=\"369\" height=\"311\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 369px; --smush-placeholder-aspect-ratio: 369\/311;\" \/><figcaption id=\"caption-attachment-1258\" class=\"wp-caption-text\">OLYMPUS DIGITAL CAMERA<\/figcaption><\/figure>\n<p>Devrelerimden birini kontrol etmek i\u00e7in <span style=\"color: #ff6600;\">Arduino IR sens\u00f6r<\/span> ald\u0131m ve devrem gayet g\u00fczel \u00e7al\u0131\u015fmaya ba\u015flad\u0131. Sens\u00f6r \u011froblemi olan devrenin bulundu\u011fu,\u00a0<a href=\"https:\/\/www.mikrobotik.com\/wp2\/2019\/02\/18\/kablosuz-ve-dokunmasiz-220v-lamba-kontrol\/\" target=\"_blank\" rel=\"noopener\"><strong>\u00a0yaz\u0131m\u0131n konusu olan ayd\u0131nlatma kontrol devresine buradan bakabilirsiniz.\u00a0<\/strong><\/a><br \/>\n<img decoding=\"async\" class=\"wp-image-1052 alignleft lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/01\/sensor.jpg\" alt=\"\" width=\"134\" height=\"134\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 134px; --smush-placeholder-aspect-ratio: 134\/134;\" \/>Devre \u00e7al\u0131\u015ft\u0131\u011f\u0131nda led florasan\u0131 \u00e7al\u0131\u015ft\u0131r\u0131yordu. Sens\u00f6r Florasan \u0131\u015f\u0131\u011f\u0131ndan etkilenmiyordu. \u00c7\u00fcnk\u00fc Florasan \u0131\u015f\u0131\u011f\u0131nda INFRARED dalga boyunda bir \u0131\u015f\u0131ma yoktu. <span style=\"color: #ff6600;\"><strong>Fakat bu devrenin oldu\u011fu yere G\u00dcNE\u015e \u0131\u015f\u0131\u011f\u0131 geldi\u011finde devre kendi kendine tetikleniyordu.\u00a0<\/strong><\/span><br \/>\nBunun sebebi ise G\u00dcNE\u015e \u0131\u015f\u0131\u011f\u0131 ile g\u00f6r\u00fcn\u00fcr b\u00f6lge deki \u0131\u015f\u0131ma ve infrared b\u00f6lgesindeki \u0131\u015f\u0131man\u0131n, birlikte gelmesiydi. Tabii ki bu dalga boyu geldi\u011finde devremizi etkiliyordu.<br \/>\nKendi kendine tetiklenen devre ise bir tetik daha gelmezse devaml\u0131 florasan devresini yan\u0131k b\u0131rak\u0131yordu. Bu durum benim i\u00e7in tehlikeli sonu\u00e7lar do\u011furabilirdi. <span style=\"color: #ff6600;\">Sizlerinde yapt\u0131\u011f\u0131n\u0131z devrelerde \u00e7evrede g\u00fcne\u015f \u0131\u015f\u0131\u011f\u0131 olacaksa,\u00a0ya da IR sinyal vericileri olursa, buna dikkat etmeniz gerekecektir.\u00a0<\/span><\/p>\n<figure id=\"attachment_1260\" aria-describedby=\"caption-attachment-1260\" style=\"width: 145px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"wp-image-1260 lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/tcrt5000-kizilotesi-sensor-4363-18-O.jpg\" alt=\"\" width=\"145\" height=\"108\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 145px; --smush-placeholder-aspect-ratio: 145\/108;\" \/><figcaption id=\"caption-attachment-1260\" class=\"wp-caption-text\"><strong>Devresiz ucuz sens\u00f6r<\/strong><\/figcaption><\/figure>\n<p><strong>\u015eimdi de piyasadaki IR sens\u00f6rlere bakal\u0131m.<\/strong> Bu sens\u00f6rler kar\u015f\u0131l\u0131kl\u0131 olabilir ya da yans\u0131mal\u0131 olabilir. Hangi tip kullanacaksan\u0131z, yukar\u0131daki bilgiler \u0131\u015f\u0131\u011f\u0131nda devrenizi olu\u015fturman\u0131z gerekmektedir. Bunun yan\u0131 s\u0131ra kullanaca\u011f\u0131n\u0131z sens\u00f6rlerde, al\u0131c\u0131 olarak foto diyot ve foto transist\u00f6r kullanabilirsiniz. Burada dikkat etmeniz gereken durum ise fotodiyotlarda \u0131\u015f\u0131\u011fa kar\u015f\u0131 \u00e7ok k\u00fc\u00e7\u00fck bir de\u011fi\u015fim olaca\u011f\u0131d\u0131r. \u00a0<a href=\"https:\/\/showmeyourcode.org\/how-to-use-tcrt5000-with-arduino\/\" target=\"_blank\" rel=\"noopener\"><strong>Burada yukar\u0131daki sensor\u00fcn kullan\u0131ld\u0131\u011f\u0131 arduino uygulamas\u0131 vard\u0131r.<\/strong><\/a> ADC kullanarak bu de\u011fi\u015fim hissedilebilir. Fakat de\u011fi\u015fim fark\u0131 sorun olabilir. Bundan dolay\u0131 daha hassas i\u015flerinizde a\u015fa\u011f\u0131daki gibi y\u00fckseltilmi\u015f bir devre kullanabilirsiniz. \u00c7\u00fcnk\u00fc burada sadece IR led ve fototransist\u00f6r vard\u0131r. Bu k\u00fc\u00e7\u00fck de\u011fi\u015fimi hissetmek zordur. O halde, bu de\u011fi\u015fimi daha b\u00fcy\u00fck bir de\u011fi\u015fim haline getirmemiz gerekebilir. Bir OPAMP dedi\u011fimiz y\u00fckseltici devresini kullanman\u0131z gerekebilir.<br \/>\n<span style=\"color: #ff6600;\">Yukar\u0131daki sens\u00f6r\u00fcn OPAMP ile birle\u015ftirilmi\u015f hali a\u015fa\u011f\u0131daki resimdedir.\u00a0<\/span><br \/>\n<img decoding=\"async\" class=\"size-full wp-image-1261 alignleft lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/IR_sensor_analog_cikis.jpg\" alt=\"\" width=\"320\" height=\"147\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 320px; --smush-placeholder-aspect-ratio: 320\/147;\" \/><img decoding=\"async\" class=\"size-full wp-image-1262 alignnone lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/IR_sensor_analog_cikis_on.jpg\" alt=\"\" width=\"320\" height=\"159\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 320px; --smush-placeholder-aspect-ratio: 320\/159;\" \/><\/p>\n<p>Kullan\u0131lan devre ise bu tip devrelerdir. <span style=\"color: #ff6600;\">Benzer devreler, internette bulunabilmektedir.<\/span><br \/>\n<img decoding=\"async\" class=\"aligncenter size-full wp-image-1264 lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/IR-sensor-circuit.gif\" alt=\"\" width=\"1200\" height=\"684\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1200px; --smush-placeholder-aspect-ratio: 1200\/684;\" \/>Yukar\u0131daki devrede dikkat etmeniz gereken bir durum vard\u0131r. <strong><span style=\"color: #ff6600;\">Bu da fotodiyotun devreye ters ba\u011flanmas\u0131d\u0131r.<\/span><\/strong> Bu devrenin \u00e7al\u0131\u015fmas\u0131 ise \u015fu \u015fekildedir. \u00c7al\u0131\u015fmaya ba\u015flad\u0131\u011f\u0131nda IR led devaml\u0131 \u00e7al\u0131\u015fmaktad\u0131r. \u015eayet yans\u0131ma olursa <strong>fotodiyot<\/strong> \u00fczerine d\u00fc\u015fen \u0131\u015f\u0131\u011fa g\u00f6re bir ak\u0131m ak\u0131\u015f\u0131 olur, buna g\u00f6re de R2 \u00fczerinde bir gerilim olu\u015fur. Bu gerilim RV1 ile ayarlanan gerilimden y\u00fcksek ise \u00e7\u0131k\u0131\u015f verir. A\u015fa\u011f\u0131da ise \u00e7\u0131k\u0131\u015f vermez. Hassasiyet ayar\u0131n\u0131 RV1 ile yapars\u0131n\u0131z. \u00c7\u0131k\u0131\u015fta bir de\u011fer alacaks\u0131n\u0131z. Bu de\u011feri Arduino ya da di\u011fer i\u015flemcilere giri\u015f olarak uygulayabilirsiniz.<br \/>\n<span style=\"color: #ff6600;\"><strong>Not:<\/strong> <\/span><strong>T\u00fcm yar\u0131 iletkenler I\u015eIK ald\u0131\u011f\u0131nda bir gerilim \u00fcretir.<\/strong> \u00d6rnek olmas\u0131 a\u00e7\u0131s\u0131ndan <a href=\"https:\/\/www.elektroinfo.org\/2008\/09\/gne-pili-2n3055li.html\" target=\"_blank\" rel=\"noopener\"><strong>2N3055 transist\u00f6r\u00fc ile yap\u0131lan basit g\u00fcne\u015f pili deneyine bakabilirsiniz.<\/strong> <\/a><br \/>\nFoto diyot ve foto transist\u00f6rler tabii ki hassasiyet a\u00e7\u0131s\u0131ndan bu i\u015fler i\u00e7in dizayn edilmi\u015ftir. Bunlar\u0131 kullanmakta fayda vard\u0131r.<\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #ff0000;\"><strong>Gelelim bu sorunlar\u0131 tamamen giderebilece\u011fimiz devremize.\u00a0<\/strong><\/span><\/h2>\n<p>Devremizde IR led kullan\u0131lmaktad\u0131r. Fakat al\u0131c\u0131 devremizde TSOP4436 veya TSOP4836 IR al\u0131c\u0131 g\u00f6z kullan\u0131lmaktad\u0131r. IR al\u0131c\u0131 g\u00f6zler 36khz, 38khz vs. gibi frekanslar\u0131 ge\u00e7iren di\u011fer frekanslara zorluk g\u00f6steren devrelerdir. \u0130\u00e7inde bulunan band ge\u00e7iren filtreler ile sadece belirlenmi\u015f frekanslarda en y\u00fcksek kazanc\u0131 g\u00f6sterir. Burada kulland\u0131\u011f\u0131m\u0131z 36Khz ise PWM ile olu\u015fturulmu\u015ftur. Tam 36Khz olamayabilir, 36Khz e \u00e7ok yak\u0131n olmas\u0131 yeterlidir.<br \/>\nBu \u015fekilde vericimizi \u00e7al\u0131\u015ft\u0131r\u0131yoruz. Yans\u0131may\u0131 al\u0131c\u0131 g\u00f6z\u00fcm\u00fcz g\u00f6rd\u00fc\u011f\u00fcnde bunu pals olarak alg\u0131lamas\u0131 gerekir. Bunun i\u00e7in ise bunu PWM sinyalini kesip, bir s\u00fcre sonra tekrar ba\u015flatarak yap\u0131yoruz. A\u015fa\u011f\u0131daki sinyal \u015fekli \u00e7al\u0131\u015fmas\u0131n\u0131 anlatmaktad\u0131r. Sens\u00f6r \u00e7\u0131k\u0131\u015f\u0131 alttaki sinyaldir ve mikroi\u015flemciye giri\u015f olarak verilir.<br \/>\n<img decoding=\"async\" class=\"aligncenter size-full wp-image-1279 lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/IR-Allgemein.gif\" alt=\"\" width=\"371\" height=\"152\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 371px; --smush-placeholder-aspect-ratio: 371\/152;\" \/><br \/>\nAl\u0131c\u0131 g\u00f6z\u00fcm\u00fcz yans\u0131ma geldi\u011finde bunu pals olarak dijital giri\u015fe verir. Arduino ya da di\u011fer i\u015flemcilerle bu sinyali ald\u0131\u011f\u0131m\u0131zda bir ba\u015fka \u00e7\u0131k\u0131\u015f\u0131 1 seviyesine \u00e7\u0131kararak tetikleme veririz.<br \/>\nDevremiz ise PIC12F683 ile \u00e7al\u0131\u015ft\u0131r\u0131lm\u0131\u015ft\u0131r. <span style=\"color: #ff6600;\">Program dosyalar\u0131n\u0131 konunun alt\u0131nda toplu halde bulabileceksiniz. <\/span><br \/>\n<a href=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/gercekdevre.jpg\" rel=\"lightbox[1255]\"><img decoding=\"async\" class=\"lightbox aligncenter wp-image-1311 size-full lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/IR_videodaki.jpg\" alt=\"\" width=\"729\" height=\"594\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 729px; --smush-placeholder-aspect-ratio: 729\/594;\" \/><\/a><\/p>\n<p style=\"text-align: left;\">Yukar\u0131daki <strong>prototip<\/strong> devre basit bir programa sahiptir. Bu algoritmay\u0131 kullanarak, kendi program\u0131n\u0131z\u0131 yapabilirsiniz. Prototip devrenin, \u00e7al\u0131\u015fmas\u0131 esnas\u0131nda, verici led entegreden ald\u0131\u011f\u0131 ak\u0131ma g\u00f6re \u00e7al\u0131\u015faca\u011f\u0131ndan 20ma den fazla entegre de veremeyece\u011finden, verici mesafesi k\u0131sa oluyordu. Ger\u00e7ek devrede verici led Transist\u00f6rle s\u00fcr\u00fcld\u00fc. IR ledler 50-100ma ak\u0131mlarda \u00e7al\u0131\u015fabilir. mesafe i\u00e7in bunun y\u00fcksek ak\u0131mla s\u00fcr\u00fclmesi transist\u00f6r\u00fcn kullan\u0131lmas\u0131n\u0131 zorunlu k\u0131l\u0131yor. Proteus \u00e7iziminde vericiden al\u0131c\u0131ya giden sinyali buton ve sol taraftaki al\u0131c\u0131 g\u00f6z temsili devresi kullan\u0131ld\u0131. Ger\u00e7ek devrede IR sinyal gelece\u011finden bunlar kullan\u0131lmayacakt\u0131r. C1 kondansat\u00f6r\u00fc istenirse GND ye ba\u011flan\u0131r. Stabilite i\u00e7in kullan\u0131labilir. Ben kullanmad\u0131m.<\/p>\n<p><a class=\"lightbox\" href=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/algoritma.jpg\" rel=\"lightbox[1255]\"><img decoding=\"async\" class=\"aligncenter wp-image-1268 lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/algoritma.jpg\" alt=\"\" width=\"247\" height=\"269\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 247px; --smush-placeholder-aspect-ratio: 247\/269;\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"height-set:true height:300 lang:tex decode:true\" title=\"PICBASIC 12F683 Program\u0131 \"> DEFINE OSC 8\r\n\r\n \r\n#config\r\n __config _FCMEN_OFF &amp; _IESO_OFF &amp; _CP_OFF &amp; _CPD_OFF &amp; _BOD_OFF &amp; _MCLRE_OFF &amp; _WDT_OFF &amp; _PWRTE_ON &amp; _INTRC_OSC_NOCLKOUT\r\n#ENDCONFIG\r\n\r\nCMCON0 = 7\r\nADCON0=%00000000\r\nANSEL=0 ;ADC ler iptal\r\n\r\nGPIO=0\r\nTRISIO= %00101010          ; ************* gpio-5 input yap\u0131ld\u0131 senkron i\u00e7in 06.8.2015 ********************\r\n\r\n                    \r\nDUTY VAR WORD\r\ndon     var     byte\r\n\r\n\r\n' ============= PWM Ayarlar\u0131 =========\r\nT2CON =%00000101 'B\u00f6l\u00fcc\u00fc 1\/4 olarak verildi ve TMR2 aktif hale getirildi.\r\nPR2=13      ; 36Khz i\u00e7in ge\u00e7erlidir. 38Khz i\u00e7in 12 verilmesi yeterlidir. \r\nduty=28     ; 36Khz i\u00e7in ge\u00e7erlidir. 38Khz i\u00e7in 26  verilmesi gerekir. \r\n CCP1CON.4=DUTY.0\r\nCCP1CON.5=DUTY.1\r\nCCPR1L=duty&gt;&gt;2\r\nCCP1CON.2=1 'bu iki komut ile PWM sinyali a\u00e7\u0131lm\u0131\u015f olacakt\u0131r\r\nCCP1CON.3=1\r\n\r\n \r\nBASLA:\r\ndon=don+1\r\nif don&gt;1 then \r\n    don=0\r\n    CCP1CON.2=1 'bu iki komut ile PWM sinyali a\u00e7\u0131lm\u0131\u015f olacakt\u0131r\r\n    CCP1CON.3=1\r\n  else\r\n       CCP1CON.2=0 'bu iki komut ile PWM sinyali kapanm\u0131\u015f olacakt\u0131r\r\n        CCP1CON.3=0\r\n    endif\r\n    pause 10        \r\n if gpio.5=0 then     ; Giri\u015f portunu kontrol et. \r\n  gpio.0=0            ; \u00c7\u0131k\u0131\u015f portunu 0 yap\r\n else\r\n  gpio.0=1            ; \u00c7\u0131k\u0131\u015f portunu 1 yap\r\n endif \r\n\r\ngoto basla\r\n\r\n\r\nend<\/pre>\n<p>Yukar\u0131daki programda 22. ve 23. sat\u0131rlar\u0131 38Khz i\u00e7in a\u00e7\u0131klamada oldu\u011fu gibi de\u011fi\u015ftirmeniz yeterlidir.Program 36Khz e g\u00f6re ayarl\u0131d\u0131r. <span style=\"color: #ff6600;\">PIC12F683 i\u00e7 osilat\u00f6r\u00fc kullan\u0131lmaktad\u0131r.<\/span><\/p>\n<p><a href=\"https:\/\/www.vishay.com\/docs\/82459\/tsop48.pdf\" target=\"_blank\" rel=\"noopener\"><strong>TSOP44xx al\u0131c\u0131 g\u00f6z\u00fcn bilgileri<\/strong><\/a>\u00a0Bu kaynak i\u00e7erisinde \u00e7e\u015fitli frekanslara ait al\u0131c\u0131 g\u00f6zlerin bilgilerini de bulabileceksiniz.<br \/>\n\u00c7e\u015fitli al\u0131c\u0131 g\u00f6z tipleri :<br \/>\n<img decoding=\"async\" class=\"wp-image-1271 alignleft lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/4438.jpg\" alt=\"\" width=\"226\" height=\"226\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 226px; --smush-placeholder-aspect-ratio: 226\/226;\" \/> <img decoding=\"async\" class=\"wp-image-1272 alignright lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/alici_1.png\" alt=\"\" width=\"366\" height=\"182\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 366px; --smush-placeholder-aspect-ratio: 366\/182;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_1273\" aria-describedby=\"caption-attachment-1273\" style=\"width: 152px\" class=\"wp-caption alignleft\"><img decoding=\"async\" class=\"wp-image-1273 lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/tsop-1738-500x500.jpg\" alt=\"\" width=\"152\" height=\"200\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 152px; --smush-placeholder-aspect-ratio: 152\/200;\" \/><figcaption id=\"caption-attachment-1273\" class=\"wp-caption-text\">TSOP 1738<\/figcaption><\/figure>\n<p><img decoding=\"async\" class=\"size-full wp-image-1277 alignright lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/1s-l300.jpg\" alt=\"\" width=\"300\" height=\"218\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/218;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\">Daha farkl\u0131 tipte de al\u0131c\u0131 g\u00f6zlere rastlayabilirsiniz.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/drive.google.com\/open?id=1JJsIfa2J1MFiUk5Bwb5DsfjeuB2Vo3-t\" target=\"_blank\" rel=\"noopener\"><strong>T\u00fcm dosyalara bu linkten ula\u015fabilirsiniz.\u00a0<\/strong><\/a><\/p>\n<p><span style=\"color: #ff0000;\">Mikro kontrolc\u00fc kullanmadan<\/span>, ben bu tip bir devre yapmak istiyorum diyorsan\u0131z, o da olur.<br \/>\n<a href=\"https:\/\/forelectronics.wordpress.com\/2014\/05\/09\/tsop-based-ir-sensor\/\" target=\"_blank\" rel=\"noopener\"><strong>Bu sayfadaki devreyi inceleyebilirsiniz.<\/strong><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>Bu devreye neden ihtiya\u00e7 oldu.<\/strong><\/span><iframe data-src=\"https:\/\/www.youtube.com\/embed\/afgUeYWiHuU\" width=\"640\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe><\/p>\n<p><span style=\"color: #ff0000;\"><strong>Ger\u00e7ek devrenin \u00e7al\u0131\u015fmas\u0131 ve y\u00fczeye g\u00f6re mesafe de\u011fi\u015fimi.\u00a0<\/strong><\/span><br \/>\n<iframe data-src=\"https:\/\/www.youtube.com\/embed\/T-RMav84nFQ\" width=\"640\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe><\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #ff0000;\"><strong>Ger\u00e7ek devrenin \u00e7izimleri, program\u0131 ve videosu a\u015fa\u011f\u0131dad\u0131r.\u00a0<\/strong><\/span><\/h2>\n<p><a href=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/IR_gercek_son_sema.jpg\" rel=\"lightbox[1255]\"><img decoding=\"async\" class=\"lightbox aligncenter wp-image-1313 size-full lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/IR_gercek_son_sema.jpg\" alt=\"\" width=\"976\" height=\"659\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 976px; --smush-placeholder-aspect-ratio: 976\/659;\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/IR_gercek_son_pcb.jpg\" rel=\"lightbox[1255]\"><img decoding=\"async\" class=\"lightbox aligncenter wp-image-1314 size-full lazyload\" data-src=\"https:\/\/www.mikrobotik.com\/wp2\/wp-content\/uploads\/2019\/04\/IR_gercek_son_pcb.jpg\" alt=\"\" width=\"931\" height=\"495\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 931px; --smush-placeholder-aspect-ratio: 931\/495;\" \/><\/a><\/p>\n<p><strong>PCB tek y\u00fczl\u00fc olarak dizayn edildi.<\/strong> Bundan dolay\u0131 <strong>JUMPER<\/strong> yazan yerde bir <strong>atlama teli<\/strong> var.\u00a0\u0130sterseniz 2 y\u00fczl\u00fc olarak \u00e7izebilirsiniz. Bu \u015fekilde yaparsan\u0131z T\u00fcm diren\u00e7leri SMD olarak kullanabilirsiniz.<\/p>\n<p>Ger\u00e7ek denenmi\u015f devre i\u00e7in T\u00fcm dok\u00fcmanlara <strong><a href=\"https:\/\/drive.google.com\/open?id=1K3A4-XOynHkk8C8Ya5jkBlDZ05-xSsvu\" target=\"_blank\" rel=\"noopener\">buradan ula\u015fabilirsiniz<\/a><\/strong>.<\/p>\n<p><strong><span style=\"color: #ff0000;\">AYRICA BU MOD\u00dcL KULLANILARAK YAPILAN AYDINLATMA KONTROL\u00dc DE BU<\/span> <a href=\"https:\/\/drive.google.com\/open?id=1MLWPLjjlRlVWEAlNPK44qwk98d4wiClW\" target=\"_blank\" rel=\"noopener\">L\u0130NKTED\u0130R.\u00a0<\/a><\/strong><\/p>\n<p><span style=\"color: #ff0000;\"><strong>AYDINLATMA DEVRES\u0130NDE \u0130HT\u0130YA\u00c7 G\u00d6STEREN POWER ON RESET DEVRE A\u00c7IKLAMASINA DA<\/strong><\/span> <a href=\"https:\/\/www.mikrobotik.com\/wp2\/2019\/02\/25\/power-on-reset\/\" target=\"_blank\" rel=\"noopener\"><strong>BURADAN ULA\u015eAB\u0130L\u0130RS\u0130N\u0130Z.<\/strong><\/a><\/p>\n<p>\u00c7al\u0131\u015fma videosu :<iframe data-src=\"https:\/\/www.youtube.com\/embed\/wcQ29AOC0_8\" width=\"640\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\"><\/iframe><br \/>\nDevreler hakk\u0131nda g\u00f6r\u00fc\u015f ve sorular\u0131n\u0131z\u0131 buradan ya da Facebook \u00fczerinden iletebilirsiniz. <strong>Buradan g\u00f6r\u00fc\u015f bildirmenizi tavsiye ederim<\/strong>. Konu hakk\u0131ndaki g\u00f6r\u00fc\u015fleriniz burada g\u00f6r\u00fcnecek ve di\u011fer okuyucular sizin g\u00f6r\u00fc\u015flerinizden faydalanacakt\u0131r.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IR sens\u00f6r devresinin ger\u00e7ekle\u015ftirilmi\u015f hali Bu sayfan\u0131n en sonundad\u0131r. Denenerek, Sonradan eklenmi\u015ftir. \u00d6nceki bilgiler TEOR\u0130 ve PROTOT\u0130P devreye aittir. IR sens\u00f6rler a\u015fa\u011f\u0131daki resimde g\u00f6sterildi\u011fi gibi I\u015eIK tayf\u0131n\u0131n \u0130nfrared b\u00f6lgesinde yer&#8230; <\/p>\n","protected":false},"author":1,"featured_media":1281,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,19,3,11],"tags":[],"class_list":["post-1255","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-aydinlatma","category-pic","category-robo"],"_links":{"self":[{"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/posts\/1255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/comments?post=1255"}],"version-history":[{"count":3,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/posts\/1255\/revisions"}],"predecessor-version":[{"id":2481,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/posts\/1255\/revisions\/2481"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/media\/1281"}],"wp:attachment":[{"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/media?parent=1255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/categories?post=1255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mikrobotik.com\/wp2\/wp-json\/wp\/v2\/tags?post=1255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}