{"id":3375,"date":"2018-02-22T12:07:02","date_gmt":"2018-02-22T04:07:02","guid":{"rendered":"https:\/\/dingxuan.info\/wp\/?p=3375"},"modified":"2018-02-22T18:49:01","modified_gmt":"2018-02-22T10:49:01","slug":"3375","status":"publish","type":"post","link":"https:\/\/ybzx.vip\/wp\/?p=3375","title":{"rendered":"\u9001\u7ed9LP\u7684\u4e03\u5f69\u5927\u94bb\u77f3 &#8211; 2\u6863\u53d8\u901f\u7bb1+LED\u8272\u5f69\u63a7\u5236"},"content":{"rendered":"<p><iframe loading=\"lazy\" src=\"http:\/\/player.youku.com\/embed\/XMzQxNDg2MzU4OA==\" width=\"700\" height=\"500\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<h1>\u73a9\u5177\u529f\u80fd<\/h1>\n<ol>\n<li>\u51cf\u901f\u9f7f\u8f6e\u7ec4\uff0c\u628a\u7535\u673a\u901f\u5ea6\u964d\u4f4e\u3002<\/li>\n<li>\u9f7f\u8f6e\u6bd4\u53ef\u4ee5\u8c03\u3002\u4e24\u6863\u53d8\u901f\u3002<\/li>\n<li>\u53ea\u80fd\u505c\u8f6c\u540e\u624d\u80fd\u6362\u6321\u3002\u60f3\u8fc7\u505a\u4e2a\u79bb\u5408\u5668\uff0c\u8c8c\u4f3c\u6ca1\u6cd53D\u6253\u5370\u5b9e\u73b0\u5427\u3002\u5982\u679c\u54ea\u4f4d\u9ad8\u624b\u6709\u529e\u6cd5\uff0c\u8bf7\u8d50\u6559\u3002<\/li>\n<li>LED\u5f69\u706f\uff0c\u4e24\u4e2a\u6a21\u5f0f\u3002<br \/>\nA. \u968f\u673a\u989c\u8272\uff0c\u8fc7\u6e21\u53d8\u6362\u3002<br \/>\nB. \u624b\u52a8\u6a21\u5f0f\uff0c\u4e09\u4e2a\u53ef\u8c03\u53d8\u963b\u5668\uff0c\u5206\u522b\u63a7\u5236RGB\u503c\u3002<\/li>\n<\/ol>\n<h1>\u7ecf\u9a8c\u603b\u7ed3<\/h1>\n<ol>\n<li>\u5148\u8bf4\u6559\u8bad\u5427\u3002\u70e7\u6389\u4e00\u5757arduino nano\u3002\u5b9e\u9a8c\u6210\u529f\u540e\u8ddfLP\u663e\u6446\uff0c\u7ed3\u679c9v\u4f9b\u7535\u628aVIN\u548cGND\u63a5\u53cd\u4e86\u3002\u4e00\u80a1\u9752\u70df\uff0c\u6362\u6765LP\u5927\u4eba\u7684\u6b22\u7b11\u3002<\/li>\n<li>\u8fd8\u70e7\u6389\u4e00\u5757\u7535\u6c60\u5145\u7535\u4fdd\u62a4\u677f\u3002\u6559\u8bad\u65f6\uff0c\u710a\u7535\u6c60\u7684\u65f6\u5019\uff0c<strong>\u6700\u540e\u4e00\u6b65\u518d\u710a\u6b63\u8d1f\u7ea7<\/strong>\u3002<\/li>\n<li>\u8bbe\u8ba1\u5efa\u6a21\u65f6\uff0c\u591a\u6839\u7535\u7ebf\u7ed1\u5728\u4e00\u8d77\u65f6\uff0c\u76f4\u5f84\u8981\u6253\u51fa\u5bcc\u88d5\u3002<\/li>\n<li>\u8981\u5145\u5206\u8003\u8651\u5230\u6c89\u79ef\u6253\u5370\u6210\u54c1\u7684\u53d7\u529b\u7279\u70b9\u3002\u51e0\u4ef6\u4e1c\u897f\u62fc\u63a5\u7684\u65f6\u5019\uff0c\u4e0d\u80fd\u7528\u63d2\u5934\u94fe\u63a5\u3002\u4e00\u5b9a\u8981\u7528\u7684\u8bdd\uff0c\u63d2\u5934\u505a\u5230\u5f88\u7c97\u3002\u800c\u4e14\u63d2\u5b54\u8981\u5927\uff0c\u62d4\u51fa\u65f6\u4e0d\u80fd\u6709\u963b\u529b\u3002\u8fd9\u6b21\u6298\u4e86\u7c98\uff0c\u7c98\u4e86\u6298\uff0c\u7528\u6389\u4e0d\u5c11502\u3002<\/li>\n<li>\u610f\u5916\u53d1\u73b0\uff0c502\u7c98\u5b8c\u540e\uff0c\u518d\u7528\u73bb\u7483\u80f6\u6cbe\u4e00\u4e0b\u3002\u8fd8\u7b97\u6bd4\u8f83\u7ed3\u5b9e\u3002<\/li>\n<\/ol>\n<h1>\u5236\u4f5c\u8fc7\u7a0b\u8bb0\u5f55<\/h1>\n<p>\u4ee3\u7801\u89c1\u672c\u6587\u672b\u5c3e\u3002SolidWorks\u6a21\u578b\u6700\u8fd1\u51e0\u5929\u53d1\u5230thingiverse.com\u4e0a\u3002<\/p>\n<h2>\u4e00. \u7535\u8def\u539f\u578b<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3390\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/wx_camera_1510408037201510674206.jpg\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/wx_camera_1510408037201510674206.jpg 1920w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/wx_camera_1510408037201510674206-800x450.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/wx_camera_1510408037201510674206-768x432.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/wx_camera_1510408037201510674206-1024x576.jpg 1024w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><!--more--><\/p>\n<p>\u539f\u578b\u6d4b\u8bd5\u6210\u529f\u540e\uff0c\u753b\u7535\u8def\u56fe\u3002\u4e0d\u8d76\u7d27\u753b\u51fa\u6765\uff0c\u4e09\u5929\u540e\u81ea\u5df1\u5c31\u641e\u4e0d\u6e05\u695a\u4e00\u5806\u4e71\u7ebf\u600e\u4e48\u63d2\u51fa\u6765\u7684\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3386 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/motorrun_diamond_bb509861493.png\" width=\"1278\" height=\"1221\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/motorrun_diamond_bb509861493.png 1278w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/motorrun_diamond_bb509861493-800x764.png 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/motorrun_diamond_bb509861493-768x734.png 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/motorrun_diamond_bb509861493-1024x978.png 1024w\" sizes=\"auto, (max-width: 1278px) 100vw, 1278px\" \/><\/p>\n<p>\u5148\u7528arduino uno\u505a\u8bbe\u8ba1\u3002\u8003\u8651\u5230\u6210\u54c1\u5c3a\u5bf8\u4e0d\u80fd\u592a\u5927\uff0c\u6700\u540e\u6539\u5728nano dreamer\u4e0a\u5b9e\u73b0\u3002<\/p>\n<h2>\u4e8c. \u7535\u8def\u677f\u710a\u63a5<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3393 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1535402039709494.jpg\" width=\"2000\" height=\"1500\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1535402039709494.jpg 2000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1535402039709494-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1535402039709494-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1535402039709494-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p>\n<p>\u710a\u63a5\u5de5\u4f5c\u53f0\u3002\u710a\u63a5\u624b\u827a\u6709\u5f85\u63d0\u9ad8\uff0c\u597d\u5728\u5012\u662f\u4e00\u6b21\u6210\u529f\u3002\u8be5\u8fde\u7684\u90fd\u8fde\u4e0a\u4e86\uff0c\u4e0d\u8be5\u8fde\u7684\u90fd\u8fd8\u5206\u7740\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3391\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1536151991805296.jpg\" width=\"1500\" height=\"2000\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1536151991805296.jpg 1500w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1536151991805296-600x800.jpg 600w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1536151991805296-768x1024.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1536151991805296-903x1204.jpg 903w\" sizes=\"auto, (max-width: 1500px) 100vw, 1500px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3392 alignnone size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1536021934264047.jpg\" width=\"1500\" height=\"2000\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1536021934264047.jpg 1500w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1536021934264047-600x800.jpg 600w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1536021934264047-768x1024.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171111_1536021934264047-903x1204.jpg 903w\" sizes=\"auto, (max-width: 1500px) 100vw, 1500px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3387 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_205335421646196.jpg\" width=\"2000\" height=\"1500\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_205335421646196.jpg 2000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_205335421646196-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_205335421646196-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_205335421646196-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3384 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_2054491819718382.jpg\" width=\"2000\" height=\"1500\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_2054491819718382.jpg 2000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_2054491819718382-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_2054491819718382-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_2054491819718382-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3385 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_2053041470881936.jpg\" width=\"2000\" height=\"1500\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_2053041470881936.jpg 2000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_2053041470881936-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_2053041470881936-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171118_2053041470881936-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p>\n<h2>\u4e09. SolidWorks\u5efa\u6a21<\/h2>\n<p>&nbsp;<\/p>\n<div style=\"width: 640px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"size-full\" id=\"video-3375-1\" width=\"640\" height=\"360\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/wx_camera_1515329801488.mp4?_=1\" \/><a href=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/wx_camera_1515329801488.mp4\">https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/wx_camera_1515329801488.mp4<\/a><\/video><\/div>\n<p>\u8fd9\u4e00\u6b65\u82b1\u7684\u65f6\u95f4\u6700\u957f\u3002\u5efa\u597d\u4e86\u662f\u8fd9\u6837\u3002<\/p>\n<p>\u624d\u77e5\u9053\u9f7f\u8f6e\u90fd\u6709\u6a21\u6570\u4e00\u8bf4\u3002\u6a21\u6570\u4e00\u6837\u7684\uff0c\u624d\u80fd\u54ac\u5408\u5f97\u4e0a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3394 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20171002_1646291991016274.jpg\" width=\"2000\" height=\"1500\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171002_1646291991016274.jpg 2000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171002_1646291991016274-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171002_1646291991016274-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171002_1646291991016274-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3395 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20171002_1645211238822296.jpg\" width=\"2000\" height=\"1500\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171002_1645211238822296.jpg 2000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171002_1645211238822296-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171002_1645211238822296-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20171002_1645211238822296-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3379 alignnone size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_1824561231383899.jpg\" width=\"2000\" height=\"1500\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_1824561231383899.jpg 2000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_1824561231383899-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_1824561231383899-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_1824561231383899-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3380 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_1822571523629350.jpg\" width=\"2000\" height=\"1500\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_1822571523629350.jpg 2000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_1822571523629350-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_1822571523629350-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_1822571523629350-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3378 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_183246575096738.jpg\" width=\"2000\" height=\"1500\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_183246575096738.jpg 2000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_183246575096738-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_183246575096738-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_183246575096738-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p>\n<h2>\u56db. 3D\u6253\u5370<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3383 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_09131221385684.jpg\" width=\"2000\" height=\"1500\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_09131221385684.jpg 2000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_09131221385684-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_09131221385684-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180110_09131221385684-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p>\n<p>\u6bcf\u5929\u65e9\u4e0a\u5f00\u59cb\u6253\uff0c\u987a\u5229\u7684\u65f6\u5019\uff0c\u665a\u4e0a\u56de\u6765\u80fd\u51fa\u7089\u4e00\u6279\u96f6\u4ef6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3382 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20180109_2221121177536470.jpg\" width=\"1500\" height=\"2000\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180109_2221121177536470.jpg 1500w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180109_2221121177536470-600x800.jpg 600w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180109_2221121177536470-768x1024.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180109_2221121177536470-903x1204.jpg 903w\" sizes=\"auto, (max-width: 1500px) 100vw, 1500px\" \/><\/p>\n<p>\u5f53\u7136\u4e5f\u6709\u4e0d\u987a\u7684\u65f6\u5019\u3002\u3002\u3002\u56de\u6765\u9700\u8981\u6253\u626b\u536b\u751f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3377\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20180122_2111501489402855.jpg\" width=\"2000\" height=\"1500\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180122_2111501489402855.jpg 2000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180122_2111501489402855-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180122_2111501489402855-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180122_2111501489402855-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/p>\n<div style=\"width: 640px;\" class=\"wp-video\"><video class=\"size-full\" id=\"video-3375-2\" width=\"640\" height=\"360\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/wx_camera_1518958816012.mp4?_=2\" \/><a href=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/wx_camera_1518958816012.mp4\">https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/wx_camera_1518958816012.mp4<\/a><\/video><\/div>\n<p>\u90fd\u6253\u51fa\u6765\uff0c\u5dee\u4e0d\u591a\u662f\u8fd9\u6837\u3002<\/p>\n<h2>\u4e94. \u6700\u540e\u7ec4\u88c5\u8c03\u8bd5<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3373 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_1345261662919514.jpg\" width=\"3000\" height=\"2250\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_1345261662919514.jpg 3000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_1345261662919514-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_1345261662919514-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_1345261662919514-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 3000px) 100vw, 3000px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3374 size-full\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_103717843070337.jpg\" width=\"3000\" height=\"2250\" data-temp-aztec-id=\"825f33be-61fa-4b06-8422-5a7ad973c56a\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_103717843070337.jpg 3000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_103717843070337-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_103717843070337-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_103717843070337-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 3000px) 100vw, 3000px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3372 aligncenter\" src=\"https:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_1046262073469346.jpg\" width=\"3000\" height=\"2250\" srcset=\"https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_1046262073469346.jpg 3000w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_1046262073469346-800x600.jpg 800w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_1046262073469346-768x576.jpg 768w, https:\/\/ybzx.vip\/wp\/wp-content\/uploads\/2018\/02\/img_20180221_1046262073469346-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 3000px) 100vw, 3000px\" \/><\/p>\n<p>\u4ee3\u7801\uff1a<\/p>\n<pre class=\"brush: plain; collapse: true; light: false; title: ; toolbar: true; wrap-lines: true; notranslate\" title=\"\">\r\n\/*\r\nversion 2: \r\n removed IC L293D\r\n added color LED, auto \/ manual color change\r\n added 3 pots\r\n *\/\r\n\r\n\/\/#include &lt;string.h&gt;\r\n\r\n\r\n#define potPinR 0\r\n#define potPinG 1\r\n#define potPinB 2\r\n#define transistorPin 4\r\n#define bluePin 9\r\n#define greenPin 10\r\n#define redPin 11\r\n\r\nint redValue=0;\r\nint greenValue=0;\r\nint blueValue=0;\r\n\r\nint mButtonPin= 5;   \/\/motor button pin, digital\r\nint lButtonPin= 6;  \/\/ led button pin, digital\r\n\r\n\r\nint buttonState&#x5B;] = {\r\n  LOW, LOW};    \/\/&#x5B;0] &gt; motor, &#x5B;1] &gt; led.\r\n\/\/int buttonState&#x5B;1] = LOW;\r\nint lastButtonState&#x5B;] = {\r\n  LOW, LOW};                  \/\/ \u8bb0\u5f55button\u524d\u4e00\u4e2a\u72b6\u6001\u503c\r\nint reading&#x5B;] = {\r\n  0,0};\r\nlong lastDebounceTime&#x5B;] = {\r\n  0,0};\r\nlong debounceDelay = 50;                    \/\/\u53bb\u9664\u6296\u52a8\u65f6\u95f4\r\n\r\nint mSwitchStatus = LOW;\r\nint lSwitchStatus = LOW;\r\nint ledMode = 1;  \/\/  0&gt;turn off, 1 &gt; auto color, 2 &gt; manual color\r\n\r\nfloat RGB1&#x5B;3];\r\nfloat RGB2&#x5B;3];\r\nfloat INC&#x5B;3];\r\n\r\nvoid setup(){\r\n  \/\/  pinMode(potPin,INPUT);\r\n  pinMode(transistorPin,OUTPUT);\r\n  pinMode(potPinR,INPUT);\r\n  pinMode(potPinG,INPUT);\r\n  pinMode(potPinB,INPUT);\r\n  pinMode(mButtonPin, INPUT);  \/\/ motor on\/off\r\n  pinMode(lButtonPin, INPUT);  \/\/ led on\/off\r\n  Serial.begin(9600);\r\n\r\n  digitalWrite(transistorPin,HIGH);\r\n\r\n  randomSeed(millis());\r\n  RGB1&#x5B;0]=0;\r\n  RGB1&#x5B;1]=0;\r\n  RGB1&#x5B;2]=0;\r\n  RGB2&#x5B;0]=random(256);\r\n  RGB2&#x5B;1]=random(256);\r\n  RGB2&#x5B;2]=random(256);\r\n\r\n}\r\n\r\nvoid loop(){\r\n  mSwitchStatus=digitalRead(transistorPin);\r\n\r\n  buttonDebounce(mButtonPin,0);   \/\/&#x5B;0] &gt; motor, &#x5B;1] &gt; led.\r\n  buttonDebounce(lButtonPin,1);   \/\/&#x5B;0] &gt; motor, &#x5B;1] &gt; led.\r\n\r\n  switch(ledMode){\r\n  case 0:\r\n    lSwitchStatus=LOW;\r\n    offRGB();\r\n    redValue=0;\r\n    greenValue=0;\r\n    blueValue=0;\r\n    analogWrite(redPin,redValue);\r\n    analogWrite(greenPin,greenValue);\r\n    analogWrite(bluePin,blueValue);\r\n    break;\r\n\r\n  case 1:\r\n    \/*  redValue=0;\r\n     greenValue=100;\r\n     blueValue=0;\r\n     analogWrite(redPin,redValue);\r\n     analogWrite(greenPin,greenValue);\r\n     analogWrite(bluePin,blueValue);            *\/\r\n\r\n    for (int x=0;x&lt;3;x++){ RGB2&#x5B;x] = random(256); RGB2&#x5B;x] = constrain(RGB2&#x5B;x], 0, 255); \/\/delay(20); } colorRGB(); break; case 2: redValue=analogRead(potPinR)\/4; greenValue=analogRead(potPinG)\/4; blueValue=analogRead(potPinB)\/4; \/* Serial.print(&quot;pot Red: &quot;); Serial.print(redValue); Serial.print(&quot;. pot Green: &quot;); Serial.print(greenValue); Serial.print(&quot;. pot Blue: &quot;); Serial.println(blueValue); *\/ analogWrite(redPin,redValue); analogWrite(greenPin,greenValue); analogWrite(bluePin,blueValue); break; } Serial.print(&quot;mSwitchStatus: &quot;); Serial.print(mSwitchStatus); Serial.print(&quot;. lSwitchStatus: &quot;); Serial.println(lSwitchStatus); } boolean buttonDebounce(int buttonPin, int deviceID){ \/\/deviceID &#x5B;0] &gt; motor, &#x5B;1] &gt; led.\r\n  \/\/  delay(800);\r\n  \/\/  Serial.println(strf);\r\n\r\n  reading&#x5B;deviceID] = digitalRead(buttonPin);   \/\/reading\u7528\u6765\u5b58\u50a8buttonPin\u7684\u6570\u636e\r\n\r\n  \/\/ \u4e00\u65e6\u68c0\u6d4b\u5230\u6570\u636e\u53d1\u751f\u53d8\u5316\uff0c\u8bb0\u5f55\u5f53\u524d\u65f6\u95f4\r\n  if (reading&#x5B;deviceID] != lastButtonState&#x5B;deviceID]) {   \r\n    lastDebounceTime&#x5B;deviceID] = millis();\r\n  } \r\n\/*\r\n  Serial.print(&quot;ButtonPin: &quot;);\r\n   Serial.print(buttonPin);\r\n   Serial.print(&quot;. now: &quot;);\r\n   Serial.print(millis());    \r\n   Serial.print(&quot;. last: &quot;);\r\n   Serial.print(lastDebounceTime&#x5B;deviceID]);\r\n   Serial.print(&quot;. reading: &quot;);\r\n   Serial.print(reading&#x5B;deviceID]);    \r\n   Serial.print(&quot;. buttonState: &quot;);\r\n   Serial.println(buttonState&#x5B;deviceID]);    \r\n*\/\r\n\r\n  \/\/ \u7b49\u5f8550ms\uff0c\u518d\u8fdb\u884c\u4e00\u6b21\u5224\u65ad\uff0c\u662f\u5426\u548c\u5f53\u524dbutton\u72b6\u6001\u76f8\u540c\r\n  \/\/ \u5982\u679c\u548c\u5f53\u524d\u72b6\u6001\u4e0d\u76f8\u540c\uff0c\u6539\u53d8button\u72b6\u6001\r\n  \/\/ \u540c\u65f6\uff0c\u5982\u679cbutton\u72b6\u6001\u4e3a\u9ad8\uff08\u4e5f\u5c31\u662f\u88ab\u6309\u4e0b\uff09\uff0c\u90a3\u4e48\u5c31\u6539\u53d8\u7ee7\u7535\u5668\u7684\u72b6\u6001\r\n  if ((millis() - lastDebounceTime&#x5B;deviceID]) &gt; debounceDelay) {\r\n    \/\/      Serial.println(&quot;&gt;100ms&quot;);    \r\n    if (reading&#x5B;deviceID] != buttonState&#x5B;deviceID]) {\r\n      buttonState&#x5B;deviceID] = reading&#x5B;deviceID];\r\n      Serial.println(&quot;StateDiff&quot;);\r\n\r\n      if (buttonState&#x5B;deviceID] == HIGH) {\r\n        if(deviceID==0){  \/\/motor\r\n          mSwitchStatus=!mSwitchStatus;\r\n        }\r\n        else if(deviceID==1){ \/\/led\r\n          \/\/          Serial.print(&quot;ledMode: &quot;);\r\n          \/\/          Serial.println(ledMode);\r\n          \/\/           lSwitchStatus=!lSwitchStatus;\r\n          if(ledMode==2){\r\n            ledMode=0;\r\n          }\r\n          else{\r\n            ledMode =ledMode+1;\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n  digitalWrite(transistorPin,mSwitchStatus);  \r\n\r\n \/\/  Serial.print(&quot;Turn: &quot;);\r\n \/\/ Serial.println(lSwitchStatus);\r\n  \/\/ \u6539\u53d8button\u524d\u4e00\u4e2a\u72b6\u6001\u503c\r\n  lastButtonState&#x5B;deviceID] = reading&#x5B;deviceID];\r\n\r\n}\r\n\r\n\r\n\r\nvoid offRGB(){\r\n  RGB2&#x5B;0]=0;\r\n  RGB2&#x5B;1]=0;\r\n  RGB2&#x5B;2]=0;\r\n\r\n  for (int x=0; x&lt;3; x++){\r\n    INC&#x5B;x] = ( RGB2&#x5B;x] - RGB1&#x5B;x] ) \/ 128;\r\n  }\r\n\r\n  for ( int x =0 ; x&lt;128; x++) {\r\n    redValue = int(RGB1&#x5B;0]);\r\n    greenValue = int(RGB1&#x5B;1]);\r\n    blueValue = int(RGB1&#x5B;2]);\r\n    analogWrite(redPin, redValue);\r\n    analogWrite(greenPin, greenValue);\r\n    analogWrite(bluePin, blueValue);\r\n\r\n    delay(3);\r\n\r\n    RGB1&#x5B;0] += INC&#x5B;0];\r\n    RGB1&#x5B;1] += INC&#x5B;1];\r\n    RGB1&#x5B;2] += INC&#x5B;2];\r\n  }\r\n\r\n}\r\n\r\nvoid colorRGB(){\r\n  \/*\r\n   int potRed = analogRead(potRedPin);     \/\/ potRed\u5b58\u50a8\u6a21\u62df\u53e30\u8bfb\u5230\u7684\u503c\r\n   int potGreen = analogRead(potGreenPin); \/\/ potGreen\u5b58\u50a8\u6a21\u62df\u53e31\u8bfb\u5230\u7684\u503c\r\n   int potBlue = analogRead(potBluePin);  \/\/ potBlue\u5b58\u50a8\u6a21\u62df\u53e32\u8bfb\u5230\u7684\u503c\r\n   \r\n   int val1 = map(potRed,0,1023,0,255);     \/\/\u901a\u8fc7map\u51fd\u6570\u8f6c\u6362\u4e3a0~255\u7684\u503c\r\n   int val2 = map(potGreen,0,1023,0,255);\r\n   int val3 = map(potBlue,0,1023,0,255);\r\n   \r\n   int val1 = random(255);\r\n   int val2 = random(255);\r\n   int val3 = random(255);\r\n   \r\n   *\/\r\n\r\n\r\n  randomSeed(millis());\r\n\r\n  for (int x=0; x&lt;3; x++){\r\n    INC&#x5B;x] = ( RGB2&#x5B;x] - RGB1&#x5B;x] ) \/ 128;\r\n  }\r\n\r\n  for ( int x =0 ; x&lt;128; x++) { redValue = int(RGB1&#x5B;0]); greenValue = int(RGB1&#x5B;1]); blueValue = int(RGB1&#x5B;2]); \/\/\u4e32\u53e3\u4f9d\u6b21\u8f93\u51faRed\uff0cGreen\uff0cBlue\u5bf9\u5e94\u503c \/* Serial.print(x); Serial.print(&quot; Red:&quot;); Serial.print(redValue); Serial.print(&quot; Green:&quot;); Serial.print(greenValue); Serial.print(&quot; Blue:&quot;); Serial.println(blueValue); *\/ analogWrite(redPin, redValue); analogWrite(greenPin, greenValue); analogWrite(bluePin, blueValue); delay(3); RGB1&#x5B;0] += INC&#x5B;0]; RGB1&#x5B;1] += INC&#x5B;1]; RGB1&#x5B;2] += INC&#x5B;2]; buttonDebounce(mButtonPin,0); \/\/&#x5B;0] &gt; motor, &#x5B;1] &gt; led.\r\n  buttonDebounce(lButtonPin,1);   \/\/&#x5B;0] &gt; motor, &#x5B;1] &gt; led.\r\n  }\r\n\r\n  for (int x=0;x&lt;3;x++){\r\n    RGB2&#x5B;x] = random(256);\r\n    RGB2&#x5B;x] = constrain(RGB2&#x5B;x], 0, 255);\r\n    delay(20);\r\n  }\r\n\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ufeff\ufeff\ufeff\ufeff\ufeff\ufeff \u73a9\u5177\u529f\u80fd \u51cf\u901f\u9f7f\u8f6e\u7ec4\uff0c\u628a\u7535\u673a\u901f\u5ea6\u964d\u4f4e\u3002 \u9f7f\u8f6e\u6bd4\u53ef\u4ee5\u8c03\u3002\u4e24\u6863\u53d8\u901f\u3002 \u53ea\u80fd\u505c\u8f6c\u540e\u624d\u80fd\u6362\u6321\u3002\u60f3\u8fc7\u505a\u4e2a\u79bb &hellip; <a href=\"https:\/\/ybzx.vip\/wp\/?p=3375\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u9001\u7ed9LP\u7684\u4e03\u5f69\u5927\u94bb\u77f3 &#8211; 2\u6863\u53d8\u901f\u7bb1+LED\u8272\u5f69\u63a7\u5236<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[135,138,140],"class_list":["post-3375","post","type-post","status-publish","format-standard","hentry","category-live","tag-3d","tag-arduino","tag-solidworks"],"_links":{"self":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3375"}],"version-history":[{"count":0,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3375\/revisions"}],"wp:attachment":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}