{"id":2636,"date":"2019-06-13T08:11:24","date_gmt":"2019-06-13T08:11:24","guid":{"rendered":""},"modified":"2019-06-13T16:11:52","modified_gmt":"2019-06-13T08:11:52","slug":"%e5%9f%ba%e4%ba%8e%e8%a7%a6%e6%91%b8%e5%b1%8f%e7%9a%84led%e9%a9%b1%e5%8a%a8%e7%94%b5%e8%b7%af%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2636","title":{"rendered":"\u57fa\u4e8e\u89e6\u6478\u5c4f\u7684LED\u9a71\u52a8\u7535\u8def\u8bbe\u8ba1"},"content":{"rendered":"

\n\t\u672c\u7cfb\u7edf\u662f\u5229\u7528\u89e6\u6478\u5c4f\u63a7\u5236\u7684\u53ef\u8c03\u989c\u8272\u7684\u7167\u660e\u706f\u5177\u3002\u706f\u6e90\u4e3a\u5927\u529f\u7387\u8d85\u9ad8\u4eae\u4e09\u57fa\u8272\u53d1\u5149\u4e8c\u6781\u7ba1<\/u>\u7ec4\u6210\u3002\u672c\u8bbe\u8ba1\u6700\u5927\u7684\u4eae\u70b9\u662f\u89e6\u6478\u5c4f\u4e0a\u6240\u6307\u793a\u7684\u989c\u8272\u4e0e\u5b9e\u9645\u706f\u7167\u51fa\u7684\u989c\u8272\u4e00\u81f4\u3002\u5230\u901a\u8fc7c\u8bed\u8a00\u7a0b\u5e8f\u5bf9\u5355\u7247\u673a<\/u>\u7684PWM \u529f\u80fd\u8fdb\u884c\u63a7\u5236\u5b9e\u73b0\u76f8\u5e94\u7684\u5750\u6807\u53d8\u6362\u4f7f\u706f\u5177\u5b9e\u73b0\u8c03\u8272\u8c03\u4eae\u7684\u6548\u679c\uff0c\u4e3a\u4f7f\u7528\u8005\u63d0\u4f9b\u4e00\u4e2a\u968f\u5fc3\u8c03\u8282\u5ba4\u5185\u6c14\u6c1b\u7684\u826f\u597d\u5de5\u5177\u3002<\/p>\n

\n\t\u4e00\u3001\u63a7\u5236\u786c\u4ef6\u603b\u4f53\u8bbe\u8ba1<\/p>\n

\n\t <\/div>\n

\n\t\u7cfb\u7edf\u7684\u603b\u4f53\u6846\u56fe\u5982\u56fe1 \u6240\u793a\u3002\u7cfb\u7edf\u53ef\u6709\u8f93\u5165\uff0c\u8f93\u51fa\uff0c\u63a7\u5236\u4e09\u90e8\u5206\u7ec4\u6210\uff0c\u5f53\u89e6\u6478\u5c4f\u88ab\u6309\u4e0b\u89e6\u6478\u5c4f\u82af\u7247\u8bfb\u53d6\u89e6\u6478\u5c4f\u4e0aX \u8f74\u4e0eY \u8f74\u7684\u503c\uff0c\u7136\u540e\u901a\u8fc7SPI<\/u> \u534f\u8bae\u4f20\u9001\u5230\u63a7\u5236\u5668\uff0c\u63a7\u5236\u5668\u8d1f\u8d23\u4fe1\u53f7\u7684\u5904\u7406\uff0c\u628a\u5904\u7406\u5b8c\u6bd5\u7684\u4fe1\u53f7\u4ee5PWM \u65b9\u5f0f\u8f93\u51fa\u9a71\u52a8LED<\/u>\u3002<\/p>\n

\n\t\"\u57fa\u4e8e\u89e6\u6478\u5c4f\u7684LED\u9a71\u52a8\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe1 \u7cfb\u7edf\u603b\u4f53\u6846\u56fe<\/p>\n

\n\t\u4e8c\u3001\u89e6\u6478\u5c4f\u7684\u4f7f\u7528<\/p>\n

\n\t\u672c\u7cfb\u7edf\u9009\u62e9\u7535\u963b<\/u>\u5f0f\u89e6\u6478\u5c4f\uff0c\u5b83\u5c06\u77e9\u5f62\u533a\u57df\u4e2d\u89e6\u6478\u70b9(X,Y) \u7684\u7269\u7406\u4f4d\u7f6e\u8f6c\u6362\u4e3a\u4ee3\u8868X \u5750\u6807\u548cY \u5750\u6807\u7684\u7535\u538b\u5176\u89e6\u6478\u5c4f\u7ed3\u6784\u5982\u56fe2 \u6240\u793a\u3002\u56fe3\u663e\u793a\u4e86\u56db\u7ebf\u89e6\u6478\u5c4f\u5728\u4e24\u5c42\u76f8\u63a5\u89e6\u65f6\u7684\u7b80\u5316\u6a21\u578b\u3002\u5bf9\u4e8e\u56db\u7ebf\u89e6\u6478\u5c4f\uff0c\u6700\u7406\u60f3\u7684\u8fde\u63a5\u65b9\u6cd5\u662f\u5c06\u504f\u7f6e\u4e3aVR<\/u>EF \u7684\u603b\u7ebf\u63a5ADC<\/u> \u7684\u6b63\u53c2\u8003\u8f93\u5165\u7aef\uff0c\u5e76\u5c06\u8bbe\u7f6e\u4e3a0V \u7684\u603b\u7ebf\u63a5ADC \u7684\u8d1f\u53c2\u8003\u8f93\u5165\u7aef\u3002<\/p>\n

\n\t\"\u57fa\u4e8e\u89e6\u6478\u5c4f\u7684LED\u9a71\u52a8\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe2 \u7535\u963b\u89e6\u6478\u5c4f\u7ed3\u6784\u3002<\/p>\n

\n\t\"\u57fa\u4e8e\u89e6\u6478\u5c4f\u7684LED\u9a71\u52a8\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe3 \u7535\u963b\u89e6\u6478\u5c4f\u7b80\u5316\u6a21\u578b\u3002<\/p>\n

\n\t\u4e09\u3001\u63a5\u53e3<\/u>\u7535\u8def<\/u>\u8bbe\u8ba1<\/p>\n

\n\t1. \u63a7\u5236\u5668\u4e0e\u89e6\u6478\u5c4f\u8fde\u63a5<\/p>\n

\n\t\u672c\u7cfb\u7edf\u91c7\u7528\u7f8e\u56fdTI<\/u> \u516c\u53f8\u751f\u4ea7\u7684ADS7843,\u8be5\u82af\u7247\u5185\u7f6e12 \u4f4dAD \u8f6c\u6362\u3001\u4f4e\u5bfc\u901a\u7535\u963b\u6a21\u62df\u5f00\u5173<\/u>\u7684SPI \u603b\u7ebf\u63a5\u53e3\u89e6\u6478\u5c4f\u63a7\u5236\u3002\u4f9b\u7535\u7535\u538b\u4e3a2.7 ~ 5.25V,\u53c2\u8003\u7535\u538bVREF \u4e3a1V~+VCC,\u8f6c\u6362\u7535\u538b\u8303\u56f4\u4e3a0 ~ VREF,\u63a7\u5236\u5668\u53ef \u901a\u8fc7\u5185\u7f6e\u7684SPI \u8f93\u51fa\u53e3MOSI\u3001MI<\/u>SO\u3001SCK \u4e0e\u89e6\u6478\u5c4f\u82af\u7247\u8fdb\u884c\u8fde\u63a5\uff0c\u5982\u56fe4 \u6240\u793a\u3002<\/p>\n

\n\t\"\u57fa\u4e8e\u89e6\u6478\u5c4f\u7684LED\u9a71\u52a8\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe4 \u5355\u7247\u673a\u4e0e\u89e6\u6478\u5c4f\u63a5\u53e3\u7535\u8def\u56fe\u3002<\/p>\n

\n\t2. LED\u9a71\u52a8\u7535\u8def<\/p>\n

\n\t\u63a7\u5236\u5668\u8f93\u51faPWM \u6ce2\u5f62\u4f5c\u4e3a\u9a71\u52a8\u7535\u8def\u7684\u9a71\u52a8\u4fe1\u53f7\uff0c\u4e09\u6781\u7ba1<\/u>Q1 \u4f5c\u4e3a\u65a9\u6ce2\u5668\u4ef6\u3002\u5f53\u9a71\u52a8\u4fe1\u53f7\u4e3a\u9ad8\u7535\u5e73\u65f6\u4e09\u6781\u7ba1\u5904\u4e8e\u622a\u6b62\u72b6\u6001\uff0cLED \u4e0d\u4eae;\u5f53\u8f93\u5165\u4fe1\u53f7\u4e3a\u4f4e\u7535\u5e73\u4e09\u6781\u7ba1\u5904\u4e8e\u5bfc\u901a\u72b6\u6001\uff0cLED \u70b9\u4eae\u3002\u7ea2\u8272LED \u7684\u9a71\u52a8\u7535\u8def\u5982\u56fe5 \u6240\u793a\uff0c\u7eff\u8272\u4e0e\u84dd\u8272LED \u7684\u9a71\u52a8\u7535\u8def\u7684\u7ed3\u6784\u4e0e\u7ea2\u8272\u7684\u76f8\u540c\uff0c\u5355\u7247\u673a\u7684PB7 \u7aef\u4e3a\u7eff\u8272LED \u7684\u9a71\u52a8\u4fe1\u53f7\uff0cPD4 \u4e3a\u84dd\u8272LED \u7684\u9a71\u52a8\u4fe1\u53f7\u3002<\/p>\n

\n\t\"\u57fa\u4e8e\u89e6\u6478\u5c4f\u7684LED\u9a71\u52a8\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe5 \u7ea2\u8272LED\u7684\u9a71\u52a8\u7535\u8def\u56fe\u3002<\/p>\n

\n\t\u56db\u3001\u7cfb\u7edf\u7684\u7a0b\u5e8f\u8bbe\u8ba1<\/p>\n

\n\t1.\u7cfb\u7edf\u603b\u6d41\u7a0b\u56fe<\/p>\n

\n\t\u7cfb\u7edf\u786c\u4ef6\u53ef\u4ee5\u5206\u4e3a\u8f93\u5165\u3001\u63a7\u5236\u3001\u8f93\u51fa\u90e8\u5206\uff0c\u5176\u4e2d\u63a7\u5236\u90e8\u5206\u662f\u8fde\u63a5\u8f93\u5165\u3001\u8f93\u51fa\u3002\u5355\u7247\u673a\u7a0b\u5e8f\u51b3\u5b9a\u8f93\u5165\u5982\u4f55\u5f71\u54cd\u8f93\u51fa\uff0c\u8f93\u51fa\u5982\u4f55\u54cd\u5e94\u8f93\u5165\uff0c\u5176\u5177\u4f53\u6846\u56fe\u5982\u56fe6 \u6240\u793a\u3002\u5355\u7247\u673a\u5bf9ADS7843 \u8fdb\u884c\u8bfb\u53d6\u540e\u5bf9\u6570\u636e\u8fdb\u884c\u5750\u6807\u53d8\u6362\uff0c\u6700\u540e\u628a\u5904\u7406\u7684\u503c\u8f93\u51fa\u9a71\u52a8LED.<\/p>\n

\n\t\"\u57fa\u4e8e\u89e6\u6478\u5c4f\u7684LED\u9a71\u52a8\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe6 \u7cfb\u7edf\u8f6f\u4ef6\u6d41\u7a0b\u56fe\u3002<\/p>\n

\n\t2.\u89e6\u6478\u5c4f\u5750\u6807\u8bfb\u53d6<\/p>\n

\n\t\u6240\u8c13\u7684\u89e6\u6478\u70b9\u5750\u6807\u662f\u6307\u5f53\u89e6\u6478\u5c4f\u88ab\u6309\u4e0b\u65f6\u89e6\u6478\u82af\u7247\u8bfb\u51fa\u7684X \u8f74\u4e0eY \u8f74\u7684\u6570\u503c\u3002\u89e6\u6478\u5750\u6807\u7684\u8bfb\u53d6\u65f6\u975e\u5e38\u5173\u952e\u7684\uff0c\u5b83\u662f\u89e6\u6478\u5c4f\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u6700\u91cd\u8981\u7684\u73af\u8282\uff0c\u82e5\u89e6\u6478\u70b9\u5750\u6807\u6709\u8bef\uff0c\u5c06\u5bfc\u81f4\u5355\u7247\u673a\u9519\u8bef\u5904\u7406\u3002\u9996\u5148\u4f7f\u80fdADS7843,\u7136\u540e\u5411ADS7843 \u5199\u5165\u6d4b\u91cf<\/u>X \u5750\u6807\u7684\u63a7\u5236\u5b57\uff0c\u5ef6\u65f6\u82e5\u5e72\u6beb\u79d2\u540e\uff0c\u8bfb\u53d6ADS7843 \u7684\u8f6c\u6362\u6570\u636e\u3002\u8bfb\u53d6\u7684\u6570\u636e\u5373X \u7684\u5750\u6807\u503c;\u518d\u628a\u6d4b\u91cfY \u5750\u6807\u63a7\u5236\u5b57\u5199\u5165ADS7843,\u5ef6\u65f6\u82e5\u5e72\u6beb\u79d2\u540e\uff0c\u8bfb\u53d6ADS7843 \u7684\u8f6c\u6362\u6570\u636e\uff0c\u5c31\u5f97\u5230\u4e86Y \u5750\u6807\u7684\u503c\uff0c\u7136\u540e\u7981\u6b62ADS7843.\u8fd9\u6837\u65e2\u5b8c\u6210\u4e86\u4e00\u6b21\u8bfb\u53d6\u5750\u6807\u503c\u7684\u8fc7\u7a0b\u3002\u5176\u5177\u4f53\u6d41\u7a0b\u5982\u56fe7\u6240\u793a\u3002<\/p>\n

\n\t\"\u57fa\u4e8e\u89e6\u6478\u5c4f\u7684LED\u9a71\u52a8\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe7 ADS7843\u8bfb\u53d6\u6846\u56fe<\/p>\n

\n\t3.\u7cfb\u7edf\u5750\u6807\u6821\u51c6\u5904\u7406<\/p>\n

\n\t\u7531\u4e8e\u4efb\u610f\u4e24\u4e2a\u89e6\u6478\u5c4f\u4e0a\u7684\u70b9\u5bc6\u5ea6\u90fd\u4e0d\u53ef\u80fd\u5b8c\u5168\u4e00\u81f4\uff0c\u6240\u4ee5\u8981\u6c42\u5728\u4f7f\u7528\u89e6\u6478\u5c4f\u4e4b\u524d\uff0c\u5fc5\u987b\u8fdb\u884c\u6821\u51c6\u3002\u6821\u51c6\u65b9\u5f0f\u6709\u4e24\u70b9\u6821\u51c6\uff0c\u4e09\u70b9\u6821\u51c6\uff0c\u56db\u70b9\u6821\u51c6\u7b49\u3002\u5176\u4e2d\uff0c\u6821\u51c6\u7684\u70b9\u6570\u8d8a\u591a\uff0c\u89e6\u6478\u5c4f\u6570\u636e\u8d8a\u7cbe\u786e\uff0c\u6821\u51c6\u4e5f\u8d8a\u7e41\u7410\u3002\u672c\u7cfb\u7edf\u4f7f\u7528\u4e24\u70b9\u6821\u51c6\u7684\u65b9\u6cd5\u5bf9\u89e6\u6478\u5c4f\u8fdb\u884c\u6821\u51c6\u3002<\/p>\n

\n\t(1) \u5148\u5206\u522b\u6d4b\u8bd5<\/u>\u89e6\u6478\u5c4f\u5de6\u4e0b\u89d2\u53ca\u53f3\u4e0a\u89d2\u7684\u5750\u6807(ads7843_xmin,ads7843_ymin);(ads7843_xmax,ads7843_ymax);<\/p>\n

\n\t(2) \u8ba1\u7b97\u6c34\u5e73\u65b9\u5411\u7684\u6bd4\u7387(ads7843_xts)\u548c\u5782\u76f4\u65b9\u5411\u7684\u6bd4\u7387(ads7843_yts);<\/p>\n

\n\t(3)\u5047\u8bbe\u6db2\u6676\u5c4f<\/u>\u4e2d\u7684\u5f53\u524d\u70b9\u662f\u6db2\u6676\u5c4f\u5750\u6807(X,Y)\uff1a<\/p>\n

\n\t\u5f53\u524d\u70b9\u7684\u89e6\u6478\u5c4f\u7684X \u5750\u6807=X× ads7843_xts+ ads7843_xmin ;<\/p>\n

\n\t\u5f53\u524d\u70b9\u7684\u89e6\u6478\u5c4f\u7684Y \u5750\u6807=Y× ads7843_yts+ ads7843_ymin ;<\/p>\n

\n\t\u7cfb\u7edf\u6267\u884c\u6821\u51c6\u7a0b\u5e8f\u540e\u628a\u89e6\u6478\u5c4f\u5de6\u4e0b\u89d2\uff0c \u53f3\u4e0b\u89d2\u7684\u5750\u6807\u503c\u4e0e\u6c34\u5e73\u65b9\u5411\u7684\u6bd4\u7387\u5b58\u653e\u5982\u5355\u7247\u673aEEPROM<\/u> \u4e2d\uff0c\u6bcf\u5f53\u7cfb\u7edf\u91cd\u65b0\u542f\u52a8\u65f6\u8c03\u7528\u5bf9\u5e94\u7684\u6570\u503c\u6709\u4e8e\u5bf9\u89e6\u6478\u4f4d\u7f6e\u7684\u5224\u522b\u3002<\/p>\n

\n\t4.\u63a7\u5236\u5668SPI\u901a\u8baf<\/p>\n

\n\t\u63a7\u5236\u5668ATmega48\u5185\u90e8\u96c6\u6210SPI\u901a\u8baf\u6240\u9700\u7684\u8f6f\u786c\u4ef6\u529f\u80fd\uff0c\u4e3b\u673a\u548c\u4ece\u673a\u4e4b\u95f4\u7684SPI \u8fde\u63a5\u5982\u56fe8\u6240\u793a\u3002\u7cfb\u7edf\u5305\u62ec\u4e24\u4e2a\u79fb\u4f4d\u5bc4\u5b58\u5668<\/u>\u548c\u4e00\u4e2a\u4e3b\u673a\u65f6\u949f\u53d1\u751f\u5668<\/u>\uff0c\u901a\u8fc7\u5c06\u4ece\u673a\u7684 SS\u5f15\u811a\u62c9\u4f4e\uff0c\u4e3b\u673a\u542f\u52a8\u4e00\u6b21\u901a\u8baf\u8fc7\u7a0b\u3002\u4e3b\u673a\u548c\u4ece\u673a\u5c06\u9700\u8981\u53d1\u9001\u7684\u6570\u636e\u653e\u5165\u76f8\u5e94\u7684\u79fb\u4f4d\u5bc4\u5b58\u5668\u3002\u4e3b\u673a\u5728SCK\u5f15\u811a\u4e0a\u4ea7\u751f\u65f6\u949f<\/u>\u8109\u51b2\u4ee5\u4ea4\u6362\u6570\u636e\u3002\u4e3b\u673a\u7684\u6570\u636e\u4ece\u4e3b\u673a\u7684MOSI\u79fb\u51fa\uff0c\u4ece\u4ece\u673a\u7684MOSI\u79fb\u5165;\u4ece\u673a\u7684\u6570\u636e\u4ece\u4ece\u673a\u7684MISO\u79fb\u51fa\uff0c\u4ece\u4e3b\u673a\u7684MISO\u79fb\u5165\u3002\u4e3b\u673a\u901a\u8fc7\u5c06\u4ece\u673a\u7684SS\u62c9\u9ad8\u5b9e\u73b0\u4e0e\u4ece\u673a\u7684\u540c\u6b65\u3002<\/p>\n

\n\t\"\u57fa\u4e8e\u89e6\u6478\u5c4f\u7684LED\u9a71\u52a8\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe8 \u63a7\u5236\u5668SPI\u901a\u8baf\u6846\u56fe<\/p>\n

\n\tA D S 7 8 4 3 \u8bfb\u5199\u65f6\u5e8f\u5982\u56fe9 \u6240\u793a\u3002\u7531\u6b64\u53ef\u89c1ADS7843 SPI\u63a5\u53e3\u7684\u4e00\u6b21\u5b8c\u6574\u64cd\u4f5c\u9700\u89813×8=24\u4e2aDCLK\u65f6\u949f\u5468\u671f\uff0c\u524d8\u4e2a\u8109\u51b2\u63a5\u65368\u4f4d\u7684\u547d\u4ee4\uff0c\u5e76\u5728\u7b2c6\u4e2a\u8109\u51b2\u7684\u4e0a\u5347\u6cbf\u5f00\u59cbA\/D\u8f6c\u6362\u5668\u8fdb\u5165\u91c7\u6837\u9636\u6bb5\uff0c\u4ece\u7b2c9\u4e2a\u8109\u51b2\u5f00\u59cb\u8fdb\u5165\u8f6c\u6362\u9636\u6bb5\uff0c\u8f93\u51fa12\u4f4d\u91c7\u6837\u503c\uff0c\u8f6c\u6362\u7ed3\u675f\u8fdb\u5165\u7a7a\u95f2\u9636\u6bb5\u3002\u76f4\u523024\u4e2aDCLK\u7ed3\u675f\uff0cCS\u7f6e\u9ad8\u7535\u5e73\uff0c\u4e00\u6b21\u6d4b\u91cf\u7ed3\u675f\u3002<\/p>\n

\n\t\"\u57fa\u4e8e\u89e6\u6478\u5c4f\u7684LED\u9a71\u52a8\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe9 \u5355\u7aef\u6a21\u5f0f\u7684\u6570\u636e\u8bfb\u5199<\/p>\n

\n\t5.\u63a7\u5236\u5668PWM\u8f93\u51fa<\/p>\n

\n\t\u7cfb\u7edf\u4f7f\u7528\u4e86\u63a7\u5236\u5668\u5feb\u901fPWM \u6a21\u5f0f\u5bf9\u9a71\u52a8\u63a7\u5236\uff0c\u5f53\u7cfb\u7edf\u91c7\u75288MHz \u6676\u632f<\/u>\u9891\u7387\u662f\u5feb\u901fPWM \u6a21\u5f0f\u9891\u7387\u6700\u5927\u503c\u4e3a31.25KHz.\u8ba1\u6570\u5668\u4eceBOTTOM\u8ba1\u5230MAX,\u7136\u540e\u7acb\u5373\u56de\u5230BOTTOM \u91cd\u65b0\u5f00\u59cb\u3002<\/p>\n

\n\t\u5bf9\u4e8e\u666e\u901a\u7684\u6bd4\u8f83\u8f93\u51fa\u6a21\u5f0f\uff0c\u8f93\u51fa\u6bd4\u8f83\u5f15\u811aOCRn\u5728TCNTn \u4e0eOCRn \u5339\u914d\u65f6\u6e05\u96f6\uff0c \u5728BOTTOM\u65f6\u7f6e\u4f4d;\u5bf9\u4e8e\u53cd\u5411\u6bd4\u8f83\u8f93\u51fa\u6a21\u5f0f\uff0cOCRn \u7684\u52a8\u4f5c\u6b63\u597d\u76f8\u53cd\u3002\u5177\u4f53\u7684\u65f6\u5e8f\u56fe\u5982\u56fe10 \u6240\u793a\u3002\u56fe\u4e2d\u67f1\u72b6\u7684TCNTn \u8868\u793a\u8fd9\u662f\u5355\u8fb9\u659c\u5761\u64cd\u4f5c\u3002\u65b9\u6846\u56fe\u540c\u65f6\u5305\u542b\u4e86\u666e\u901a\u7684PWM \u8f93\u51fa\u4ee5\u53ca\u65b9\u5411PWM \u8f93\u51fa\u3002<\/p>\n

\n\tTCNTn \u659c\u5761\u4e0a\u7684\u77ed\u6c34\u5e73\u7ebf\u8868\u793aOCRn \u548cTCNTn\u7684\u6bd4\u8f83\u5339\u914d\u3002\u4ea7\u751fPWM \u6ce2\u5f62\u7684\u673a\u7406\u662fOCRn \u5bc4\u5b58\u5668\u5728OCRnX \u4e0eTCNTn \u5339\u914d\u65f6\u7f6e\u4f4d( \u6216\u6e05\u96f6)\uff0c\u4ee5\u53ca\u5728\u8ba1\u6570\u5668\u6e05\u96f6( \u4eceTOP \u53d8\u4e3aBOTTOM)\u7684\u90a3\u4e00\u4e2a\u5b9a\u65f6\u5668<\/u>\u65f6\u949f\u5468\u671f\u6e05\u96f6( \u6216\u7f6e\u4f4d)\u3002\u8f93\u51fa\u7684PWM \u9891\u7387\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u516c\u5f0f\u8ba1\u7b97\u5f97\u5230\uff1a<\/p>\n

\n\t\u53d8\u91cfN \u4ee3\u8868\u5206\u9891\u56e0\u5b50(1\u30018\u300164\u3001256 \u62161024)\u3002 <\/p>\n

\n\t\"\u57fa\u4e8e\u89e6\u6478\u5c4f\u7684LED\u9a71\u52a8\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe10 \u5feb\u901fPWM\u65f6\u5e8f\u56fe<\/p>\n

\n\t\u4e94\u3001\u7ed3\u8bba<\/p>\n

\n\t\u591a\u5f69LED\u7167\u660e<\/u>\u7cfb\u7edf\u662f\u4e00\u4e2a\u6781\u5177\u5f00\u53d1\u524d\u666f\u7684\u8bfe\u9898\uff0c\u968f\u7740\u56fd\u5bb6\u5bf9\u5927\u529f\u7387LED\u7684\u8fdb\u4e00\u6b65\u63a8\u5e7fLED\u7684\u9020\u4ef7\u4f1a\u7ee7\u7eed\u4e0b\u964d\uff0cLED\u706f\u5177\u7684\u666e\u53ca\u5c06\u4f1a\u5f88\u5feb\u5230\u6765\u3002<\/p>\n

\n\tLED\u5728\u63a7\u5236\u7535\u8def\u53ca\u63a7\u5236\u65b9\u5f0f\u7684\u7b80\u6613\u4e0e\u989c\u8272\u7684\u591a\u6837\u6027\u4f7f\u5176\u5728\u591a\u5f69\u7167\u660e\u65b9\u9762\u5177\u6709\u6781\u5927\u7684\u53d1\u5c55\uff0c\u591a\u5f69LED\u53ea\u8981\u914d\u4ee5\u7b80\u5355\u7684\u63a7\u5236\u65b9\u53ef\u53d1\u51fa\u4e0d\u540c\u7684\u989c\u8272\uff0c\u989c\u8272\u63a7\u5236\u8bbe\u5907\u7684\u591a\u6837\u6027\u53ef\u4f9b\u7528\u6237\u9009\u62e9\u3002\u65e0\u8bba\u5982\u4f55LED \u7684\u4e0a\u8ff0\u7279\u70b9\u90fd\u662f\u5176\u6210\u4e3a\u591a\u5f69\u7167\u660e\u4e2d\u7684\u5149\u6e90\u9996\u9009\uff0c\u4f7f\u7528LED\u80fd\u4e3a\u6211\u4eec\u672a\u6765\u7684\u751f\u6d3b\u5e26\u6765\u7f24\u7eb7\u7684\u8272\u5f69\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672c\u7cfb\u7edf\u662f\u5229\u7528\u89e6\u6478\u5c4f\u63a7\u5236\u7684\u53ef\u8c03\u989c\u8272\u7684\u7167\u660e\u706f\u5177\u3002\u706f\u6e90\u4e3a\u5927\u529f\u7387\u8d85\u9ad8\u4eae\u4e09\u57fa\u8272 \u53d1\u5149\u4e8c\u6781\u7ba1 \u7ec4\u6210\u3002\u672c\u8bbe\u8ba1\u6700\u5927\u7684\u4eae\u70b9\u662f\u89e6\u6478\u5c4f\u4e0a\u6240\u6307\u793a\u7684\u989c\u8272\u4e0e\u5b9e\u9645\u706f\u7167\u51fa\u7684\u989c\u8272\u4e00\u81f4\u3002\u5230\u901a\u8fc7c\u8bed\u8a00\u7a0b\u5e8f<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2636"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2636"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2636\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2636"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}