{"id":2589,"date":"2025-05-13T15:48:04","date_gmt":"2025-05-13T07:48:04","guid":{"rendered":"https:\/\/lasersensor.net\/?p=2589"},"modified":"2026-02-28T17:01:06","modified_gmt":"2026-02-28T09:01:06","slug":"how-to-connect-raspberry-pi-laser-distance-sensor","status":"publish","type":"post","link":"https:\/\/lasersensor.net\/ar\/how-to-connect-raspberry-pi-laser-distance-sensor\/","title":{"rendered":"\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631 Raspberry Pi: \u0643\u064a\u0641\u064a\u0629 \u062a\u0648\u0635\u064a\u0644\u0647 \u0648\u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0647"},"content":{"rendered":"<h2 class=\"wp-block-heading\">\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631 Raspberry Pi: \u0627\u0644\u062f\u0644\u064a\u0644 \u0627\u0644\u0643\u0627\u0645\u0644 \u0644\u0644\u0625\u0639\u062f\u0627\u062f \u0648\u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645<\/h2><p>\u0625\u0646 \u0627\u0644\u062c\u0645\u0639 \u0628\u064a\u0646 <strong>\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0644\u064a\u0632\u0631\u064a \u0628\u0627\u0644\u0644\u064a\u0632\u0631 Raspberry pi<\/strong> \u064a\u0648\u0641\u0631 \u0627\u0644\u0625\u0639\u062f\u0627\u062f \u0644\u0644\u0645\u0637\u0648\u0631\u064a\u0646 \u0648\u0627\u0644\u0647\u0648\u0627\u0629 \u0648\u0627\u0644\u0645\u0647\u0646\u062f\u0633\u064a\u0646 \u062d\u0644\u0627\u064b \u0642\u0648\u064a\u064b\u0627 \u0648\u0645\u062f\u0645\u062c\u064b\u0627 \u0644\u0642\u064a\u0627\u0633 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u062f\u0648\u0646 \u062a\u0644\u0627\u0645\u0633. \u0633\u0648\u0627\u0621 \u0643\u0646\u062a \u062a\u0639\u0645\u0644 \u0639\u0644\u0649 \u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0627\u0644\u0631\u0648\u0628\u0648\u062a\u0627\u062a \u0623\u0648 \u0627\u0644\u0623\u062a\u0645\u062a\u0629 \u0623\u0648 \u0625\u0646\u062a\u0631\u0646\u062a \u0627\u0644\u0623\u0634\u064a\u0627\u0621\u060c \u0641\u0625\u0646 \u062f\u0645\u062c <strong><a href=\"https:\/\/lasersensor.net\/ar\/product\/ldk-laser-distance-sensor-arduino\/\"><span style=\"color: #0693e3;\" class=\"stk-highlight\">\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631 \u0645\u0639 \u0631\u0627\u0633\u0628\u064a\u0631\u064a \u0628\u0627\u064a<\/span><\/a><\/strong> \u062a\u062a\u064a\u062d \u0642\u064a\u0627\u0633\u064b\u0627 \u062f\u0642\u064a\u0642\u064b\u0627 \u0648\u0645\u0648\u062b\u0648\u0642\u064b\u0627 \u0639\u0644\u0649 \u0646\u0637\u0627\u0642\u0627\u062a \u0645\u062e\u062a\u0644\u0641\u0629.<\/p><p>\u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u0645\u0642\u0627\u0644\u0629\u060c \u0633\u0648\u0641 \u0646\u0633\u062a\u0643\u0634\u0641 \u0643\u064a\u0641\u064a\u0629 \u062a\u0648\u0635\u064a\u0644 \u0648\u0627\u0633\u062a\u062e\u062f\u0627\u0645 <strong>\u0645\u0633\u062a\u0634\u0639\u0631 \u0644\u064a\u0632\u0631 \u0631\u0627\u0633\u0628\u064a\u0631\u064a \u0628\u0627\u064a \u0628\u0627\u064a<\/strong>\u0648\u0623\u0633\u0627\u0644\u064a\u0628 \u0627\u0644\u062a\u0648\u0627\u0635\u0644 \u0627\u0644\u0634\u0627\u0626\u0639\u0629\u060c \u0648\u0627\u0644\u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0627\u0644\u0639\u0645\u0644\u064a\u0629\u060c \u0648\u0627\u0644\u0646\u0635\u0627\u0626\u062d \u0644\u062a\u062d\u0642\u064a\u0642 \u0627\u0644\u0623\u062f\u0627\u0621 \u0627\u0644\u0623\u0645\u062b\u0644.<\/p><div class=\"wp-block-uagb-image uagb-block-c13d9502 wp-block-uagb-image--layout-default wp-block-uagb-image--effect-static wp-block-uagb-image--align-none\"><figure class=\"wp-block-uagb-image__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/raspberry-pi.jpg\" alt=\"raspberry pi\" class=\"uag-image-2594\" width=\"772\" height=\"512\" title=\"\u0631\u0627\u0633\u0628\u064a\u0631\u064a \u0628\u0627\u064a\" role=\"img\" \/><\/figure><\/div><h3 class=\"wp-block-heading\">\u0645\u0627 \u0647\u0648 \u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631\u061f<\/h3><p>A <span style=\"color: var(--ast-global-color-3);\" class=\"stk-highlight\">\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631<\/span> \u0647\u0648 \u062c\u0647\u0627\u0632 \u064a\u0633\u062a\u062e\u062f\u0645 \u0623\u0634\u0639\u0629 \u0627\u0644\u0644\u064a\u0632\u0631 \u0644\u0642\u064a\u0627\u0633 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0625\u0644\u0649 \u062c\u0633\u0645 \u0645\u0627. \u0648\u0647\u0648 \u064a\u0639\u0645\u0644 \u0639\u0646 \u0637\u0631\u064a\u0642 \u0625\u0635\u062f\u0627\u0631 \u0646\u0628\u0636\u0629 \u0644\u064a\u0632\u0631 \u0648\u062d\u0633\u0627\u0628 \u0627\u0644\u0648\u0642\u062a \u0627\u0644\u0630\u064a \u062a\u0633\u062a\u063a\u0631\u0642\u0647 \u0627\u0644\u0646\u0628\u0636\u0629 \u0644\u062a\u0646\u0639\u0643\u0633 \u0645\u0646 \u0627\u0644\u0647\u062f\u0641\u060c \u0623\u0648 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0637\u0631\u0642 \u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0637\u0648\u0631 \u0623\u0648 \u0627\u0644\u062a\u062b\u0644\u064a\u062b.<\/p><p><strong>\u0627\u0644\u0645\u064a\u0632\u0627\u062a \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629:<\/strong><\/p><ul class=\"wp-block-list\"><li>\u0642\u064a\u0627\u0633 \u0639\u062f\u0645 \u0627\u0644\u062a\u0644\u0627\u0645\u0633<\/li>\n\n<li>\u062f\u0642\u0629 \u0639\u0627\u0644\u064a\u0629 (\u0645\u0646\u062e\u0641\u0636\u0629 \u062a\u0635\u0644 \u0625\u0644\u0649 \u00b1 1 \u0645\u0645)<\/li>\n\n<li>\u0648\u0642\u062a \u0627\u0633\u062a\u062c\u0627\u0628\u0629 \u0633\u0631\u064a\u0639<\/li>\n\n<li>\u0645\u0646\u0627\u0633\u0628\u0629 \u0644\u0644\u0628\u064a\u0626\u0627\u062a \u0627\u0644\u062f\u0627\u062e\u0644\u064a\u0629 \u0648\u0627\u0644\u062e\u0627\u0631\u062c\u064a\u0629<\/li><\/ul><p>\u0647\u0630\u0647 \u0627\u0644\u0645\u064a\u0632\u0627\u062a \u062a\u062c\u0639\u0644 \u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u0627\u0644\u0644\u064a\u0632\u0631 \u0645\u062b\u0627\u0644\u064a\u0629 \u0644\u0644\u0627\u0642\u062a\u0631\u0627\u0646 \u0645\u0639 \u0645\u0646\u0635\u0627\u062a \u0645\u062b\u0644 Raspberry Pi\u060c \u062e\u0627\u0635\u0629 \u0641\u064a \u0627\u0644\u0645\u0634\u0627\u0631\u064a\u0639 \u0627\u0644\u062a\u064a \u062a\u062a\u0637\u0644\u0628 \u062d\u062c\u0645\u064b\u0627 \u0635\u063a\u064a\u0631\u064b\u0627 \u0648\u062f\u0642\u0629.<\/p><h3 class=\"wp-block-heading\">\u0644\u0645\u0627\u0630\u0627 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631 \u0645\u0639 Raspberry Pi\u061f<\/h3><div class=\"wp-block-uagb-image uagb-block-c73141ac wp-block-uagb-image--layout-default wp-block-uagb-image--effect-static wp-block-uagb-image--align-none\"><figure class=\"wp-block-uagb-image__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/Raspberry-PI-Laser-Distance-Sensor.jpg\" alt=\"Raspberry Pi Laser Distance Sensor\" class=\"uag-image-2593\" width=\"800\" height=\"400\" title=\"\u062c\u0647\u0627\u0632 \u0627\u0633\u062a\u0634\u0639\u0627\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631 Raspberry PI\" role=\"img\" \/><figcaption class=\"uagb-image-caption\">\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631 \u0645\u0646 \u0631\u0627\u0633\u0628\u064a\u0631\u064a \u0628\u0627\u064a \u0628\u0627\u064a<\/figcaption><\/figure><\/div><p>\u0625\u0646 <strong>\u0631\u0627\u0633\u0628\u064a\u0631\u064a \u0628\u0627\u064a<\/strong>\u0648\u0647\u0648 \u0643\u0645\u0628\u064a\u0648\u062a\u0631 \u0635\u063a\u064a\u0631 \u0627\u0644\u062d\u062c\u0645 \u0648\u0645\u064a\u0633\u0648\u0631 \u0627\u0644\u062a\u0643\u0644\u0641\u0629 \u0623\u062d\u0627\u062f\u064a \u0627\u0644\u0644\u0648\u062d\u0629\u060c \u064a\u064f\u0633\u062a\u062e\u062f\u0645 \u0639\u0644\u0649 \u0646\u0637\u0627\u0642 \u0648\u0627\u0633\u0639 \u0641\u064a \u0627\u0644\u0646\u0645\u0627\u0630\u062c \u0627\u0644\u0623\u0648\u0644\u064a\u0629 \u0648\u0627\u0644\u0623\u0646\u0638\u0645\u0629 \u0627\u0644\u0645\u062f\u0645\u062c\u0629. \u0645\u0646 \u062e\u0644\u0627\u0644 \u062f\u0645\u062c <strong>\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631 \u0645\u0639 \u0631\u0627\u0633\u0628\u064a\u0631\u064a \u0628\u0627\u064a<\/strong>\u0633\u062a\u062d\u0635\u0644 \u0639\u0644\u0649 \u0627\u0644\u0645\u0632\u0627\u064a\u0627 \u0627\u0644\u062a\u0627\u0644\u064a\u0629:<\/p><ul class=\"wp-block-list\"><li><strong>\u0639\u0627\u0645\u0644 \u0627\u0644\u0634\u0643\u0644 \u0635\u063a\u064a\u0631 \u0627\u0644\u062d\u062c\u0645:<\/strong> \u0645\u062b\u0627\u0644\u064a\u0629 \u0644\u0644\u0623\u0646\u0638\u0645\u0629 \u0627\u0644\u0645\u062d\u0645\u0648\u0644\u0629 \u0623\u0648 \u0627\u0644\u0645\u062f\u0645\u062c\u0629<\/li>\n\n<li><strong>\u0628\u064a\u0626\u0629 \u0642\u0627\u0628\u0644\u0629 \u0644\u0644\u0628\u0631\u0645\u062c\u0629:<\/strong> \u0643\u062a\u0627\u0628\u0629 \u0627\u0644\u0628\u0631\u0627\u0645\u062c \u0627\u0644\u0646\u0635\u064a\u0629 \u0628\u0633\u0647\u0648\u0644\u0629 \u0628\u0644\u063a\u0629 Python\u060c \u0623\u0648 C++C\u060c \u0623\u0648 \u0644\u063a\u0627\u062a \u0623\u062e\u0631\u0649<\/li>\n\n<li><strong>GPIO \u0648\u062f\u0639\u0645 \u0627\u0644\u0648\u0627\u062c\u0647\u0629:<\/strong> \u0627\u0633\u062a\u062e\u062f\u0645 UART\u060c \u0623\u0648 I2C\u060c \u0623\u0648 SPI\u060c \u0623\u0648 USB \u0644\u0644\u0627\u062a\u0635\u0627\u0644<\/li>\n\n<li><strong>\u0645\u0643\u062a\u0628\u0627\u062a \u0645\u0641\u062a\u0648\u062d\u0629 \u0627\u0644\u0645\u0635\u062f\u0631:<\/strong> \u0645\u062a\u0648\u0641\u0631 \u0644\u0644\u0639\u062f\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u0627\u0644\u0634\u0627\u0626\u0639\u0629<\/li><\/ul><p>Whether you are building an autonomous robot, <a href=\"https:\/\/lasersensor.net\/ar\/solutions\/laser-distance-sensor-in-industrial\/\"><span style=\"color: #0693e3;\" class=\"stk-highlight\">a smart measurement system<\/span><\/a>, or a DIY rangefinder, a <strong>\u0645\u0633\u062a\u0634\u0639\u0631 \u0644\u064a\u0632\u0631 \u0631\u0627\u0633\u0628\u064a\u0631\u064a \u0628\u0627\u064a \u0628\u0627\u064a<\/strong> \u0645\u0632\u064a\u062c \u0645\u062a\u0639\u062f\u062f \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0627\u062a \u0648\u0641\u0639\u0627\u0644 \u0645\u0646 \u062d\u064a\u062b \u0627\u0644\u062a\u0643\u0644\u0641\u0629.<\/p><h3 class=\"wp-block-heading\">\u0627\u062e\u062a\u064a\u0627\u0631 \u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0644\u064a\u0632\u0631 \u0627\u0644\u0645\u0646\u0627\u0633\u0628 \u0644\u0640 Raspberry Pi<\/h3><p>\u0639\u0646\u062f \u0627\u062e\u062a\u064a\u0627\u0631 <strong>\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631<\/strong> \u0644 Raspberry Pi \u0627\u0644\u062e\u0627\u0635 \u0628\u0643\u060c \u0636\u0639 \u0641\u064a \u0627\u0639\u062a\u0628\u0627\u0631\u0643 \u0647\u0630\u0647 \u0627\u0644\u0639\u0648\u0627\u0645\u0644 \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629:<\/p><figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u0627\u0644\u0645\u064a\u0632\u0629<\/th><th>\u0627\u0644\u062a\u0648\u0635\u064a\u0629<\/th><\/tr><\/thead><tbody><tr><td><strong>\u0627\u0644\u0648\u0627\u062c\u0647\u0629<\/strong><\/td><td>TTTL (UART)\u060c USB\u060c RS232\u060c I2C<\/td><\/tr><tr><td><strong>\u062c\u0647\u062f \u0627\u0644\u062a\u0634\u063a\u064a\u0644<\/strong><\/td><td>\u0645\u062a\u0648\u0627\u0641\u0642 \u0645\u0639 3.3 \u0641\u0648\u0644\u062a \u0623\u0648 5 \u0641\u0648\u0644\u062a<\/td><\/tr><tr><td><strong>\u0646\u0637\u0627\u0642 \u0627\u0644\u0642\u064a\u0627\u0633<\/strong><\/td><td>\u0627\u062e\u062a\u0631 \u0628\u0646\u0627\u0621\u064b \u0639\u0644\u0649 \u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0643 (0.03-200 \u0645 \u0644\u0644\u0623\u0645\u0627\u0643\u0646 \u0627\u0644\u062f\u0627\u062e\u0644\u064a\u0629\/\u062e\u0627\u0631\u062c \u0627\u0644\u0645\u0646\u0632\u0644)<\/td><\/tr><tr><td><strong>\u0627\u0644\u062a\u0631\u062f\u062f<\/strong><\/td><td>3-30 \u0647\u0631\u062a\u0632 \u062d\u0633\u0628 \u0627\u062d\u062a\u064a\u0627\u062c\u0627\u062a \u0627\u0644\u062a\u062d\u062f\u064a\u062b<\/td><\/tr><tr><td><strong>\u0627\u0644\u062f\u0642\u0629<\/strong><\/td><td>\u0639\u0627\u062f\u0629\u064b 1-3 \u0645\u0645 \u0644\u0644\u0637\u0631\u0627\u0632\u0627\u062a \u0645\u0646 \u0627\u0644\u062f\u0631\u062c\u0629 \u0627\u0644\u0635\u0646\u0627\u0639\u064a\u0629<\/td><\/tr><tr><td><strong>\u062d\u0645\u0627\u064a\u0629 \u0627\u0644\u0628\u064a\u0626\u0629<\/strong><\/td><td>\u0645\u0648\u062f\u064a\u0644\u0627\u062a \u0645\u0635\u0646\u0641\u0629 IP54\/IP67 \u0644\u0644\u0628\u064a\u0626\u0627\u062a \u0627\u0644\u0642\u0627\u0633\u064a\u0629<\/td><\/tr><\/tbody><\/table><\/figure><p>\u0646\u0635\u064a\u062d\u0629 \u0627\u062d\u062a\u0631\u0627\u0641\u064a\u0629: \u0628\u0627\u0644\u0646\u0633\u0628\u0629 \u0644\u0644\u0646\u0645\u0627\u0630\u062c \u0627\u0644\u0623\u0648\u0644\u064a\u0629 \u0627\u0644\u0633\u0631\u064a\u0639\u0629\u060c \u0636\u0639 \u0641\u064a \u0627\u0639\u062a\u0628\u0627\u0631\u0643 \u0646\u0645\u0627\u0630\u062c USB\u061b \u0623\u0645\u0627 \u0628\u0627\u0644\u0646\u0633\u0628\u0629 \u0644\u0644\u062a\u062d\u0643\u0645 \u0627\u0644\u0645\u062f\u0645\u062c\u060c \u0641\u064a\u0641\u0636\u0644 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 TTL UART.<\/p><h3 class=\"wp-block-heading\">\u0643\u064a\u0641\u064a\u0629 \u062a\u0648\u0635\u064a\u0644 \u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631 \u0628\u062c\u0647\u0627\u0632 Raspberry Pi<\/h3><h4 class=\"wp-block-heading\">\u0627\u062a\u0635\u0627\u0644 TTL UART (\u0627\u0644\u0623\u0643\u062b\u0631 \u0634\u064a\u0648\u0639\u0627\u064b)<\/h4><h4 class=\"wp-block-heading\">\u0645\u062e\u0637\u0637 \u0627\u0644\u0623\u0633\u0644\u0627\u0643<\/h4><figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u062f\u0628\u0648\u0633 \u0627\u0644\u0627\u0633\u062a\u0634\u0639\u0627\u0631<\/th><th>\u062f\u0628\u0648\u0633 \u0631\u0627\u0633\u0628\u064a\u0631\u064a \u0628\u0627\u064a \u0628\u0627\u064a<\/th><\/tr><\/thead><tbody><tr><td>VCC<\/td><td>5 \u0641\u0648\u0644\u062a (\u0627\u0644\u062f\u0628\u0648\u0633 2) \u0623\u0648 3.3 \u0641\u0648\u0644\u062a (\u0627\u0644\u062f\u0628\u0648\u0633 1)<\/td><\/tr><tr><td>GND<\/td><td>GND (\u0627\u0644\u062f\u0628\u0648\u0633 6)<\/td><\/tr><tr><td>\u062a\u0643\u0633\u0627\u0633<\/td><td>GPIO15 (RXD\u060c \u0627\u0644\u062f\u0628\u0648\u0633 10)<\/td><\/tr><tr><td>RX<\/td><td>GPIO14 (TXD\u060c \u0627\u0644\u062f\u0628\u0648\u0633 8)<\/td><\/tr><\/tbody><\/table><\/figure><div class=\"wp-block-uagb-image uagb-block-f512d326 wp-block-uagb-image--layout-default wp-block-uagb-image--effect-static wp-block-uagb-image--align-none\"><figure class=\"wp-block-uagb-image__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/pin.jpg\" alt=\"laser sensor pin\" class=\"uag-image-2591\" width=\"800\" height=\"435\" title=\"\u062f\u0628\u0648\u0633 \u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0644\u064a\u0632\u0631\" role=\"img\" \/><\/figure><\/div><p>\u0647\u0646\u0627\u0643 \u0623\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641\u0629 \u0645\u0646 \u0623\u062c\u0647\u0632\u0629 \u0627\u0633\u062a\u0634\u0639\u0627\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631\u060c \u0645\u062b\u0644:<\/p><ul class=\"wp-block-list\"><li>\u0648\u062d\u062f\u0627\u062a \u0642\u0627\u0626\u0645\u0629 \u0639\u0644\u0649 UART\/\u0633\u064a\u0631\u064a\u0627\u0644<\/li>\n\n<li>\u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0639\u0644\u0649 I2C<\/li>\n\n<li>\u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u0644\u064a\u0632\u0631 USB<\/li><\/ul><h4 class=\"wp-block-heading\">\u0645\u062b\u0627\u0644 \u0639\u0644\u0649 \u0627\u0644\u0625\u0639\u062f\u0627\u062f \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 UART (\u0627\u062a\u0635\u0627\u0644 \u062a\u0633\u0644\u0633\u0644\u064a)<\/h4><h5 class=\"wp-block-heading\">\u0627\u0644\u0645\u0643\u0648\u0646\u0627\u062a \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629:<\/h5><ul class=\"wp-block-list\"><li>Raspberry Pi (\u0623\u064a \u0637\u0631\u0627\u0632 \u0645\u0632\u0648\u062f \u0628\u0625\u0645\u0643\u0627\u0646\u064a\u0629 \u0627\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 GPIO)<\/li>\n\n<li>\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631 \u0645\u0639 \u062e\u0631\u062c UART (\u0639\u0644\u0649 \u0633\u0628\u064a\u0644 \u0627\u0644\u0645\u062b\u0627\u0644\u060c 905 \u0646\u0627\u0646\u0648\u0645\u062a\u0631 \u0623\u0648 \u0648\u062d\u062f\u0629 \u0642\u0627\u0626\u0645\u0629 \u0639\u0644\u0649 \u0627\u0644\u062a\u0631\u062f\u062f\u0627\u062a \u0627\u0644\u0639\u0627\u0644\u064a\u0629)<\/li>\n\n<li>\u0645\u062d\u0648\u0644 \u0627\u0644\u0645\u0633\u062a\u0648\u0649 (\u0625\u0630\u0627 \u0643\u0627\u0646 \u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631 \u064a\u0639\u0645\u0644 \u0628\u062c\u0647\u062f 5 \u0641\u0648\u0644\u062a \u0648Pi \u0628\u062c\u0647\u062f 3.3 \u0641\u0648\u0644\u062a)<\/li>\n\n<li>\u0623\u0633\u0644\u0627\u0643 \u0627\u0644\u062a\u0648\u0635\u064a\u0644<\/li><\/ul><h5 class=\"wp-block-heading\">\u062e\u0637\u0648\u0627\u062a \u0627\u0644\u0627\u062a\u0635\u0627\u0644:<\/h5><ol class=\"wp-block-list\"><li><strong>\u0648\u0635\u0650\u0651\u0644 GND \u0648VCC<\/strong>: \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631 (\u0639\u0627\u062f\u0629\u064b 5 \u0641\u0648\u0644\u062a \u0623\u0648 3.3 \u0641\u0648\u0644\u062a \u062d\u0633\u0628 \u0627\u0644\u0648\u062d\u062f\u0629)<\/li>\n\n<li><strong>TX \u0645\u0646 \u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631 \u0625\u0644\u0649 RX (GPIO15)<\/strong> \u0639\u0644\u0649 \u0631\u0627\u0633\u0628\u064a\u0631\u064a \u0628\u0627\u064a<\/li>\n\n<li><strong>RX \u0645\u0646 \u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631 \u0625\u0644\u0649 TX (GPIO14)<\/strong> - \u063a\u0627\u0644\u0628\u064b\u0627 \u0645\u0646 \u062e\u0644\u0627\u0644 \u0645\u063a\u064a\u0631 \u0645\u0633\u062a\u0648\u0649<\/li>\n\n<li>\u062a\u0645\u0643\u064a\u0646 \u0627\u0644\u0648\u0627\u062c\u0647\u0629 \u0627\u0644\u062a\u0633\u0644\u0633\u0644\u064a\u0629 \u0639\u0644\u0649 Raspberry Pi \u0639\u0628\u0631 <code>\u0631\u0627\u0633\u0628\u064a-\u0643\u0648\u0646\u0641\u064a\u062c<\/code><\/li>\n\n<li>\u0627\u0633\u062a\u062e\u062f\u0645 Python \u0644\u0642\u0631\u0627\u0621\u0629 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a:<\/li><\/ol><blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>\u0645\u0644\u0627\u062d\u0638\u0629<\/strong>: \u0625\u0630\u0627 \u0643\u0627\u0646 \u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631 \u064a\u0639\u0645\u0644 \u0628\u0645\u0646\u0637\u0642 TTL \u0628\u062c\u0647\u062f 5 \u0641\u0648\u0644\u062a TTL \u0648 Pi \u0627\u0644\u062e\u0627\u0635 \u0628\u0643 3.3 \u0641\u0648\u0644\u062a\u060c \u0627\u0633\u062a\u062e\u062f\u0645 \u0645\u062d\u0648\u0644 \u0645\u0633\u062a\u0648\u0649 \u0645\u0646\u0637\u0642\u064a \u0644\u062a\u062c\u0646\u0628 \u0625\u062a\u0644\u0627\u0641 GPIOs.<\/p><\/blockquote><pre class=\"wp-block-preformatted\"><code>\u0645\u0633\u0644\u0633\u0644 \u0627\u0644\u0627\u0633\u062a\u064a\u0631\u0627\u062f<br><br>ser = serial.Serial.Serial(\"\/dev\/serial0\"\u060c \u0645\u0639\u062f\u0644 \u0627\u0644\u0628\u0627\u0648\u062f=9600\u060c \u0627\u0644\u0645\u0647\u0644\u0629=1)<br>\u0641\u064a \u062d\u064a\u0646 \u0623\u0646 \u0647\u0630\u0627 \u0635\u062d\u064a\u062d:<br>    \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a = ser.readline()<br>    \u0637\u0628\u0627\u0639\u0629(\"\u0627\u0644\u0645\u0633\u0627\u0641\u0629:\", data.decode().strip())<br><\/code><\/pre><h4 class=\"wp-block-heading\">\u062a\u0648\u0635\u064a\u0644 \u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0644\u064a\u0632\u0631 \u0627\u0644\u0645\u0633\u062a\u0646\u062f \u0625\u0644\u0649 I2C<\/h4><p>\u0627\u0644\u0639\u062f\u064a\u062f \u0645\u0646 <strong>\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0644\u064a\u0632\u0631\u064a \u0628\u0627\u0644\u0644\u064a\u0632\u0631 Raspberry pi<\/strong> \u062a\u062f\u0639\u0645 \u0627\u0644\u0648\u062d\u062f\u0627\u062a \u0627\u0644\u0646\u0645\u0637\u064a\u0629 \u0623\u064a\u0636\u064b\u0627 I2C\u060c \u0645\u062b\u0644 \u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u0648\u0642\u062a \u0627\u0644\u0637\u064a\u0631\u0627\u0646 VL53L0X \u0623\u0648 VL53L1X.<\/p><h5 class=\"wp-block-heading\">\u0627\u0644\u062e\u0637\u0648\u0627\u062a:<\/h5><ol class=\"wp-block-list\"><li>\u0642\u0645 \u0628\u062a\u0648\u0635\u064a\u0644 SDA \u0648SCL \u0628\u062f\u0628\u0627\u0628\u064a\u0633 GPIO \u0627\u0644\u0645\u0642\u0627\u0628\u0644\u0629 \u0641\u064a Raspberry Pi<\/li>\n\n<li>\u062a\u0645\u0643\u064a\u0646 I2C \u0641\u064a <code>\u0631\u0627\u0633\u0628\u064a-\u0643\u0648\u0646\u0641\u064a\u062c<\/code><\/li>\n\n<li>\u062a\u062b\u0628\u064a\u062a \u0645\u0643\u062a\u0628\u0627\u062a \u0628\u0627\u064a\u062b\u0648\u0646 \u0627\u0644\u0636\u0631\u0648\u0631\u064a\u0629\u060c \u0639\u0644\u0649 \u0633\u0628\u064a\u0644 \u0627\u0644\u0645\u062b\u0627\u0644:<\/li><\/ol><pre class=\"wp-block-preformatted\"><code>\u062a\u062b\u0628\u064a\u062a \u0627\u0644\u0646\u0642\u0637\u0629 adafruit-circuitpython-vl53l0x<br><\/code><\/pre><ol start=\"4\" class=\"wp-block-list\"><li>\u0631\u0645\u0632 \u0627\u0644\u0639\u064a\u0646\u0629:<\/li><\/ol><pre class=\"wp-block-preformatted\"><code>\u0648\u0642\u062a \u0627\u0644\u0627\u0633\u062a\u064a\u0631\u0627\u062f<br>\u0644\u0648\u062d\u0629 \u0627\u0644\u0627\u0633\u062a\u064a\u0631\u0627\u062f<br>\u0627\u0633\u062a\u064a\u0631\u0627\u062f \u0628\u0648\u0633\u064a\u0648<br>\u0627\u0633\u062a\u064a\u0631\u0627\u062f adafruit_vl53l0x<br><br>i2c = busio.I2C(board.SCL, board.SDA)<br>\u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631 = adafruit_vl53l0x.VL53L0X(i2c)<br><br>\u0641\u064a \u062d\u064a\u0646 \u0623\u0646 \u0647\u0630\u0627 \u0635\u062d\u064a\u062d:<br>    \u0637\u0628\u0627\u0639\u0629(\"\u0627\u0644\u0645\u0633\u0627\u0641\u0629: {} \u0645\u0644\u0645\".format(sensor.range))<br>    \u0633\u0643\u0648\u0646 \u0627\u0644\u0648\u0642\u062a(0.5)<br><\/code><\/pre><h3 class=\"wp-block-heading\">\u062a\u0637\u0628\u064a\u0642\u0627\u062a \u062c\u0647\u0627\u0632 \u0627\u0633\u062a\u0634\u0639\u0627\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631 Raspberry Pi<\/h3><ol class=\"wp-block-list\"><li><strong>\u0627\u0644\u0631\u0648\u0628\u0648\u062a\u0627\u062a<\/strong>: \u0644\u0644\u0645\u0644\u0627\u062d\u0629 \u0648\u062a\u062c\u0646\u0628 \u0627\u0644\u062a\u0635\u0627\u062f\u0645 \u0648\u0627\u0643\u062a\u0634\u0627\u0641 \u0627\u0644\u0623\u062c\u0633\u0627\u0645<\/li>\n\n<li><strong>\u0627\u0644\u0623\u062a\u0645\u062a\u0629 \u0627\u0644\u0635\u0646\u0627\u0639\u064a\u0629<\/strong>: \u0627\u0644\u062a\u063a\u0630\u064a\u0629 \u0627\u0644\u0645\u0631\u062a\u062f\u0629 \u0644\u0644\u0645\u0648\u0642\u0639\u060c \u0642\u064a\u0627\u0633 \u0627\u0644\u0627\u0631\u062a\u0641\u0627\u0639<\/li>\n\n<li><strong>\u0627\u0644\u0632\u0631\u0627\u0639\u0629 \u0627\u0644\u0630\u0643\u064a\u0629<\/strong>: \u0645\u0631\u0627\u0642\u0628\u0629 \u0645\u0633\u062a\u0648\u064a\u0627\u062a \u0627\u0644\u0645\u064a\u0627\u0647 \u0623\u0648 \u0627\u0631\u062a\u0641\u0627\u0639 \u0627\u0644\u0645\u062d\u0627\u0635\u064a\u0644<\/li>\n\n<li><strong>\u0623\u062a\u0645\u062a\u0629 \u0627\u0644\u0645\u0646\u0632\u0644<\/strong>: \u0643\u0634\u0641 \u0627\u0644\u0623\u0628\u0648\u0627\u0628\u060c \u0648\u0645\u0631\u0627\u0642\u0628\u0629 \u0627\u0644\u062a\u0633\u0644\u0644<\/li>\n\n<li><strong>\u0645\u0634\u0627\u0631\u064a\u0639 \u0627\u0635\u0646\u0639\u0647\u0627 \u0628\u0646\u0641\u0633\u0643<\/strong>: \u0623\u062c\u0647\u0632\u0629 \u0642\u064a\u0627\u0633 \u0627\u0644\u0645\u062f\u0649 \u0627\u0644\u0645\u062e\u0635\u0635\u0629\u060c \u0648\u0623\u062c\u0647\u0632\u0629 \u0642\u064a\u0627\u0633 \u0627\u0644\u0645\u062f\u0649 \u0628\u0627\u0644\u0644\u064a\u0632\u0631<\/li><\/ol><div class=\"wp-block-uagb-image uagb-block-d9c9cd13 wp-block-uagb-image--layout-default wp-block-uagb-image--effect-static wp-block-uagb-image--align-none\"><figure class=\"wp-block-uagb-image__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/Raspberry-PI-02.jpg\" alt=\"Raspberry PI\" class=\"uag-image-2592\" width=\"462\" height=\"462\" title=\"\u0631\u0627\u0633\u0628\u064a\u0631\u064a \u0628\u064a \u0622\u064a\" role=\"img\" \/><\/figure><\/div><h3 class=\"wp-block-heading\">\u0646\u0635\u0627\u0626\u062d \u0644\u0644\u0623\u062f\u0627\u0621 \u0627\u0644\u0623\u0645\u062b\u0644<\/h3><ul class=\"wp-block-list\"><li>\u0636\u0645\u0627\u0646 \u0627\u0644\u0645\u062d\u0627\u0630\u0627\u0629 \u0627\u0644\u0645\u0646\u0627\u0633\u0628\u0629 \u0644\u0644\u0645\u0633\u062a\u0634\u0639\u0631 \u0644\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u0642\u0631\u0627\u0621\u0627\u062a \u062f\u0642\u064a\u0642\u0629<\/li>\n\n<li>\u0627\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u062a\u062f\u0631\u064a\u0639 \u0644\u0644\u0623\u0633\u0644\u0627\u0643 \u0627\u0644\u0637\u0648\u064a\u0644\u0629 \u0644\u0645\u0646\u0639 \u0627\u0644\u062a\u062f\u0627\u062e\u0644 \u0627\u0644\u0643\u0647\u0631\u0648\u0645\u063a\u0646\u0627\u0637\u064a\u0633\u064a \u0627\u0644\u0643\u0647\u0631\u0648\u0645\u063a\u0646\u0627\u0637\u064a\u0633\u064a<\/li>\n\n<li>\u062a\u062d\u0642\u0642 \u0645\u0646 \u0645\u062a\u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0637\u0627\u0642\u0629 - \u062a\u062d\u062a\u0627\u062c \u0628\u0639\u0636 \u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u0625\u0644\u0649 \u0637\u0627\u0642\u0629 \u0646\u0638\u064a\u0641\u0629 5 \u0641\u0648\u0644\u062a \u0623\u0648 \u0637\u0627\u0642\u0629 \u062e\u0627\u0631\u062c\u064a\u0629<\/li>\n\n<li>\u0628\u0627\u0644\u0646\u0633\u0628\u0629 \u0644\u0640 <a href=\"https:\/\/lasersensor.net\/ar\/product-category\/laser-rangefinder-sensor-module\/\"><span style=\"color: #0693e3;\" class=\"stk-highlight\"><strong>\u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u062a\u062d\u062f\u064a\u062f \u0627\u0644\u0645\u062f\u0649 \u0627\u0644\u0628\u0639\u064a\u062f \u0628\u0627\u0644\u0644\u064a\u0632\u0631<\/strong><\/span><\/a> (\u062d\u062a\u0649 5000 \u0645\u062a\u0631)\u060c \u0648\u062a\u0623\u0643\u062f \u0645\u0646 \u0648\u062c\u0648\u062f \u062e\u0637 \u0631\u0624\u064a\u0629 \u0645\u0628\u0627\u0634\u0631 \u0648\u062a\u062c\u0646\u0628 \u0627\u0644\u062a\u062f\u0627\u062e\u0644\u0627\u062a \u0627\u0644\u0639\u0627\u0643\u0633\u0629<\/li><\/ul><h3 class=\"wp-block-heading\">\u0627\u0644\u062e\u0627\u062a\u0645\u0629<\/h3><p>\u062f\u0645\u062c <strong>\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0644\u064a\u0632\u0631\u064a \u0628\u0627\u0644\u0644\u064a\u0632\u0631 Raspberry pi<\/strong> \u0645\u062c\u0645\u0648\u0639\u0629 \u0648\u0627\u0633\u0639\u0629 \u0645\u0646 \u0627\u0644\u0625\u0645\u0643\u0627\u0646\u064a\u0627\u062a \u0644\u0644\u0642\u064a\u0627\u0633 \u0627\u0644\u062f\u0642\u064a\u0642 \u0648\u062a\u0635\u0645\u064a\u0645 \u0627\u0644\u0646\u0638\u0627\u0645 \u0627\u0644\u0630\u0643\u064a. \u0648\u0633\u0648\u0627\u0621 \u0643\u0646\u062a \u0647\u0627\u0648\u064a\u064b\u0627 \u064a\u0633\u062a\u0643\u0634\u0641 \u062a\u0643\u0627\u0645\u0644 \u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u0623\u0648 \u0645\u062d\u062a\u0631\u0641\u064b\u0627 \u064a\u0639\u0645\u0644 \u0639\u0644\u0649 \u0628\u0646\u0627\u0621 \u0646\u0645\u0648\u0630\u062c \u0623\u0648\u0644\u064a\u060c \u0641\u0625\u0646 \u0647\u0630\u0627 \u0627\u0644\u0645\u0632\u064a\u062c \u0627\u0644\u0642\u0648\u064a \u064a\u062a\u064a\u062d \u0644\u0643 \u062d\u0644\u0648\u0644\u0627\u064b \u0630\u0643\u064a\u0629 \u0648\u062f\u0642\u064a\u0642\u0629 \u0648\u0645\u062f\u0645\u062c\u0629.<\/p><p>\u0645\u0639 \u0627\u0644\u062a\u0646\u0648\u0639 \u0627\u0644\u0645\u062a\u0632\u0627\u064a\u062f \u0641\u064a <strong>\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0628\u0627\u0644\u0644\u064a\u0632\u0631 \u0631\u0627\u0633\u0628\u064a\u0631\u064a \u0628\u0627\u064a<\/strong> \u0627\u0644\u0648\u062d\u062f\u0627\u062a \u0627\u0644\u0645\u062a\u0648\u0627\u0641\u0642\u0629 \u0641\u064a \u0627\u0644\u0633\u0648\u0642\u060c \u0623\u0635\u0628\u062d \u0645\u0646 \u0627\u0644\u0633\u0647\u0644 \u0623\u0643\u062b\u0631 \u0645\u0646 \u0623\u064a \u0648\u0642\u062a \u0645\u0636\u0649 \u062a\u0637\u0648\u064a\u0631 \u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0645\u0648\u062b\u0648\u0642\u0629 \u0641\u064a \u0645\u062c\u0627\u0644 \u0627\u0644\u0631\u0648\u0628\u0648\u062a\u0627\u062a \u0648\u0627\u0644\u062a\u062d\u0643\u0645 \u0627\u0644\u0635\u0646\u0627\u0639\u064a \u0648\u0627\u0644\u0628\u064a\u0626\u0627\u062a \u0627\u0644\u0630\u0643\u064a\u0629.<\/p><h3 class=\"wp-block-heading\">\u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0634\u0627\u0626\u0639\u0629<\/h3><p><strong>\u0627\u0644\u0633\u0624\u0627\u0644 1: \u0647\u0644 \u064a\u0645\u0643\u0646\u0646\u064a \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0639\u062f\u0629 \u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u0645\u0633\u0627\u0641\u0629 \u0644\u064a\u0632\u0631 \u0645\u0639 \u062c\u0647\u0627\u0632 Raspberry Pi \u0648\u0627\u062d\u062f\u061f<\/strong><br>\u0646\u0639\u0645\u060c \u0625\u0646 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0639\u0646\u0627\u0648\u064a\u0646 I2C \u0645\u062e\u062a\u0644\u0641\u0629 \u0623\u0648 \u0645\u0646\u0627\u0641\u0630 UART \u0645\u062a\u0639\u062f\u062f\u0629 (\u0639\u0628\u0631 \u0645\u062d\u0648\u0644\u0627\u062a USB) \u064a\u062c\u0639\u0644 \u0630\u0644\u0643 \u0645\u0645\u0643\u0646\u064b\u0627.<\/p><p><strong>\u06332: \u0645\u0627 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u062a\u0631\u062f\u0651\u062f \u0627\u0644\u062a\u0631\u062f\u062f\u064a \u0627\u0644\u062a\u0631\u062f\u062f\u064a \u0648\u0645\u0633\u062a\u0634\u0639\u0631 \u0627\u0644\u0646\u0628\u0636\u061f<\/strong><br>\u062a\u064f\u0633\u062a\u062e\u062f\u0645 \u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a ToF (\u0632\u0645\u0646 \u0627\u0644\u062a\u062d\u0644\u064a\u0642) \u0639\u0627\u062f\u0629\u064b \u0641\u064a \u0627\u0644\u0646\u0637\u0627\u0642\u0627\u062a \u0627\u0644\u0642\u0635\u064a\u0631\u0629 (\u0623\u0642\u0644 \u0645\u0646 4 \u0623\u0645\u062a\u0627\u0631) \u0648\u062a\u0648\u0641\u0631 \u062f\u0642\u0629 \u0639\u0627\u0644\u064a\u0629 \u0641\u064a \u0634\u0643\u0644 \u0645\u062f\u0645\u062c. \u062a\u0646\u0627\u0633\u0628 \u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0639\u0644\u0649 \u0627\u0644\u0646\u0628\u0636 \u0627\u0644\u0645\u0633\u0627\u0641\u0627\u062a \u0627\u0644\u0623\u0637\u0648\u0644 (100 \u0645\u062a\u0631 \u0625\u0644\u0649 3000 \u0645\u062a\u0631).<\/p><p><strong>\u06333: \u0647\u0644 \u0623\u062d\u062a\u0627\u062c \u0625\u0644\u0649 \u062a\u062b\u0628\u064a\u062a \u0628\u0631\u0627\u0645\u062c \u062a\u0634\u063a\u064a\u0644 \u0644\u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u0627\u0644\u0644\u064a\u0632\u0631 \u0639\u0644\u0649 Raspberry Pi\u061f<\/strong><br>\u0642\u062f \u062a\u062d\u062a\u0627\u062c \u0628\u0639\u0636 \u0627\u0644\u0645\u0633\u062a\u0634\u0639\u0631\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u0646\u062f\u0629 \u0625\u0644\u0649 USB \u0625\u0644\u0649 \u0628\u0631\u0627\u0645\u062c \u062a\u0634\u063a\u064a\u0644\u060c \u0648\u0644\u0643\u0646 \u0645\u0639\u0638\u0645 \u0627\u0644\u0648\u062d\u062f\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u0646\u062f\u0629 \u0625\u0644\u0649 UART \u0648 I2C \u064a\u0645\u0643\u0646 \u062a\u0648\u0635\u064a\u0644\u0647\u0627 \u0648\u062a\u0634\u063a\u064a\u0644\u0647\u0627 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0645\u0643\u062a\u0628\u0627\u062a Python.<\/p>","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi Laser Distance Sensor: Complete Guide to Setup and Use The combination of a raspberry pi laser distance sensor setup offers developers, hobbyists, and engineers a powerful, compact solution [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2590,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","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":"disabled","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":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"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":""},"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-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":"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":""},"mobile":{"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":""}},"footnotes":""},"categories":[34],"tags":[],"class_list":["post-2589","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-industry-news"],"uagb_featured_image_src":{"full":["https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/how-to-connect-raspberry-pi-with-laser-sensor.jpg",800,400,false],"thumbnail":["https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/how-to-connect-raspberry-pi-with-laser-sensor-150x150.jpg",150,150,true],"medium":["https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/how-to-connect-raspberry-pi-with-laser-sensor-300x150.jpg",300,150,true],"medium_large":["https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/how-to-connect-raspberry-pi-with-laser-sensor-768x384.jpg",768,384,true],"large":["https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/how-to-connect-raspberry-pi-with-laser-sensor.jpg",800,400,false],"1536x1536":["https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/how-to-connect-raspberry-pi-with-laser-sensor.jpg",800,400,false],"2048x2048":["https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/how-to-connect-raspberry-pi-with-laser-sensor.jpg",800,400,false],"trp-custom-language-flag":["https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/how-to-connect-raspberry-pi-with-laser-sensor.jpg",18,9,false],"woocommerce_thumbnail":["https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/how-to-connect-raspberry-pi-with-laser-sensor-300x300.jpg",300,300,true],"woocommerce_single":["https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/how-to-connect-raspberry-pi-with-laser-sensor-600x300.jpg",600,300,true],"woocommerce_gallery_thumbnail":["https:\/\/lasersensor.net\/wp-content\/uploads\/2025\/05\/how-to-connect-raspberry-pi-with-laser-sensor-100x100.jpg",100,100,true]},"uagb_author_info":{"display_name":"mayerxiao01@gmail.com","author_link":"https:\/\/lasersensor.net\/ar\/author\/mayerxiao01gmail-com\/"},"uagb_comment_info":0,"uagb_excerpt":"Raspberry Pi Laser Distance Sensor: Complete Guide to Setup and Use The combination of a raspberry pi laser distance sensor setup offers developers, hobbyists, and engineers a powerful, compact solution [&hellip;]","_links":{"self":[{"href":"https:\/\/lasersensor.net\/ar\/wp-json\/wp\/v2\/posts\/2589"}],"collection":[{"href":"https:\/\/lasersensor.net\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lasersensor.net\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lasersensor.net\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lasersensor.net\/ar\/wp-json\/wp\/v2\/comments?post=2589"}],"version-history":[{"count":1,"href":"https:\/\/lasersensor.net\/ar\/wp-json\/wp\/v2\/posts\/2589\/revisions"}],"predecessor-version":[{"id":3256,"href":"https:\/\/lasersensor.net\/ar\/wp-json\/wp\/v2\/posts\/2589\/revisions\/3256"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lasersensor.net\/ar\/wp-json\/wp\/v2\/media\/2590"}],"wp:attachment":[{"href":"https:\/\/lasersensor.net\/ar\/wp-json\/wp\/v2\/media?parent=2589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lasersensor.net\/ar\/wp-json\/wp\/v2\/categories?post=2589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lasersensor.net\/ar\/wp-json\/wp\/v2\/tags?post=2589"}],"curies":[{"name":"\u062f\u0628\u0644\u064a\u0648 \u0628\u064a","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}