{"id":2258,"date":"2019-03-19T02:51:11","date_gmt":"2019-03-19T02:51:11","guid":{"rendered":""},"modified":"2019-03-19T10:51:43","modified_gmt":"2019-03-19T02:51:43","slug":"avr%e5%8d%95%e7%89%87%e6%9c%ba%e5%af%b9%e6%8c%96%e6%8e%98%e6%9c%ba%e5%99%a8%e4%ba%ba%e7%9a%84%e6%8e%a7%e5%88%b6%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2258","title":{"rendered":"AVR\u5355\u7247\u673a\u5bf9\u6316\u6398\u673a\u5668\u4eba\u7684\u63a7\u5236\u8bbe\u8ba1"},"content":{"rendered":"

\n\t\u5f15\u8a00<\/p>\n

\n\t\u6316\u6398\u673a\u7684\u51fa\u73b0\u4f7f\u4eba\u7c7b\u4ece\u7e41\u91cd\u7684\u4f53\u529b\u52b3\u52a8\u4e2d\u89e3\u8131\u51fa\u6765\uff0c\u7136\u800c\u4f20\u7edf\u7684\u6316\u6398\u673a\u64cd\u4f5c\u590d\u6742\uff0c\u5bf9\u64cd\u4f5c\u8005\u7684\u6280\u80fd\u8981\u6c42\u5f88\u9ad8\u3002\u4eba\u4eec\u4e00\u76f4\u8c0b\u6c42\u66f4\u7701\u529b\u3001\u66f4\u9ad8\u6548\u7387\u548c\u66f4\u80fd\u5b9e\u73b0\u7cbe\u786e\u8f68\u8ff9\u7684\u6316\u6398\u4f5c\u4e1a\u6a21\u5f0f\u3002\u968f\u7740\u5fae\u7535\u5b50\u6280\u672f\u7684\u8fdb\u4e00\u6b65\u53d1\u5c55\uff0c\u96c6\u6210\u7535\u8def<\/u>\u7684\u96c6\u6210\u5ea6\u548c\u6027\u80fd\u63d0\u9ad8\u3001\u4ef7\u683c\u4e0b\u964d\uff0c\u4ee5\u5fae\u5904\u7406\u5668\u4e3a\u57fa\u7840\uff0c\u5b9e\u73b0\u6316\u6398\u673a\u7684\u673a\u7535\u4e00\u4f53\u5316\u3001\u673a\u5668\u4eba\u5316\u3001\u667a\u80fd\u5316\u8fdb\u7a0b\uff0c\u5df2\u7ecf\u6210\u4e3a\u5de5\u7a0b\u9879\u76ee\u65bd\u5de5\u7ba1\u7406\u7684\u4e00\u4e2a\u91cd\u8981\u7814\u7a76\u8bfe\u9898\u4e0e\u53d1\u5c55\u65b9\u5411\u3002\u672c\u6587\u4ee5\u6316\u6398\u673a\u5668\u4eba\u4e3a\u4f8b\uff0c\u8bbe\u8ba1\u4e00\u79cd\u57fa\u4e8eAVR<\/u>\u5355\u7247\u673a<\/u>\u7684\u6316\u6398\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edf\u3002<\/p>\n

\n\t <\/div>\n

\n\t1 \u603b\u4f53\u65b9\u6848\u8bbe\u8ba1<\/p>\n

\n\t\u6316\u6398\u673a\u5668\u4eba\u7531\u6316\u6398\u673a\u5668\u4eba\u672c\u4f53\u673a\u68b0<\/u>\u7cfb\u7edf\u3001\u7ea2\u5916<\/u>\u4f20\u611f\u5668<\/u>\u7ec4\u6210\u7684\u4f20\u611f\u5668\u7cfb\u7edf\u3001\u76f4\u6d41\u7535\u673a\u9a71\u52a8\u7cfb\u7edf\u3001\u4ee5AVR\u5355\u7247\u673a\u4e3a\u6838\u5fc3\u7684\u63a7\u5236\u7cfb\u7edf\u7b49\u56db\u90e8\u5206\u7ec4\u6210\uff0c\u5176\u57fa\u672c\u7ed3\u6784\u5982\u56fe1\u6240\u793a\u3002<\/p>\n

\n\t\"AVR\u5355\u7247\u673a\u5bf9\u6316\u6398\u673a\u5668\u4eba\u7684\u63a7\u5236\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe1 \u6316\u6398\u673a\u5668\u4eba\u7684\u57fa\u672c\u7ed3\u6784<\/p>\n

\n\t\u6316\u6398\u673a\u5668\u4eba\u7684\u5de5\u4f5c\u8fc7\u7a0b\u4e3b\u8981\u5982\u4e0b\uff1a\u4f20\u611f\u7cfb\u7edf\u91c7\u7528\u7ea2\u5916\u7ebf\u8ddd\u79bb\u4f20\u611f\u5668\uff0c\u6765\u5b9e\u73b0\u5bf9\u5468\u56f4\u73af\u5883\u4e2d\u969c\u788d\u7269\u7684\u5b9e\u65f6\u68c0\u6d4b\uff0c\u6d4b\u91cf\u4fe1\u53f7\u9001\u5165\u4ee5AVR\u5355\u7247\u673a\u4e3a\u6838\u5fc3\u7684\u63a7\u5236\u7cfb\u7edf\uff0c\u5355\u7247\u673a\u6839\u636e\u6d4b\u91cf\u60c5\u51b5\u5728\u5185\u90e8\u8fdb\u884c\u51b3\u7b56\uff0c\u8f93\u51fa\u63a7\u5236\u4fe1\u53f7\u901a\u8fc7\u9a71\u52a8\u7cfb\u7edf\u63a7\u5236\u4f3a\u670d\u7535\u52a8\u673a<\/u>\uff0c\u5e26\u52a8\u6316\u6398\u673a\u5668\u4eba\u5404\u4e2a\u5173\u8282\u8fd0\u52a8\u5b9e\u73b0\u76f4\u884c\u3001\u540e\u9000\u3001\u5de6\u8f6c\u3001\u53f3\u8f6c\u3001\u81ea\u4e3b\u6316\u6398\u7b49\u529f\u80fd\u3002<\/p>\n

\n\t2 \u63a7\u5236\u7cfb\u7edf\u7684\u786c\u4ef6\u8bbe\u8ba1<\/p>\n

\n\t\u672c\u8bbe\u8ba1\u4ee5ATMEL<\/u>\u516c\u53f8\u7684ATmega128\u5fae\u63a7\u5236\u5668\u4e3a\u6838\u5fc3\uff0c\u901a\u8fc7\u7ea2\u5916\u7ebf\u8ddd\u79bb\u4f20\u611f\u5668\u91c7\u96c6\u5916\u90e8\u6570\u636e\uff0c\u901a\u8fc7\u529f\u7387\u9a71\u52a8\u5e26\u52a8\u7535\u673a\u5b9e\u73b0\u81ea\u52a8\u63a7\u5236\u3002\u4f20\u611f\u5668\u901a\u8fc7\u540e\u5411\u53cd\u9988\u901a\u9053\u5c06\u4fe1\u606f\u4e0d\u65ad\u4f20\u9012\u7ed9\u5fae\u63a7\u5236\u5668\uff0c\u5fae\u63a7\u5236\u5668\u901a\u8fc7\u524d\u5411\u63a7\u5236\u901a\u9053\u5b9e\u65f6\u8c03\u6574\u5c0f\u8f66\u7684\u884c\u8f66\u72b6\u6001\uff0c\u4ece\u800c\u6784\u6210\u95ed\u73af\u63a7\u5236\u7cfb\u7edf\uff0c\u5982\u56fe2\u6240\u793a\u3002<\/p>\n

\n\t\"AVR\u5355\u7247\u673a\u5bf9\u6316\u6398\u673a\u5668\u4eba\u7684\u63a7\u5236\u8bbe\u8ba1\"<\/p>\n

\n\t<\/p>\n

\n\t\u56fe2 \u6316\u6398\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edf\u786c\u4ef6\u8bbe\u8ba1\u6846\u56fe<\/p>\n

\n\t\u6839\u636e\u63a7\u5236\u7cfb\u7edf\u786c\u4ef6\u6846\u56fe\uff0c\u7ed3\u5408\u81ea\u8eab\u7684\u7279\u70b9\uff0c\u786c\u4ef6\u5e73\u53f0\u7684\u8bbe\u8ba1\u5305\u62ec\u4e3b\u63a7\u5236\u5668\u7684\u8bbe\u8ba1\u3001\u4f20\u611f\u5668\u7684\u8bbe\u8ba1\u3001\u76f4\u6d41\u7535\u673a\u9a71\u52a8\u7535\u8def\u7684\u8bbe\u8ba1\u3002<\/p>\n

\n\t2.1 \u4e3b\u63a7\u5236\u5668\u7684\u8bbe\u8ba1<\/p>\n

\n\t\u91c7\u7528ATMEL\u516c\u53f8\u7684ATmega128\u578b\u5e26128K\u5b57\u8282FLASH\u7684\u5728\u7ebf\u53ef\u7f16\u7a0b8\u4f4d\u9ad8\u6027\u80fd\u3001\u9ad8\u6548\u7387\u7684RISC<\/u>\u7ed3\u6784\u5355\u7247\u673a\u4f5c\u4e3a\u6574\u4e2a\u63a7\u5236\u7cfb\u7edf\u7684\u6838\u5fc3\uff0c\u5b8c\u6210\u4f20\u611f\u5668\u7684\u68c0\u6d4b\u4fe1\u53f7\u91c7\u96c6\u4e0e\u4f3a\u670d\u7535\u673a\u7684\u8fd0\u52a8\u63a7\u5236\u3002ATmega128\u5355\u7247\u673a\u5171\u670964\u4e2a\u5f15\u811a\uff0c\u5355\u7247\u673a\u8d44\u6e90\u5982\u4e0b\uff1aPortA-PortE<\/u>\u3001PortG\u4f5c\u4e3a\u4e00\u4e2a8\u4f4d\u53cc\u5411I\/O\u53e3\uff0cPortF\u4f5c\u4e3aA\/D\u8f6c\u6362\u5668\u7684\u6a21\u62df\u8f93\u5165\u53e3\u6216\u4e00\u4e2a8\u4f4d\u53cc\u5411I\/O\u53e3\uff0cRESET\u662f\u590d\u4f4d\u8f93\u5165\u5f15\u811a\uff0cXTAL1\u3001XTAL2\u662f\u6676\u632f\u63a5\u5165\u5f15\u811a\uff0cAVCC\u662f\u662fPortF\u548cA\/D\u8f6c\u6362\u5668\u7684\u7535\u6e90\u7aef\uff0cAREF\u662fA\/D\u8f6c\u6362\u5668\u7684\u53c2\u8003\u7535\u6e90\uff0cPEN\u662f\u4e32\u884c\u4e0b\u8f7d\u7684\u7f16\u7a0b\u4f7f\u80fd\u4fe1\u53f7\u3002<\/p>\n

\n\t2.2\u4f20\u611f\u5668\u7535\u8def\u7684\u8bbe\u8ba1<\/p>\n

\n\t\u6316\u6398\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edf\u91c7\u7528\u4e86\u7ea2\u5916\u53d1\u5c04\u7ba1D1\u548c\u4e00\u53ea\u7ea2\u5916\u63a5\u6536\u6a21\u5757U1\u6784\u6210\u7ea2\u5916\u7ebf\u8ddd\u79bb\u4f20\u611f\u5668\u7cfb\u7edf\uff0c\u5176\u4e2d\u7ea2\u5916\u63a5\u6536\u6a21\u5757\u91c7\u7528\u97e9\u56fdKodenshi\u516c\u53f8\u7684KSM-603LM\uff0c\u5176\u5185\u90e8\u96c6\u6210\u4e86\u7ea2\u5916\u63a5\u6536\u7ba1\uff0c\u524d\u7f6e\u653e\u5927\u7ba1\uff0c\u9650\u5e45\u653e\u5927\u7ba1\uff0c\u5e26\u901a\u6ee4\u6ce2\u5668<\/u>\u5cf0\u503c\u68c0\u6ce2\u5668\uff0c\u6574\u6d41\u7535\u8def\u548c\u8f93\u51fa\u653e\u5927\u7535\u8def\uff0c\u7075\u654f\u5ea6\u5f88\u9ad8\uff0c\u5982\u56fe3\u6240\u793a\u3002\u5b83\u7684\u529f\u80fd\u662f\u4e3b\u8981\u7528\u6765\u68c0\u6d4b\u524d\u65b9\u3001\u5de6\u4fa7\u3001\u53f3\u4fa7\u7684\u969c\u788d\u7269\u3002\u7ea2\u5916\u7ebf\u8ddd\u79bb\u4f20\u611f\u5668\u7684\u6d4b\u8ddd\u57fa\u672c\u539f\u7406\u4e3a\u53d1\u5149\u7ba1\u53d1\u51fa\u7ea2\u5916\u5149\uff0c\u5149\u654f\u63a5\u6536\u7ba1\u63a5\u6536\u524d\u65b9\u7269\u4f53\u53cd\u5c04\u5149\uff0c\u636e\u6b64\u5224\u65ad\u524d\u65b9\u662f\u5426\u6709\u969c\u788d\u7269\u3002\u6839\u636e\u53d1\u5c04\u5149\u7684\u5f3a\u5f31\u53ef\u4ee5\u5224\u65ad\u7269\u4f53\u7684\u5b9e\u9645\u8ddd\u79bb\uff0c\u5b83\u7684\u539f\u7406\u662f\u63a5\u6536\u7ba1\u63a5\u6536\u7684\u5149\u5f3a\u968f\u53cd\u5c04\u7269\u4f53\u7684\u8ddd\u79bb\u800c\u53d8\u5316\u7684\uff0c\u8ddd\u79bb\u8fd1\u5219\u53cd\u5c04\u5149\u5f3a\uff0c\u8ddd\u79bb\u8fdc\u5219\u53cd\u5c04\u5149\u5f31\u3002<\/p>\n

\n\t<\/p>\n

\n\t<\/p>\n

\n\t\u56fe3 \u7ea2\u5916\u7ebf\u4f20\u611f\u5668\u7cfb\u7edf\u539f\u7406\u56fe<\/p>\n

\n\t2.3 \u76f4\u6d41\u7535\u673a\u9a71\u52a8\u7535\u8def\u7684\u8bbe\u8ba1<\/p>\n

\n\t\u9a71\u52a8\u7535\u8def\u7684\u9009\u62e9\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u901a\u5e38\u9009\u7528\u7684\u9a71\u52a8\u7535\u8def\u662f\u7531\u6676\u4f53\u7ba1<\/u>\u63a7\u5236\u7ee7\u7535\u5668<\/u>\u6765\u6539\u53d8\u7535\u673a\u7684\u8f6c\u5411\u548c\u8fdb\u9000\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u5927\u529f\u7387\u7535\u673a\u7684\u9a71\u52a8\uff0c\u4f46\u5bf9\u4e8e\u4e2d\u5c0f\u529f\u7387\u7684\u7535\u673a\u5219\u6781\u4e0d\u7ecf\u6d4e\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u7ee7\u7535\u5668\u8981\u6d88\u801720\uff5e100mA\u7684\u7535\u6d41<\/u>\u3002\u8fd8\u53ef\u4ee5\u4f7f\u7528\u7ec4\u5408\u4e09\u6781\u7ba1<\/u>\/MOSFET<\/u>\u7ba1\u7684\u65b9\u6cd5\uff0c\u4f46\u6bd4\u8f83\u9ebb\u70e6\uff0c\u7535\u8def\u4e5f\u6bd4\u8f83\u590d\u6742\uff0c\u672c\u8bbe\u8ba1\u91c7\u7528\u96c6\u6210\u7535\u8def\u7684\u9a71\u52a8\u65b9\u6cd5\uff0c\u6781\u5927\u589e\u5f3a\u4e86\u7535\u8def\u53ef\u9760\u6027\u548c\u7b80\u660e\u6027\u3002\u9009\u7528SGS\u516c\u53f8\u7684\u6052\u538b\u6052\u6d41\u6865\u5f0f\u9a71\u52a8\u82af\u7247L293\uff0c\u5176\u5185\u90e8\u5305\u542b4\u901a\u9053\u903b\u8f91\u9a71\u52a8\u7535\u8def\uff0c\u989d\u5b9a\u5de5\u4f5c\u7535\u6d41\u4e3a1A\uff0c\u6700\u5927\u53ef\u8fbe1.5A\uff0cVss\u4e3a\u96c6\u6210\u82af\u7247\u5de5\u4f5c\u7535\u538b\uff0c\u7535\u538b\u6700\u5c0f\u4e3a4.5V\uff0cVs\u4e3a\u8f93\u51fa\u7ed9\u7535\u673a\u7684\u7535\u538b\uff0c\u6700\u5927\u53ef\u8fbe36V\uff0cVs\u7535\u538b\u5fc5\u987b\u6bd4Vss\u7535\u538b\u9ad8\u3002\u7531L293\u6784\u6210\u7684\u7535\u673a\u9a71\u52a8\u7535\u8def\u5982\u56fe4\u6240\u793a\u3002<\/p>\n

\n\t\u76f4\u6d41\u7535\u673a\u8f6c\u901f\u91c7\u7528ATmega128\u4e24\u8defPWM\u63a7\u5236\u8f93\u51fa\u7535\u538b\uff0c\u901a\u8fc7\u7f16\u7a0b\u4f7f\u5360\u7a7a\u6bd4\u4ee51\/16\u7684\u6700\u5c0f\u95f4\u9694\u57281\/16\uff0d14\/16\u95f4\u53d8\u5316\uff0c\u4ee5\u5b9e\u73b0\u901f\u5ea6\u7684\u8c03\u8282\u3002<\/p>\n

\n\t<\/p>\n

\n\t<\/p>\n

\n\t\u56fe4 L293\u7535\u673a\u9a71\u52a8\u7535\u8def<\/p>\n

\n\t3 \u63a7\u5236\u7cfb\u7edf\u7684\u8f6f\u4ef6\u8bbe\u8ba1<\/p>\n

\n\t\u63a7\u5236\u7cfb\u7edf\u8f6f\u4ef6\u4e0e\u786c\u4ef6\u7535\u8def\u7d27\u5bc6\u7ed3\u5408\u5171\u540c\u5b9e\u73b0\u5bf9\u6316\u6398\u673a\u5668\u4eba\u7684\u63a7\u5236\uff0c\u57fa\u672c\u8bbe\u8ba1\u601d\u60f3\u662f\u6316\u6398\u673a\u5668\u4eba\u5728\u52a8\u4f5c\u8fc7\u7a0b\u4e2d\uff0c\u7531\u81ea\u8eab\u7684\u7ea2\u5916\u68c0\u6d4b\u88c5\u7f6e\u5373\u65f6\u4ece\u5916\u754c\u91c7\u96c6\u4fe1\u53f7\u3002\u5176\u4e2d\uff0c\u7ea2\u5916\u7ebf\u8ddd\u79bb\u4f20\u611f\u5668\u5206\u522b\u5b89\u88c5\u5728\u4f20\u611f\u5668\u7cfb\u7edf\u7684\u524d\u65b9\u3001\u5de6\u4fa7\u3001\u53f3\u4fa7\u3002\u5f53\u6309\u4e0b\u6316\u6398\u673a\u5668\u4eba\u542f\u52a8\u6309\u94ae\u65f6\uff0c\u6316\u6398\u673a\u5668\u4eba\u8fdb\u5165\u521d\u59cb\u5316\u7684\u72b6\u6001\uff0c\u7136\u540e\u6316\u6398\u673a\u5668\u4eba\u5411\u524d\u884c\u8fdb\u3002\u5f53\u7ea2\u5916\u7ebf\u8ddd\u79bb\u4f20\u611f\u5668\u68c0\u6d4b\u5230\u524d\u65b9\u6709\u969c\u788d\u7269\u65f6\uff0c\u5c06\u4fe1\u53f7\u4f20\u7ed9\u63a7\u5236\u7cfb\u7edf\uff0c\u5f53\u63a7\u5236\u7cfb\u7edf\u5224\u5b9a\u524d\u65b9\u6709\u969c\u788d\u7269\uff0c\u6316\u6398\u673a\u5668\u4eba\u505a\u6316\u6398\u7684\u52a8\u4f5c\u5e76\u4e14\u5411\u53f3\u65cb\u8f6c90\u5ea6\uff0c\u7136\u540e\u7ee7\u7eed\u524d\u8fdb\u3002\u53cd\u4e4b\uff0c\u6316\u6398\u673a\u5668\u4eba\u7ee7\u7eed\u524d\u8fdb\uff1b\u5f53\u4f20\u611f\u5668\u68c0\u6d4b\u5230\u5de6\u8fb9\u4f4d\u7f6e\u6709\u969c\u788d\u7269\u65f6\uff0c\u6316\u6398\u673a\u5668\u4eba\u7684\u673a\u68b0\u81c2\u5411\u5de6\u65cb\u8f6c90\u5ea6\u540e\u56de\u5230\u521d\u59cb\u4f4d\u7f6e\uff0c\u7136\u540e\u7ee7\u7eed\u524d\u8fdb\uff0c\u53cd\u4e4b\u6316\u6398\u673a\u5668\u4eba\u7ee7\u7eed\u524d\u8fdb\uff1b\u5f53\u4f20\u611f\u5668\u68c0\u6d4b\u5230\u53f3\u8fb9\u6709\u969c\u788d\u7269\uff0c\u6316\u6398\u673a\u5668\u4eba\u7684\u673a\u68b0\u81c2\u5411\u53f3\u65cb\u8f6c90\u5ea6\u540e\u56de\u5230\u521d\u59cb\u4f4d\u7f6e\uff0c\u7136\u540e\u7ee7\u7eed\u524d\u8fdb\uff0c\u53cd\u4e4b\u6316\u6398\u673a\u5668\u4eba\u7ee7\u7eed\u524d\u8fdb\u3002\u6316\u6398\u673a\u5668\u4eba\u7684\u8fd0\u52a8\u63a7\u5236\u6d41\u7a0b\u56fe\u5982\u56fe5\u6240\u793a\u3002<\/p>\n

\n\t<\/p>\n

\n\t\u56fe3 \u7ea2\u5916\u7ebf\u4f20\u611f\u5668\u7cfb\u7edf\u539f\u7406\u56fe<\/p>\n

\n\t2.3 \u76f4\u6d41\u7535\u673a\u9a71\u52a8\u7535\u8def\u7684\u8bbe\u8ba1<\/p>\n

\n\t\u9a71\u52a8\u7535\u8def\u7684\u9009\u62e9\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u901a\u5e38\u9009\u7528\u7684\u9a71\u52a8\u7535\u8def\u662f\u7531\u6676\u4f53\u7ba1\u63a7\u5236\u7ee7\u7535\u5668\u6765\u6539\u53d8\u7535\u673a\u7684\u8f6c\u5411\u548c\u8fdb\u9000\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u5927\u529f\u7387\u7535\u673a\u7684\u9a71\u52a8\uff0c\u4f46\u5bf9\u4e8e\u4e2d\u5c0f\u529f\u7387\u7684\u7535\u673a\u5219\u6781\u4e0d\u7ecf\u6d4e\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u7ee7\u7535\u5668\u8981\u6d88\u801720\uff5e100mA\u7684\u7535\u6d41\u3002\u8fd8\u53ef\u4ee5\u4f7f\u7528\u7ec4\u5408\u4e09\u6781\u7ba1\/MOSFET\u7ba1\u7684\u65b9\u6cd5\uff0c\u4f46\u6bd4\u8f83\u9ebb\u70e6\uff0c\u7535\u8def\u4e5f\u6bd4\u8f83\u590d\u6742\uff0c\u672c\u8bbe\u8ba1\u91c7\u7528\u96c6\u6210\u7535\u8def\u7684\u9a71\u52a8\u65b9\u6cd5\uff0c\u6781\u5927\u589e\u5f3a\u4e86\u7535\u8def\u53ef\u9760\u6027\u548c\u7b80\u660e\u6027\u3002\u9009\u7528SGS\u516c\u53f8\u7684\u6052\u538b\u6052\u6d41\u6865\u5f0f\u9a71\u52a8\u82af\u7247L293\uff0c\u5176\u5185\u90e8\u5305\u542b4\u901a\u9053\u903b\u8f91\u9a71\u52a8\u7535\u8def\uff0c\u989d\u5b9a\u5de5\u4f5c\u7535\u6d41\u4e3a1A\uff0c\u6700\u5927\u53ef\u8fbe1.5A\uff0cVss\u4e3a\u96c6\u6210\u82af\u7247\u5de5\u4f5c\u7535\u538b\uff0c\u7535\u538b\u6700\u5c0f\u4e3a4.5V\uff0cVs\u4e3a\u8f93\u51fa\u7ed9\u7535\u673a\u7684\u7535\u538b\uff0c\u6700\u5927\u53ef\u8fbe36V\uff0cVs\u7535\u538b\u5fc5\u987b\u6bd4Vss\u7535\u538b\u9ad8\u3002\u7531L293\u6784\u6210\u7684\u7535\u673a\u9a71\u52a8\u7535\u8def\u5982\u56fe4\u6240\u793a\u3002<\/p>\n

\n\t\u76f4\u6d41\u7535\u673a\u8f6c\u901f\u91c7\u7528ATmega128\u4e24\u8defPWM\u63a7\u5236\u8f93\u51fa\u7535\u538b\uff0c\u901a\u8fc7\u7f16\u7a0b\u4f7f\u5360\u7a7a\u6bd4\u4ee51\/16\u7684\u6700\u5c0f\u95f4\u9694\u57281\/16\uff0d14\/16\u95f4\u53d8\u5316\uff0c\u4ee5\u5b9e\u73b0\u901f\u5ea6\u7684\u8c03\u8282\u3002<\/p>\n

\n\t<\/p>\n

\n\t\u56fe4 L293\u7535\u673a\u9a71\u52a8\u7535\u8def<\/p>\n

\n\t3 \u63a7\u5236\u7cfb\u7edf\u7684\u8f6f\u4ef6\u8bbe\u8ba1<\/p>\n

\n\t\u63a7\u5236\u7cfb\u7edf\u8f6f\u4ef6\u4e0e\u786c\u4ef6\u7535\u8def\u7d27\u5bc6\u7ed3\u5408\u5171\u540c\u5b9e\u73b0\u5bf9\u6316\u6398\u673a\u5668\u4eba\u7684\u63a7\u5236\uff0c\u57fa\u672c\u8bbe\u8ba1\u601d\u60f3\u662f\u6316\u6398\u673a\u5668\u4eba\u5728\u52a8\u4f5c\u8fc7\u7a0b\u4e2d\uff0c\u7531\u81ea\u8eab\u7684\u7ea2\u5916\u68c0\u6d4b\u88c5\u7f6e\u5373\u65f6\u4ece\u5916\u754c\u91c7\u96c6\u4fe1\u53f7\u3002\u5176\u4e2d\uff0c\u7ea2\u5916\u7ebf\u8ddd\u79bb\u4f20\u611f\u5668\u5206\u522b\u5b89\u88c5\u5728\u4f20\u611f\u5668\u7cfb\u7edf\u7684\u524d\u65b9\u3001\u5de6\u4fa7\u3001\u53f3\u4fa7\u3002\u5f53\u6309\u4e0b\u6316\u6398\u673a\u5668\u4eba\u542f\u52a8\u6309\u94ae\u65f6\uff0c\u6316\u6398\u673a\u5668\u4eba\u8fdb\u5165\u521d\u59cb\u5316\u7684\u72b6\u6001\uff0c\u7136\u540e\u6316\u6398\u673a\u5668\u4eba\u5411\u524d\u884c\u8fdb\u3002\u5f53\u7ea2\u5916\u7ebf\u8ddd\u79bb\u4f20\u611f\u5668\u68c0\u6d4b\u5230\u524d\u65b9\u6709\u969c\u788d\u7269\u65f6\uff0c\u5c06\u4fe1\u53f7\u4f20\u7ed9\u63a7\u5236\u7cfb\u7edf\uff0c\u5f53\u63a7\u5236\u7cfb\u7edf\u5224\u5b9a\u524d\u65b9\u6709\u969c\u788d\u7269\uff0c\u6316\u6398\u673a\u5668\u4eba\u505a\u6316\u6398\u7684\u52a8\u4f5c\u5e76\u4e14\u5411\u53f3\u65cb\u8f6c90\u5ea6\uff0c\u7136\u540e\u7ee7\u7eed\u524d\u8fdb\u3002\u53cd\u4e4b\uff0c\u6316\u6398\u673a\u5668\u4eba\u7ee7\u7eed\u524d\u8fdb\uff1b\u5f53\u4f20\u611f\u5668\u68c0\u6d4b\u5230\u5de6\u8fb9\u4f4d\u7f6e\u6709\u969c\u788d\u7269\u65f6\uff0c\u6316\u6398\u673a\u5668\u4eba\u7684\u673a\u68b0\u81c2\u5411\u5de6\u65cb\u8f6c90\u5ea6\u540e\u56de\u5230\u521d\u59cb\u4f4d\u7f6e\uff0c\u7136\u540e\u7ee7\u7eed\u524d\u8fdb\uff0c\u53cd\u4e4b\u6316\u6398\u673a\u5668\u4eba\u7ee7\u7eed\u524d\u8fdb\uff1b\u5f53\u4f20\u611f\u5668\u68c0\u6d4b\u5230\u53f3\u8fb9\u6709\u969c\u788d\u7269\uff0c\u6316\u6398\u673a\u5668\u4eba\u7684\u673a\u68b0\u81c2\u5411\u53f3\u65cb\u8f6c90\u5ea6\u540e\u56de\u5230\u521d\u59cb\u4f4d\u7f6e\uff0c\u7136\u540e\u7ee7\u7eed\u524d\u8fdb\uff0c\u53cd\u4e4b\u6316\u6398\u673a\u5668\u4eba\u7ee7\u7eed\u524d\u8fdb\u3002\u6316\u6398\u673a\u5668\u4eba\u7684\u8fd0\u52a8\u63a7\u5236\u6d41\u7a0b\u56fe\u5982\u56fe5\u6240\u793a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5f15\u8a00 \u6316\u6398\u673a\u7684\u51fa\u73b0\u4f7f\u4eba\u7c7b\u4ece\u7e41\u91cd\u7684\u4f53\u529b\u52b3\u52a8\u4e2d\u89e3\u8131\u51fa\u6765\uff0c\u7136\u800c\u4f20\u7edf\u7684\u6316\u6398\u673a\u64cd\u4f5c\u590d\u6742\uff0c\u5bf9\u64cd\u4f5c\u8005\u7684\u6280\u80fd\u8981\u6c42\u5f88\u9ad8\u3002\u4eba\u4eec\u4e00\u76f4\u8c0b\u6c42\u66f4\u7701\u529b\u3001\u66f4\u9ad8\u6548\u7387\u548c\u66f4\u80fd\u5b9e\u73b0\u7cbe\u786e\u8f68\u8ff9\u7684\u6316\u6398\u4f5c\u4e1a\u6a21\u5f0f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2258"}],"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=2258"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2258\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2258"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}