{"id":6491,"date":"2022-07-28T10:36:34","date_gmt":"2022-07-28T02:36:34","guid":{"rendered":"https:\/\/makerpro.cc\/tutors\/?post_type=docs&#038;p=6491"},"modified":"2023-03-06T14:29:32","modified_gmt":"2023-03-06T06:29:32","password":"","slug":"%e3%80%90esp32%e5%b0%88%e6%ac%84%e3%80%91%e4%bd%a0%e7%9f%a5%e9%81%93-esp32-%e5%a6%82%e4%bd%95%e7%9d%a1%e8%a6%ba%e4%bb%a5%e5%8f%8a%e5%a6%82%e4%bd%95%e7%94%a6%e9%86%92%e5%97%8e","status":"publish","type":"docs","link":"https:\/\/makerpro.cc\/makerlearn\/knowledgebase\/%e3%80%90esp32%e5%b0%88%e6%ac%84%e3%80%91%e4%bd%a0%e7%9f%a5%e9%81%93-esp32-%e5%a6%82%e4%bd%95%e7%9d%a1%e8%a6%ba%e4%bb%a5%e5%8f%8a%e5%a6%82%e4%bd%95%e7%94%a6%e9%86%92%e5%97%8e\/","title":{"rendered":"\u3010ESP32\u5c08\u6b04\u3011\u4f60\u77e5\u9053 ESP32 \u5982\u4f55\u7761\u89ba\u4ee5\u53ca\u5982\u4f55\u7526\u9192\u55ce?"},"content":{"rendered":"<h3>ESP32 \u7761\u7720\u7a2e\u985e\u6709\u54ea\u4e9b?<\/h3>\n<p>ESP32\u7684\u5de5\u4f5c\u6a21\u5f0f\u4e00\u822c\u53ef\u5206\u6210\u4ee5\u4e0b\u4e94\u7a2e\uff1a<\/p>\n<p>1. Active \u6b63\u5e38\u6a21\u5f0f\uff1a<\/p>\n<p>\u4e00\u822c\u7684\u904b\u4f5c\u72c0\u614b\uff0c\u53ef\u958b\u555f\u85cd\u82bd\u53ca WiF\u3002<\/p>\n<p>2. Modem-Sleep \u901a\u8a0a\u95dc\u9589\uff1a<\/p>\n<p>\u6c92\u6709\u555f\u52d5\u85cd\u82bd\u6216 WiFi \u7684\u72c0\u614b\uff0c\u70ba\u624b\u52d5\u95dc\u9589\u901a\u8a0a\u6a21\u7d44\u6642\u7684\u72c0\u614b\u3002<\/p>\n<p>3. Light-Sleep \u8f15\u5ea6\u7761\u7720\uff1a<\/p>\n<p>\u4e3b CPU \u3001\u8a18\u61b6\u9ad4\u5448\u201d\u66ab\u505c\u201d\u72c0\u614b\uff0c\u540c\u6642\u901a\u8a0a\u90e8\u4efd\u4e5f\u662f\u95dc\u9589\u72c0\u614b\uff0c\u6b64\u72c0\u614b\u53ef\u4ee5\u5927\u5e45\u7701\u96fb\u3002<\/p>\n<p>4. Deep-Sleep \u6df1\u5ea6\u7761\u7720\uff1a<\/p>\n<p>\u4e3b CPU\u3001\u8a18\u61b6\u9ad4\u5448\u73fe\u201d\u95dc\u9589\u201d\u72c0\u614b\uff0c\u50c5 RTC \u9031\u908a\u53ca RTC \u8a18\u61b6\u9ad4\u662f\u958b\u555f\u72c0\u614b\uff0c\u6b64\u6642\u7cfb\u7d71\u6703\u6bd4\u8f15\u5ea6\u7761\u7720\u66f4\u52a0\u7701\u96fb\u3002<\/p>\n<p>5. Hibernation\u4f11\u7720\uff1a<\/p>\n<p>\u4e3b CPU\u3001\u8a18\u61b6\u9ad4\u3001RTC \u9031\u908a\u3001RTC \u8a18\u61b6\u9ad4\u5168\u90e8\u90fd\u95dc\u9589\u3002<\/p>\n<div id=\"attachment_10427\" style=\"width: 507px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" aria-describedby=\"caption-attachment-10427\" class=\" wp-image-10427\" src=\"https:\/\/i0.wp.com\/makerpro.cc\/makerlearn\/wp-content\/uploads\/2023\/03\/ESP_1.webp?resize=497%2C182&#038;ssl=1\" alt=\"\" width=\"497\" height=\"182\" srcset=\"https:\/\/i0.wp.com\/makerpro.cc\/makerlearn\/wp-content\/uploads\/2023\/03\/ESP_1.webp?resize=300%2C110&amp;ssl=1 300w, https:\/\/i0.wp.com\/makerpro.cc\/makerlearn\/wp-content\/uploads\/2023\/03\/ESP_1.webp?w=474&amp;ssl=1 474w\" sizes=\"(max-width: 497px) 100vw, 497px\" \/><p id=\"caption-attachment-10427\" class=\"wp-caption-text\">ESP32\u7684\u5de5\u4f5c\u6a21\u5f0f<\/p><\/div>\n<h4><strong>\u8f15\u5ea6\u53ca\u6df1\u5ea6\u4f11\u7720\u7684\u4e0d\u540c\u8655?<\/strong><\/h4>\n<p>1. CPU :<br \/>\n\u7576\u8f15\u5ea6\u7761\u7720\u6642\uff0cCPU \u70ba\u201d\u66ab\u505c\u201d\uff0c\u800c\u6df1\u5ea6\u7761\u7720\u6642 CPU \u5247\u662f\u5b8c\u5168\u201d\u95dc\u9589\u201d\uff0c\u66ab\u505c\u8207\u95dc\u9589\u7684\u5dee\u7570\u5c31\u662fCPU\u5728\u7761\u7720\u524d\u7684\u72c0\u614b\u662f\u5426\u9084\u5b58\u5728\uff0c\u201d\u66ab\u505c\u201d\u5728\u559a\u9192\u5f8c\u9084\u53ef\u4ee5\u63a5\u7e8c\u57f7\u884c\uff0c\u201d\u95dc\u9589\u201d\u5247\u4ee3\u8868 CPU \u5b8c\u5168\u65b7\u96fb\uff0c\u5728\u559a\u9192\u5f8c\u5fc5\u9808\u5f9e\u982d\u57f7\u884c\u3002<\/p>\n<p>2. \u4e3b\u8a18\u61b6\u9ad4 :<\/p>\n<p>\u8f15\u5ea6\u7761\u7720\u6642\u8a18\u61b6\u9ad4\u5167\u7684\u8b8a\u6578\u6703\u88ab\u201d\u4fdd\u7559\u201d\uff0c\u559a\u9192\u5f8c\u4ecd\u53ef\u53d6\u7528\u9019\u4e9b\u8b8a\u6578\u7684\u503c\uff0c\u800c\u6df1\u5ea6\u7761\u7720\u6642\u4e3b\u8a18\u61b6\u9ad4\u5167\u5bb9\u6703\u88ab\u201d\u6e05\u9664\u201d\uff0c\u559a\u9192\u5f8c\u662f\u7121\u6cd5\u5b58\u53d6\u7761\u7720\u524d\u7684\u4efb\u4f55\u8b8a\u6578\u3002<\/p>\n<p>3. \u7a0b\u5f0f\u6d41\u7a0b :<\/p>\n<p>\u8f15\u5ea6\u7761\u7720\u6642\uff0c\u559a\u9192\u5f8c\u7684\u7a0b\u5f0f\u6703\u201d\u63a5\u7e8c\u201d\u57f7\u884c\u7761\u7720\u5f8c\u7684\u6307\u4ee4\uff0c\u800c\u6df1\u5ea6\u7761\u7720\u559a\u9192\u5f8c\uff0c\u7531\u65bcCPU\u53ca\u8a18\u61b6\u9ad4\u90fd\u5df2\u91cd\u8a2d\uff0c\u56e0\u6b64\u5fc5\u9808\u201d\u5f9e\u982d\u201d\u958b\u59cb\u57f7\u884c\u3002<\/p>\n<p>4. \u8173\u4f4d\u72c0\u614b :<\/p>\n<p>\u8f15\u5ea6\u7761\u7720\u6642\uff0c\u8173\u4f4d\u7684\u72c0\u614b\u6703\u88ab\u201d\u4fdd\u7559\u201d\uff0c\u4f46\u6df1\u5ea6\u7761\u7720\u6642\uff0c\u6240\u6709\u8173\u4f4d\u7684\u72c0\u614b\u90fd\u88ab\u201d\u6e05\u9664\u201d\u3002<\/p>\n<div id=\"attachment_10426\" style=\"width: 433px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" decoding=\"async\" aria-describedby=\"caption-attachment-10426\" class=\" wp-image-10426\" src=\"https:\/\/i0.wp.com\/makerpro.cc\/makerlearn\/wp-content\/uploads\/2023\/03\/ESP_2.webp?resize=423%2C299&#038;ssl=1\" alt=\"\" width=\"423\" height=\"299\" srcset=\"https:\/\/i0.wp.com\/makerpro.cc\/makerlearn\/wp-content\/uploads\/2023\/03\/ESP_2.webp?resize=300%2C212&amp;ssl=1 300w, https:\/\/i0.wp.com\/makerpro.cc\/makerlearn\/wp-content\/uploads\/2023\/03\/ESP_2.webp?w=397&amp;ssl=1 397w\" sizes=\"(max-width: 423px) 100vw, 423px\" \/><p id=\"caption-attachment-10426\" class=\"wp-caption-text\">\u8f15\u5ea6\u53ca\u6df1\u5ea6\u4f11\u7720\u7684\u4e0d\u540c<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>\u559a\u9192\u65b9\u5f0f\u6709\u54ea\u4e9b?<\/h3>\n<p>\u4e3b\u8981\u559a\u9192\u65b9\u5f0f\u53ef\u4ee5\u5206\u6210\u4ee5\u4e0b\u4e94\u7a2e :<\/p>\n<p>1. TIMER\uff1a\u7531 RTC \u8a08\u6642\u5668\u559a\u9192<\/p>\n<p>\u5c31\u8ddf\u7761\u524d\u5b9a\u9b27\u9418\u4e00\u6a23\uff0c\u5229\u7528\u300cesp_sleep_enable_timer_wakeup(TIME_TO_SLEEP)\u300d\u5c31\u53ef\u4ee5\u8a2d\u5b9a\u672a\u4f86\u9032\u5165\u7761\u7720\u5f8c\uff0c\u61c9\u8a72\u591a\u4e45\u5f8c\u559a\u9192\u3002<\/p>\n<p>2. EX0\uff1aRTC \u55ae\u4e00\u8173\u4f4d\u559a\u9192<\/p>\n<p>\u5229\u7528 RTC \u4f86\u611f\u6e2c\u67d0\u7279\u5b9a\u8173\u4f4d\u662f HIGH \u6216 LOW \u6642\u4f86\u559a\u9192\uff0c\u4f8b\u5982\uff1aesp_sleep_enable_ext0_wakeup(GPIO_NUM_33, HIGH)\uff0c\u4ee3\u8868\u7576GPIO33\u70baHIGH\u6642\u5c31\u559a\u9192\u3002<\/p>\n<p>3. EX1\uff1aRTC \u591a\u8173\u4f4d\u559a\u9192<\/p>\n<p>\u7576\u9700\u8981\u559a\u9192\u8173\u4f4d\u8d85\u904e\u4e00\u96bb\u6642\uff0c\u5c31\u5fc5\u9808\u4f7f\u7528\u9019\u500b\u529f\u80fd\uff0c\u7531\u65bc\u5f88\u591a\u8173\u4f4d\u8981\u7528\u4e00\u500b BITMASK \u8b8a\u6578\u4f86\u4ee3\u66ff\uff0c\u56e0\u6b64\u5fc5\u9808\u4e86\u89e3\u5982\u4f55\u8a08\u7b97 BITMASK \uff0c\u4ee5\u4e0b\u5716\u70ba\u4f8b\u5b50 :<\/p>\n<p>&nbsp;<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" class=\"wp-image-10424 aligncenter\" src=\"https:\/\/i0.wp.com\/makerpro.cc\/makerlearn\/wp-content\/uploads\/2023\/03\/ESP_3.webp?resize=511%2C143&#038;ssl=1\" alt=\"\" width=\"511\" height=\"143\" srcset=\"https:\/\/i0.wp.com\/makerpro.cc\/makerlearn\/wp-content\/uploads\/2023\/03\/ESP_3.webp?resize=300%2C84&amp;ssl=1 300w, https:\/\/i0.wp.com\/makerpro.cc\/makerlearn\/wp-content\/uploads\/2023\/03\/ESP_3.webp?w=490&amp;ssl=1 490w\" sizes=\"(max-width: 511px) 100vw, 511px\" \/><\/p>\n<p>\u5728\u89f8\u767c\u8173 9,6,2 \u8173\u4f4d\u7de8\u865f\u4e0b\u9762\u5beb\u4e0a 1\uff0c\u5176\u9918\u4e0d\u6703\u89f8\u767c\u559a\u9192\u7684\u8173\u4f4d\u5beb 0\uff0c\u90a3\u9ebc\u9019\u500b 2 \u9032\u4f4d\u7684\u6578\u5b57\u5c31\u662f\u300c1001000100\u300d\uff0c\u63db\u6210 10 \u9032\u4f4d=2^9+2^6+2^2=580\uff0c\u518d\u63db\u6210 16 \u9032\u4f4d\u70ba 0x244\uff0c\u90a3\u9ebc BITMASK \u5373\u7b49\u65bc 0x244\u3002<\/p>\n<p>4. TOUCHPAD\uff1aRTC \u89f8\u63a7\u8173\u559a\u9192<\/p>\n<p>ESP32 \u5167\u5efa 10 \u500b\u89f8\u63a7\u8173\uff0c\u53ef\u4ee5\u611f\u6e2c\u4eba\u9ad4\u975c\u96fb\uff0c\u7576\u6709\u4eba\u89f8\u6478\u6642\uff0c\u6578\u503c\u6703\u964d\u5230 30 \u4ee5\u4e0b\uff0c\u56e0\u6b64\u6211\u5011\u53ef\u4ee5\u8a2d\u5b9a\u89f8\u63a7\u9580\u6abb\u503c\u70ba 30\uff0c\u7576\u6709\u4eba\u89f8\u6478\u6642\uff0c\u7cfb\u7d71\u5c31\u6703\u88ab\u559a\u9192\u3002<\/p>\n<p>5. ULP\uff1a\u5354\u540c CPU \u559a\u9192<\/p>\n<p>ESP32 \u7576\u9032\u5165\u7761\u7720\u72c0\u614b\uff0c\u96d6\u7136\u8173\u4f4d\u4e5f\u95dc\u9589\u4e86\uff0c\u4f46 VCC \u53ca GND \u9084\u662f\u4fdd\u6301\u9001\u96fb\u72c0\u614b\uff0c\u82e5\u5e0c\u671b\u611f\u6e2c\u5668\u5728\u4f11\u7720\u6642\uff0c\u4e5f\u95dc\u9589\u611f\u6e2c\u5668\uff0c\u53ef\u4ee5\u5c07\u611f\u6e2c\u5668\u7684 VCC \u8173\u5229\u7528\u67d0\u500b IO \u9001 HIGH \u4f86\u53d6\u4ee3\u3002<\/p>\n<p>\u53e6\u5916\u5efa\u8b70\u96fb\u529b\u4e0d\u8981\u5f9e ESP32 \u7684 USB \u63a5\u5165\uff0c\u56e0\u70ba\u7576 ESP32 \u4f11\u7720\u6642\uff0c\u6a21\u7d44\u4e0a\u9762\u7684 USBTTL \u4e26\u6c92\u6709\u4e00\u8d77\u4f11\u7720\uff0c\u4e26\u6703\u8017\u7528\u96fb\u529b\uff0c\u82e5\u5e0c\u671b\u96fb\u529b\u80fd\u6490\u66f4\u4e45\u7684\u8a71\uff0c\u5c31\u907f\u514d\u63a5\u5230 USB\uff0c\u800c\u662f\u63a5\u5230 ESP32 \u7684 VIN\u3001GND \u8173\uff0c\u6216\u8005\u76f4\u63a5\u4f7f\u7528\u6709\u4ed8\u96fb\u6c60\u63d2\u5b54\u7684 ESP32\u3002<\/p>\n<p>\u300b\u8cc7\u6599\u4f86\u6e90\uff1a\u3010ESP32 \u5c08\u6b04\u3011ESP32 MQTT \u8207\u6df1\u5ea6\u7761\u7720<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ESP32 \u7761\u7720\u7a2e\u985e\u6709\u54ea\u4e9b? ESP32\u7684\u5de5\u4f5c\u6a21\u5f0f\u4e00\u822c\u53ef\u5206\u6210\u4ee5\u4e0b\u4e94\u7a2e\uff1a 1. Active \u6b63\u5e38\u6a21\u5f0f\uff1a \u4e00\u822c\u7684&hellip;<\/p>\n","protected":false},"author":9827,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"doc_category":[105],"doc_tag":[],"class_list":["post-6491","docs","type-docs","status-publish","hentry","doc_category-esp32","description-off"],"acf":[],"year_month":"2026-04","word_count":95,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"MakerLearn\u8b1b\u5e2b\u7fa4","author_nicename":"makerlearn","author_url":"https:\/\/makerpro.cc\/makerlearn\/author\/makerlearn\/"},"doc_category_info":[{"term_name":"ESP32","term_url":"https:\/\/makerpro.cc\/makerlearn\/knowledgebase-category\/esp32\/"}],"doc_tag_info":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/makerpro.cc\/makerlearn\/wp-json\/wp\/v2\/docs\/6491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/makerpro.cc\/makerlearn\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/makerpro.cc\/makerlearn\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/makerpro.cc\/makerlearn\/wp-json\/wp\/v2\/users\/9827"}],"replies":[{"embeddable":true,"href":"https:\/\/makerpro.cc\/makerlearn\/wp-json\/wp\/v2\/comments?post=6491"}],"version-history":[{"count":2,"href":"https:\/\/makerpro.cc\/makerlearn\/wp-json\/wp\/v2\/docs\/6491\/revisions"}],"predecessor-version":[{"id":10458,"href":"https:\/\/makerpro.cc\/makerlearn\/wp-json\/wp\/v2\/docs\/6491\/revisions\/10458"}],"wp:attachment":[{"href":"https:\/\/makerpro.cc\/makerlearn\/wp-json\/wp\/v2\/media?parent=6491"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/makerpro.cc\/makerlearn\/wp-json\/wp\/v2\/doc_category?post=6491"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/makerpro.cc\/makerlearn\/wp-json\/wp\/v2\/doc_tag?post=6491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}