{"id":98100,"date":"2024-10-08T00:55:07","date_gmt":"2024-10-07T16:55:07","guid":{"rendered":"\/\/www.viralrail.com\/?p=98100"},"modified":"2024-10-08T00:55:11","modified_gmt":"2024-10-07T16:55:11","slug":"dpjnfzfk","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/98100.html","title":{"rendered":"51\u5355\u7247\u673a\u80fd\u5426\u505a\u98de\u63a7"},"content":{"rendered":"\n

\u3000\u3000\u7406\u8bba\u4e0a\u00a051 \u5355\u7247\u673a\u53ef\u4ee5\u7528\u4e8e\u7b80\u5355\u7684\u98de\u63a7\u3002<\/strong>\u4f46\u662f 51 \u5355\u7247\u673a\u7684\u6027\u80fd\u548c\u8d44\u6e90\u9650\u5236\u4f7f\u5176\u4e0d\u592a\u9002\u5408\u590d\u6742\u7684\u98de\u884c\u63a7\u5236\u4efb\u52a1\u3002<\/p>\n\n\n\n

\u3000\u3000\u4e00\u3001 51 \u5355\u7247\u673a\u7528\u4e8e\u98de\u63a7\u7684\u9650\u5236\u56e0\u7d20<\/h2>\n\n\n\n

\u3000\u30001. \u5904\u7406\u80fd\u529b<\/strong><\/h3>\n\n\n\n

\u3000\u300051 \u5355\u7247\u673a\u7684\u5904\u7406\u80fd\u529b\u8f83\u4f4e\uff0c\u901a\u5e38\u53ea\u67098\u4f4d\u5904\u7406\u80fd\u529b\u548c\u8f83\u4f4e\u7684\u65f6\u949f\u9891\u7387\uff0c\u96be\u4ee5\u5904\u7406\u98de\u63a7\u6240\u9700\u7684\u590d\u6742\u6570\u5b66\u8ba1\u7b97\u548c\u5b9e\u65f6\u4f20\u611f\u5668\u6570\u636e\u878d\u5408\u3002<\/p>\n\n\n\n

\u3000\u30002. \u5185\u5b58\u9650\u5236<\/strong><\/h3>\n\n\n\n

\u3000\u3000RAM \u548c ROM \u7684\u5bb9\u91cf\u90fd\u5f88\u6709\u9650\uff0c\u65e0\u6cd5\u652f\u6301\u590d\u6742\u7684\u98de\u63a7\u7b97\u6cd5\u548c\u5927\u578b\u7a0b\u5e8f\u4ee3\u7801\u3002<\/p>\n\n\n\n

\u3000\u30003. \u4f20\u611f\u5668\u63a5\u53e3<\/strong><\/h3>\n\n\n\n

\u3000\u3000\u98de\u63a7\u9700\u8981\u4e0e\u591a\u79cd\u4f20\u611f\u5668(\u5982\u9640\u87ba\u4eea\u3001\u52a0\u901f\u5ea6\u8ba1\u3001\u78c1\u529b\u8ba1\u3001\u6c14\u538b\u8ba1\u7b49)\u8fdb\u884c\u901a\u4fe1\uff0c51 \u5355\u7247\u673a\u7684 I\/O \u63a5\u53e3\u6570\u91cf\u548c\u901a\u4fe1\u80fd\u529b\u53ef\u80fd\u4e0d\u8db3\u3002<\/p>\n\n\n\n

\u3000\u30004. \u5b9e\u65f6\u6027<\/strong><\/h3>\n\n\n\n

\u3000\u3000\u98de\u63a7\u7cfb\u7edf\u9700\u8981\u5b9e\u65f6\u5904\u7406\u4f20\u611f\u5668\u6570\u636e\u5e76\u4f5c\u51fa\u5feb\u901f\u53cd\u5e94\uff0c51 \u5355\u7247\u673a\u53ef\u80fd\u65e0\u6cd5\u6ee1\u8db3\u8fd9\u4e9b\u5b9e\u65f6\u6027\u8981\u6c42\u3002<\/p>\n\n\n\n

\u3000\u30005. \u6269\u5c55\u6027<\/strong><\/h3>\n\n\n\n

\u3000\u3000\u73b0\u4ee3\u98de\u63a7\u7cfb\u7edf\u901a\u5e38\u9700\u8981\u652f\u6301\u591a\u79cd\u529f\u80fd(\u5982 GPS \u5bfc\u822a\u3001\u65e0\u7ebf\u901a\u4fe1\u3001\u81ea\u52a8\u9a7e\u9a76\u7b49)\uff0c51 \u5355\u7247\u673a\u7684\u8d44\u6e90\u9650\u5236\u4f7f\u5176\u96be\u4ee5\u6269\u5c55\u3002<\/p>\n\n\n\n

\u3000\u3000\u53ef\u80fd\u7684\u89e3\u51b3\u65b9\u6848<\/p>\n\n\n\n

\u3000\u3000\u5982\u679c\u786c\u4ef6\u8d44\u6e90\u975e\u5e38\u6709\u9650\uff0c\u5e76\u4e14\u4f60\u53ea\u9700\u8981\u5b9e\u73b0\u7b80\u5355\u7684\u98de\u63a7\u529f\u80fd(\u5982\u57fa\u672c\u7684\u59ff\u6001\u7a33\u5b9a)\uff0c\u53ef\u4ee5\u8003\u8651\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/p>\n\n\n\n

    \n
  • \u3000\u3000\u7b80\u5316\u7b97\u6cd5<\/strong>: \u4f7f\u7528\u975e\u5e38\u7b80\u5355\u7684 PID \u63a7\u5236\u5668\u6765\u5b9e\u73b0\u57fa\u672c\u7684\u59ff\u6001\u63a7\u5236\u3002<\/li>\n\n\n\n
  • \u3000\u3000\u4f18\u5316\u4ee3\u7801<\/strong>: \u5c3d\u53ef\u80fd\u4f18\u5316\u4ee3\u7801\u4ee5\u51cf\u5c11\u8d44\u6e90\u5360\u7528\u3002<\/li>\n\n\n\n
  • \u3000\u3000\u5916\u90e8\u534f\u5904\u7406\u5668<\/strong>: \u4f7f\u7528\u66f4\u5f3a\u5927\u7684\u5fae\u63a7\u5236\u5668\u6216\u4e13\u7528\u534f\u5904\u7406\u5668\u6765\u5904\u7406\u590d\u6742\u7684\u8ba1\u7b97\u4efb\u52a1\u3002<\/li>\n<\/ul>\n\n\n\n

    \u3000\u3000\u63a8\u8350\u9009\u62e9<\/p>\n\n\n\n

    \u3000\u3000\u5bf9\u4e8e\u73b0\u4ee3\u7684\u98de\u63a7\u5e94\u7528\uff0c\u901a\u5e38\u4f1a\u9009\u62e9\u66f4\u5f3a\u5927\u7684\u5fae\u63a7\u5236\u5668\u6216\u5d4c\u5165\u5f0f\u5e73\u53f0\uff0c\u5982 STM32 \u7cfb\u5217\u3001Arduino\u3001Raspberry Pi \u6216\u4e13\u7528\u7684\u98de\u63a7\u677f(\u5982 Pixhawk)\uff0c\u8fd9\u4e9b\u5e73\u53f0\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u5904\u7406\u80fd\u529b\u548c\u4e30\u5bcc\u7684\u63a5\u53e3\u652f\u6301\u3002<\/p>\n\n\n\n

    \u3000\u3000\u867d\u7136\u5728\u7406\u8bba\u4e0a\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528 51 \u5355\u7247\u673a\u8fdb\u884c\u7b80\u5355\u7684\u98de\u63a7\u5b9e\u9a8c\uff0c\u4f46\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9009\u62e9\u66f4\u5f3a\u5927\u7684\u786c\u4ef6\u5e73\u53f0\u4f1a\u66f4\u4e3a\u5408\u7406\u548c\u9ad8\u6548\u3002<\/p>\n\n\n\n

    \"\u65e0\u4eba\u673a\u98de\u63a7\"<\/figure>\n\n\n\n

    \u3000\u3000\u4e8c\u3001 51\u5355\u7247\u673a\u5728\u98de\u63a7\u7cfb\u7edf\u4e2d\u7684\u6027\u80fd\u9650\u5236?<\/h2>\n\n\n\n

    \u3000\u300051\u5355\u7247\u673a\u5728\u98de\u63a7\u7cfb\u7edf\u4e2d\u7684\u6027\u80fd\u9650\u5236\u4e3b\u8981\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n\n\n\n

      \n
    • \u3000\u3000\u8ba1\u7b97\u548c\u5904\u7406\u901f\u5ea6<\/strong>\uff1a51\u5355\u7247\u673a\u7684\u8ba1\u7b97\u548c\u5904\u7406\u901f\u5ea6\u76f8\u5bf9\u8f83\u6162\uff0c\u8fd9\u53ef\u80fd\u9650\u5236\u4e86\u65e0\u4eba\u673a\u5728\u590d\u6742\u4efb\u52a1\u548c\u9ad8\u6027\u80fd\u8981\u6c42\u4e0b\u7684\u8868\u73b0\u3002\u4e0e\u73b0\u4ee3\u7684\u5355\u7247\u673a\u76f8\u6bd4\uff0c51\u5355\u7247\u673a\u7684\u5904\u7406\u80fd\u529b\u8f83\u4f4e\uff0c\u4e0d\u9002\u5408\u5904\u7406\u590d\u6742\u7684\u8ba1\u7b97\u548c\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406\u4efb\u52a1\u3002<\/li>\n\n\n\n
    • \u3000\u3000\u5185\u5b58\u5bb9\u91cf<\/strong>\uff1a51\u5355\u7247\u673a\u7684\u5185\u5b58\u5bb9\u91cf\u901a\u5e38\u8f83\u5c0f\uff0c\u5c24\u5176\u662fRAM\uff0c\u8fd9\u9650\u5236\u4e86\u590d\u6742\u5e94\u7528\u7684\u5f00\u53d1\u548c\u6269\u5c55\u6027\u3002<\/li>\n\n\n\n
    • \u3000\u3000\u7535\u6e90\u4f18\u5316<\/strong>\uff1a\u867d\u7136\u7535\u6e90\u4f18\u5316\u53ef\u4ee5\u6709\u6548\u964d\u4f4e\u7cfb\u7edf\u529f\u8017\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7a33\u5b9a\u6027\uff0c\u4f46\u7535\u6e90\u82af\u7247\u7684\u6027\u80fd\u76f4\u63a5\u5f71\u54cd\u7cfb\u7edf\u7684\u7535\u6e90\u6548\u7387\u548c\u7a33\u5b9a\u6027\uff0c\u800c51\u5355\u7247\u673a\u5728\u8fd9\u65b9\u9762\u53ef\u80fd\u9700\u8981\u66f4\u591a\u7684\u4f18\u5316\u63aa\u65bd\u3002<\/li>\n\n\n\n
    • \u3000\u3000\u63a7\u5236\u9891\u7387<\/strong>\uff1a\u7531\u4e8e51\u5355\u7247\u673a\u7684\u6027\u80fd\u9650\u5236\uff0c\u59ff\u6001\u4e0e\u63a7\u5236\u7ebf\u7a0b\u7684\u8fd0\u884c\u9891\u7387\u53ef\u80fd\u8f83\u4f4e\uff0c\u4f8b\u5982\uff0cAPM\u5f00\u6e90\u98de\u63a7\u6700\u521d\u4f7f\u7528\u7684AVR\u4e3b\u63a7(8\u4f4d\u5355\u7247\u673a)\u6027\u80fd\u7684\u9650\u5236\u5bfc\u81f4\u59ff\u6001\u4e0e\u63a7\u5236\u7ebf\u7a0b\u7684\u8fd0\u884c\u9891\u7387\u53ea\u6709100Hz\u3002<\/li>\n\n\n\n
    • \u3000\u3000\u786c\u4ef6\u95ee\u9898<\/strong>\uff1a\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c51\u5355\u7247\u673a\u53ef\u80fd\u4f1a\u9047\u5230\u786c\u4ef6\u95ee\u9898\uff0c\u5982LDO\u5904\u7406\u4e0d\u5f53\u5bfc\u81f4\u98de\u884c\u4e0d\u7a33\u5b9a\u3002<\/li>\n<\/ul>\n\n\n\n

      \u3000\u3000\u4e09\u3001 \u5982\u4f55\u4f18\u531651\u5355\u7247\u673a\u7684\u98de\u63a7\u7a0b\u5e8f?<\/h2>\n\n\n\n

      \u3000\u3000\u8981\u4f18\u531651\u5355\u7247\u673a\u7684\u98de\u63a7\u7a0b\u5e8f\u4ee5\u63d0\u9ad8\u98de\u884c\u5668\u7684\u7a33\u5b9a\u6027\u548c\u54cd\u5e94\u901f\u5ea6\uff0c\u53ef\u4ee5\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8fdb\u884c\u6539\u8fdb\uff1a<\/p>\n\n\n\n

      \u3000\u30001. \u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u4f18\u5316<\/strong>\uff1a<\/h3>\n\n\n\n

      \u3000\u3000\u4f7f\u7528\u5148\u8fdb\u7684\u63a7\u5236\u7b97\u6cd5\uff0c\u5982PID\u63a7\u5236\u3001\u6a21\u7cca\u63a7\u5236\u548c\u81ea\u9002\u5e94\u63a7\u5236\u7b49\uff0c\u8fd9\u4e9b\u7b97\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u98de\u63a7\u7cfb\u7edf\u7684\u54cd\u5e94\u901f\u5ea6\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n\n\n\n

      \u3000\u3000\u8fdb\u884c\u7b97\u6cd5\u7684\u4eff\u771f\u4e0e\u4f18\u5316\uff0c\u786e\u4fdd\u7b97\u6cd5\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u80fd\u591f\u6709\u6548\u63d0\u5347\u98de\u884c\u5668\u7684\u6027\u80fd\u3002<\/p>\n\n\n\n

      \u3000\u30002. \u4f20\u611f\u5668\u96c6\u6210\u4e0e\u4fe1\u606f\u878d\u5408<\/strong>\uff1a<\/h3>\n\n\n\n

      \u3000\u3000\u4f18\u5316\u65e0\u4eba\u673a\u98de\u63a7\u7cfb\u7edf\u7684\u4f20\u611f\u5668\u96c6\u6210\uff0c\u901a\u8fc7\u591a\u5c42\u6b21\u3001\u591a\u7a7a\u95f4\u7684\u4fe1\u606f\u4e92\u8865\u548c\u4f18\u5316\u7ec4\u5408\u5904\u7406\uff0c\u53ef\u4ee5\u63d0\u9ad8\u98de\u884c\u7a33\u5b9a\u6027\u548c\u7cbe\u5ea6\u3002<\/p>\n\n\n\n

      \u3000\u3000\u6839\u636e\u6570\u636e\u5904\u7406\u65b9\u6cd5\u7684\u4e0d\u540c\uff0c\u53ef\u4ee5\u91c7\u7528\u5206\u5e03\u5f0f\u6216\u96c6\u4e2d\u5f0f\u7684\u4fe1\u606f\u878d\u5408\u7cfb\u7edf\uff0c\u4ee5\u4ea7\u751f\u5bf9\u89c2\u6d4b\u73af\u5883\u7684\u4e00\u81f4\u6027\u89e3\u91ca\u3002<\/p>\n\n\n\n

      \u3000\u30003. \u786c\u4ef6\u9009\u62e9\u4e0e\u914d\u7f6e<\/strong>\uff1a<\/h3>\n\n\n\n

      \u3000\u3000\u9009\u62e9\u54cd\u5e94\u901f\u5ea6\u8f83\u5feb\u7684\u7535\u8c03\u548c\u7535\u673a\uff0c\u4f8b\u5982\u56db\u8f74\u4e13\u7528\u7535\u8c03flycolor\uff0c\u8fd9\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u98de\u884c\u5668\u7684\u54cd\u5e94\u901f\u5ea6\u3002<\/p>\n\n\n\n

      \u3000\u3000\u786e\u4fdd51\u5355\u7247\u673a\u7684\u5de5\u4f5c\u9891\u7387\u57280-40MHz\u8303\u56f4\u5185\uff0c\u5e76\u5145\u5206\u5229\u7528\u5176ISP\/IAP\u529f\u80fd\uff0c\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u6267\u884c\u6548\u7387\u3002<\/p>\n\n\n\n

      \u3000\u30004. \u7a0b\u5e8f\u521d\u59cb\u5316\u4e0e\u63a7\u5236\u903b\u8f91<\/strong>\uff1a<\/h3>\n\n\n\n

      \u3000\u3000\u5728\u7a0b\u5e8f\u521d\u59cb\u5316\u9636\u6bb5\uff0c\u8bbe\u7f6eIO\u53e3\uff0c\u5b9a\u4e49\u53d8\u91cf\uff0c\u5e76\u5c06\u6240\u6709\u53d8\u91cf\u521d\u59cb\u5316\u4e3a\u96f6\uff0c\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u7684\u7a33\u5b9a\u8fd0\u884c\u3002<\/p>\n\n\n\n

      \u3000\u3000\u5728\u63a7\u5236\u7a0b\u5e8f\u4e2d\uff0c\u4f7f\u7528\u8f93\u5165\u548c\u8f93\u51fa\u53e3\uff0c\u5b9a\u4e49\u8f93\u5165\u503c\u548c\u8f93\u51fa\u503c\uff0c\u5e76\u6839\u636e\u9884\u5b9a\u4e49\u7684\u7b97\u6cd5\u8ba1\u7b97\u63a7\u5236\u503c\uff0c\u4ee5\u5b9e\u73b0\u7cbe\u786e\u7684\u63a7\u5236\u3002<\/p>\n\n\n\n

      \u3000\u30005. \u81ea\u52a8\u63a7\u5236\u7cfb\u7edf<\/strong>\uff1a<\/h3>\n\n\n\n

      \u3000\u3000\u4f7f\u7528\u81ea\u52a8\u63a7\u5236\u7cfb\u7edf\u6765\u76d1\u6d4b\u98de\u884c\u5668\u7684\u72b6\u6001\uff0c\u5e76\u5bf9\u5176\u8fdb\u884c\u81ea\u52a8\u8c03\u6574\uff0c\u8fd9\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u98de\u884c\u5668\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n\n\n\n

      \u3000\u3000\u56db\u3001 51\u5355\u7247\u673a\u4e0e\u5176\u4ed6\u5fae\u63a7\u5236\u5668(\u5982STM32)\u5728\u98de\u63a7\u5e94\u7528\u4e2d\u7684\u6bd4\u8f83\u7814\u7a76\u6709\u54ea\u4e9b?<\/h2>\n\n\n\n

      \u3000\u3000\u5728\u98de\u63a7\u5e94\u7528\u4e2d\uff0c51\u5355\u7247\u673a\u4e0e\u5176\u4ed6\u5fae\u63a7\u5236\u5668(\u5982STM32)\u7684\u6bd4\u8f83\u7814\u7a76\u4e3b\u8981\u96c6\u4e2d\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n\n\n\n

      \u3000\u3000STM32\u7cfb\u5217\u5fae\u63a7\u5236\u5668\u901a\u5e38\u5177\u6709\u66f4\u9ad8\u7684\u5904\u7406\u80fd\u529b\u548c\u66f4\u5feb\u7684\u8fd0\u7b97\u901f\u5ea6\u3002\u4f8b\u5982\uff0cSTM32F405\u548cSTM32F429\u7b49\u578b\u53f7\u7684\u4e3b\u9891\u53ef\u4ee5\u8fbe\u5230168MHz\uff0c\u8fd9\u4f7f\u5f97\u5b83\u4eec\u5728\u5904\u7406\u590d\u6742\u7684\u98de\u884c\u63a7\u5236\u7b97\u6cd5\u548c\u4f20\u611f\u5668\u6570\u636e\u65f6\u66f4\u52a0\u9ad8\u6548\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c51\u5355\u7247\u673a\u7684\u5904\u7406\u80fd\u529b\u8f83\u4f4e\uff0c\u53ef\u80fd\u65e0\u6cd5\u6ee1\u8db3\u4e00\u4e9b\u9ad8\u6027\u80fd\u98de\u63a7\u7cfb\u7edf\u7684\u9700\u6c42\u3002<\/p>\n\n\n\n

      \u3000\u3000STM32\u5fae\u63a7\u5236\u5668\u901a\u5e38\u96c6\u6210\u4e86\u66f4\u591a\u7684\u5916\u8bbe\u548c\u529f\u80fd\u6a21\u5757\uff0c\u4f8b\u5982ADC\u3001PWM\u3001CAN\u603b\u7ebf\u7b49\uff0c\u8fd9\u4f7f\u5f97\u98de\u63a7\u7cfb\u7edf\u8bbe\u8ba1\u66f4\u4e3a\u7b80\u6d01\u548c\u9ad8\u6548\u3002\u4f8b\u5982\uff0cSTM32F103C8T6\u5fae\u63a7\u5236\u5668\u4e0d\u4ec5\u652f\u6301\u98de\u884c\u59ff\u6001\u63a7\u5236\u548c\u7535\u673a\u9a71\u52a8\u7535\u8def\uff0c\u8fd8\u80fd\u591f\u901a\u8fc7ADC\u5916\u8bbe\u91c7\u96c6\u6447\u6746\u6570\u636e\uff0c\u5e76\u901a\u8fc7\u65e0\u7ebf\u901a\u4fe1\u6a21\u5757\u53d1\u9001\u6570\u636e\u3002\u800c51\u5355\u7247\u673a\u5728\u8fd9\u65b9\u9762\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u5916\u8bbe\u6269\u5c55\uff0c\u589e\u52a0\u4e86\u7cfb\u7edf\u7684\u590d\u6742\u6027\u548c\u6210\u672c\u3002<\/p>\n\n\n\n

      \u3000\u3000STM32\u5fae\u63a7\u5236\u5668\u5e38\u7528\u4e8e\u96c6\u6210\u591a\u79cd\u4f20\u611f\u5668\uff0c\u5982MPU6050\u3001MS5611\u7b49\uff0c\u7528\u4e8e\u98de\u884c\u59ff\u6001\u8fd0\u7b97\u548cPID\u63a7\u5236\u3002\u8fd9\u4e9b\u4f20\u611f\u5668\u7684\u6570\u636e\u5904\u7406\u548c\u6ee4\u6ce2\u7b97\u6cd5\u8bbe\u8ba1\u4e5f\u8f83\u4e3a\u6210\u719f\uff0c\u80fd\u591f\u63d0\u4f9b\u66f4\u7cbe\u786e\u7684\u98de\u884c\u63a7\u5236\u3002\u800c51\u5355\u7247\u673a\u5728\u8fd9\u65b9\u9762\u53ef\u80fd\u9700\u8981\u66f4\u591a\u7684\u786c\u4ef6\u652f\u6301\u548c\u7f16\u7a0b\u5de5\u4f5c\u3002<\/p>\n\n\n\n

      \u3000\u3000STM32\u7cfb\u5217\u5fae\u63a7\u5236\u5668\u62e5\u6709\u4e30\u5bcc\u7684\u5f00\u53d1\u8d44\u6e90\u548c\u5f3a\u5927\u7684\u793e\u533a\u652f\u6301\u3002\u4f8b\u5982\uff0cOpenPilot\u9879\u76ee\u5c31\u662f\u57fa\u4e8eSTM32\u7684\u5f00\u6e90\u65e0\u4eba\u673a\u98de\u63a7\u7cfb\u7edf\uff0c\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u4ee3\u7801\u548c\u6587\u6863\u4f9b\u5f00\u53d1\u8005\u53c2\u8003\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c51\u5355\u7247\u673a\u7684\u5f00\u53d1\u8d44\u6e90\u76f8\u5bf9\u8f83\u5c11\uff0c\u53ef\u80fd\u9700\u8981\u66f4\u591a\u7684\u81ea\u884c\u5f00\u53d1\u548c\u8c03\u8bd5\u5de5\u4f5c\u3002<\/p>\n\n\n\n

      \u3000\u3000STM32\u5fae\u63a7\u5236\u5668\u5728\u65e0\u4eba\u673a\u98de\u63a7\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528\u975e\u5e38\u5e7f\u6cdb\uff0c\u4ece\u56db\u8f74\u98de\u884c\u5668\u5230\u7269\u6d41\u98de\u63a7\u7cfb\u7edf\u90fd\u6709\u6d89\u53ca\u3002\u5176\u9ad8\u6027\u80fd\u548c\u591a\u529f\u80fd\u6027\u4f7f\u5176\u5728\u519b\u4e8b\u3001\u6c11\u7528\u7b49\u591a\u4e2a\u9886\u57df\u90fd\u6709\u5e7f\u9614\u7684\u5e94\u7528\u524d\u666f\u3002\u800c51\u5355\u7247\u673a\u7531\u4e8e\u5176\u6027\u80fd\u9650\u5236\uff0c\u53ef\u80fd\u66f4\u9002\u5408\u4e00\u4e9b\u7b80\u5355\u7684\u98de\u63a7\u5e94\u7528\u3002<\/p>\n\n\n\n

      \u3000\u3000STM32\u5fae\u63a7\u5236\u5668\u5728\u5904\u7406\u80fd\u529b\u3001\u96c6\u6210\u5ea6\u3001\u4f20\u611f\u5668\u652f\u6301\u3001\u5f00\u53d1\u8d44\u6e90\u548c\u5e94\u7528\u9886\u57df\u7b49\u65b9\u9762\u5747\u4f18\u4e8e51\u5355\u7247\u673a\uff0c\u4f7f\u5176\u5728\u98de\u63a7\u5e94\u7528\u4e2d\u66f4\u5177\u4f18\u52bf\u3002<\/p>\n\n\n\n

      \u3000\u3000\u4e94\u3001 51\u5355\u7247\u673a\u7684\u98de\u63a7\u7cfb\u7edf\uff0c\u6709\u54ea\u4e9b\u9ad8\u7ea7\u529f\u80fd(\u5982\u907f\u969c\u3001\u81ea\u52a8\u8fd4\u822a)\u7684\u5b9e\u73b0\u65b9\u6cd5?<\/h2>\n\n\n\n

      \u3000\u3000\u9488\u5bf951\u5355\u7247\u673a\u7684\u98de\u63a7\u7cfb\u7edf\uff0c\u5b9e\u73b0\u9ad8\u7ea7\u529f\u80fd\u5982\u907f\u969c\u548c\u81ea\u52a8\u8fd4\u822a\u7684\u65b9\u6cd5\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u4f20\u611f\u5668\u548c\u63a7\u5236\u7b97\u6cd5\u6765\u5b9e\u73b0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5177\u4f53\u7684\u5b9e\u73b0\u65b9\u6cd5\uff1a<\/p>\n\n\n\n

      \u3000\u30001. \u7ea2\u5916\u4f20\u611f\u5668\u907f\u969c<\/strong>\uff1a<\/h3>\n\n\n\n

      \u3000\u3000\u4f7f\u7528\u7ea2\u5916\u4f20\u611f\u5668\u68c0\u6d4b\u524d\u65b9\u969c\u788d\u7269\uff0c\u901a\u8fc7\u5224\u65ad\u969c\u788d\u7269\u7684\u8ddd\u79bb\u548c\u4f4d\u7f6e\uff0c\u63a7\u5236\u7535\u673a\u7684\u8f6c\u5411\u548c\u901f\u5ea6\uff0c\u4ee5\u907f\u514d\u78b0\u649e\u3002<\/p>\n\n\n\n

      \u3000\u3000\u4f8b\u5982\uff0c\u57fa\u4e8eAT89C51\u5355\u7247\u673a\u914d\u5408\u7ea2\u5916\u4f20\u611f\u5668\uff0c\u901a\u8fc7\u907f\u969c\u6d41\u7a0b\u5b9e\u73b0\u673a\u5668\u4eba\u5bf9\u969c\u788d\u7269\u7684\u81ea\u52a8\u53cd\u5e94\u3002<\/p>\n\n\n\n

      \u3000\u3000\u53e6\u4e00\u79cd\u8bbe\u8ba1\u662f\u4f7f\u7528STC89C52\u5355\u7247\u673a\u4f5c\u4e3a\u6838\u5fc3\u63a7\u5236\u5355\u5143\uff0c\u7ea2\u5916\u7ebf\u4f20\u611f\u5668\u68c0\u6d4b\u524d\u65b9\u969c\u788d\u7269\uff0c\u7528\u4e8e\u5224\u65ad\u662f\u5426\u9700\u8981\u8f6c\u5f2f\uff0c\u9632\u6b62\u5c0f\u8f66\u78b0\u5230\u969c\u788d\u7269\u3002<\/p>\n\n\n\n

      \u3000\u30002. \u8d85\u58f0\u6ce2\u4f20\u611f\u5668\u907f\u969c<\/strong>\uff1a<\/h3>\n\n\n\n

      \u3000\u3000\u8d85\u58f0\u6ce2\u4f20\u611f\u5668(\u5982HC-SR04)\u53ef\u4ee5\u6d4b\u91cf\u4e0e\u969c\u788d\u7269\u4e4b\u95f4\u7684\u8ddd\u79bb\uff0c\u901a\u8fc7\u8ba1\u7b97\u8ddd\u79bb\u6765\u8c03\u6574\u5c0f\u8f66\u7684\u884c\u9a76\u8def\u5f84\uff0c\u4ee5\u5b9e\u73b0\u907f\u969c\u3002<\/p>\n\n\n\n

      \u3000\u3000\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u7ed3\u5408L293D\u7535\u673a\u9a71\u52a8\u5668\u548c\u76f4\u6d41\u51cf\u901f\u7535\u673a\u6765\u5b9e\u73b0\u5c0f\u8f66\u7684\u7cbe\u786e\u63a7\u5236\u3002<\/p>\n\n\n\n

      \u3000\u30003. \u5faa\u8ff9\u907f\u969c\u7ed3\u5408<\/strong>\uff1a<\/h3>\n\n\n\n

      \u3000\u3000\u5728\u5faa\u8ff9\u907f\u969c\u5c0f\u8f66\u7684\u8bbe\u8ba1\u4e2d\uff0c\u53ef\u4ee5\u7ed3\u5408\u7ea2\u5916\u4f20\u611f\u5668\u548c\u8d85\u58f0\u6ce2\u4f20\u611f\u5668\uff0c\u5b9e\u73b0\u5faa\u8ff9\u548c\u907f\u969c\u7684\u53cc\u91cd\u529f\u80fd\u3002<\/p>\n\n\n\n

      \u3000\u3000\u4f7f\u7528AT89S52\u5355\u7247\u673a\u7ed3\u5408\u591a\u79cd\u4f20\u611f\u5668\u4ee5\u53caPID\u7b97\u6cd5\uff0c\u5b9e\u73b0\u5faa\u8ff9\u907f\u969c\u529f\u80fd\u7684\u667a\u80fd\u5c0f\u8f66\u3002<\/p>\n\n\n\n

      \u3000\u30004. \u81ea\u52a8\u8fd4\u822a\u529f\u80fd<\/strong>\uff1a<\/h3>\n\n\n\n

      \u3000\u3000\u81ea\u52a8\u8fd4\u822a\u529f\u80fd\u901a\u5e38\u9700\u8981\u5728\u98de\u63a7\u7cfb\u7edf\u4e2d\u52a0\u5165GPS\u6a21\u5757\u6216\u78c1\u529b\u8ba1\u7b49\u4f20\u611f\u5668\uff0c\u7528\u4e8e\u5b9a\u4f4d\u548c\u5bfc\u822a\u3002<\/p>\n\n\n\n

      \u3000\u3000\u5f53\u5c0f\u8f66\u504f\u79bb\u9884\u5b9a\u8def\u5f84\u65f6\uff0c\u7cfb\u7edf\u4f1a\u6839\u636e\u4f20\u611f\u5668\u6570\u636e\u8c03\u6574\u65b9\u5411\uff0c\u8fd4\u56de\u8d77\u70b9\u6216\u9884\u5b9a\u4f4d\u7f6e\u3002<\/p>\n\n\n\n

      \u3000\u30005. \u667a\u80fd\u63a7\u5236\u7b97\u6cd5<\/strong>\uff1a<\/h3>\n\n\n\n

      \u3000\u3000\u4f7f\u7528\u5d4c\u5165\u5f0f\u7cfb\u7edf\u548c\u7269\u8054\u7f51\u6280\u672f\uff0c\u7ed3\u5408\u667a\u80fd\u63a7\u5236\u7b97\u6cd5(\u5982PID\u63a7\u5236\u3001\u6a21\u7cca\u63a7\u5236\u7b49)\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u907f\u969c\u548c\u5bfc\u822a\u529f\u80fd\u3002<\/p>\n\n\n\n

      \u3000\u3000\u4f8b\u5982\uff0c\u57fa\u4e8e51\u5355\u7247\u673a\u7684\u667a\u80fd\u907f\u969c\u8f66\uff0c\u5305\u62ec\u6309\u952e\u63a7\u5236\u548c\u81ea\u52a8\u907f\u969c\u529f\u80fd\uff0c\u4f7f\u7528\u7684\u7ea2\u5916\u5bf9\u7ba1\u4f20\u611f\u5668\u548cL298N\u7535\u673a\u9a71\u52a8\u6a21\u5757\u3002<\/p>\n\n\n\n

      \u3000\u3000\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5b9e\u73b0\u57fa\u4e8e51\u5355\u7247\u673a\u7684\u98de\u63a7\u7cfb\u7edf\u4e2d\u7684\u9ad8\u7ea7\u529f\u80fd\uff0c\u5982\u907f\u969c\u548c\u81ea\u52a8\u8fd4\u822a\u3002<\/p>\n\n\n\n

      \u3000\u3000\u516d\u3001 \u5728\u57fa\u4e8e51\u5355\u7247\u673a\u7684\u98de\u63a7\u8bbe\u8ba1\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u548c\u4f18\u5316\u9065\u63a7\u5668\u4fe1\u53f7\u7684\u63a5\u6536\u548c\u89e3\u6790?<\/h2>\n\n\n\n

      \u3000\u3000\u5728\u57fa\u4e8e51\u5355\u7247\u673a\u7684\u98de\u63a7\u8bbe\u8ba1\u4e2d\uff0c\u5904\u7406\u548c\u4f18\u5316\u9065\u63a7\u5668\u4fe1\u53f7\u7684\u63a5\u6536\u548c\u89e3\u6790\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\uff1a<\/p>\n\n\n\n

        \n
      • \u3000\u3000\u9009\u62e9\u5408\u9002\u7684\u534f\u8bae<\/strong>\uff1a\u6839\u636e\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u9065\u63a7\u5668\u4fe1\u53f7\u534f\u8bae\uff0c\u5982PWM\u3001PPM\u6216SBUS\u7b49\u3002SBUS\u534f\u8bae\u662f\u4e00\u79cd\u57fa\u4e8e\u4e32\u53e3\u7684\u534f\u8bae\uff0c\u9002\u7528\u4e8e\u56db\u65cb\u7ffc\u65e0\u4eba\u673a\u7b49\u590d\u6742\u7cfb\u7edf\u3002<\/li>\n\n\n\n
      • \u3000\u3000\u4fe1\u53f7\u63a5\u6536<\/strong>\uff1a\u4f7f\u7528\u63a5\u6536\u673a\u63a5\u6536\u9065\u63a7\u5668\u4fe1\u53f7\u3002\u63a5\u6536\u673a\u5c06\u9065\u63a7\u5668\u7684\u6a21\u62df\u4fe1\u53f7\u8f6c\u6362\u4e3a\u6570\u5b57\u4fe1\u53f7\uff0c\u5e76\u901a\u8fc7\u4e32\u53e3\u53d1\u9001\u7ed9\u5355\u7247\u673a\u3002<\/li>\n\n\n\n
      • \u3000\u3000\u4fe1\u53f7\u89e3\u6790<\/strong>\uff1a\u5728\u5355\u7247\u673a\u4e2d\u5bf9\u63a5\u6536\u7684\u4fe1\u53f7\u8fdb\u884c\u89e3\u6790\u3002\u5bf9\u4e8eSBUS\u534f\u8bae\uff0c\u9700\u8981\u89e3\u679025\u4e2a8bit\u5b57\u8282\u7684\u5e27\u6392\u5e8f\uff0c\u5e76\u5728\u89e3\u6790\u524d\u5bf9\u4fe1\u53f7\u7535\u5e73\u8fdb\u884c\u53cd\u5411\u5904\u7406\u3002<\/li>\n\n\n\n
      • \u3000\u3000\u903b\u8f91\u5206\u6790\u4eea\u8f85\u52a9<\/strong>\uff1a\u53ef\u4ee5\u501f\u52a9\u903b\u8f91\u5206\u6790\u4eea\u8bb0\u5f55\u4e0b\u6765\u9065\u63a7\u5668\u4e0a\u6bcf\u4e00\u4e2a\u6309\u952e\u7684\u7f16\u7801\u8109\u51b2\u5e8f\u5217\uff0c\u7834\u8bd1\u51fa\u5404\u6309\u952e\u7684\u7f16\u7801\u3002\u622a\u53d616\u4f4d\u952e\u7801\u76848\u4f4d(\u6bd4\u5982\u540e8\u4f4d)\u5c31\u53ef\u8fbe\u5230\u8bc6\u522b\u6309\u952e\u7684\u76ee\u7684\u3002<\/li>\n\n\n\n
      • \u3000\u3000\u7f16\u7a0b\u5b9e\u73b0<\/strong>\uff1a\u4f7f\u7528C\u8bed\u8a00\u6216\u5176\u4ed6\u9002\u5408\u7684\u7f16\u7a0b\u8bed\u8a00\u7f16\u5199\u7a0b\u5e8f\uff0c\u5b9e\u73b0\u5bf9\u9065\u63a7\u5668\u4fe1\u53f7\u7684\u7cbe\u786e\u89e3\u6790\u548c\u63a7\u5236\u3002\u901a\u8fc7\u6574\u5408\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u822a\u6a21\u9065\u63a7\u5668\u4fe1\u53f7\u7684\u7cbe\u786e\u89e3\u6790\u548c\u63a7\u5236\u3002<\/li>\n\n\n\n
      • \u3000\u3000\u4f18\u5316\u7b97\u6cd5<\/strong>\uff1a\u5728\u98de\u63a7\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528PID\u63a7\u5236\u7b97\u6cd5\u3001\u5361\u5c14\u66fc\u6ee4\u6ce2\u7b49\u7b97\u6cd5\u6765\u4f18\u5316\u63a7\u5236\u6548\u679c\uff0c\u786e\u4fdd\u98de\u884c\u5668\u7684\u7a33\u5b9a\u6027\u548c\u54cd\u5e94\u901f\u5ea6\u3002<\/li>\n<\/ul>\n\n\n\n

        <\/p>\n","protected":false},"excerpt":{"rendered":"

        \u7406\u8bba\u4e0a\u00a051 \u5355\u7247\u673a\u53ef\u4ee5\u7528\u4e8e\u7b80\u5355\u7684\u98de\u63a7\u3002\u4f46\u662f 51 \u5355\u7247\u673a\u7684\u6027\u80fd\u548c\u8d44\u6e90\u9650\u5236\u4f7f\u5176\u4e0d\u592a\u9002\u5408\u590d\u6742\u7684\u98de\u884c\u63a7\u5236\u4efb\u52a1\u3002<\/p>\n","protected":false},"author":1,"featured_media":97532,"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":[83,449],"class_list":["post-98100","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dpj","tag-wrjfk"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/98100"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=98100"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/98100\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/97532"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=98100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=98100"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=98100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}