{"id":39388,"date":"2023-09-28T04:27:38","date_gmt":"2023-09-27T20:27:38","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=39388"},"modified":"2023-10-14T16:31:41","modified_gmt":"2023-10-14T08:31:41","slug":"syejsdpjsj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/39388.html","title":{"rendered":"\u4f7f\u7528ESP32\u63a5\u6536\u5355\u7247\u673a\u6570\u636e"},"content":{"rendered":"
ESP32\u662f\u4e00\u6b3e\u591a\u529f\u80fd\u7684\u5355\u7247\u673a\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u63a5\u6536\u5355\u7247\u673a\u6570\u636e\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u4ee5\u5728\u8ba1\u7b97\u673a\u4e0a\u4f7f\u7528\u7684\u683c\u5f0f\u3002<\/strong>\u5b83\u53ef\u4ee5\u7528\u6765\u5efa\u7acb\u5d4c\u5165\u5f0f\u7f51\u7edc\uff0c\u53ef\u4ee5\u7528\u6765\u8fdb\u884c\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u63a7\u5236\u7269\u8054\u7f51\u8bbe\u5907\u3002\u672c\u6587\u5c06\u4ecb\u7ecdESP32\u5982\u4f55\u63a5\u6536\u5355\u7247\u673a\u6570\u636e\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u5b83\u6765\u5b9e\u73b0\u81ea\u52a8\u5316\u7cfb\u7edf\u3002<\/p>\n ESP32\u662f\u4e00\u6b3e\u591a\u529f\u80fd\u7684\u5355\u7247\u673a\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u63a5\u6536\u5355\u7247\u673a\u6570\u636e\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u4ee5\u5728\u8ba1\u7b97\u673a\u4e0a\u4f7f\u7528\u7684\u683c\u5f0f\u3002<\/strong>ESP32\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u4e0d\u540c\u7684\u63a5\u53e3\u6765\u63a5\u6536\u5355\u7247\u673a\u6570\u636e\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662fI2C\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u63a5\u6536\u9ad8\u901f\u6570\u636e\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u4ee5\u5728\u8ba1\u7b97\u673a\u4e0a\u4f7f\u7528\u7684\u683c\u5f0f\u3002\u6b64\u5916\uff0cESP32\u8fd8\u53ef\u4ee5\u4f7f\u7528\u4e32\u884c\u63a5\u53e3\u6765\u63a5\u6536\u5355\u7247\u673a\u6570\u636e\uff0c\u8fd9\u79cd\u63a5\u53e3\u53ef\u4ee5\u63a5\u6536\u4f4e\u901f\u6570\u636e\uff0c\u4f46\u662f\u53ef\u4ee5\u63a5\u6536\u8f83\u957f\u7684\u6570\u636e\u3002<\/p>\n ESP32\u7684I2C\u63a5\u53e3\u53ef\u4ee5\u63a5\u6536\u9ad8\u901f\u6570\u636e\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u4ee5\u5728\u8ba1\u7b97\u673a\u4e0a\u4f7f\u7528\u7684\u683c\u5f0f\u3002I2C\u63a5\u53e3\u53ef\u4ee5\u63a5\u6536\u9ad8\u8fbe400KHz\u7684\u6570\u636e\uff0c\u53ef\u4ee5\u63a5\u6536\u8f83\u957f\u7684\u6570\u636e\u3002ESP32\u7684I2C\u63a5\u53e3\u53ef\u4ee5\u7528\u6765\u63a5\u6536\u5355\u7247\u673a\u7684\u6570\u636e\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u4ee5\u5728\u8ba1\u7b97\u673a\u4e0a\u4f7f\u7528\u7684\u683c\u5f0f\u3002<\/p>\n ESP32\u7684\u4e32\u884c\u63a5\u53e3\u53ef\u4ee5\u63a5\u6536\u4f4e\u901f\u6570\u636e\uff0c\u4f46\u662f\u53ef\u4ee5\u63a5\u6536\u8f83\u957f\u7684\u6570\u636e\u3002ESP32\u7684\u4e32\u884c\u63a5\u53e3\u53ef\u4ee5\u63a5\u6536\u9ad8\u8fbe115200bps\u7684\u6570\u636e\uff0c\u53ef\u4ee5\u63a5\u6536\u8f83\u957f\u7684\u6570\u636e\u3002ESP32\u7684\u4e32\u884c\u63a5\u53e3\u53ef\u4ee5\u7528\u6765\u63a5\u6536\u5355\u7247\u673a\u7684\u6570\u636e\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u4ee5\u5728\u8ba1\u7b97\u673a\u4e0a\u4f7f\u7528\u7684\u683c\u5f0f\u3002<\/p>\n ESP32\u53ef\u4ee5\u7528\u6765\u5efa\u7acb\u5d4c\u5165\u5f0f\u7f51\u7edc\uff0c\u53ef\u4ee5\u7528\u6765\u8fdb\u884c\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u63a7\u5236\u7269\u8054\u7f51\u8bbe\u5907\u3002ESP32\u53ef\u4ee5\u63a5\u6536\u5355\u7247\u673a\u6570\u636e\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u4ee5\u5728\u8ba1\u7b97\u673a\u4e0a\u4f7f\u7528\u7684\u683c\u5f0f\uff0c\u56e0\u6b64\u53ef\u4ee5\u4f7f\u7528ESP32\u6765\u5b9e\u73b0\u81ea\u52a8\u5316\u7cfb\u7edf\u3002<\/p>\n ESP32\u53ef\u4ee5\u7528\u6765\u5efa\u7acb\u5d4c\u5165\u5f0f\u7f51\u7edc\uff0c\u53ef\u4ee5\u5c06ESP32\u8fde\u63a5\u5230\u5176\u4ed6\u8bbe\u5907\uff0c\u5e76\u4f7f\u7528\u5b83\u6765\u63a7\u5236\u8bbe\u5907\u3002ESP32\u53ef\u4ee5\u4f7f\u7528Wi-Fi\u6216\u84dd\u7259\u8fde\u63a5\u5230\u5176\u4ed6\u8bbe\u5907\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e32\u884c\u63a5\u53e3\u8fde\u63a5\u5230\u5176\u4ed6\u8bbe\u5907\u3002\u4f7f\u7528ESP32\u5efa\u7acb\u5d4c\u5165\u5f0f\u7f51\u7edc\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u5316\u7cfb\u7edf\uff0c\u53ef\u4ee5\u8ba9\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u901a\u8baf\uff0c\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u63a7\u5236\u3002<\/p>\n ESP32\u53ef\u4ee5\u7528\u6765\u8fdb\u884c\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\uff0c\u53ef\u4ee5\u4f7f\u7528ESP32\u6765\u63a7\u5236\u667a\u80fd\u5bb6\u5c45\u8bbe\u5907\uff0c\u5982\u7535\u89c6\u3001\u7a7a\u8c03\u3001\u95e8\u9501\u7b49\u3002ESP32\u53ef\u4ee5\u4f7f\u7528Wi-Fi\u6216\u84dd\u7259\u8fde\u63a5\u5230\u667a\u80fd\u5bb6\u5c45\u8bbe\u5907\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e32\u884c\u63a5\u53e3\u8fde\u63a5\u5230\u667a\u80fd\u5bb6\u5c45\u8bbe\u5907\u3002\u4f7f\u7528ESP32\u8fdb\u884c\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u5316\u7cfb\u7edf\uff0c\u53ef\u4ee5\u8ba9\u667a\u80fd\u5bb6\u5c45\u8bbe\u5907\u81ea\u52a8\u63a7\u5236\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bb6\u5ead\u81ea\u52a8\u5316\u3002<\/p>\n ESP32\u53ef\u4ee5\u7528\u6765\u63a7\u5236\u7269\u8054\u7f51\u8bbe\u5907\uff0c\u53ef\u4ee5\u4f7f\u7528ESP32\u6765\u63a7\u5236\u7269\u8054\u7f51\u8bbe\u5907\uff0c\u5982\u6e29\u5ea6\u4f20\u611f\u5668\u3001\u6e7f\u5ea6\u4f20\u611f\u5668\u3001\u5149\u7167\u4f20\u611f\u5668\u7b49\u3002ESP32\u53ef\u4ee5\u4f7f\u7528Wi-Fi\u6216\u84dd\u7259\u8fde\u63a5\u5230\u7269\u8054\u7f51\u8bbe\u5907\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e32\u884c\u63a5\u53e3\u8fde\u63a5\u5230\u7269\u8054\u7f51\u8bbe\u5907\u3002\u4f7f\u7528ESP32\u63a7\u5236\u7269\u8054\u7f51\u8bbe\u5907\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u5316\u7cfb\u7edf\uff0c\u53ef\u4ee5\u8ba9\u7269\u8054\u7f51\u8bbe\u5907\u81ea\u52a8\u63a7\u5236\uff0c\u53ef\u4ee5\u5b9e\u73b0\u7269\u8054\u7f51\u81ea\u52a8\u5316\u3002<\/p>\n ESP32\u662f\u4e00\u6b3e\u591a\u529f\u80fd\u7684\u5355\u7247\u673a\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u63a5\u6536\u5355\u7247\u673a\u6570\u636e\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u4ee5\u5728\u8ba1\u7b97\u673a\u4e0a\u4f7f\u7528\u7684\u683c\u5f0f\u3002<\/strong>ESP32\u53ef\u4ee5\u4f7f\u7528I2C\u63a5\u53e3\u548c\u4e32\u884c\u63a5\u53e3\u6765\u63a5\u6536\u5355\u7247\u673a\u6570\u636e\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5efa\u7acb\u5d4c\u5165\u5f0f\u7f51\u7edc\uff0c\u53ef\u4ee5\u7528\u6765\u8fdb\u884c\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u63a7\u5236\u7269\u8054\u7f51\u8bbe\u5907\uff0c\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u5316\u7cfb\u7edf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" ESP32\u662f\u4e00\u6b3e\u591a\u529f\u80fd\u7684\u5355\u7247\u673a\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u63a5\u6536\u5355\u7247\u673a\u6570\u636e\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u4ee5\u5728\u8ba1\u7b97\u673a\u4e0a\u4f7f\u7528\u7684\u683c\u5f0f\u3002\u5b83\u53ef\u4ee5\u7528\u6765\u5efa\u7acb\u5d4c\u5165\u5f0f\u7f51\u7edc\uff0c\u53ef\u4ee5\u7528\u6765\u8fdb\u884c\u667a<\/p>\n","protected":false},"author":1,"featured_media":4132,"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":[322,83],"class_list":["post-39388","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-esp32","tag-dpj"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/39388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=39388"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/39388\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=39388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=39388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=39388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}ESP32\u5982\u4f55\u63a5\u6536\u5355\u7247\u673a\u6570\u636e<\/h2>\n
ESP32\u7684I2C\u63a5\u53e3<\/h3>\n
ESP32\u7684\u4e32\u884c\u63a5\u53e3<\/h3>\n
\u5982\u4f55\u4f7f\u7528ESP32\u5b9e\u73b0\u81ea\u52a8\u5316\u7cfb\u7edf<\/h2>\n
\u4f7f\u7528ESP32\u5efa\u7acb\u5d4c\u5165\u5f0f\u7f51\u7edc<\/h3>\n
\u4f7f\u7528ESP32\u8fdb\u884c\u667a\u80fd\u5bb6\u5c45\u63a7\u5236<\/h3>\n
\u4f7f\u7528ESP32\u63a7\u5236\u7269\u8054\u7f51\u8bbe\u5907<\/h3>\n
\u603b\u7ed3<\/h2>\n