{"id":93568,"date":"2024-06-03T13:15:43","date_gmt":"2024-06-03T05:15:43","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=93568"},"modified":"2024-06-03T13:15:48","modified_gmt":"2024-06-03T05:15:48","slug":"plzkbssmys","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/93568.html","title":{"rendered":"\u9891\u7387\u5360\u7a7a\u6bd4\u662f\u4ec0\u4e48\u610f\u601d"},"content":{"rendered":"\n
\u3000\u3000\u9891\u7387\u5360\u7a7a\u6bd4\u662f\u6307\u5728\u4e00\u4e2a\u5468\u671f\u5185\uff0c\u4fe1\u53f7\u7684\u9ad8\u7535\u5e73\u65f6\u95f4\u6240\u5360\u7684\u6bd4\u4f8b\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u5360\u7a7a\u6bd4(Duty Ratio)\u662f\u6307\u5728\u4e00\u4e2a\u8109\u51b2\u5faa\u73af\u5185\uff0c\u901a\u7535\u65f6\u95f4\u76f8\u5bf9\u4e8e\u603b\u65f6\u95f4\u6240\u5360\u7684\u6bd4\u4f8b\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4e00\u4e2a\u8109\u51b2\u5bbd\u5ea6\u4e3a1\u5fae\u79d2\uff0c\u800c\u4fe1\u53f7\u5468\u671f\u4e3a4\u5fae\u79d2\uff0c\u90a3\u4e48\u8be5\u8109\u51b2\u5e8f\u5217\u7684\u5360\u7a7a\u6bd4\u4e3a0.25.\u537325%\u3002<\/p>\n\n\n\n
\u3000\u3000\u5728PWM(\u8109\u51b2\u5bbd\u5ea6\u8c03\u5236)\u4e2d\uff0c\u901a\u8fc7\u8c03\u8282\u5360\u7a7a\u6bd4\uff0c\u53ef\u4ee5\u8c03\u8282\u8109\u51b2\u7684\u5bbd\u5ea6(\u8109\u5bbd\u65f6\u95f4)\uff0c\u4ece\u800c\u63a7\u5236\u8f93\u51fa\u7684\u6709\u6548\u7535\u538b\u6216\u5176\u4ed6\u53c2\u6570\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4e00\u4e2aPWM\u4fe1\u53f7\u7684\u9891\u7387\u4e3a20Hz\uff0c\u5360\u7a7a\u6bd4\u4e3a80%\uff0c\u5219\u57281\u79d2\u949f\u5185\u4f1a\u8f93\u51fa20\u6b21\u8109\u51b2\u4fe1\u53f7\uff0c\u6bcf\u6b21\u9ad8\u7535\u5e73\u7684\u65f6\u95f4\u4e3a40\u6beb\u79d2\u3002<\/p>\n\n\n\n
\u3000\u3000\u5360\u7a7a\u6bd4\u7684\u5b9a\u4e49\u53ef\u4ee5\u8fdb\u4e00\u6b65\u89e3\u91ca\u4e3a\uff1a\u5360\u7a7a\u6bd4 = \u7535\u4fe1\u53f7\u4e0d\u4e3a\u201c0\u201d\u7684\u65f6\u95f4 \/ (\u7535\u4fe1\u53f7\u4e3a\u201c0\u201d\u7684\u65f6\u95f4 + \u7535\u4fe1\u53f7\u4e0d\u4e3a\u201c0\u201d\u7684\u65f6\u95f4)* 100%\u3002\u8fd9\u610f\u5473\u7740\u5360\u7a7a\u6bd4\u53cd\u6620\u4e86\u4fe1\u53f7\u5728\u4e00\u4e2a\u5468\u671f\u5185\u5904\u4e8e\u9ad8\u7535\u5e73\u72b6\u6001\u7684\u65f6\u95f4\u6bd4\u4f8b\uff0c\u901a\u5e38\u7528\u767e\u5206\u6bd4\u8868\u793a\u3002<\/p>\n\n\n\n
\u3000\u3000\u9891\u7387\u5360\u7a7a\u6bd4\u662f\u6307\u5728\u4e00\u4e2a\u5468\u671f\u5185\uff0c\u4fe1\u53f7\u7684\u9ad8\u7535\u5e73\u65f6\u95f4\u6240\u5360\u7684\u6bd4\u4f8b\uff0c\u8fd9\u5728PWM\u5e94\u7528\u4e2d\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u4e3a\u5b83\u76f4\u63a5\u5f71\u54cd\u5230\u8f93\u51fa\u4fe1\u53f7\u7684\u7279\u6027\u548c\u63a7\u5236\u6548\u679c\u3002<\/p>\n\n\n\n
\u3000\u3000\u9891\u7387\u5360\u7a7a\u6bd4\u5728\u4e0d\u540c\u7c7b\u578b\u7684PWM\u5e94\u7528\u4e2d\u7684\u5177\u4f53\u4f5c\u7528\u5982\u4e0b\uff1a<\/p>\n\n\n\n
\u3000\u3000\u5728PWM\u6280\u672f\u4e2d\uff0c\u5360\u7a7a\u6bd4\u662f\u901a\u8fc7\u8c03\u8282PWM\u4fe1\u53f7\u7684\u5bbd\u5ea6\u6765\u5b9e\u73b0\u5bf9\u8f93\u51fa\u4fe1\u53f7\u7684\u7cbe\u786e\u63a7\u5236\u3002\u4f8b\u5982\uff0c\u5728\u9a71\u52a8LED\u706f\u65f6\uff0c\u901a\u8fc7\u6539\u53d8PWM\u4fe1\u53f7\u7684\u5360\u7a7a\u6bd4\uff0c\u53ef\u4ee5\u8c03\u8282\u6d41\u8fc7LED\u7684\u7535\u6d41\uff0c\u4ece\u800c\u5b9e\u73b0LED\u4eae\u5ea6\u7684\u6e10\u53d8\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u5e94\u7528\u5bf9\u7cbe\u5ea6\u548c\u54cd\u5e94\u901f\u5ea6\u7684\u9700\u6c42\u3002<\/p>\n\n\n\n
\u3000\u3000PWM\u6280\u672f\u80fd\u591f\u5b9e\u73b0\u9ad8\u6548\u7684\u80fd\u91cf\u8f6c\u6362\uff0c\u51cf\u5c11\u80fd\u91cf\u635f\u8017\uff0c\u5e76\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u3002\u901a\u8fc7\u8c03\u8282\u5360\u7a7a\u6bd4\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u63a7\u5236\u8f93\u51fa\u4fe1\u53f7\u7684\u5e73\u5747\u503c\uff0c\u4ece\u800c\u4f18\u5316\u80fd\u91cf\u4f7f\u7528\u3002<\/p>\n\n\n\n
\u3000\u3000PWM\u7535\u8def\u76f8\u5bf9\u7b80\u5355\uff0c\u6613\u4e8e\u8bbe\u8ba1\u3002\u901a\u8fc7\u8c03\u8282\u5360\u7a7a\u6bd4\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u6a21\u62df\u4fe1\u53f7\u7535\u5e73\u7684\u6570\u5b57\u7f16\u7801\uff0c\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u7b80\u4fbf\uff0c\u800c\u4e14\u5177\u6709\u9ad8\u5206\u8fa8\u7387\u3002<\/p>\n\n\n\n
\u3000\u3000\u5728\u5927\u591a\u6570\u5e94\u7528\u4e2d\uff0c\u8f83\u9ad8\u7684PWM\u9891\u7387\u610f\u5473\u7740\u66f4\u5feb\u7684\u54cd\u5e94\u901f\u5ea6\u548c\u66f4\u5c0f\u7684\u7eb9\u6ce2\u5e72\u6270\u3002\u7136\u800c\uff0c\u5360\u7a7a\u6bd4\u7684\u8c03\u8282\u4e3b\u8981\u7528\u4e8e\u63a7\u5236\u8f93\u51fa\u4fe1\u53f7\u7684\u5e73\u5747\u503c\uff0c\u800c\u4e0d\u662f\u76f4\u63a5\u5f71\u54cd\u9891\u7387\u3002<\/p>\n\n\n\n
\u3000\u3000\u8981\u8ba1\u7b97\u7279\u5b9a\u9891\u7387\u7684\u8109\u51b2\u5bbd\u5ea6\u4e0e\u5360\u7a7a\u6bd4\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u9996\u5148\u9700\u8981\u7406\u89e3\u8fd9\u4e24\u4e2a\u53c2\u6570\u7684\u5b9a\u4e49\u53ca\u5176\u76f8\u4e92\u4e4b\u95f4\u7684\u5173\u7cfb\u3002<\/p>\n\n\n\n
\u3000\u3000\u8109\u51b2\u5bbd\u5ea6(Pulse Width)<\/strong>\uff1a\u5728\u4e00\u4e2a\u5468\u671f\u5185\u9ad8\u7535\u5e73\u6240\u5360\u7684\u65f6\u95f4\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4e00\u4e2a\u5468\u671f\u4e3a10\u5fae\u79d2\uff0c\u90a3\u4e48\u4e00\u4e2a2\u5fae\u79d2\u7684\u9ad8\u7535\u5e73\u8109\u51b2\u5bbd\u5ea6\u5c31\u662f2\u5fae\u79d2\u3002<\/p>\n\n\n\n \u3000\u3000\u5360\u7a7a\u6bd4(Duty Cycle)<\/strong>\uff1a\u5728\u4e00\u4e2a\u5468\u671f\u5185\u9ad8\u7535\u5e73\u6240\u5360\u7684\u6bd4\u4f8b\u3002<\/p>\n\n\n\n \u3000\u3000\u5468\u671f(Period)<\/strong>\uff1a\u5b8c\u6210\u4e00\u4e2a\u5b8c\u6574\u6ce2\u5f62\u6240\u9700\u7684\u65f6\u95f4\u3002\u9891\u7387\u662f\u5468\u671f\u7684\u5012\u6570\uff0c\u5373\u9891\u7387 = 1 \/ \u5468\u671f\u3002<\/p>\n\n\n\n \u3000\u3000\u8109\u51b2\u5bbd\u5ea6\u4e0e\u5360\u7a7a\u6bd4\u4e4b\u95f4\u5b58\u5728\u7ebf\u6027\u5173\u7cfb\uff0c\u5373\u5b83\u4eec\u6210\u6b63\u6bd4\u3002\u8fd9\u610f\u5473\u7740\uff0c\u5982\u679c\u4f60\u589e\u52a0\u8109\u51b2\u5bbd\u5ea6\uff0c\u4f60\u4f1a\u770b\u5230\u5360\u7a7a\u6bd4\u589e\u52a0\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002<\/p>\n\n\n\n \u3000\u3000\u6b64\u5916\uff0c\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8109\u51b2\u5bbd\u5ea6\u548c\u5360\u7a7a\u6bd4\u901a\u5e38\u901a\u8fc7PWM(\u8109\u51b2\u5bbd\u5ea6\u8c03\u5236)\u6765\u8c03\u6574\u3002\u4f8b\u5982\uff0c\u5728STM32\u7684PWM\u8f93\u51fa\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574PWM\u53c2\u6570\u6765\u63a7\u5236\u8109\u51b2\u5bbd\u5ea6\u548c\u5360\u7a7a\u6bd4\u3002<\/p>\n\n\n\n \u3000\u3000\u8ba1\u7b97\u7279\u5b9a\u9891\u7387\u7684\u8109\u51b2\u5bbd\u5ea6\u4e0e\u5360\u7a7a\u6bd4\u4e4b\u95f4\u7684\u5173\u7cfb\u9700\u8981\u77e5\u9053\u5468\u671f\u3001\u9891\u7387\u3001\u8109\u51b2\u5bbd\u5ea6\u548c\u5360\u7a7a\u6bd4\u3002<\/p>\n\n\n\n \u3000\u3000\u5360\u7a7a\u6bd4\u5bf9\u7535\u8def\u8bbe\u8ba1\u548c\u6027\u80fd\u7684\u5f71\u54cd\u4e3b\u8981\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n\n\n\n \u3000\u3000\u5360\u7a7a\u6bd4\u76f4\u63a5\u5f71\u54cd\u7535\u6e90\u7684\u6548\u7387\u3002\u5f53\u5360\u7a7a\u6bd4\u8fdc\u79bb0\u548c1\u65f6\uff0c\u7535\u6e90\u6548\u7387\u5219\u8f83\u4f4e\u3002<\/p>\n\n\n\n \u3000\u3000\u5360\u7a7a\u6bd4\u4e0e\u8f93\u51fa\u7535\u538b\u4e4b\u95f4\u5b58\u5728\u6b63\u76f8\u5173\u5173\u7cfb\u3002\u5f53\u5360\u7a7a\u6bd4\u589e\u5927\u65f6\uff0c\u8f93\u51fa\u7535\u538b\u4e5f\u4f1a\u589e\u5927;\u53cd\u4e4b\uff0c\u5f53\u5360\u7a7a\u6bd4\u51cf\u5c0f\u65f6\uff0c\u8f93\u51fa\u7535\u538b\u4e5f\u4f1a\u76f8\u5e94\u51cf\u5c0f\u3002\u8fd9\u79cd\u5173\u7cfb\u5728PWM(\u8109\u51b2\u5bbd\u5ea6\u8c03\u5236)\u5f00\u5173\u7535\u6e90\u4e2d\u5c24\u4e3a\u660e\u663e\uff0c\u901a\u8fc7\u6539\u53d8\u5360\u7a7a\u6bd4\u53ef\u4ee5\u5b9e\u73b0\u7a33\u538b\u529f\u80fd\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u8c03\u9891\u8c03\u5360\u7a7a\u6bd4\u7535\u8def\u4e2d\uff0c\u901a\u8fc7\u8c03\u8282\u5360\u7a7a\u6bd4\u53ef\u4ee5\u9010\u6e10\u589e\u52a0\u7cfb\u7edf\u7684\u8c10\u632f\u56de\u8def\u7684\u8c10\u632f\u7535\u6d41\u3002\u8fd9\u5728\u542f\u52a8\u65f6\u5c24\u4e3a\u91cd\u8981\uff0c\u56e0\u4e3a\u7cfb\u7edf\u9700\u8981\u5145\u7535\u4ee5\u8fbe\u5230\u6700\u4f73\u5de5\u4f5c\u72b6\u6001\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u8bbe\u8ba1\u5206\u9891\u7535\u8def\u65f6\uff0c\u5360\u7a7a\u6bd4\u7684\u9009\u62e9\u975e\u5e38\u5173\u952e\u3002\u4f8b\u5982\uff0c\u8bbe\u8ba1\u4e00\u4e2a1-8\u5206\u9891\u7535\u8def\u65f6\uff0c\u5360\u7a7a\u6bd4\u901a\u5e38\u8bbe\u5b9a\u4e3a50%\uff0c\u4ee5\u786e\u4fdd\u5947\u5206\u9891\u548c\u5076\u5206\u9891\u7684\u6b63\u786e\u5b9e\u73b0\u3002<\/p>\n\n\n\n \u3000\u3000\u5728buck\u7535\u8def\u4e2d\uff0c\u5360\u7a7a\u6bd4\u4e0e\u8f93\u51fa\u7535\u6d41\u4e4b\u95f4\u5b58\u5728\u5bc6\u5207\u5173\u8054\u3002\u901a\u8fc7\u8c03\u6574\u5360\u7a7a\u6bd4\uff0c\u53ef\u4ee5\u63a7\u5236\u6700\u5927\u8f93\u51fa\u7535\u6d41\uff0c\u4ece\u800c\u4f18\u5316\u7535\u8def\u6027\u80fd\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u4e00\u4e9b\u5f00\u73af\u7684\u7eaf\u6570\u5b57\u65f6\u949f\u5360\u7a7a\u6bd4\u8c03\u8282\u7535\u8def\u8bbe\u8ba1\u4e2d\uff0c\u4ece\u5f00\u59cb\u8c03\u8282\u5230\u8f93\u51fa\u5360\u7a7a\u6bd4\u4e3a50%\u7684\u65f6\u949f\u4e00\u822c\u9700\u89815\uff5e10\u4e2a\u65f6\u949f\u5468\u671f\u3002\u8fd9\u79cd\u957f\u7684\u8c03\u8282\u5ef6\u8fdf\u5bf9\u9ad8\u6027\u80fd\u7535\u8def\u6765\u8bf4\u662f\u4e0d\u80fd\u5bb9\u5fcd\u7684\uff0c\u56e0\u6b64\u9700\u8981\u91c7\u7528\u7279\u6b8a\u7684\u8bbe\u8ba1\u65b9\u6cd5\u6765\u7f29\u77ed\u8c03\u8282\u65f6\u95f4\u3002<\/p>\n\n\n\n \u3000\u3000\u901a\u8fc7\u6539\u53d8\u5360\u7a7a\u6bd4\u3001\u7535\u611f\u7535\u5bb9\u503c\u7b49\u53c2\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528MATLAB\u7b49\u4eff\u771f\u5de5\u5177\u6765\u89c2\u5bdf\u5176\u5bf9\u8f93\u51fa\u7535\u538b\u7684\u5f71\u54cd\uff0c\u5e76\u8fdb\u884c\u4f18\u5316\uff0c\u4ee5\u63d0\u9ad8\u7535\u8def\u7684\u6574\u4f53\u6027\u80fd\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u5360\u7a7a\u6bd4\u503c\u9700\u8981\u6839\u636e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u8fdb\u884c\u8be6\u7ec6\u5206\u6790\u548c\u8ba1\u7b97\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u5e94\u7528\u573a\u666f\u53ca\u5176\u5bf9\u5e94\u7684\u5360\u7a7a\u6bd4\u9009\u62e9\u65b9\u6cd5\uff1a<\/p>\n\n\n\n \u3000\u3000PWM\u4fe1\u53f7\u751f\u6210<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728STM32\u5b9a\u65f6\u5668\u4e2d\uff0c\u5360\u7a7a\u6bd4\u53ef\u4ee5\u901a\u8fc7\u516c\u5f0f \u5360\u7a7a\u6bd4 = (timx->ccry \/ arr) * 100% \u8ba1\u7b97\uff0c\u5176\u4e2d ccry \u662f\u5b9a\u65f6\u5668\u7684CCCR\u5bc4\u5b58\u5668\u7684\u503c\uff0carr \u662fARR\u5bc4\u5b58\u5668\u7684\u503c\u3002\u8fd9\u4e2a\u516c\u5f0f\u9002\u7528\u4e8e\u9700\u8981\u7cbe\u786e\u63a7\u5236PWM\u4fe1\u53f7\u5360\u7a7a\u6bd4\u7684\u573a\u666f\u3002<\/p>\n\n\n\n \u3000\u3000\u5360\u7a7a\u6bd4\u7684\u8303\u56f4\u901a\u5e38\u57280-100%\u4e4b\u95f4\uff0c\u56e0\u6b64\u5728\u8bbe\u7f6ePWM\u65f6\uff0c\u5e94\u786e\u4fdd timx_ccrx \u5bc4\u5b58\u5668\u7684\u503c\u4e0d\u8d85\u8fc7 arr \u5bc4\u5b58\u5668\u7684\u503c\uff0c\u4ee5\u907f\u514d\u9891\u7387\u6216\u5360\u7a7a\u6bd4\u7684\u51c6\u786e\u6027\u95ee\u9898\u3002<\/p>\n\n\n\n \u3000\u3000\u5f00\u5173\u7a33\u538b\u5668<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u5982\u679c\u5e94\u7528\u8981\u6c42\u8f93\u5165\u7535\u538b\u80fd\u591f\u964d\u81f3\u975e\u5e38\u63a5\u8fd1\u8f93\u51fa\u7535\u538b\u8bbe\u7f6e\u70b9\u7684\u6c34\u5e73\uff0c\u5219\u5e94\u9009\u62e9\u5141\u8bb8\u5360\u7a7a\u6bd4\u4e3a1\u6216100%\u7684\u5f00\u5173\u7a33\u538b\u5668\u3002\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5360\u7a7a\u6bd4\u7684\u9009\u62e9\u76f4\u63a5\u5f71\u54cd\u5230\u7535\u538b\u8f6c\u6362\u7684\u6548\u7387\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n\n\n\n \u3000\u3000LED\u9a71\u52a8<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728\u4f7f\u7528LP3936\u706f\u5149\u7ba1\u7406\u7cfb\u7edf\u9a71\u52a8RGB LED\u65f6\uff0c\u5360\u7a7a\u6bd4\u7684\u8bbe\u5b9a\u503c\u4f1a\u5f71\u54cd\u5230LED\u7684\u4eae\u5ea6\u548c\u989c\u8272\u53d8\u5316\u3002\u4f8b\u5982\uff0c\u5728\u8bbe\u7f6eRGB LED\u7684\u989c\u8272\u65f6\uff0c\u9700\u8981\u901a\u8fc7\u8c03\u6574\u5360\u7a7a\u6bd4\u6765\u5b9e\u73b0\u4e0d\u540c\u7684\u989c\u8272\u6548\u679c\u3002<\/p>\n\n\n\n \u3000\u3000\u901a\u7528\u4fe1\u53f7\u5904\u7406<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u5bf9\u4e8e\u4e00\u822c\u7684\u4fe1\u53f7\u5904\u7406\u5e94\u7528\uff0c\u5360\u7a7a\u6bd4\u901a\u5e38\u8868\u793a\u4e3a\u4e00\u4e2a\u5468\u671f\u5185\u4fe1\u53f7\u5904\u4e8e\u9ad8\u7535\u5e73\u72b6\u6001\u7684\u65f6\u95f4\u6bd4\u4f8b\u3002\u5e38\u89c1\u7684\u5360\u7a7a\u6bd4\u4e3a50%\uff0c\u5373\u9ad8\u7535\u5e73\u65f6\u95f4\u548c\u4f4e\u7535\u5e73\u65f6\u95f4\u76f8\u7b49\u3002\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5360\u7a7a\u6bd4\u7684\u9009\u62e9\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u9700\u6c42\uff0c\u5982\u4fe1\u53f7\u7684\u8c03\u5236\u3001\u89e3\u8c03\u7b49\u3002<\/p>\n\n\n\n \u3000\u3000\u786c\u4ef6\u5ef6\u8fdf\u65f6\u95f4\u8003\u8651<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728\u67d0\u4e9b\u7279\u5b9a\u7684\u5e94\u7528\u4e2d\uff0c\u8fd8\u9700\u8981\u8003\u8651\u786c\u4ef6\u5ef6\u8fdf\u65f6\u95f4\u5bf9\u5360\u7a7a\u6bd4\u7684\u5f71\u54cd\u3002\u4f8b\u5982\uff0c\u5728PWM\u8f93\u51fa\u4e2d\uff0c\u5360\u7a7a\u6bd4\u7684\u6709\u6548\u8303\u56f4\u53ef\u80fd\u53d7\u5230\u786c\u4ef6\u5ef6\u8fdf\u65f6\u95f4\u7684\u9650\u5236\u3002<\/p>\n\n\n\n \u3000\u3000\u9009\u62e9\u5408\u9002\u7684\u5360\u7a7a\u6bd4\u503c\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42\u8fdb\u884c\u8be6\u7ec6\u5206\u6790\u548c\u8ba1\u7b97\u3002<\/p>\n\n\n\n \u3000\u3000PWM(\u8109\u51b2\u5bbd\u5ea6\u8c03\u5236)\u4fe1\u53f7\u7684\u5360\u7a7a\u6bd4\u4e0e\u5176\u4ed6\u8c03\u5236\u65b9\u5f0f(\u5982\u65b9\u6ce2\u3001\u6b63\u5f26\u6ce2)\u76f8\u6bd4\uff0c\u5177\u6709\u4ee5\u4e0b\u4f18\u52bf\u548c\u52a3\u52bf\uff1a<\/p>\n\n\n\n \u3000\u3000PWM\u4fe1\u53f7\u7684\u6700\u5927\u4f18\u52bf\u5728\u4e8e\u5176\u5360\u7a7a\u6bd4\u662f\u53ef\u8c03\u7684\u3002\u8fd9\u79cd\u53ef\u8c03\u6027\u4f7f\u5f97PWM\u5728\u6570\u5b57\u7535\u8def\u4e2d\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6a21\u62df\u4fe1\u53f7\u7684\u751f\u6210\u548c\u63a7\u5236\u3002<\/p>\n\n\n\n \u3000\u3000PWM\u53ef\u4ee5\u901a\u8fc7\u6539\u53d8\u5360\u7a7a\u6bd4\u6765\u6a21\u62df\u4e0d\u540c\u7684\u8f93\u51fa\u6ce2\u5f62\uff0c\u5982\u6b63\u5f26\u6ce2\u7b49\u3002\u8fd9\u610f\u5473\u7740PWM\u53ef\u4ee5\u5728\u4e0d\u9700\u8981\u5b9e\u9645\u751f\u6210\u590d\u6742\u6ce2\u5f62\u7684\u60c5\u51b5\u4e0b\uff0c\u6709\u6548\u5730\u5b9e\u73b0\u9ad8\u6548\u7387\u7684\u529f\u7387\u8f6c\u6362\u548c\u63a7\u5236\u3002<\/p>\n\n\n\n \u3000\u3000PWM\u4fe1\u53f7\u53ef\u4ee5\u901a\u8fc7\u8f6f\u4ef6\u7f16\u7a0b\u6765\u8c03\u6574\u5360\u7a7a\u6bd4\uff0c\u9002\u5e94\u5404\u79cd\u4e0d\u540c\u7684\u5e94\u7528\u9700\u6c42\u3002\u4f8b\u5982\uff0c\u5728\u9006\u53d8\u5668\u4e2d\uff0cPWM\u53ef\u4ee5\u7528\u6765\u63a7\u5236\u4e09\u76f8\u8f93\u51fa\uff0c\u4ee5\u5b9e\u73b0\u9ad8\u6548\u7684\u7535\u529b\u8f6c\u6362\u3002<\/p>\n\n\n\n \u3000\u3000\u5f53PWM\u7684\u9891\u7387\u8f83\u9ad8\u65f6\uff0c\u8f93\u51fa\u6ce2\u5f62\u53ef\u80fd\u4f1a\u51fa\u73b0\u5931\u771f\u73b0\u8c61\uff0c\u5c24\u5176\u662f\u5728\u4f4e\u5360\u7a7a\u6bd4\u7684\u60c5\u51b5\u4e0b\uff0cPWM\u8109\u51b2\u4e0d\u5bf9\u79f0\u7684\u5f71\u54cd\u4f1a\u589e\u5927\uff0c\u5bfc\u81f4\u8f93\u51fa\u6ce2\u5f62\u4e0e\u7406\u60f3\u6ce2\u5f62(\u5982\u6b63\u5f26\u6ce2)\u4e4b\u95f4\u7684\u5dee\u5f02\u53d8\u5927\u3002<\/p>\n\n\n\n \u3000\u3000PWM\u4fe1\u53f7\u7531\u4e8e\u5176\u56fa\u6709\u7684\u77e9\u5f62\u6ce2\u5f62\u7279\u6027\uff0c\u53ef\u80fd\u4f1a\u4ea7\u751f\u8f83\u591a\u7684\u8c10\u6ce2\uff0c\u8fd9\u4e9b\u8c10\u6ce2\u53ef\u80fd\u4f1a\u5e72\u6270\u5176\u4ed6\u7535\u5b50\u8bbe\u5907\u7684\u6b63\u5e38\u5de5\u4f5c\uff0c\u5f71\u54cd\u7cfb\u7edf\u7684\u6574\u4f53\u6027\u80fd\u3002<\/p>\n\n\n\n \u3000\u3000\u4e0e\u65b9\u6ce2\u548c\u6b63\u5f26\u6ce2\u76f8\u6bd4\uff0cPWM\u9700\u8981\u66f4\u590d\u6742\u7684\u786c\u4ef6\u652f\u6301\uff0c\u5982\u5b9a\u65f6\u5668\u548c\u76f8\u5173\u63a7\u5236\u903b\u8f91\uff0c\u8fd9\u53ef\u80fd\u4f1a\u589e\u52a0\u7cfb\u7edf\u8bbe\u8ba1\u548c\u5b9e\u65bd\u7684\u96be\u5ea6\u548c\u6210\u672c\u3002<\/p>\n\n\n\n \u3000\u3000PWM\u4fe1\u53f7\u7684\u5360\u7a7a\u6bd4\u5177\u6709\u53ef\u8c03\u6027\u3001\u9ad8\u6548\u7387\u548c\u9002\u5e94\u6027\u5f3a\u7b49\u4f18\u52bf\uff0c\u4f46\u4e5f\u5b58\u5728\u8f93\u51fa\u6ce2\u5f62\u5931\u771f\u3001\u8c10\u6ce2\u95ee\u9898\u548c\u786c\u4ef6\u8981\u6c42\u9ad8\u7b49\u52a3\u52bf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u9891\u7387\u5360\u7a7a\u6bd4\u662f\u6307\u5728\u4e00\u4e2a\u5468\u671f\u5185\uff0c\u4fe1\u53f7\u7684\u9ad8\u7535\u5e73\u65f6\u95f4\u6240\u5360\u7684\u6bd4\u4f8b\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u5360\u7a7a\u6bd4(Duty Ratio)\u662f\u6307\u5728\u4e00\u4e2a\u8109\u51b2\u5faa\u73af\u5185\uff0c\u901a\u7535\u65f6\u95f4\u76f8\u5bf9\u4e8e\u603b\u65f6\u95f4\u6240\u5360\u7684\u6bd4\u4f8b<\/p>\n","protected":false},"author":1,"featured_media":91665,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[114],"class_list":["post-93568","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-plzs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/93568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=93568"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/93568\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/91665"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=93568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=93568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=93568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u3000\u3000\u4e09\u3001 \u5360\u7a7a\u6bd4\u5bf9\u7535\u8def\u8bbe\u8ba1\u548c\u6027\u80fd\u7684\u5f71\u54cd\u6709\u54ea\u4e9b?<\/h2>\n\n\n\n
\u3000\u3000\u56db\u3001 \u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5982\u4f55\u6839\u636e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u5360\u7a7a\u6bd4\u503c?<\/h2>\n\n\n\n
\u3000\u3000\u4e94\u3001 PWM\u4fe1\u53f7\u7684\u5360\u7a7a\u6bd4\u4e0e\u5176\u4ed6\u8c03\u5236\u65b9\u5f0f(\u5982\u65b9\u6ce2\u3001\u6b63\u5f26\u6ce2)\u76f8\u6bd4\u6709\u4f55\u4f18\u52bf\u548c\u52a3\u52bf?<\/h2>\n\n\n\n
\u3000\u30001. \u4f18\u52bf<\/h3>\n\n\n\n
\u3000\u30002. \u52a3\u52bf<\/h3>\n\n\n\n