{"id":1764,"date":"2017-09-11T06:59:47","date_gmt":"2017-09-10T22:59:47","guid":{"rendered":"https:\/\/drho.club\/?p=1764"},"modified":"2023-08-06T17:10:16","modified_gmt":"2023-08-06T09:10:16","slug":"nodemcu-startup","status":"publish","type":"post","link":"https:\/\/104.es\/index.php\/2017\/09\/11\/nodemcu-startup\/","title":{"rendered":"NodeMCU\u8d77\u6b65"},"content":{"rendered":"<p>NodeMCU\u5728\u570b\u5167\u7684\u6559\u5b78\u8cc7\u6599\u751a\u5c11\uff0c\u6240\u4ee5\u5728\u9019\u88e1\u7c21\u55ae\u8aaa\u660e\u4e00\u4e0b\uff0c\u4e00\u500b\u4e0d\u5230\u53f0\u5e63300\u5143\u7684\u5d4c\u5165\u5f0f\u96fb\u8166\uff0c\u9084\u542b\u6709WiFi\u529f\u80fd\uff0c\u5230\u624b\u4e4b\u5f8c\u662f\u5982\u4f55\u958b\u59cb\u8b93\u5b83\u53ef\u4ee5\u4f9d\u7167\u6211\u5011\u7684\u60f3\u6cd5\u904b\u4f5c\u7684\u3002<\/p>\n<p>\u9996\u5148\uff0c\u7b2c\u4e00\u6b65\u5c31\u662f\u5148\u900f\u904e\u4e00\u822c\u63a5\u624b\u6a5f\u7684Micro USB\u8cc7\u6599\u50b3\u8f38\u7dda\u628a\u5b83\u9023\u5230NodeMCU\u7684\u63a5\u982d\u4e0a\uff0c\u9806\u5229\u63a5\u4e0a\u4e4b\u5f8c\uff0c\u904e\u4e00\u6703\u5152\u6703\u6709\u4e00\u500b\u5c0f\u5c0f\u7684\u85cd\u8272LED\u958b\u59cb\u9583\u720d\uff0c\u90a3\u5c31\u8868\u793a\u5df2\u7d93\u5b8c\u6210\u7b2c\u4e00\u6b65\u7684\u9023\u7dda\u5de5\u4f5c\u4e86\u3002<\/p>\n<p><a href=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/n2017-09-10-09.44.31.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1768 aligncenter\" src=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/n2017-09-10-09.44.31.jpg\" alt=\"\" width=\"611\" height=\"343\" srcset=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/n2017-09-10-09.44.31.jpg 800w, https:\/\/104.es\/wp-content\/uploads\/2017\/09\/n2017-09-10-09.44.31-300x169.jpg 300w, https:\/\/104.es\/wp-content\/uploads\/2017\/09\/n2017-09-10-09.44.31-768x432.jpg 768w, https:\/\/104.es\/wp-content\/uploads\/2017\/09\/n2017-09-10-09.44.31-600x338.jpg 600w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/a><\/p>\n<p>\u56e0\u70ba\u5b83\u662f\u900f\u904eUSB\u548c\u96fb\u8166\u9023\u63a5\uff0c\u6240\u4ee5\u9084\u8981\u5b89\u88dd\u4e00\u500bUSB to UART Bridge\u7684\u9a45\u52d5\u7a0b\u5f0f\uff0c\u7db2\u5740\u5982\u4e0b\uff1a<\/p>\n<p><a href=\"https:\/\/www.silabs.com\/products\/development-tools\/software\/usb-to-uart-bridge-vcp-drivers\">https:\/\/www.silabs.com\/products\/development-tools\/software\/usb-to-uart-bridge-vcp-drivers<\/a><\/p>\n<p>\u4e0b\u8f09\u5b8c\u7562\u89e3\u58d3\u7e2e\u4e4b\u5f8c\uff0c\u4f9d\u7167\u4f60\u7684\u96fb\u8166\u662f32\u4f4d\u5143\u9084\u662f64\u4f4d\u5143\uff0c\u57f7\u884c\u4e0d\u540c\u7684\u5b89\u88dd\u6a94\u3002\u4ee5\u7b46\u8005\u70ba\u4f8b\uff0c\u4f7f\u7528\u7684\u662fWindows10 64\u4f4d\u5143\u7684\u4f5c\u696d\u7cfb\u7d71\uff0c\u6240\u4ee5\u5982\u4e0b\u6240\u793a\u57f7\u884c\u8a72\u7a0b\u5f0f\uff0c\u4e26\u958b\u59cb\u9032\u884c\u5b89\u88dd\u3002<\/p>\n<p><a href=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-10_09-46-43.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1769 aligncenter\" src=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-10_09-46-43.png\" alt=\"\" width=\"557\" height=\"416\" srcset=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-10_09-46-43.png 716w, https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-10_09-46-43-300x224.png 300w, https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-10_09-46-43-600x448.png 600w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/a><\/p>\n<p>\u5b89\u88dd\u5b8c\u6210\u4e4b\u5f8c\uff0c\u5728\u88dd\u7f6e\u7ba1\u7406\u54e1\u4e2d\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u6240\u793a\u7684COM\u9023\u63a5\u57e0\uff1a<\/p>\n<p><a href=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-10_09-58-17.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1766 aligncenter\" src=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-10_09-58-17.png\" alt=\"\" width=\"496\" height=\"89\" \/><\/a><\/p>\n<p>\u4e0b\u4e00\u6b65\u662f\u5b89\u88ddArduino IDE\uff0c\u7db2\u5740\u70ba\uff1a<a href=\"https:\/\/www.arduino.cc\/en\/main\/software\">https:\/\/www.arduino.cc\/en\/main\/software<\/a>\u3002\u5b89\u88dd\u5b8c\u7562\u4e4b\u5f8c\uff0c\u8acb\u5230\u300c\u6a94\u6848\u300d\u7684\u300c\u7cfb\u7d71\u504f\u597d\u8a2d\u5b9a\u300d\u7684\u300c\u984d\u5916\u958b\u767c\u677f\u7ba1\u7406\u54e1\u7db2\u5740\u300d\u8655\uff0c\u8f38\u5165\u4ee5\u4e0b\u7684\u7db2\u5740\uff1ahttp:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json\uff0c\u5982\u4e0b\u5716\u6240\u793a\uff1a<\/p>\n<p><a href=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-11_06-40-41.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1771 aligncenter\" src=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-11_06-40-41.png\" alt=\"\" width=\"752\" height=\"660\" srcset=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-11_06-40-41.png 752w, https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-11_06-40-41-300x263.png 300w, https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-11_06-40-41-600x527.png 600w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/a><\/p>\n<p>\u6b64\u6642\u9700\u95dc\u9589\u7a0b\u5f0f\u518d\u91cd\u65b0\u958b\u555fArduino IDE\uff0c\u5230\u300c\u5de5\u5177\u300d\u7684\u300c\u958b\u767c\u677f\u300d\u9078\u9805\u9078\u53d6\u300c\u958b\u767c\u677f\u7ba1\u7406\u54e1&#8230;\u300d\uff0c\u518d\u628a\u4e2d\u9593\u7684\u5c0d\u8a71\u76d2\u5f80\u4e0b\u6372\u52d5\uff0c\u76f4\u5230\u51fa\u73feESP8266 Community\u70ba\u6b62\uff0c\u5982\u4e0b\u5716\u6240\u793a\uff1a<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-11_06-45-33.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1772\" src=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2017-09-11_06-45-33.png\" alt=\"\" width=\"784\" height=\"442\" \/><\/a><\/p>\n<p>\u9019\u6642\u5019\u9ede\u9078\u6b64\u9805\u76ee\uff0c\u5373\u53ef\u5728\u53f3\u5074\u8655\u770b\u5230\u300c\u5b89\u88dd\u300d\u6309\u9215\uff0c\u9ede\u64ca\u9032\u5165\u5b89\u88dd\u5373\u53ef\u3002\u5b89\u88dd\u5b8c\u7562\u4e4b\u5f8c\uff0c\u5373\u53ef\u5728\u300c\u5de5\u5177\u300d\u7684\u300c\u958b\u767c\u677f\u300d\u9078\u9805\u4e2d\u627e\u5230NodeMCU 1.0 (ESP-12E Module)\u9019\u500b\u9805\u76ee\uff0c\u5c31\u8868\u793a\u4e00\u5207\u90fd\u6b63\u5e38\uff0c\u53ef\u4ee5\u958b\u59cb\u5beb\u7a0b\u5f0f\u4e86\u3002NodeMCU\u6bcf\u652f\u8173\u4f4d\u7684\u5b9a\u7fa9\u5982\u4e0b\u5716\u6240\u793a\uff08\u53d6\u81eahttps:\/\/github.com\/nodemcu\/nodemcu-devkit-v1.0\uff09\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full aligncenter\" src=\"https:\/\/raw.githubusercontent.com\/nodemcu\/nodemcu-devkit-v1.0\/master\/Documents\/NODEMCU_DEVKIT_V1.0_PINMAP.png\" width=\"791\" height=\"703\" \/><\/p>\n<p>\u4ee5\u4e0b\u662f\u57fa\u672c\u7684\u8b93\u677f\u5b50\u4e0a\u7684LED\u53ef\u4ee5\u6bcf0.5\u79d2\u9583\u720d\u4e00\u6b21\u7684\u7a0b\u5f0f\uff08\u8acb\u6ce8\u610f\uff0cArduino\u7684\u5167\u5efaLED\u662f\u5728\u7b2c13\u652f\u8173\uff0c\u800cNodeMCU\u5247\u662f\u5728\u7b2c2\u652f\u8173\uff09\uff1a<\/p>\n<p>[code]<br \/>\n#define LED 2<br \/>\n#define DELAY 500<br \/>\nvoid setup() {<br \/>\n  pinMode(LED, OUTPUT);<br \/>\n}<\/p>\n<p>void loop() {<br \/>\n  digitalWrite(LED, HIGH);<br \/>\n  delay(DELAY);<br \/>\n  digitalWrite(LED, LOW);<br \/>\n  delay(DELAY);<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>\u9084\u6709\u4e00\u9ede\uff0c\u5728\u71d2\u9304\u6b64\u7a0b\u5f0f\u4e4b\u524d\uff0c\u9664\u4e86\u8981\u6307\u5b9a\u6b63\u78ba\u7684COM\u57e0\u4e4b\u5916\uff0c\u4e5f\u8981\u6307\u5b9a\u6b63\u78ba\u7684\u88dd\u7f6e\u578b\u865f\uff0c\u4ee5\u6211\u5011\u4f7f\u7528\u7684NodeMCU\u70ba\u4f8b\uff0c\u9078\u7528\u7684\u662f\u5982\u4e0b\u5716\u6240\u793a\u7684\u88dd\u7f6e\uff1a<\/p>\n<p><a href=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2018-06-19_10-11-25.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2306 aligncenter\" src=\"https:\/\/104.es\/wp-content\/uploads\/2017\/09\/2018-06-19_10-11-25.png\" alt=\"\" width=\"592\" height=\"701\" \/><\/a><\/p>\n<p>\u4e4b\u5f8c\u5c31\u53ef\u4ee5\u9806\u5229\u4e5f\u4f7f\u7528Arduino IDE\u958b\u767cNodeMCU\u7684\u61c9\u7528\u5c08\u984c\u56c9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NodeMCU\u5728\u570b\u5167\u7684\u6559\u5b78\u8cc7\u6599\u751a\u5c11\uff0c\u6240\u4ee5\u5728\u9019\u88e1\u7c21\u55ae\u8aaa\u660e\u4e00\u4e0b\uff0c\u4e00\u500b\u4e0d\u5230\u53f0\u5e63300\u5143\u7684\u5d4c\u5165\u5f0f\u96fb\u8166\uff0c\u9084\u542b\u6709WiFi\u529f\u80fd\uff0c\u5230\u624b\u4e4b\u5f8c\u662f\u5982\u4f55\u958b\u59cb\u8b93\u5b83\u53ef\u4ee5\u4f9d\u7167\u6211\u5011\u7684\u60f3\u6cd5\u904b\u4f5c\u7684\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[48],"class_list":["post-1764","post","type-post","status-publish","format-standard","hentry","category-nodemcu","tag-nodemcu"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/1764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/comments?post=1764"}],"version-history":[{"count":2,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/1764\/revisions"}],"predecessor-version":[{"id":2823,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/1764\/revisions\/2823"}],"wp:attachment":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/media?parent=1764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/categories?post=1764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/tags?post=1764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}