{"id":3041,"date":"2024-12-09T17:05:54","date_gmt":"2024-12-09T09:05:54","guid":{"rendered":"https:\/\/meskernel.net\/?p=3041"},"modified":"2025-06-09T15:08:53","modified_gmt":"2025-06-09T07:08:53","slug":"mesafe-olcum-sistemi","status":"publish","type":"post","link":"https:\/\/meskernel.net\/tr\/distance-measurement-system\/","title":{"rendered":"Arduino ile 5 Ad\u0131mda Mesafe \u00d6l\u00e7\u00fcm Sistemi Nas\u0131l Kurulur?"},"content":{"rendered":"<h4 class=\"wp-block-heading\"><strong>Giri\u015f<\/strong><\/h4>\n\n\n\n<p>Do\u011fru <a href=\"https:\/\/meskernel.net\/tr\/object-distance-measurement\/\">mesafe \u00f6l\u00e7\u00fcm\u00fc<\/a> sistemi robotik, otomasyon ve IoT gibi alanlarda kritik bir rol oynamaktad\u0131r. LDK lazer sens\u00f6r serisi, y\u00fcksek hassasiyeti, h\u0131zl\u0131 tepki s\u00fcreleri ve istikrarl\u0131 performans\u0131 ile \u00f6ne \u00e7\u0131kmakta ve modern mesafe \u00f6l\u00e7\u00fcm sistemi i\u00e7in ideal se\u00e7im haline gelmektedir. Bir entegre ederek <a href=\"https:\/\/forum.arduino.cc\/t\/witch-sensor-do-you-recommend-for-my-project\/1334504\/6\" target=\"_blank\" rel=\"noopener\">Arduino<\/a> board with an LDK laser sensor, you can easily build an efficient and reliable distance measurement system tailored to your project needs. This guide explains how to achieve this goal in 5 simple steps, perfect for beginners and tech enthusiasts.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. LDK Lazer Sens\u00f6rlerine Giri\u015f<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.1 LDK Lazer Sens\u00f6rleri Nas\u0131l \u00c7al\u0131\u015f\u0131r?<\/strong><\/h3>\n\n\n\n<p>LDK <a href=\"https:\/\/meskernel.net\/tr\/laser-sensors-for-railway\/\">lazer sens\u00f6rleri<\/a> Bir lazer \u0131\u015f\u0131n\u0131 yayarak, yans\u0131yan \u0131\u015f\u0131\u011f\u0131 alarak ve nesnenin mesafesini belirlemek i\u00e7in \u0131\u015f\u0131n\u0131n gidi\u015f-d\u00f6n\u00fc\u015f s\u00fcresini hesaplayarak mesafeyi \u00f6l\u00e7er. Geleneksel ultrasonik sens\u00f6rlerle kar\u015f\u0131la\u015ft\u0131r\u0131ld\u0131\u011f\u0131nda, LDK sens\u00f6rleri karma\u015f\u0131k ortamlarda daha y\u00fcksek do\u011fruluk ve daha iyi uyarlanabilirlik sa\u011flar.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u00d6l\u00e7\u00fcm S\u00fcreci:<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Lazer Emisyonu:<\/strong> Sens\u00f6r hedefe do\u011fru bir lazer \u0131\u015f\u0131n\u0131 yayar.<\/li>\n\n\n\n<li><strong>Yans\u0131ma Resepsiyonu:<\/strong> Yans\u0131yan \u0131\u015f\u0131n sens\u00f6re geri d\u00f6ner.<\/li>\n\n\n\n<li><strong>Zaman Bazl\u0131 Hesaplama:<\/strong> Sens\u00f6r, lazer \u0131\u015f\u0131n\u0131n\u0131n gidi\u015f-d\u00f6n\u00fc\u015f s\u00fcresine g\u00f6re mesafeyi hesaplar.<\/li>\n<\/ol>\n\n\n\n<p><strong>\u00d6nerilen Modeller:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>LDK-20M:<\/strong> \u015eunlar i\u00e7in ideal <a href=\"https:\/\/meskernel.net\/tr\/product\/tof-lazer-mesafe-sensoru\/\">orta menzi\u0307l \u00f6l\u00e7\u00fcmleri\u0307<\/a>end\u00fcstriyel senaryolarda yayg\u0131n olarak kullan\u0131l\u0131r.<\/li>\n\n\n\n<li><strong>LDK-50M:<\/strong> \u015eunlar i\u00e7in uygundur <a href=\"https:\/\/meskernel.net\/tr\/product\/laser-ranging-sensor-ptfs-700m\/\">uzun menzilli hassas \u00f6l\u00e7\u00fcmler<\/a>Parlak d\u0131\u015f ortam ko\u015fullar\u0131nda bile.<\/li>\n\n\n\n<li><strong>LDK-100M:<\/strong> \u015eunlar i\u00e7in tasarland\u0131 <a href=\"https:\/\/meskernel.net\/tr\/product\/yakinlik-sensoru\/\">ultra uzun mesafeli \u00f6l\u00e7\u00fcmler<\/a> b\u00fcy\u00fck \u00f6l\u00e7ekli end\u00fcstriyel izlemede.<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udc49 <strong><a href=\"https:\/\/meskernel.net\/tr\/urunler\/\">LDK lazer sens\u00f6r \u00fcr\u00fcnleri hakk\u0131nda daha fazlas\u0131n\u0131 ke\u015ffedin<\/a><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. LDK Lazer Sens\u00f6r\u00fcn\u00fcn Arduino'ya Ba\u011flanmas\u0131<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.1 Gerekli Bile\u015fenler<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/meskernel.net\/tr\/arduino-laser-distance-modules\/\">Arduino<\/a> Kurul:<\/strong> Arduino Uno veya Nano iyi \u00e7al\u0131\u015f\u0131r.<\/li>\n\n\n\n<li><strong>LDK Lazer Sens\u00f6r\u00fc:<\/strong> LDK-20M veya LDK-50M gibi \u00f6rnek modeller.<\/li>\n\n\n\n<li><strong>Jumper Kablolar\u0131:<\/strong> Ba\u011flant\u0131lar i\u00e7in.<\/li>\n\n\n\n<li><strong>G\u00fc\u00e7 Kayna\u011f\u0131:<\/strong> USB g\u00fcc\u00fc veya harici bir pil.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.2 Kablolama Talimatlar\u0131<\/strong><\/h3>\n\n\n\n<p>\u00d6rnek olarak LDK-20M'yi kullan\u0131n:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>VCC:<\/strong> Arduino'lara ba\u011flan\u0131n <strong>5V<\/strong> (veya sens\u00f6re ba\u011fl\u0131 olarak 3,3V).<\/li>\n\n\n\n<li><strong>GND:<\/strong> Arduino'ya ba\u011flan\u0131n <strong>GND<\/strong>.<\/li>\n\n\n\n<li><strong>SDA:<\/strong> Arduino'lara ba\u011flan\u0131n <strong>A4<\/strong> (Uno'da).<\/li>\n\n\n\n<li><strong>SCL:<\/strong> Arduino'lara ba\u011flan\u0131n <strong>A5<\/strong> (Uno'da).<\/li>\n<\/ul>\n\n\n\n<p><strong>Kablolama \u0130pucu:<\/strong><br>Kararl\u0131l\u0131\u011f\u0131 sa\u011flamak ve hatalar\u0131 \u00f6nlemek i\u00e7in her ba\u011flant\u0131y\u0131 iki kez kontrol edin.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.3 Ger\u00e7ek D\u00fcnya \u00d6rne\u011fi: Ak\u0131ll\u0131 Depo Sistemi<\/strong><\/h3>\n\n\n\n<p>Bir ak\u0131ll\u0131 depo projesinde, LDK-20M lazer sens\u00f6r\u00fc raf aral\u0131\u011f\u0131n\u0131 do\u011fru bir \u015fekilde \u00f6l\u00e7erek depolama alan\u0131n\u0131 optimize etti ve \u00fcr\u00fcn yerle\u015ftirme s\u0131ras\u0131ndaki hatalar\u0131 azaltt\u0131. <a href=\"https:\/\/meskernel.net\/tr\/blog\/\">\u00d6rnek olay \u00e7al\u0131\u015fmas\u0131n\u0131n tamam\u0131na bak\u0131n<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. Arduino Kodunun Yaz\u0131lmas\u0131<\/strong><\/h2>\n\n\n\n<p>A\u015fa\u011f\u0131daki kodu bilgisayar\u0131n\u0131za y\u00fckleyin <strong>Arduino IDE<\/strong> LDK sens\u00f6r\u00fcnden mesafe \u00f6l\u00e7\u00fcmlerini okumak ve sonu\u00e7lar\u0131 ger\u00e7ek zamanl\u0131 olarak g\u00f6r\u00fcnt\u00fclemek i\u00e7in.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include \n\nvoid setup() {\n  Serial.begin(9600);\n  Wire.begin();\n}\n\nvoid loop() {\n  Wire.beginTransmission(0x29); \/\/ LDK sens\u00f6r\u00fc I2C adresi\n  Wire.write(0x00); \/\/ \u00d6l\u00e7\u00fcm verilerini talep et\n  Wire.endTransmission();\n  Wire.requestFrom(0x29, 2); \/\/ 2 bayt veri okuyun\n\n  if (Wire.available() == 2) {\n    uint16_t mesafe = Wire.read() &lt;&lt; 8 | Wire.read();\n    Serial.print(&quot;Mesafe: &quot;);\n    Serial.print(mesafe);\n    Serial.println(&quot; mm&quot;);\n  }\n\n  delay(500);\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.1 Kod A\u00e7\u0131klamas\u0131<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>I2C Haberle\u015fme:<\/strong> Bu <code>Tel<\/code> k\u00fct\u00fcphanesi Arduino ve LDK sens\u00f6r\u00fc aras\u0131ndaki ileti\u015fimi y\u00f6netir.<\/li>\n\n\n\n<li><strong>Mesafe \u00d6l\u00e7\u00fcm\u00fc:<\/strong> Kod, ger\u00e7ek zamanl\u0131 mesafe verilerini al\u0131r ve g\u00f6r\u00fcnt\u00fcler.<\/li>\n\n\n\n<li><strong>Seri Monit\u00f6r:<\/strong> Sonu\u00e7lar seri monit\u00f6rde milimetre cinsinden g\u00f6r\u00fcn\u00fcr.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4. Test<\/strong> Mesafe \u00d6l\u00e7\u00fcm Sistemi<\/h2>\n\n\n\n<p>Kodu y\u00fckledikten sonra:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Arduino'yu bilgisayar\u0131n\u0131za ba\u011flay\u0131n.<\/li>\n\n\n\n<li>Seri Monit\u00f6r\u00fc a\u00e7\u0131n ve baud h\u0131z\u0131n\u0131 <strong>9600<\/strong>.<\/li>\n\n\n\n<li>Bir nesneyi sens\u00f6re yakla\u015ft\u0131r\u0131n veya uzakla\u015ft\u0131r\u0131n ve g\u00f6r\u00fcnt\u00fclenen \u00f6l\u00e7\u00fcmleri g\u00f6zlemleyin.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"521\" src=\"https:\/\/meskernel.net\/wp-content\/uploads\/2024\/11\/Test-Software-Platform-1024x521.jpg\" alt=\"Test Yaz\u0131l\u0131m Platformu\" class=\"wp-image-2964\" srcset=\"https:\/\/meskernel.net\/wp-content\/uploads\/2024\/11\/Test-Software-Platform-1024x521.jpg 1024w, https:\/\/meskernel.net\/wp-content\/uploads\/2024\/11\/Test-Software-Platform-300x153.jpg 300w, https:\/\/meskernel.net\/wp-content\/uploads\/2024\/11\/Test-Software-Platform-768x390.jpg 768w, https:\/\/meskernel.net\/wp-content\/uploads\/2024\/11\/Test-Software-Platform-1536x781.jpg 1536w, https:\/\/meskernel.net\/wp-content\/uploads\/2024\/11\/Test-Software-Platform-400x203.jpg 400w, https:\/\/meskernel.net\/wp-content\/uploads\/2024\/11\/Test-Software-Platform.jpg 1776w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Test Yaz\u0131l\u0131m Platformu<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4.1 Ger\u00e7ek D\u00fcnya Uygulamas\u0131: Robot Engellerinden Ka\u00e7\u0131nma<\/strong><\/h3>\n\n\n\n<p>A robotics <a href=\"https:\/\/meskernel.net\/tr\/navigation-distance-sensor\/\">navigasyon<\/a> system implemented the LDK-50M laser sensor to detect obstacles dynamically, improving real-time navigation performance. <a href=\"https:\/\/meskernel.net\/tr\/urunler\/\">Daha fazlas\u0131n\u0131 buradan \u00f6\u011frenin<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5. Mesafe \u00d6l\u00e7\u00fcm Sisteminizin Pratik Uygulamalar\u0131<\/strong><\/h2>\n\n\n\n<p>Arduino + LDK lazer sens\u00f6r mesafe \u00d6l\u00e7\u00fcm sisteminiz \u00e7e\u015fitli ger\u00e7ek d\u00fcnya uygulamalar\u0131n\u0131 destekler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>End\u00fcstriyel Otomasyon:<\/strong> \u00c7arp\u0131\u015fmalar\u0131 \u00f6nlemek i\u00e7in ekipman aral\u0131\u011f\u0131n\u0131 izleyin.<\/li>\n\n\n\n<li><strong>Ak\u0131ll\u0131 Robotlar:<\/strong> Do\u011fru engelleri etkinle\u015ftirin <a href=\"https:\/\/meskernel.net\/tr\/animal-detection\/\">tespit<\/a> ve ka\u00e7\u0131nma.<\/li>\n\n\n\n<li><strong>Depo Y\u00f6netimi:<\/strong> Hassas mesafe \u00f6l\u00e7\u00fcmleri ile depolama alan\u0131n\u0131 optimize edin.<\/li>\n\n\n\n<li><strong>\u00c7evresel \u0130zleme:<\/strong> 3D haritalama i\u00e7in lazer sens\u00f6rleri kullan\u0131n ve <a href=\"https:\/\/meskernel.net\/tr\/lidar\/\">\u00f6l\u00e7me<\/a>.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Sonraki Ad\u0131m: Lazer Mesafenizi Ayarlay\u0131n<\/strong> <strong>\u00d6l\u00e7\u00fcm \u00c7\u00f6z\u00fcm\u00fc<\/strong><\/h3>\n\n\n\n<p>E\u011fer y\u00fcksek hassasiyetli, g\u00fcvenilir <a href=\"https:\/\/meskernel.net\/tr\/laser-distance-sensors\/\">lazer mesafe sens\u00f6rleri<\/a>LDK serimiz m\u00fckemmel bir \u00e7\u00f6z\u00fcm sunar. \u00d6zel proje gereksinimlerinizi kar\u015f\u0131lamak i\u00e7in OEM \/ ODM \u00f6zelle\u015ftirme hizmetleri de sa\u011fl\u0131yoruz.<\/p>\n\n\n\n<p>\ud83d\udc49 <a style=\"font-weight: bold;\" href=\"https:\/\/meskernel.net\/tr\/iletisim\/\">Uzman lazer mesafesi i\u00e7in \u015fimdi bize ula\u015f\u0131n<\/a> <strong><a href=\"https:\/\/meskernel.net\/tr\/iletisim\/\">\u00f6l\u00e7\u00fcm \u00e7\u00f6z\u00fcmleri\u0307!<\/a><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-meskernel wp-block-embed-meskernel\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"iC5rM16Snd\"><a href=\"https:\/\/meskernel.net\/tr\/object-distance-measurement\/\">Lazer Sens\u00f6rler ve Kameralar ile Nesne Mesafe \u00d6l\u00e7\u00fcm\u00fcn\u00fc Otomatikle\u015ftirme K\u0131lavuzu<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u300a Guide to Automating Object Distance Measurement with Laser Sensors &amp; Cameras \u300b\u2014Meskernel\" src=\"https:\/\/meskernel.net\/object-distance-measurement\/embed\/#?secret=t6lEQ4cL5C#?secret=iC5rM16Snd\" data-secret=\"iC5rM16Snd\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>","protected":false},"excerpt":{"rendered":"<p>Bir Arduino kart\u0131 ve bir lazer mesafe sens\u00f6r\u00fc kullanarak basit ve do\u011fru bir mesafe \u00f6l\u00e7\u00fcm sisteminin nas\u0131l kurulaca\u011f\u0131n\u0131 \u00f6\u011frenin. Bu k\u0131lavuz, 5 kolay ad\u0131mda donan\u0131m kurulumu, kablolama ve kodlama konular\u0131nda size yol g\u00f6stererek lazer alg\u0131lama teknolojisini ke\u015ffetmek isteyen yeni ba\u015flayanlar ve DIY merakl\u0131lar\u0131 i\u00e7in m\u00fckemmeldir.<\/p>","protected":false},"author":1,"featured_media":3042,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[49],"tags":[],"class_list":["post-3041","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solution"],"_links":{"self":[{"href":"https:\/\/meskernel.net\/tr\/wp-json\/wp\/v2\/posts\/3041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meskernel.net\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meskernel.net\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meskernel.net\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meskernel.net\/tr\/wp-json\/wp\/v2\/comments?post=3041"}],"version-history":[{"count":0,"href":"https:\/\/meskernel.net\/tr\/wp-json\/wp\/v2\/posts\/3041\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/meskernel.net\/tr\/wp-json\/wp\/v2\/media\/3042"}],"wp:attachment":[{"href":"https:\/\/meskernel.net\/tr\/wp-json\/wp\/v2\/media?parent=3041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meskernel.net\/tr\/wp-json\/wp\/v2\/categories?post=3041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meskernel.net\/tr\/wp-json\/wp\/v2\/tags?post=3041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}