{"id":7293,"date":"2020-06-04T00:00:19","date_gmt":"2020-06-03T15:00:19","guid":{"rendered":"https:\/\/techclass.wfjydl.com\/?p=7293"},"modified":"2022-11-21T16:01:31","modified_gmt":"2022-11-21T08:01:31","slug":"%e5%88%a9%e7%94%a8parallax%e6%bf%80%e5%85%89%e4%bc%a0%e6%84%9f%e5%99%a8%e5%88%b6%e4%bd%9carduino%e6%bf%80%e5%85%89%e6%9c%ba%e5%99%a8%e4%ba%ba-%e7%ac%ac2%e9%83%a8%e5%88%86","status":"publish","type":"post","link":"https:\/\/techclass.wfjydl.com\/knowledge\/deviceplus\/how-tos\/arduino\/make-a-laser-arduino-robot-using-parallax-laser-sensor-part-2","title":{"rendered":"\u5229\u7528Parallax\u6fc0\u5149\u4f20\u611f\u5668\u5236\u4f5cArduino\u6fc0\u5149\u673a\u5668\u4eba\u2014\u7b2c2\u90e8\u5206"},"content":{"rendered":"<p><script type=\"text\/javascript\" charset=\"UTF-8\" src=\"https:\/\/ssl-cache.stream.ne.jp\/www50\/eqa194obdo\/jmc_pub\/jmc_swf\/player\/t3\/if.js\"><\/script><\/p>\n<div class=\"\u201cthe_content_wrapper\u201d\">\u8fd9\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e<a href=\"https:\/\/www.deviceplus.com\/\">DevicePlus.com<\/a>\u82f1\u8bed\u7f51\u7ad9\u7684\u7ffb\u8bd1\u7a3f\u3002<\/p>\n<p class=\"p1\"><a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/deviceplus\/how-tos\/arduino\/make-a-laser-arduino-robot-using-parallax-laser-sensor\"><span class=\"s1\"><b>\u70b9\u51fb\u6b64\u5904\u9605\u8bfb\u672c\u6587\u7684\u7b2c1\u90e8\u5206 &gt;<\/b><\/span><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4660\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4-300x225.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4-195x146.jpg 195w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4-50x38.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4-100x75.jpg 100w\" alt=\"arduino robot\" width=\"700\" height=\"525\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><script type=\"text\/javascript\">\n\tjstream_t3.PlayerFactoryIF.create({\n\tb:\"eqa194obdo.eq.webcdn.stream.ne.jp\/www50\/eqa194obdo\/jmc_pub\/jmc_swf\/player\/\",\n\tc:\"NDc3\",\n\tm:\"NDU4\",\n\ts:{\n\t\thp:360,\n\t\til:\"off\",\n\t\trb:\"off\",\n\t\tsn:\"f,t,g\",\n\t\twp:640\n\t}});\n<\/script><\/p>\n<p><span style=\"font-weight: 400;\">\u5728\u7b2c1\u90e8\u5206\u4e2d\uff0c\u6211\u4eec\u5236\u4f5c\u4e86\u4e00\u5757\u5b9a\u5236\u7684\u4e9a\u514b\u529b\u677f\u5e95\u5ea7\uff0c\u628aNEMA 17\u6b65\u8fdb\u7535\u673a\u5b89\u88c5\u5230\u4e86\u5e95\u76d8\u4e0a\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06Arduino Uno 3\u548c\u7535\u673a\u5f00\u53d1\u677f\u4e5f\u8fde\u5230\u4e9a\u514b\u529b\u5e95\u5ea7\u4e0a\uff0c\u5e76\u5b89\u88c5\u4e86\u7535\u673a\u5f00\u53d1\u677f\u5e93\u3002\u5728\u7b2c2\u90e8\u5206\u4e2d\uff0c\u6211\u4eec\u5c06\u6dfb\u52a0\u673a\u5668\u4eba\u5de5\u4f5c\u6240\u9700\u7684\u5176\u4ed6\u7cfb\u7edf\u90e8\u4ef6\uff0c\u6bd4\u5982\u4f3a\u670d\u5668\u548c\u6fc0\u5149\u6d4b\u8ddd\u4eea\uff08LRF\uff09\uff0c\u5e76\u7f16\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u8ba9\u673a\u5668\u4eba\u80fd\u591f\u81ea\u4e3b\u79fb\u52a8\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u6709\u5173\u5982\u4f55\u5229\u7528Arduino UNO R3\u4ece\u96f6\u5f00\u59cb\u642d\u5efa\u8f6e\u5f0f\u673a\u5668\u4eba\u7684\u4fe1\u606f\uff0c\u8bf7\u53c2\u8003\u6211\u4eec\u5728\u4e4b\u524d\u7684\u6587\u7ae0<\/span><a href=\"https:\/\/www.deviceplus.com\/how-tos\/arduino-guide\/how-to-make-your-own-robot\/\"><span style=\"font-weight: 400;\">\u300a\u5982\u4f55\u5236\u4f5c\u81ea\u5df1\u7684\u673a\u5668\u4eba\u300b<\/span><\/a> <span style=\"font-weight: 400;\">\u548c<\/span><a href=\"https:\/\/www.deviceplus.com\/how-tos\/arduino-guide\/how-to-make-your-own-robot-part-2\/\"><span style=\"font-weight: 400;\">\u300a\u5982\u4f55\u5236\u4f5c\u81ea\u5df1\u7684\u673a\u5668\u4eba\uff08\u7b2c2\u90e8\u5206\uff09\u300b<\/span><\/a><span style=\"font-weight: 400;\">\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8fdb\u4e00\u6b65\u589e\u52a0\u673a\u5668\u4eba\u7684\u529f\u80fd\uff1a\u8ba9\u8be5\u673a\u5668\u4eba\u52a8\u8d77\u6765\u5e76\u4e3a\u5176\u589e\u52a0\u6fc0\u5149\u6d4b\u8ddd\uff08LRF\uff09\u529f\u80fd\uff0c\u4ee5\u4f7f\u8be5\u8bbe\u5907\u80fd\u591f\u68c0\u6d4b\u7269\u4f53\u5e76\u6d4b\u91cf\u8ddd\u79bb\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u8be5\u673a\u5668\u4eba\u7684\u8bbe\u8ba1\u76ee\u6807\u5982\u4e0b\uff1a<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u5411\u524d\u3001\u5411\u540e\u79fb\u52a8\uff1b\u5411\u5de6\u548c\u5411\u53f3\u65cb\u8f6c90\u5ea6\uff1b\u5411\u5de6\u548c\u5411\u53f3\u65cb\u8f6c45\u5ea6\u3002<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u907f\u5f00\u969c\u788d\u7269\u65f6\u6839\u636e\u6700\u4f73\u53ef\u7528\u8def\u5f84\u671d\u4e0d\u540c\u7684\u65b9\u5411\u79fb\u52a8\u3002<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u6d4b\u91cf\u5404\u4e2a\u65b9\u5411\uff08\u524d\u65b9\u3001\u5de6\u53f390\u5ea6\u3001\u5de6\u53f345\u5ea6\uff09\u7684\u8ddd\u79bb\u3002<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u6839\u636e\u53ef\u7528\u7684\u6700\u957f\u8ddd\u79bb\uff0c\u786e\u5b9a\u671d\u54ea\u4e2a\u65b9\u5411\u524d\u8fdb\uff08\u5411\u524d\u3001\u5411\u540e\u3001\u5411\u5de6\u6216\u5411\u53f3\uff09\u3002<\/span><\/li>\n<\/ul>\n<h2><b>\u786c\u4ef6<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">\u5236\u4f5c\u6b64\u673a\u5668\u4eba\u6240\u9700\u7684\u786c\u4ef6\u8bf7\u53c2\u89c1\u4ee5\u4e0b\u786c\u4ef6\u660e\u7ec6\uff0c\u8fd9\u4e9b\u96f6\u90e8\u4ef6\u5728\u8bb8\u591a\u7535\u5546\u5904\u90fd\u53ef\u4ee5\u4e70\u5230\uff08\u660e\u7ec6\u4e2d\u7ed9\u51fa\u4e86\u90e8\u5206\u5730\u5740\uff09\u3002<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Arduino Uno rev 3 (<\/span><i><span style=\"font-weight: 400;\"><a href=\"https:\/\/www.adafruit.com\/products\/50\" target=\"_blank\" rel=\"noopener noreferrer\">www.adafruit.com\/products\/50<\/a>)<\/span><\/i><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u9002\u7528\u4e8eArduino\u7684Adafruit\u6b65\u8fdb\u7535\u673a\u5f00\u53d1\u5957\u4ef6(<\/span><i><span style=\"font-weight: 400;\"><a href=\"https:\/\/www.adafruit.com\/products\/1438\" target=\"_blank\" rel=\"noopener noreferrer\">www.adafruit.com\/products\/1438<\/a>)<\/span><\/i><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u6b65\u8fdb\u7535\u673a (<\/span><a href=\"https:\/\/www.adafruit.com\/products\/324\" target=\"_blank\" rel=\"noopener noreferrer\"><i><span style=\"font-weight: 400;\">www.adafruit.com\/products\/324<\/span><\/i><\/a><span style=\"font-weight: 400;\">)<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u5e95\u76d8\u3001\u87ba\u4e1d\u548c\u5c3e\u8f6e Parallax.com<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u8f66\u8f6e\u3001\u6a61\u80f6\u8f6e\u80ce\u548c\u8f6e\u6bc2 Makeblock.com<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u4f3a\u670d\u88c5\u7f6e\u548c\u5b89\u88c5\u5957\u4ef6 (<\/span><i><span style=\"font-weight: 400;\"><a href=\"https:\/\/www.parallax.com\/product\/570-28015\" target=\"_blank\" rel=\"noopener noreferrer\">www.parallax.com\/product\/570-28015<\/a>)<\/span><\/i><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Parallax\u6fc0\u5149\u6d4b\u8ddd\u4eea (<\/span><i><span style=\"font-weight: 400;\">www.parallax.com\/product\/28044)<\/span><\/i><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">OLED\u663e\u793a\u5c4f (<\/span><a href=\"https:\/\/www.seeedstudio.com\/Grove-OLED-Display-1.12''-p-824.html\" target=\"_blank\" rel=\"noopener noreferrer\"><i><span style=\"font-weight: 400;\">www.seeedstudio.com\/Grove-OLED-Display-1.12\u201d-p-824.html<\/span><\/i><\/a><i><span style=\"font-weight: 400;\">)<\/span><\/i><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u7ea2\u8272\u5305\u88c5\u7eb8\/\u76d2 (<\/span><a href=\"https:\/\/www.seeedstudio.com\/Grove-Red-Wrapper-1*2(4-PCS-pack)-p-2585.html\" target=\"_blank\" rel=\"noopener noreferrer\"><i><span style=\"font-weight: 400;\">https:\/\/www.seeedstudio.com\/Grove-Red-Wrapper-1*2(4-PCS-pack)-p-2585.html<\/span><\/i><\/a><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u9502\u805a\u5408\u7269\u7535\u6c603\u578b\uff0811.1V\uff09\u548c\u8fde\u63a5\u5668 (<\/span><i><span style=\"font-weight: 400;\"><a href=\"https:\/\/www.hobbyking.com\/hobbyking\/store\/__18203__Turnigy_nano_tech_850mAh_3S_45_90C_Lipo_Pack.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.hobbyking.com\/hobbyking\/store\/__18203<\/a><\/span><\/i><\/li>\n<li style=\"font-weight: 400;\"><i><span style=\"font-weight: 400;\">195 x 195 x 3mm\u4e9a\u514b\u529b\u677f (<\/span><i><span style=\"font-weight: 400;\"><a href=\"https:\/\/www.jaycar.com.au\/clear-acrylic-sheet\/p\/HM9509\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.jaycar.com.au\/clear-acrylic-sheet\/p\/HM9509<\/a>)<\/span><\/i><\/i><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><b>\u8f6f\u4ef6<\/b><\/h2>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Arduino IDE<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Adafruit Motor Shield <\/span><a href=\"https:\/\/learn.adafruit.com\/adafruit-motor-shield-v2-for-arduino\/install-software\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Library<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">LCD Display9696 <\/span><span style=\"font-weight: 400;\">Library.zip<\/span><\/li>\n<\/ul>\n<h2><b>\u5de5\u5177<\/b><\/h2>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u5706\u9509<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Dremel \u7535\u52a8\u5de5\u5177<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u7535\u70d9\u94c1<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u8ff7\u4f60\u94a2\u952f<\/span><\/li>\n<\/ul>\n<p><b>\u5b89\u88c5\u5e76\u6d4b\u8bd5\u4f3a\u670d\u5668<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u4e0b\u4e00\u6b65\u662f\u5b89\u88c5\u7528\u4e8e\u5e73\u79fb\u7684\u4f3a\u670d\u5668\u3002\u9996\u5148\uff0c\u8bf7\u7528\u87ba\u9489\u5c06\u4e24\u5757\u5c0f\u677f\u62e7\u5230\u4f3a\u670d\u57fa\u5ea7\u4e0a\uff0c\u7136\u540e\u7528\u87ba\u9489\u5c06\u5176\u56fa\u5b9a\u5230\u4e9a\u514b\u529b\u5e95\u5ea7\u4e0a\uff0c\u5982\u56fe1\u548c\u56fe2\u6240\u793a\u3002\u8bf7\u75282\u4e2a\u87ba\u9489\u5c06\u94dd\u5236\u5b89\u88c5\u67b6\u5b89\u88c5\u5230\u4f3a\u670d\u5668\u7684\u9876\u90e8\u3002<\/span><\/p>\n<div id=\"attachment_4663\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4663\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image09-4.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image09-4.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image09-4-300x173.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image09-4-253x146.jpg 253w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image09-4-50x29.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image09-4-130x75.jpg 130w\" alt=\"arduino robot\" width=\"700\" height=\"404\" aria-describedby=\"caption-attachment-4663\" \/><\/p>\n<p id=\"caption-attachment-4663\" class=\"wp-caption-text\">\u56fe1.\u7528\u4e24\u5c0f\u677f\u5c06\u4f3a\u670d\u5668\u56fa\u5b9a\u5230\u4e9a\u514b\u529b\u5e95\u5ea7\u4e0a<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4658\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4658\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image02-5.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image02-5.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image02-5-300x169.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image02-5-260x146.jpg 260w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image02-5-50x28.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image02-5-133x75.jpg 133w\" alt=\"arduino robot\" width=\"700\" height=\"394\" aria-describedby=\"caption-attachment-4658\" \/><\/p>\n<p id=\"caption-attachment-4658\" class=\"wp-caption-text\">\u56fe2.\u5c06\u94dd\u5236\u5b89\u88c5\u67b6\u5b89\u88c5\u5230\u4f3a\u670d\u5668\u4e0a<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u5982\u56fe3\u6240\u793a\uff0c\u5c06\u4f3a\u670d\u5668\u7684\u63a5\u5934\u8fde\u81f3\u7535\u673a\u5f00\u53d1\u677f\u3002\u7535\u673a\u5f00\u53d1\u677f\u4e0a\u67092\u4e2a\u4f3a\u670d\u5668\u63a5\u5934\uff0c\u5206\u522b\u6807\u8bb0\u4e3a\u201cservo1\u201d\u548c\u201cservo2\u201d\u3002\u672c\u6b21\u8fde\u63a5\u8bf7\u4f7f\u7528<\/span><b>servo1<\/b><span style=\"font-weight: 400;\">\u63a5\u5934\uff08\u5916\u4fa7\u7684\u90a3\u4e2a\uff09\u3002\u8bf7\u6ce8\u610f\uff0c\u5207\u52ff\u63a5\u53cd\u3002<\/span><\/p>\n<div id=\"attachment_4665\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4665\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-04.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-04.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-04-300x146.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-04-260x126.jpg 260w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-04-50x24.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-04-150x73.jpg 150w\" alt=\"arduino robot\" width=\"700\" height=\"340\" aria-describedby=\"caption-attachment-4665\" \/><\/p>\n<p id=\"caption-attachment-4665\" class=\"wp-caption-text\">\u56fe3.\u4f3a\u670d\u4e0e\u7535\u673a\u5f00\u53d1\u677f\u7684\u8fde\u63a5<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u73b0\u5728\uff0c\u6211\u4eec\u53ef\u4ee5\u8fd0\u884c\u7a0b\u5e8f\u4e86\uff0c\u8bf7\u5c06\u4ee5\u4e0b\u4ee3\u7801\u4e0a\u4f20\u5230Arduino\u3002\u65e0\u9700\u5b89\u88c5\u65b0\u5e93\uff0c\u7cfb\u7edf\u6240\u9700\u7684\u5e93\uff08Servo.h\uff09\u90fd\u5df2\u5305\u542b\u5728Arduino IDE\u7a0b\u5e8f\u4e2d\u3002\u4f3a\u670d\u5668\u5e94\u4f7f\u7528Digital\u5f15\u811a10\uff08servo 1\uff09\uff0c\u6216\u8005\u5982\u679c\u4f3a\u670d\u5668\u8fde\u63a5\u5230\u7535\u673a\u5f00\u53d1\u677f\u7684servo 2\uff0c\u90a3\u4e48\u5e94\u4f7f\u7528\u5f15\u811a11\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\/\/***********************************************************************************************\r\n\r\n#include &lt;Servo.h&gt;\r\n\r\nServo panMotor;                      \/\/ servo for laser range finder (lrf) scanning\r\n\r\nint pos = 0;    \/\/ variable to store the servo position\r\n\r\nconst int a = 1000;\r\n\r\nvoid setup()\r\n\r\n{ panMotor.attach(10); }             \/\/ Attach Servo for scanning to pin 10\r\n\r\nvoid loop()\r\n\r\n{\r\n\r\n\/\/ *************************** Scan Left ***********************************    \r\n\r\n   panMotor.write(180);       \/\/ 90 degree\r\n\r\n   delay(a);       \r\n\r\n   panMotor.write(135);       \/\/ 45 degree\r\n\r\n   delay(a);\r\n\r\n\/\/ ************************** Scan Right  **********************************      \r\n\r\n   panMotor.write(45);        \/\/ 45 degree\r\n\r\n   delay(a);     \r\n\r\n   panMotor.write(0);         \/\/ 90 degree\r\n\r\n   delay(a);\r\n\r\n\/\/ ************************* Neutral position *****************************    \r\n\r\n   panMotor.write(90);\r\n\r\n   delay(a);  \r\n\r\n}\r\n\r\n\/\/**************************************************************************************************\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u4ee3\u7801\u5f88\u7b80\u5355\uff0c\u5b83\u8d1f\u8d23\u8ba9\u673a\u5668\u4eba\u4ece\u5de6\u5411\u53f3\u8fdb\u884c\u626b\u63cf\u5e76\u8fd4\u56de\u539f\u59cb\u4f4d\u7f6e\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u4f3a\u670d\u5668\u7684\u5de5\u4f5c\u539f\u7406\u8bf7\u53c2\u89c1\u4ee5\u4e0b\u89c6\u9891\uff1a<\/span><\/p>\n<p><script type=\"text\/javascript\">\n\tjstream_t3.PlayerFactoryIF.create({\n\tb:\"eqa194obdo.eq.webcdn.stream.ne.jp\/www50\/eqa194obdo\/jmc_pub\/jmc_swf\/player\/\",\n\tc:\"NDc3\",\n\tm:\"NDU1\",\n\ts:{\n\t\thp:360,\n\t\til:\"off\",\n\t\trb:\"off\",\n\t\tsn:\"f,t,g\",\n\t\twp:640\n\t}});\n<\/script><\/p>\n<h2><b>\u5b89\u88c5\u6fc0\u5149\u6d4b\u8ddd\u4eea\uff08LRF\uff09<\/b><\/h2>\n<p><a href=\"https:\/\/www.parallax.com\/sites\/default\/files\/downloads\/28044-Laser-Range-Finder-Guide-v1.1.pdf\"><i><span style=\"font-weight: 400;\">\u6fc0\u5149\u6d4b\u8ddd\u4eea\u4ea7\u54c1\u6587\u6863<\/span><\/i><\/a><i><span style=\"font-weight: 400;\">\u2013 Parallax<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">Parallax\u6fc0\u5149\u6d4b\u8ddd\u4eea\uff08LRF\uff09\u6a21\u5757\u662f\u4e00\u6b3e\u5229\u7528\u6fc0\u5149\u6280\u672f\u8ba1\u7b97\u4eea\u5668\u5230\u76ee\u6807\u7269\u4f53\u7684\u8ddd\u79bb\u7684\u6d4b\u91cf\u4eea\u5668\u3002\u8be5\u8bbe\u5907\u6839\u636e\u5149\u5b66\u4e09\u89d2\u6d4b\u91cf\u6cd5\uff08\u6fc0\u5149\u3001\u6444\u50cf\u5934\u548c\u7269\u4f53\u8d28\u5fc3\u4e4b\u95f4\u7684\u7b80\u5355\u4e09\u89d2\u51fd\u6570\uff09\u6765\u8ba1\u7b97\u4eea\u5668\u5230\u76ee\u6807\u7269\u4f53\u7684\u8ddd\u79bb\u3002\u5176\u6700\u4f73\u6d4b\u91cf\u8303\u56f4\u4e3a6\u201348\u82f1\u5bf8\uff0815\u2013122\u5398\u7c73\uff09\uff0c\u6d4b\u91cf\u7cbe\u5ea6\u8bef\u5dee&lt;5\uff05\uff08\u5e73\u57473\uff05\uff09\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u786c\u4ef6\u5b89\u88c5\u5f88\u7b80\u5355\u3002\u53ea\u9700\u5728\u4e9a\u514b\u529b\u677f\u4e0a\u94bb\u4e24\u4e2a\u4e0eLRF\u4f4d\u7f6e\u76f8\u5339\u914d\u7684\u5b54\uff0c\u7136\u540e\u7528\u5851\u6599\u57ab\u7247\u548c\u87ba\u9489\u5c06LRF\u56fa\u5b9a\u5230\u94dd\u5e95\u76d8\u4e0a\u5373\u53ef\uff08\u8bf7\u53c2\u89c1\u56fe5\uff09\u3002<\/span><\/p>\n<div id=\"attachment_4664\" class=\"wp-caption alignnone\" style=\"width: 557px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4664\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-3-e1477704198167.jpg\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-3-e1477704198167.jpg 547w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-3-e1477704198167-300x211.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-3-e1477704198167-207x146.jpg 207w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-3-e1477704198167-50x35.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-3-e1477704198167-107x75.jpg 107w\" alt=\"arduino robot\" width=\"547\" height=\"385\" aria-describedby=\"caption-attachment-4664\" \/><\/p>\n<p id=\"caption-attachment-4664\" class=\"wp-caption-text\">\u56fe4.\u5c06LRF\u7535\u7f06\u8fde\u81f3\u7535\u673a\u5f00\u53d1\u677f<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4666\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4666\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-4.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-4.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-4-300x169.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-4-260x146.jpg 260w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-4-50x28.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image13-4-133x75.jpg 133w\" alt=\"arduino robot\" width=\"700\" height=\"394\" aria-describedby=\"caption-attachment-4666\" \/><\/p>\n<p id=\"caption-attachment-4666\" class=\"wp-caption-text\">\u56fe5.\u5b89\u88c5\u5728\u94dd\u5236\u5b89\u88c5\u67b6\u4e0a\u7684LRF<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u7531\u4e8eLRF\u7684\u6700\u4f73\u6d4b\u91cf\u503c\u4e0a\u9650\u4e3a122\u5398\u7c73\uff0c\u6211\u4eec\u9700\u8981\u5c06\u94dd\u5236\u5b89\u88c5\u67b6\u7a0d\u5fae\u5411\u524d\u5f2f\u66f2\uff0c\u4ee5\u4f7f\u8be5\u8303\u56f4\u59cb\u7ec8\u5c0f\u4e8e120\u5398\u7c73\uff08\u56fe6\uff09\u3002<\/span><\/p>\n<div id=\"attachment_4657\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4657\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-08.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-08.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-08-300x96.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-08-260x83.jpg 260w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-08-50x16.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image-08-150x48.jpg 150w\" alt=\"arduino robot\" width=\"700\" height=\"223\" aria-describedby=\"caption-attachment-4657\" \/><\/p>\n<p id=\"caption-attachment-4657\" class=\"wp-caption-text\">\u56fe6.\u5411\u524d\u5f2f\u66f2\u94dd\u5236\u5b89\u88c5\u67b6\uff0c\u4f7f\u6fc0\u5149\u5230\u5730\u7684\u8ddd\u79bb\u5c0f\u4e8e120\u5398\u7c73<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u8bf7\u5b8c\u5168\u6309\u7167\u56fe7\u5c06\u7535\u7f06\u63a5\u5934\u8fde\u81f3LRF\u3002<\/span><b>GND\u63a5\u5730\uff0cVCC\u63a55V\uff0cSOUT\u63a5\u5f15\u811a8\uff0cSIN\u63a5\u5f15\u811a9\u3002<\/b><\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4661\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4661\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image07-4.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image07-4.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image07-4-300x228.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image07-4-192x146.jpg 192w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image07-4-50x38.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image07-4-99x75.jpg 99w\" alt=\"arduino robot\" width=\"700\" height=\"532\" aria-describedby=\"caption-attachment-4661\" \/><\/p>\n<p id=\"caption-attachment-4661\" class=\"wp-caption-text\">\u56fe7. LRF\u4e0e\u7535\u673a\u5f00\u53d1\u677f\u7684\u8fde\u63a5<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u6211\u4eec\u5df2\u7ecf\u5b8c\u6210\u4e86LRF\u7684\u5b89\u88c5\u548c\u8fde\u63a5\uff0c\u73b0\u5728\u5c31\u6765\u4e0a\u4f20\u4ee3\u7801\u5427\uff01\u540c\u6837\uff0c\u65e0\u9700\u5b89\u88c5\u5e93\u3002\u6211\u4eec\u8981\u7528\u7684<\/span><b>SoftwareSerial.h<\/b><span style=\"font-weight: 400;\">\u5df2\u7ecf\u5305\u542b\u5728Arduino IDE\u4e2d\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u4e0b\u9762\u7684\u4ee3\u7801\u6e90\u81ea\u793a\u4f8b\u4ee3\u7801\uff0c\u6211\u4eec\u53ea\u662f\u8fdb\u884c\u4e86\u4e00\u4e9b\u4fee\u6539\uff0c\u5c06\u8ddd\u79bb\u6570\u636e\u4ece\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u3002\u5176\u4f5c\u7528\u662f\u6d4b\u91cf\u4f20\u611f\u5668\u5230\u524d\u65b9\u7269\u4f53\u7684\u8ddd\u79bb\u5e76\u6253\u5370\u7ed3\u679c\u3002\u6211\u4eec\u7528\u4e32\u884c\u76d1\u89c6\u5668\u663e\u793a\u7ed3\u679c\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\/\/ **************************************************************************************************************************************************\r\n\r\n#include &lt;SoftwareSerial.h&gt;\r\n\r\n#define rxPin     8                   \/\/ Serial input (connects to the LRF's SOUT pin)\r\n\r\n#define txPin     9                   \/\/ Serial output (connects to the LRF's SIN pin)\r\n\r\n#define ledPin   13                   \/\/ Most Arduino boards have an on-board LED on this pin\r\n\r\n#define BUFSIZE  16                   \/\/ Size of buffer\r\n\r\nint  lrfDataInt;\r\n\r\nSoftwareSerial lrfSerial =  SoftwareSerial(rxPin, txPin);\r\n\r\nvoid setup()                          \/\/ Set up code called once on start-up\r\n\r\n{\r\n\r\n \/\/ *************************************** setup for LRF ***********************************************\r\n\r\n pinMode(ledPin, OUTPUT);\r\n\r\n pinMode(rxPin, INPUT);\r\n\r\n pinMode(txPin, OUTPUT);\r\n\r\n digitalWrite(ledPin, LOW);                \/\/ turn LED off\r\n\r\n Serial.begin(9600);\r\n\r\n while (!Serial);                          \/\/ Wait until ready\r\n\r\n Serial.println(\"\\n\\nParallax Laser Range Finder\");\r\n\r\n lrfSerial.begin(9600);\r\n\r\n Serial.print(\"Waiting for the LRF...\");\r\n\r\n delay(2000);                             \/\/ Delay to let LRF module start up\r\n\r\n lrfSerial.print('U');                    \/\/ Send character\r\n\r\n while (lrfSerial.read() != ':');   \r\n\r\n delay(10);                               \/\/ Short delay\r\n\r\n lrfSerial.flush();                       \/\/ Flush the receive buffer\r\n\r\n Serial.println(\"Ready!\");\r\n\r\n Serial.flush();                          \/\/ Wait for all bytes to be transmitted to the Serial Monitor\r\n\r\n}\r\n\r\n \/\/ ******************************************  main loop ************************************************\r\n\r\nvoid loop()  \/\/ Main code, to run repeatedly\r\n\r\n{\r\n\r\n lrf();\r\n\r\n}\r\n\r\n \/\/ ****************************************** end main loop *********************************************\r\n\r\nvoid lrf()\r\n\r\n{\r\n\r\n lrfSerial.print('R');                    \/\/ Send command\r\n\r\n digitalWrite(ledPin, HIGH);              \/\/ Turn LED on while LRF is taking a measurement\r\n\r\n char lrfData[BUFSIZE];                   \/\/ Buffer for incoming data\r\n\r\n int  lrfDataInt1;\r\n\r\n int  lrfDataInt2;\r\n\r\n int  lrfDataInt3;\r\n\r\n int  lrfDataInt4;\r\n\r\n int offset = 0;                          \/\/ Offset into buffer\r\n\r\n lrfData[0] = 0;                          \/\/ Clear the buffer    \r\n\r\n \r\n\r\n while(1)\r\n\r\n {\r\n\r\n   if (lrfSerial.available() &gt; 0)         \/\/ If there are any bytes available to read, then the LRF must have responded\r\n\r\n   {\r\n\r\n     lrfData[offset] = lrfSerial.read();  \/\/ Get the byte and store it in our buffer\r\n\r\n     if (lrfData[offset] == ':')          \/\/ If a \":\" character is received, all data has been sent and the LRF is ready to accept the next command\r\n\r\n      { lrfData[offset] = 0;              \/\/ Null terminate the string of bytes we just received\r\n\r\n       break; }                           \/\/ Break out of the loop\r\n\r\n     offset++;                            \/\/ Increment offset into array\r\n\r\n     if (offset &gt;= BUFSIZE) offset = 0;   \/\/ If the incoming data string is longer than our buffer, wrap around to avoid going out-of-bounds\r\n\r\n   }\r\n\r\n }\r\n\r\n lrfDataInt1 = ( lrfData[5] -'0');\r\n\r\n lrfDataInt2 = ( lrfData[6] -'0');\r\n\r\n lrfDataInt3 = ( lrfData[7] -'0');\r\n\r\n lrfDataInt4 = ( lrfData[8] -'0');\r\n\r\n lrfDataInt = (1000*lrfDataInt1)+ (100*lrfDataInt2)+(10*lrfDataInt3) + lrfDataInt4;\r\n\r\n \r\n\r\n Serial.print(\"Distance = \");             \/\/ The lrfData string should now contain the data returned by the LRF, so display it on the Serial Monitor\r\n\r\n Serial.println(lrfDataInt);\r\n\r\n Serial.flush();                          \/\/ Wait for all bytes to be transmitted to the Serial Monitor\r\n\r\n digitalWrite(ledPin, LOW);               \/\/ Turn LED off\r\n\r\n delay(1000);\r\n\r\n}\r\n\r\n\/\/*************************************************************************************************************************************************\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u4e32\u884c\u76d1\u89c6\u5668\u663e\u793a\u7684\u7ed3\u679c\u5982\u4e0b\u6240\u793a\u3002\u6240\u6709\u5c3a\u5bf8\u7684\u5355\u4f4d\u5747\u4e3a\u6beb\u7c73\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4659\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image03-5.jpg\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image03-5.jpg 538w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image03-5-300x224.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image03-5-196x146.jpg 196w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image03-5-50x37.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image03-5-101x75.jpg 101w\" alt=\"arduino robot\" width=\"538\" height=\"401\" \/><\/p>\n<p><b>\u5b89\u88c5OLED\u663e\u793a\u5c4f<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u9996\u5148\uff0c\u6211\u4eec\u5c06OLED\u5851\u6599\u76d2\u5b89\u88c5\u5230\u4e9a\u514b\u529b\u5e95\u5ea7\u4e2d\uff08\u8bf7\u53c2\u89c1\u56fe9\uff09\uff0c\u7136\u540e\u518d\u5c06OLED\u663e\u793a\u5c4f\u9644\u5e26\u7684\u7ebf\u7f06\u4e00\u7aef\u8fde\u81f3\u663e\u793a\u5c4f\u3002\u8981\u5c06\u663e\u793a\u5c4f\u8fde\u81f3\u7535\u673a\u5f00\u53d1\u677f\uff0c\u8bf7\u5c06\u7ebf\u7f06\u53e6\u5916\u4e00\u7aefjst\u63a5\u5934\u4e0a\u7684\u7ebf\u7f06\u526a\u4e0b\uff0c<\/span><b>\u7136\u540e\u5c06\u7ea2\u5bfc\u7ebf\u710a\u81f35V\uff0c\u5c06\u9ed1\u5bfc\u7ebf\u710a\u81f3Ground\uff0c\u5c06\u9ec4\u5bfc\u7ebf\u710a\u81f3SDA\u5f15\u811a\uff0c\u5c06\u7eff\u5bfc\u7ebf\u710a\u81f3SCL\u5f15\u811a<\/b><span style=\"font-weight: 400;\">\u3002\u8bf7\u786e\u4fddOLED\u663e\u793a\u5c4f\u7684\u80cc\u9762\u671d\u5916\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<div id=\"attachment_4662\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4662\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image08-4.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image08-4.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image08-4-300x225.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image08-4-194x146.jpg 194w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image08-4-50x38.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image08-4-100x75.jpg 100w\" alt=\"arduino robot\" width=\"700\" height=\"526\" aria-describedby=\"caption-attachment-4662\" \/><\/p>\n<p id=\"caption-attachment-4662\" class=\"wp-caption-text\">\u56fe8 . OLED\u4e0e\u7535\u673a\u5f00\u53d1\u677f\u4e4b\u95f4\u7684\u8fde\u63a5<\/p>\n<\/div>\n<p><span style=\"font-weight: 400;\">\u5c06OLED\u56fa\u5b9a\u5728\u5e95\u5ea7\u4e0a\u5e76\u8fde\u63a5\u7535\u7f06\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u8fd0\u884c\u90e8\u5206\u8f6f\u4ef6\u4e86\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u9996\u5148\uff0c\u8bf7\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86<\/span><b>SeeedOLED.h<\/b><span style=\"font-weight: 400;\">\u3002\u7136\u540e\uff0c\u5c06\u4ee5\u4e0b\u4ee3\u7801\u4e0a\u4f20\u5230Arduino\u3002\u8be5\u4ee3\u7801\u4f7f\u7528\u4e86\u540d\u4e3a<\/span><b>oled1<\/b><span style=\"font-weight: 400;\">\u7684\u51fd\u6570\uff0c\u7a0d\u540e\u7684\u6700\u7ec8\u7f16\u7801\u4e5f\u4f1a\u4f7f\u7528\u8be5\u51fd\u6570\u3002\u5176\u57fa\u672c\u529f\u80fd\u5c31\u662f\u663e\u793a100\u5230109\u7684\u6570\u5b57\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\/\/*****************************************************************************************************************************************\r\n\r\n#include &lt;Wire.h&gt;\r\n\r\n#include &lt;SeeedOLED.h&gt;\r\n\r\nint distanceFwd;\r\n\r\nvoid setup()\r\n\r\n{ Wire.begin();}\r\n\r\nvoid loop()\r\n\r\n{\r\n\r\n int i = 0;\r\n\r\nfor (i; (i &lt; 10); i ++)\r\n\r\n{ distanceFwd = 100 + i;\r\n\r\noled1();\r\n\r\ndelay(1000); }\r\n\r\n}\r\n\r\n  void oled1()\r\n\r\n {\r\n\r\n SeeedOled.clearDisplay();           \/\/clear the screen and set start position to top left corner\r\n\r\n SeeedOled.setNormalDisplay();       \/\/Set display to Normal mode\r\n\r\n SeeedOled.setPageMode();            \/\/Set addressing mode to Page Mode\r\n\r\n SeeedOled.setTextXY(3,3);          \r\n\r\n SeeedOled.putString(\"Forward :\");\r\n\r\n SeeedOled.setTextXY(5,9);\r\n\r\n SeeedOled.putNumber(distanceFwd);\r\n\r\n }  \r\n\r\n\/\/*****************************************************************************************************************************************\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u7a0b\u5e8f\u6b63\u5e38\u8fd0\u884c\u65f6\uff0c\u663e\u793a\u5c4f\u5e94\u8be5\u4f1a\u663e\u793a\u4ee5\u4e0b\u89c6\u9891\u4e2d\u7684\u5185\u5bb9\uff1a<\/p>\n<p><script type=\"text\/javascript\">\n\tjstream_t3.PlayerFactoryIF.create({\n\tb:\"eqa194obdo.eq.webcdn.stream.ne.jp\/www50\/eqa194obdo\/jmc_pub\/jmc_swf\/player\/\",\n\tc:\"NDc3\",\n\tm:\"NDU3\",\n\ts:{\n\t\thp:360,\n\t\til:\"off\",\n\t\trb:\"off\",\n\t\tsn:\"f,t,g\",\n\t\twp:640\n\t}});\n<\/script><\/p>\n<h2><b>\u5b89\u88c5\u6700\u7ec8\u4ee3\u7801<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">\u73b0\u5728\uff0c\u6211\u4eec\u5df2\u7ecf\u5b8c\u6210\u4e86\u6240\u6709\u786c\u4ef6\u7684\u5b89\u88c5\u5e76\u6d4b\u8bd5\u4e86\u5404\u4e2a\u8bbe\u5907\u3002\u8ba9\u6211\u4eec\u628a\u6240\u6709\u8f6f\u786c\u4ef6\u7ed3\u5408\u8d77\u6765\uff0c\u6784\u5efa\u4e00\u4e2a\u53ef\u4ee5\u81ea\u4e3b\u79fb\u52a8\u7684\u667a\u80fd\u6fc0\u5149\u673a\u5668\u4eba\u5427\u3002\u6700\u7ec8\u7a0b\u5e8f\u4f1a\u6267\u884c\u4ee5\u4e0b\u529f\u80fd\uff1a<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u6d4b\u91cf\u524d\u65b9\u8ddd\u79bb<\/span>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u5982\u679c\u8ddd\u79bb\u8d85\u8fc770\u5398\u7c73\uff0c\u673a\u5668\u4eba\u5c06\u5411\u524d\u79fb\u52a8500\u6b65\uff08\u5927\u7ea650\u5398\u7c73\uff09\uff1b<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u5982\u679c\u8ddd\u79bb\u5927\u4e8e40\u5398\u7c73\u5c0f\u4e8e70cm\uff0c\u673a\u5668\u4eba\u5c06\u5411\u524d\u79fb\u52a8200\u6b65\uff0820\u5398\u7c73\uff09\uff1b<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u5982\u679c\u8ddd\u79bb\u5c0f\u4e8e40\u5398\u7c73\uff0c\u673a\u5668\u4eba\u4f1a\u5411\u5de6\u626b\u63cf90\u5ea6\uff0c\u5411\u5de6\u626b\u63cf45\u5ea6\uff0c\u5411\u53f3\u626b\u63cf45\u5ea6\uff0c\u5411\u53f3\u626b\u63cf90\u5ea6\uff1b<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u6d4b\u91cf\u6bcf\u4e2a\u65b9\u5411\u7684\u8ddd\u79bb\uff0c\u7136\u540e\u8ba1\u7b97\u54ea\u4e2a\u65b9\u5411\u7684\u6d4b\u91cf\u8ddd\u79bb\u6700\u957f\uff1b<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u8f6c\u5411\u8ddd\u79bb\u6700\u957f\u7684\u90a3\u4e2a\u65b9\u5411\uff1b<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u8fd4\u56de\u7b2c\u4e00\u6b65\u3002<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u8bf7\u590d\u5236\u4ee5\u4e0b\u4ee3\u7801\u5e76\u5c06\u5176\u4e0a\u4f20\u5230Arduino\uff1a<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\/\/*********************************************************************************************************************\r\n\r\n#include &lt;Wire.h&gt;\r\n\r\n#include &lt;Adafruit_MotorShield.h&gt;\r\n\r\n#include \"utility\/Adafruit_MS_PWMServoDriver.h\"\r\n\r\n#include &lt;SoftwareSerial.h&gt;\r\n\r\n#include &lt;Servo.h&gt;\r\n\r\n#include &lt;SeeedOLED.h&gt;\r\n\r\n#define ledPin   13                                         \r\n\r\n#define BUFSIZE  16   \r\n\r\n#define rxPin    8                                          \/\/ Serial input (connects to the LRF's SOUT pin)\r\n\r\n#define txPin    9                                          \/\/ Serial output(connects to the LRF's SIN pin)\r\n\r\nSoftwareSerial lrfSerial =  SoftwareSerial(rxPin, txPin);   \/\/ Size of buffer (in bytes) for incoming data\r\n\r\n\/\/ Create the motor shield object with the default I2C address\r\n\r\n  Adafruit_MotorShield AFMS = Adafruit_MotorShield();\r\n\r\n\/\/ Connect a stepper motor with 200 steps per revolution (1.8 degree)\r\n\r\n  Adafruit_StepperMotor *myMotor1 = AFMS.getStepper(200, 1);  \/\/ motor port #1 (M1 and M2)\r\n\r\n  Adafruit_StepperMotor *myMotor2 = AFMS.getStepper(200, 2);  \/\/ motor port #2 (M3 and M4)\r\n\r\n  Servo panMotor;                                             \/\/ servo for laser range finder (lrf) scanning\r\n\r\n  int leftDistance1;\r\n\r\n  int leftDistance2;\r\n\r\n  int rightDistance1;\r\n\r\n  int rightDistance2;\r\n\r\n  int maxDistance;\r\n\r\n  int angleTurn;\r\n\r\n  int directions;\r\n\r\n  int distanceFwd;  \r\n\r\n  const int a = 30;                  \r\n\r\n\/\/*********************************************************************************start set up **************************\r\n\r\nvoid setup() {\r\n\r\n Serial.begin(9600);                                       \/\/ set up Serial library at 9600 bps\r\n\r\n panMotor.attach(10);                                      \/\/ Attach Servo for scanning to pin 10\r\n\r\n \r\n\r\n AFMS.begin();                                             \/\/ create with the default frequency 1.6KHz\r\n\r\n myMotor1-&gt;setSpeed(100);                                  \/\/ Set stepmotor1 speed at 100 rpm   \r\n\r\n myMotor2-&gt;setSpeed(100);                                  \/\/ Set stepmotor2 speed at 100 rpm   \r\n\r\n pinMode(ledPin, OUTPUT);\r\n\r\n \r\n\r\n pinMode(rxPin, INPUT);                                    \/\/ Input pin for LRF\r\n\r\n pinMode(txPin, OUTPUT);                                   \/\/ Output pin for LRF\r\n\r\n digitalWrite(ledPin, LOW);                                \/\/ turn LED off\r\n\r\n Serial.begin(9600);\r\n\r\n while (!Serial);                                          \/\/ Wait until ready\r\n\r\n lrfSerial.begin(9600);\r\n\r\n Serial.print(\"Waiting for the LRF...\");\r\n\r\n delay(2000);                                              \/\/ Delay to let LRF module start up\r\n\r\n lrfSerial.print('U');                                     \/\/ Send character\r\n\r\n while (lrfSerial.read() != ':');                        \r\n\r\n delay(10);                                                \/\/ Short delay\r\n\r\n lrfSerial.flush();                                        \/\/ Flush the receive buffer\r\n\r\n Serial.println(\"Ready!\");\r\n\r\n Serial.flush();                                           \/\/ Wait for all bytes to be transmitted to the Serial Monitor\r\n\r\n panMotor.write(90);\r\n\r\n delay(a);\r\n\r\n}\r\n\r\n\/\/******************************************************************* start Loop *****************************************\r\n\r\nvoid loop()\r\n\r\n{\r\n\r\n distanceFwd = lrf();\r\n\r\n maxDistance = distanceFwd;\r\n\r\n oled1();\r\n\r\n if (distanceFwd &gt; 700)\r\n\r\n { Motor(500,1);}\r\n\r\n else\r\n\r\n if (distanceFwd &gt; 400)\r\n\r\n { Motor(200,1);}\r\n\r\n else                                                           \/\/ if path is blocked\r\n\r\n { checkTurn();\r\n\r\n  turn();}     \r\n\r\n}\r\n\r\n\/\/***************************************************************** check turn  function ********************************\r\n\r\nvoid checkTurn()\r\n\r\n {\r\n\r\n    digitalWrite(ledPin, HIGH);     \r\n\r\n\/\/ ************************** Scan Left ***********************************   \r\n\r\n   panMotor.write(180);\r\n\r\n   delay(a);\r\n\r\n   leftDistance1 = lrf();       \r\n\r\n   \r\n\r\n   panMotor.write(135);\r\n\r\n   delay(a);\r\n\r\n   leftDistance2 = lrf();\r\n\r\n   oled();  \r\n\r\n    \r\n\r\n\/\/ *************************** Scan Right  *********************************       \r\n\r\n   panMotor.write(45);\r\n\r\n   delay(a);\r\n\r\n   rightDistance2 = lrf();  \r\n\r\n      \r\n\r\n   panMotor.write(0);\r\n\r\n   delay(a);\r\n\r\n   rightDistance1 = lrf();\r\n\r\n   oled();\r\n\r\n   panMotor.write(90);\r\n\r\n    \r\n\r\n  digitalWrite(ledPin, LOW);\r\n\r\n\/\/ ************************************ Turn Left ************************\r\n\r\n     maxDistance = leftDistance1;\r\n\r\n     angleTurn = 100;\r\n\r\n     directions = 0;          \r\n\r\nif (maxDistance &lt;= leftDistance2)\r\n\r\n    {angleTurn = 50;\r\n\r\n     maxDistance = leftDistance2;\r\n\r\n     directions = 0;\r\n\r\n    }           \r\n\r\n\/\/*********************************** Turn Right ***********************            \r\n\r\nif (maxDistance &lt;= rightDistance2)\r\n\r\n      {angleTurn = 50;\r\n\r\n      maxDistance = rightDistance2;\r\n\r\n      directions = 1;  \r\n\r\n      }\r\n\r\n      \r\n\r\nif (maxDistance &lt;= rightDistance1)\r\n\r\n      {angleTurn = 100;\r\n\r\n      maxDistance = rightDistance1;\r\n\r\n      directions = 1;\r\n\r\n      }                 \r\n\r\n\/\/ ******************************* Turn Back******************************\r\n\r\n if ((leftDistance1 &lt; 300) &amp;&amp; (rightDistance1 &lt;300) &amp;&amp; (distanceFwd &lt;300))\r\n\r\n   {angleTurn = 200;\r\n\r\n   directions = 3;\r\n\r\n   }                 \r\n\r\n }\r\n\r\n   \r\n\r\n\/\/************************************************ turn function *********************************************************\r\n\r\nvoid turn()  \r\n\r\n{\r\n\r\n   rightDistance1 = 0;\r\n\r\n   rightDistance2 = 0;\r\n\r\n   leftDistance1  = 0;\r\n\r\n   leftDistance2  = 0;\r\n\r\n   \r\n\r\n   if (directions == 0) \/\/ turn left  \r\n\r\n    { Motor(angleTurn,3);}\r\n\r\n   if (directions == 1) \/\/ turn right\r\n\r\n    { Motor(angleTurn,4);}\r\n\r\n   if (directions == 3) \/\/ turn back\r\n\r\n    { Motor(angleTurn,4);}\r\n\r\n }\r\n\r\n\/\/***************************************  Stepper Motor function    ****************************************************\r\n\r\nvoid Motor(int x,int y)\r\n\r\n{\r\n\r\n  int i = 0;\r\n\r\n for ( i; (i &lt; x); i ++)\r\n\r\n {\r\n\r\n  if (y == 1)   \/\/ move forward\r\n\r\n {myMotor1-&gt;step(1, FORWARD, SINGLE);\r\n\r\n myMotor2-&gt;step(1, BACKWARD, SINGLE);}\r\n\r\n \r\n\r\n  if (y == 2)   \/\/ move backward\r\n\r\n {myMotor1-&gt;step(1, BACKWARD, SINGLE);\r\n\r\n myMotor2-&gt;step(1, FORWARD, SINGLE);}\r\n\r\n \r\n\r\n if (y == 3)    \/\/ move left\r\n\r\n  { myMotor1-&gt;step(1, FORWARD, SINGLE);\r\n\r\n myMotor2-&gt;step(1, FORWARD, SINGLE);}\r\n\r\n \r\n\r\n if (y == 4)    \/\/ move right\r\n\r\n  { myMotor1-&gt;step(1, BACKWARD, SINGLE);\r\n\r\n myMotor2-&gt;step(1, BACKWARD, SINGLE);}\r\n\r\n }\r\n\r\n}\r\n\r\n\/\/***********************************************************************  LRF function *******************************\r\n\r\nlong lrf()\r\n\r\n{\r\n\r\n lrfSerial.print('R');         \/\/ Send command\r\n\r\n digitalWrite(ledPin, HIGH);   \/\/ Turn LED on while LRF is taking a measurement\r\n\r\n char lrfData[BUFSIZE];        \/\/ Buffer for incoming data\r\n\r\n int  lrfDataInt1;\r\n\r\n int  lrfDataInt2;\r\n\r\n int  lrfDataInt3;\r\n\r\n int  lrfDataInt4;\r\n\r\n int  lrfDataInt;\r\n\r\n int offset = 0;              \/\/ Offset into buffer\r\n\r\n lrfData[0] = 0;              \/\/ Clear the buffer    \r\n\r\n \r\n\r\n while(1)\r\n\r\n {\r\n\r\n   if (lrfSerial.available() &gt; 0)\r\n\r\n   {\r\n\r\n     lrfData[offset] = lrfSerial.read();  \r\n\r\n     if (lrfData[offset] == ':')        \r\n\r\n      { lrfData[offset] = 0;\r\n\r\n        break;}               \r\n\r\n     offset++;\r\n\r\n     if (offset &gt;= BUFSIZE) offset = 0;\r\n\r\n   }\r\n\r\n }\r\n\r\n lrfDataInt1 = ( lrfData[5] -'0');\r\n\r\n lrfDataInt2 = ( lrfData[6] -'0');\r\n\r\n lrfDataInt3 = ( lrfData[7] -'0');\r\n\r\n lrfDataInt4 = ( lrfData[8] -'0');\r\n\r\n lrfDataInt = (1000*lrfDataInt1)+ (100*lrfDataInt2)+(10*lrfDataInt3) + lrfDataInt4;     \r\n\r\n Serial.flush();            \r\n\r\n digitalWrite(ledPin, LOW);  \r\n\r\n return lrfDataInt;\r\n\r\n}\r\n\r\n\/\/********************************************************* Oled function ************************************************\r\n\r\n void oled()\r\n\r\n {\r\n\r\n SeeedOled.clearDisplay();           \/\/clear the screen and set start position to top left corner\r\n\r\n SeeedOled.setNormalDisplay();       \/\/Set display to Normal mode\r\n\r\n SeeedOled.setPageMode();            \/\/Set addressing mode to Page Mode\r\n\r\n SeeedOled.setTextXY(0,0);          \r\n\r\n SeeedOled.putString(\"Left 1:\");\r\n\r\n SeeedOled.setTextXY(0,12);\r\n\r\n SeeedOled.putNumber(leftDistance1);   \r\n\r\n SeeedOled.setTextXY(2,0);          \r\n\r\n SeeedOled.putString(\"Left 2:\");\r\n\r\n SeeedOled.setTextXY(2,12);\r\n\r\n SeeedOled.putNumber(leftDistance2);   \r\n\r\n SeeedOled.setTextXY(4,0);          \r\n\r\n SeeedOled.putString(\"Right 1:\");\r\n\r\n SeeedOled.setTextXY(4,12);\r\n\r\n SeeedOled.putNumber(rightDistance1);\r\n\r\n SeeedOled.setTextXY(6,0);          \r\n\r\n SeeedOled.putString(\"Right 2:\");\r\n\r\n SeeedOled.setTextXY(6,12);\r\n\r\n SeeedOled.putNumber(rightDistance2);       \r\n\r\n }\r\n\r\n   void oled1()\r\n\r\n {\r\n\r\n SeeedOled.clearDisplay();           \/\/clear the screen and set start position to top left corner\r\n\r\n SeeedOled.setNormalDisplay();       \/\/Set display to Normal mode\r\n\r\n SeeedOled.setPageMode();            \/\/Set addressing mode to Page Mode\r\n\r\n SeeedOled.setTextXY(3,3);          \r\n\r\n SeeedOled.putString(\"Forward :\");\r\n\r\n SeeedOled.setTextXY(5,9);\r\n\r\n SeeedOled.putNumber(distanceFwd);\r\n\r\n }  \r\n\r\n\/\/***********************************************************************************************************************************\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_4660\" class=\"wp-caption alignnone\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4660\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4-300x225.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4-195x146.jpg 195w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4-50x38.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2016\/10\/image06-4-100x75.jpg 100w\" alt=\"arduino robot\" width=\"700\" height=\"525\" aria-describedby=\"caption-attachment-4660\" \/><\/p>\n<p id=\"caption-attachment-4660\" class=\"wp-caption-text\">\u56fe9. OLED\u663e\u793a\u5c4f\u5b89\u88c5\u5728\u4e9a\u514b\u529b\u5e95\u5ea7\u4e0a\u7684\u6700\u7ec8\u6548\u679c<\/p>\n<\/div>\n<h2><b>\u7ed3\u8bba<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">\u5728\u4e4b\u524d\u7684\u6587\u7ae0<\/span><a href=\"https:\/\/www.deviceplus.com\/how-tos\/arduino-guide\/how-to-make-your-own-robot\/\"><span style=\"font-weight: 400;\">\u300a\u5982\u4f55\u5236\u4f5c\u81ea\u5df1\u7684\u673a\u5668\u4eba\u300b<\/span><\/a><span style=\"font-weight: 400;\">\u548c<\/span><a href=\"https:\/\/www.deviceplus.com\/how-tos\/arduino-guide\/how-to-make-your-own-robot-part-2\/\"><span style=\"font-weight: 400;\">\u300a\u5982\u4f55\u5236\u4f5c\u81ea\u5df1\u7684\u673a\u5668\u4eba\uff08\u7b2c2\u90e8\u5206\uff09\u300b<\/span><\/a><span style=\"font-weight: 400;\">\u4e2d\uff0c\u6211\u4eec\u7528\u6b65\u8fdb\u7535\u673a\u5236\u4f5c\u4e86\u4e00\u6b3e\u7b80\u5355\u7684\u8f6e\u5f0f\u673a\u5668\u4eba\u3002\u8fd9\u6b21\uff0c\u6211\u4eec\u5bf9\u5176\u8fdb\u884c\u4e86\u529f\u80fd\u6539\u8fdb\uff1a\u4e3a\u673a\u5668\u4eba\u589e\u52a0\u4e86\u6fc0\u5149\u6d4b\u8ddd\u4eea\uff08LRF\uff09\u529f\u80fd\uff0c\u5e76\u4e14\u5b89\u88c5\u4e86\u8f6e\u5b50\uff0c\u8ba9\u673a\u5668\u4eba\u80fd\u591f\u81ea\u7531\u79fb\u52a8\u3002\u6211\u4e00\u76f4\u60f3\u5236\u4f5c\u4e00\u6b3e\u80fd\u591f\u8fdb\u884c\u6d4b\u91cf\u7684\u8bbe\u5907\u3002\u5728\u672c\u4f8b\u4e2d\uff0c\u51ed\u501f\u6fc0\u5149\u4f20\u611f\u5668\uff0c\u6211\u4eec\u7684\u673a\u5668\u4eba\u4e0d\u4ec5\u80fd\u591f\u68c0\u6d4b\u5e76\u907f\u5f00\u7269\u4f53\uff0c\u540c\u65f6\u8fd8\u80fd\u83b7\u53d6\u66f4\u51c6\u786e\u7684\u8ddd\u79bb\u6570\u636e\u3002\u6fc0\u5149\u673a\u5668\u4eba\u8fd8\u6709\u8bb8\u591a\u5176\u4ed6\u5e94\u7528\u573a\u666f\u3002\u60a8\u4e5f\u53ef\u4ee5\u5229\u7528\u8be5\u6fc0\u5149\u4f20\u611f\u5668\u8bbe\u8ba1\u81ea\u5df1\u559c\u6b22\u7684\u6709\u8da3\u9879\u76ee\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u4f1a\u505a\u4e00\u4e9b\u66f4\u70ab\u9177\u7684\u4e8b\u60c5\uff0c\u656c\u8bf7\u671f\u5f85\uff01<\/span><\/p>\n<div class=\"author-box-wrapper\">\n<div class=\"avatar-wrapper\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/micro.wfjydl.com\/deviceplus\/wp-content\/uploads\/2019\/04\/Purnomo-Nuhalim.jpg\" alt=\"Purnomo Nuhalim\" width=\"64\" height=\"64\" \/><\/div>\n<div class=\"desc-wrapper\">\n<h5>Purnomo Nuhalim<\/h5>\n<div class=\"desc\">\n<p>\u6765\u81ea\u58a8\u5c14\u672c\u7684Purnomo\u662f\u4e00\u540d\u9000\u4f11\u4eba\u5458\uff0c\u4e5f\u662f\u7535\u5b50\u53d1\u70e7\u53cb\u3002\u76ee\u524d\uff0c\u4ed6\u6b63\u4f7f\u7528Arduino\u548cRaspberry Pi\u4ece\u4e8b\u5404\u79cd\u5f00\u653e\u5f0f\u786c\u4ef6\u9879\u76ee\u7684\u7814\u53d1\u3002\u9664\u4e86\u7535\u5b50\u5b66\uff0c\u4ed6\u8fd8\u5bf9\u822a\u7a7a\u5efa\u6a21\u548c\u5929\u6587\u5b66\u5145\u6ee1\u70ed\u60c5\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"\u8fd9\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8eDevicePlus.com\u82f1\u8bed\u7f51\u7ad9\u7684\u7ffb\u8bd1\u7a3f\u3002 \u70b9\u51fb\u6b64\u5904\u9605\u8bfb\u672c\u6587\u7684\u7b2c1\u90e8\u5206 &gt; &nbsp; \u5728\u7b2c1\u90e8\u5206\u4e2d\uff0c\u6211\u4eec\u5236\u4f5c\u4e86\u4e00\u5757\u5b9a\u5236\u7684\u4e9a\u514b\u529b\u677f\u5e95\u5ea7\uff0c\u628aNEMA 17\u6b65\u8fdb\u7535\u673a\u5b89\u88c5\u5230\u4e86\u5e95\u76d8\u4e0a\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06Ard [&hellip;]","protected":false},"author":3,"featured_media":20703,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1130],"tags":[],"class_list":["post-7293","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino"],"acf":[],"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/7293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/comments?post=7293"}],"version-history":[{"count":8,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/7293\/revisions"}],"predecessor-version":[{"id":21636,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/7293\/revisions\/21636"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media\/20703"}],"wp:attachment":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media?parent=7293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/categories?post=7293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/tags?post=7293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}