{"id":21175,"date":"2024-02-16T15:20:24","date_gmt":"2024-02-16T07:20:24","guid":{"rendered":"https:\/\/www.circuspi.com\/?p=21175"},"modified":"2024-02-16T15:20:26","modified_gmt":"2024-02-16T07:20:26","slug":"esp32-epaper","status":"publish","type":"post","link":"https:\/\/www.circuspi.com\/index.php\/2024\/02\/16\/esp32-epaper\/","title":{"rendered":"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19"},"content":{"rendered":"\n<p><style>\n\/* ###\u5be6\u9a57\u4e0b\u4e00\u5217### *\/\n\na:link {color:#0695e4\n;}    \/* \u8a2d\u5b9a\u5c1a\u672a\u9ede\u95b1\u904e\u7684\u9023\u7d50\u6a23\u5f0f *\/\na:visited {color:#0695e4\n;} \/* \u8a2d\u5b9a\u904e\u53bb\u66fe\u7d93\u95b1\u904e\u7684\u9023\u7d50 *\/\na:hover {color:#0695e4\n;}   \/* \u8a2d\u5b9a\u6ed1\u9f20\u6e38\u6a19\u6307\u5728\u9023\u7d50\u4f4d\u7f6e\u4e0a\u7684\u6a23\u5f0f *\/\na:active {color:#0000BB;}  \/* \u8a2d\u5b9a\u4e0a\u9ede\u64ca\u904e\u7684\u9023\u7d50\u6a23\u5f0f *\/\n<\/style><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"526\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/02\/1000x526_2-1.jpg\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\" class=\"wp-image-21330\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u524d\u8a00<\/h2>\n\n\n\n<p>\u4e0a\u4e00\u7bc7\u8aaa\u660e\u4e86\u600e\u9ebc\u4f7f\u7528 I2C \u4ecb\u9762\u7684\u6eab\u6ebc\u5ea6\u611f\u6e2c\u5668\u8207 OLED\u87a2\u5e55\uff0c\u4e26\u4e14\u5c07\u6eab\u6ebc\u5ea6\u8cc7\u8a0a\u986f\u793a\u5728 OLED \u4e0a\u9762\u3002\u5728\u9019\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u5011\u6703\u4f7f\u7528\u8ddf\u4e0a\u4e00\u7bc7\u76f8\u540c\u7684\u611f\u6e2c\u5668\uff0c\u76ee\u6a19\u4e00\u6a23\u662f\u5448\u73fe\u6eab\u6ebc\u5ea6\u8cc7\u8a0a\uff0c\u53ea\u662f\u6539\u7528\u96fb\u5b50\u7d19\u986f\u793a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6750\u6599\u6e05\u55ae<\/h2>\n\n\n\n<ul>\n<li><a href=\"https:\/\/www.icshop.com.tw\/products\/368030501866\" target=\"_blank\" rel=\"noreferrer noopener\">ESP32\u958b\u767c\u677f<\/a> x1<\/li>\n\n\n\n<li><a href=\"https:\/\/www.icshop.com.tw\/products\/368112100026\" target=\"_blank\" rel=\"noreferrer noopener\">Circus SHT3x \u6eab\u6ebc\u5ea6\u611f\u6e2c\u5668\u6a21\u7d44<\/a> x1<\/li>\n\n\n\n<li><a href=\"https:\/\/www.icshop.com.tw\/products\/368031700034\" target=\"_blank\" rel=\"noreferrer noopener\">1.9\u540b \u6bb5\u78bc\u96fb\u5b50\u58a8\u6c34\u87a2\u5e55<\/a> x1<\/li>\n\n\n\n<li><a href=\"https:\/\/www.icshop.com.tw\/products\/368070100145\" target=\"_blank\" rel=\"noreferrer noopener\">micro USB \u50b3\u8f38\u7dda<\/a> x1<\/li>\n\n\n\n<li><a href=\"https:\/\/www.icshop.com.tw\/products\/368090200053\" target=\"_blank\" rel=\"noreferrer noopener\">\u9eb5\u5305\u677f<\/a> x1<\/li>\n\n\n\n<li><a href=\"https:\/\/www.icshop.com.tw\/products\/3681101000174\" target=\"_blank\" rel=\"noreferrer noopener\">\u675c\u90a6\u7dda\uff08\u516c-\u516c\uff09<\/a> x4<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">91 \u6bb5\u96fb\u5b50\u7d19\u7c21\u4ecb<\/h2>\n\n\n\n<p>\u672c\u6587\u4f7f\u7528\u7684\u96fb\u5b50\u7d19\u662f\u5c08\u9580\u70ba\u4e86\u986f\u793a\u6eab\u6fd5\u5ea6\u8cc7\u8a0a\u800c\u8a2d\u8a08\uff0c\u4e5f\u662f\u4e00\u6b3e\u4ee5\u6bb5\u843d\uff08segment\uff09\u69cb\u6210\u7684\u96fb\u5b50\u7d19\u3002\u5b83\u4f7f\u7528\u5fae\u81a0\u56ca\u96fb\u6cf3\u986f\u793a\u5668\u6280\u8853\uff0c\u64c1\u670991\u500b\u986f\u793a\u6bb5\u843d\uff0c\u80fd\u986f\u793a\u9ed1\u767d\u96d9\u8272\uff0c\u4e26\u4e14\u4ee5I2C\u4ecb\u9762\u901a\u8a0a\u3002\u5176\u986f\u793a\u6548\u679c\u5c31\u5982\u540c\u96fb\u5b50\u9418\u6216\u96fb\u5b50\u9336\uff0c\u6709\u4e7e\u6de8\u7c21\u55ae\u7684\u4ecb\u9762\uff0c\u5728\u5448\u73fe\u6eab\u6fd5\u5ea6\u8cc7\u8a0a\u6642\u76f8\u7576\u6e05\u695a\u76f4\u89ba\uff0c\u800c\u4e14\u5373\u4f7f\u5728\u65b7\u96fb\u5f8c\u4e5f\u53ef\u4ee5\u7dad\u6301\u524d\u4e00\u6b21\u7684\u986f\u793a\u5167\u5bb9\uff0c\u5c31\u7b97\u6c92\u5728\u5de5\u4f5c\u4e5f\u4e0d\u5bb9\u6613\u88ab\u767c\u73fe\uff08\u5582\uff5e\uff08\u00b4\u25d4 \u2083 \u25d4`)<\/p>\n\n\n\n<p>\u87a2\u5e55\u6700\u5927\u7684\u986f\u793a\u7bc4\u570d\u53ef\u4ee5\u5230199.9 \u00b0C\uff0f\u00b0F\uff0c\u820799.9 %\u7684\u76f8\u5c0d\u6fd5\u5ea6\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/image.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\" class=\"wp-image-21176\" width=\"349\" height=\"465\"\/><figcaption class=\"wp-element-caption\">\u5c07\u5168\u90e8\u6bb5\u843d\u4e00\u8d77\u986f\u793a\u7684\u6548\u679c<\/figcaption><\/figure><\/div>\n\n\n<p><strong>\ud83d\udca1<\/strong> Tips<\/p>\n\n\n\n<p>\u95dc\u65bc\u96fb\u5b50\u7d19\u7684\u986f\u793a\u539f\u7406\uff0c\u53ef\u4ee5\u53c3\u8003\u300c<a href=\"https:\/\/www.circuspi.com\/index.php\/2024\/01\/15\/esp32-spi-epaper-module\/\" target=\"_blank\" rel=\"noreferrer noopener\">ESP32\u6559\u5b78\u7cfb\u5217(\u4e5d)\uff1a\u5be6\u6230 SPI ePaper \u96fb\u5b50\u7d19\u6a21\u7d44<\/a>\u300d\u7684\u5167\u5bb9\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5916\u89c0<\/h3>\n\n\n\n<p>\u6211\u5011\u4f7f\u7528\u7684\u662f\u5e36\u6709\u9a45\u52d5\u677f\u7684\u96fb\u5b50\u7d19\u6a21\u7d44\uff0c\u9a45\u52d5\u677f\u900f\u904eFPC\u9023\u63a5\u5668\u8207\u87a2\u5e55\u8edf\u6392\u7dda\u9023\u63a5\u3002\u5728\u6a21\u7d44\u7684\u80cc\u9762\u5169\u5074\u5404\u5f15\u51fa\u4e86\u4e00\u6392\u6392\u91dd\uff0c\u9019\u5169\u6392\u7684\u529f\u80fd\u90fd\u5b8c\u5168\u76f8\u540c\uff0c\u4f7f\u7528\u6642\u53ea\u9700\u8981\u9078\u64c7\u5176\u4e2d\u4e00\u908a\u9023\u63a5\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u901a\u8a0a\u90e8\u5206\u4f7f\u7528I2C\u4ecb\u9762\uff0c\u4f46\u8207\u4e00\u822cI2C\u88dd\u7f6e\u4e0d\u540c\u7684\u662f\u9084\u8981\u53e6\u5916\u9023\u63a5BUSY\u548cRESET\u9019\u5169\u96bb\u63a5\u8173\uff0c\u6240\u4ee5\u52a0\u4e0a\u96fb\u6e90\u4e00\u5171\u67096\u6839\u63a5\u8173\u3002\u8cfc\u8cb7\u6642\u4e5f\u6703\u9644\u4e0a\u4e00\u689d6 Pin\u7684\u675c\u90a6\u6392\u7dda\uff0c\u65b9\u4fbf\u8207\u9eb5\u5305\u677f\u9023\u63a5\u6216\u662f\u76f4\u63a5\u63d2\u5230\u958b\u767c\u677f\u505a\u4f7f\u7528\u3002<\/p>\n\n\n\n<p>\u6a21\u7d44\u7684\u80cc\u9762\u5df2\u7d93\u8a2d\u8a08\u4e86\u96fb\u58d3\u8f49\u63db\u96fb\u8def\uff0c\u56e0\u6b64VCC\u96fb\u6e90\u53ef\u4ee5\u9023\u63a55V\u6216\u662f3.3V\uff0c\u5c31\u7b97\u662fArduino UNO\u9019\u985e\u96fb\u58d3\u6e96\u4f4d\u662f5V\u7684\u958b\u767c\u677f\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/image-1.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\" class=\"wp-image-21177\" width=\"720\" height=\"540\"\/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">\u53c3\u6578\u8207\u898f\u683c<\/h3>\n\n\n\n<p>\u96fb\u5b50\u7d19\u7684\u5927\u5c0f\u662f 1.9 \u82f1\u5bf8\u3002\u5c07\u5b83\u548c ESP32 \u958b\u767c\u677f\u5c0d\u6bd4\uff0c\u63d0\u4f9b\u8b80\u8005\u53c3\u8003\u87a2\u5e55\u7684\u6bd4\u4f8b\u8207\u5c3a\u5bf8\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/image-2.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\" class=\"wp-image-21178\" width=\"720\" height=\"540\"\/><\/figure><\/div>\n\n\n<p>\u8a73\u7d30\u7684\u53c3\u6578\u8acb\u53c3\u8003\u4e0b\u8868\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td>\u6a21\u7d44\u5c3a\u5bf8<\/td><td class=\"has-text-align-left\" data-align=\"left\">51mm \u00d7 34 mm<\/td><\/tr><tr><td>\u986f\u793a\u7bc4\u570d<\/td><td class=\"has-text-align-left\" data-align=\"left\">41.35mm \u00d7 28.11 mm<\/td><\/tr><tr><td>\u5de5\u4f5c\u96fb\u58d3<\/td><td class=\"has-text-align-left\" data-align=\"left\">3.3V \/ 5V (\u901a\u8a0a\u96fb\u58d3\u8981\u8ddf\u5de5\u4f5c\u96fb\u58d3\u4e00\u81f4)<\/td><\/tr><tr><td>\u901a\u8a0a\u4ecb\u9762<\/td><td class=\"has-text-align-left\" data-align=\"left\">I2C<\/td><\/tr><tr><td>\u6bb5\u843d<\/td><td class=\"has-text-align-left\" data-align=\"left\">91\u6bb5<\/td><\/tr><tr><td>\u986f\u793a\u984f\u8272<\/td><td class=\"has-text-align-left\" data-align=\"left\">\u9ed1\u3001\u767d<\/td><\/tr><tr><td>\u5c40\u90e8\u5237\u65b0\u6642\u9593<\/td><td class=\"has-text-align-left\" data-align=\"left\">0.3 \u79d2<\/td><\/tr><tr><td>\u5237\u65b0\u6642\u9593<\/td><td class=\"has-text-align-left\" data-align=\"left\">1.5 \u79d2<\/td><\/tr><tr><td>\u5237\u65b0\u529f\u8017<\/td><td class=\"has-text-align-left\" data-align=\"left\">&lt; 5 mW (typically)<\/td><\/tr><tr><td>\u4f11\u7720\u96fb\u6d41<\/td><td class=\"has-text-align-left\" data-align=\"left\">&lt; 0.01uA<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Address Frame<\/h3>\n\n\n\n<p>\u9019\u7247\u96fb\u5b50\u7d19\u7684\u901a\u8a0a\u65b9\u5f0f\u90fd\u8207\u4e00\u822c\u7684I2C\u76f8\u540c\uff0c\u6bd4\u8f03\u9700\u8981\u8aaa\u660e\u7684\u662f\u5b83\u7684 I2C Address Frame\u3002Address Frame\u7e3d\u5171\u67098 bits\uff0c\u5176\u4e2d\u76847-bit\u662f\u96fb\u5b50\u7d19\u7684I2C\u4f4d\u5740(slave address)\uff0c\u7b2c8\u500bbit\u5247\u662f\u7528\u4f86\u8868\u793a\u8b80\u6216\u5beb\u3002\u56e0\u6b64\u5728ESP32\u50b3\u9001\u6307\u4ee4\u7d66\u96fb\u5b50\u7d19\u6642\uff0caddres frame\u7684\u5167\u5bb9\u662f0x3C\uff0c\u800cESP32\u5728\u63a5\u6536\u96fb\u5b50\u7d19\u56de\u50b3\u7684\u8cc7\u6599\u6642\uff0caddress frame\u662f0x3D\u3002<\/p>\n\n\n\n<figure class=\"wp-block-gallery aligncenter has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"613\" data-id=\"21183\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/Untitled-2-1.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\" class=\"wp-image-21183\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"613\" data-id=\"21182\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/Untitled-1-1.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\" class=\"wp-image-21182\"\/><\/figure>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u986f\u793a\u539f\u7406<\/h3>\n\n\n\n<p>\u6bb5\u843d\u96fb\u5b50\u7d19\u662f\u7531\u56fa\u5b9a\u4f4d\u7f6e\u7684\u6bb5\u843d\uff08segment\uff09\u7d44\u6210\uff0c\u800c\u6bcf\u4e00\u500b\u6bb5\u843d\u90fd\u53ea\u6709\u9ed1\u3001\u767d\u5169\u7a2e\u72c0\u614b\uff0c\u56e0\u6b64\u6211\u5011\u53ef\u4ee5\u75281bit\u4f86\u8868\u793a\u4e00\u500b\u6bb5\u843d\u7684\u72c0\u614b\uff1a \u201d1\u201d\u4ee3\u8868\u9ed1\u8272\uff1b\u201d0\u201d\u4ee3\u8868\u767d\u8272\uff0c\u4e5f\u5c31\u662f\u4e0d\u986f\u793a\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u756b\u9762\u986f\u793a<\/h3>\n\n\n\n<p>\u96fb\u5b50\u7d19\u7684\u756b\u9762\u7e3d\u5171\u75317\u500b\u6578\u5b57\u548c\u5176\u4ed6\u7b26\u865f\u7d44\u6210\uff0c\u4e14\u4e00\u500b\u5b8c\u6574\u7684\u6578\u5b57\u9700\u8981\u75282 Byte\u8868\u793a\u3002\u5c07\u87a2\u5e55\u4e0a\u7684\u6bcf\u500b\u6578\u5b57\u3001\u5c0f\u6578\u9ede\u8207\u7b26\u865f\u90fd\u7b97\u9032\u53bb\uff0c\u7e3d\u5171\u6703\u7528\u523015\u500bByte\u4f86\u986f\u793a\u756b\u9762\u4e0a\u7684\u8cc7\u8a0a\u3002<\/p>\n\n\n\n<p>\u6bcf\u500b\u6578\u5b57\u6216\u7b26\u865f\u90fd\u6709\u5176\u5c0d\u61c9\u7684\u8cc7\u6599\u6b04\u4f4d\uff0c\u6240\u4ee5\u53ea\u8981\u5f04\u6e05\u695a\u6578\u5b57\u5c0d\u61c9\u7684\u7de8\u78bc\u8ddf\u5b83\u5011\u6240\u5728\u7684\u8cc7\u6599\u6b04\u4f4d\uff0c\u5c31\u53ef\u4ee5\u986f\u793a\u51fa\u60f3\u8981\u7684\u7d50\u679c\u4e86\uff01<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"874\" height=\"940\" data-id=\"21200\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/Untitled-3-3.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\n\" class=\"wp-image-21200\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"887\" height=\"925\" data-id=\"21201\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/Untitled-4-3.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\n\" class=\"wp-image-21201\"\/><\/figure>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u6578\u5b57\u7684\u7de8\u78bc<\/h3>\n\n\n\n<p>\u73fe\u5728\u6211\u5011\u77e5\u9053\u756b\u9762\u4e0a\u6bcf\u500b\u7b26\u865f\u7684\u8868\u793a\u65b9\u6cd5\u4e86\uff0c\u63a5\u4e0b\u4f86\u5c31\u4f86\u770b\u4e00\u770b\u5982\u4f55\u986f\u793a\u6578\u5b57\u3002<\/p>\n\n\n\n<p>\u4e00\u500b\u5b8c\u6574\u7684\u6578\u5b57\u670913\u500b\u6bb5\u843d\uff0c\u800c1\u500bByte\u7684\u8cc7\u6599\u53ea\u67098\u4f4d\u5143\uff0c\u7121\u6cd5\u5132\u5b5813\u500b\u6bb5\u843d\uff0c\u6240\u4ee5\u7e3d\u5171\u9700\u8981\u7528\u5230 2\u500bByte \u4f86\u5132\u5b58\uff0c\u9019\u5169\u500bByte\u5c31\u662f\u6211\u5011\u5728\u4e0b\u9762\u7684\u8868\u683c\u4e2d\u63d0\u5230\u7684High Byte\u548c Low Byte\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/image-5.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\n\" class=\"wp-image-21188\" width=\"174\" height=\"378\"\/><figcaption class=\"wp-element-caption\">\u4e00\u500b\u6578\u5b57\u5171\u670913\u500b\u6bb5\u843d (\u6578\u5b57\u6a19\u793a\u50c5\u4f5c\u70ba\u53c3\u8003)<\/figcaption><\/figure>\n\n\n\n<p>\u6240\u6709\u6578\u5b57\u90fd\u662f\u75282\u500bByte\u4f86\u8868\u793a\uff0c\u5176\u4e2d\u7684\u7279\u4f8b\u662f\u6eab\u5ea6\u6b04\u4f4d\u7684\u767e\u4f4d\u6578\uff0c\u56e0\u70ba\u53ea\u67095\u500b\u6bb5\u843d\uff0c\u6240\u4ee5\u53ea\u9700\u8981 1 Byte\u3002<\/p>\n\n\n\n<p>\u6bb5\u843d\u8207\u4f4d\u5143\u7684\u95dc\u4fc2\u5982\u4e0b\u5716\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/image-6.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\n\" class=\"wp-image-21189\" width=\"770\" height=\"426\"\/><\/figure>\n\n\n\n<p>\u90a3\u9ebc\u90192 Byte\u7684\u5167\u5bb9\u8981\u5982\u4f55\u8868\u793a\u6210\u96fb\u5b50\u7d19\u770b\u5f97\u61c2\u7684\u683c\u5f0f\u5462\uff1f\u7de8\u78bc\u7684\u65b9\u6cd5\u662fHigh Bytr\u5728\u524d\uff0cLow Byte\u5728\u5f8c\u3002<\/p>\n\n\n\n<p>\u4ee5\u986f\u793a\u6578\u5b573\u70ba\u4f8b\uff0c\uff08\u8acb\u5c0d\u7167\u4e0b\u65b9\u5716\u8868\uff09High Byte\u7684\u5167\u662f0xF5\uff0cLow Byte\u7684\u5167\u5bb9\u662f0x1F\uff0c\u6240\u4ee5\u201d3\u5c0d\u61c9\u201d\u7684\u7de8\u78bc\u5c31\u662f{0xF5, 0x1F}\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/image-7.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\n\" class=\"wp-image-21190\" width=\"640\" height=\"269\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"335\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/image-8.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\n\" class=\"wp-image-21191\"\/><\/figure>\n\n\n\n<p>\u6240\u6709\u7684\u6578\u5b57\u90fd\u662f\u7528\u9019\u7a2e\u7de8\u78bc\u4f86\u8868\u793a\uff0c\u4e0b\u8868\u5217\u51fa\u4e86\u6bcf\u500b\u6578\u5b57\u8207\u5176\u5c0d\u61c9\u7684\u7de8\u78bc\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/image-9.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\n\" class=\"wp-image-21192\" width=\"339\" height=\"456\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u7bc4\u4f8b: \u986f\u793a SHT3x\u4e0a\u7684\u6eab\u6ebc\u5ea6\u6578\u503c<\/h2>\n\n\n\n<p>\u77ad\u89e3\u5982\u4f55\u5728\u96fb\u5b50\u7d19\u4e0a\u986f\u793a\u6578\u503c\u5f8c\uff0c\u6211\u5011\u4f86\u770b\u770b\u7bc4\u4f8b\u5427\uff01\u9019\u500b\u7bc4\u4f8b\u6703\u7d50\u5408\u4e0a\u4e00\u7bc7\u7684SHT3x\u7bc4\u4f8b\u7a0b\u5f0f\uff0c\u5c07\u8b80\u53d6\u5230\u7684\u6eab\u6fd5\u5ea6\u6578\u503c\u986f\u793a\u5230\u96fb\u5b50\u7d19\u4e0a\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5148\u5099\u689d\u4ef6: \u5b89\u88ddAdafruit SHT31 \u51fd\u5f0f\u5eab<\/h3>\n\n\n\n<p>(\u5728\u4e0a\u4e00\u7bc7\u5b89\u88dd\u904e\u7684\u8b80\u8005\uff0c\u53ef\u8df3\u904e\u6b64\u6b65\u9a5f \u2500=\u2261\u03a3((( \u3064\u2022\u0300\u03c9\u2022\u0301)\u3064)<\/p>\n\n\n\n<p>\u5728Arduino IDE\u7684Library Manager\u4e2d\u641c\u5c0b Adafruit SHT31\uff0c\u5b89\u88dd\u4e0b\u5716\u4e2d\u7d05\u6846\u90e8\u5206\u7684\u51fd\u5f0f\u5eab\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/image-10.png\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\n\" class=\"wp-image-21193\" width=\"334\" height=\"411\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u9023\u63a5\u793a\u610f\u5716<\/h3>\n\n\n\n<p>\u6211\u5011\u4e00\u6a23\u4f7f\u7528ESP32 I2C\u5728Arduino IDE\u7684\u9810\u8a2d\u63a5\u8173 \uff1aGPIO 21 (SDA) \u548c GPIO 22 (SDL)\u3002\u7531\u65bcSHT3x\u6a21\u7d44\u548c\u96fb\u5b50\u7d19\u90fd\u662f\u4f7f\u7528I2C\u901a\u8a0a\uff0c\u56e0\u6b64\u53ef\u4ee5\u9023\u63a5\u5230\u540c\u4e00\u500bbus\u4e0a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>ESP32<\/th><th>SHT3x<\/th><th>91\u6bb5\u96fb\u5b50\u7d19<\/th><\/tr><\/thead><tbody><tr><td>3V3<\/td><td>VCC<\/td><td>VCC<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><td>GND<\/td><\/tr><tr><td>GPIO 21<\/td><td>SDA<\/td><td>SDA<\/td><\/tr><tr><td>GPIO 22<\/td><td>SCL<\/td><td>SCL<\/td><\/tr><tr><td>GPIO 26<\/td><td>&#8211;<\/td><td>BUSY<\/td><\/tr><tr><td>GPIO 27<\/td><td>&#8211;<\/td><td>RST<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u7bc4\u4f8b\u7a0b\u5f0f\u78bc<\/h3>\n\n\n\n<p>\u9019\u500b\u7a0b\u5f0f\u7684\u529f\u80fd\u662f\u6bcf5\u79d2\u611f\u6e2c\u4e00\u6b21\u74b0\u5883\u7684\u6eab\u6ebc\u5ea6\uff0c\u4e26\u4ee5180\u79d2\u70ba\u9593\u9694\u91cd\u65b0\u5237\u65b0\u4e00\u6b21\u87a2\u5e55\u3002<\/p>\n\n\n\n<p>\u56e0\u6a94\u6848\u8f03\u591a\uff0c\u8acb\u76f4\u63a5\u5230\u6211\u5011\u7684Github Repository\u4e0b\u8f09\u6216\u67e5\u770b\u3002\uff08<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/CIRCUSPi\/ESP32_articles\/tree\/master\/example11\" target=\"_blank\">\u9ede\u6211<\/a>\uff09<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u57f7\u884c\u6548\u679c<\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"466\" height=\"350\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2024\/01\/IMG_2902_2.gif\" alt=\"ESP32 \u6559\u5b78\u7cfb\u5217(\u5341\u4e00)\uff1a\u7528 ESP32 \u73a9 91 \u6bb5\u96fb\u5b50\u7d19\n\" class=\"wp-image-21204\"\/><figcaption class=\"wp-element-caption\">\u5728\u91cd\u65b0\u5237\u65b0\u7684\u904e\u7a0b\u4e2d\uff0c\u87a2\u5e55\u5448\u73fe\u9ed1\u767d\u9583\u720d\u662f\u6b63\u5e38\u73fe\u8c61\u3002<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5c0f\u7d50<\/h2>\n\n\n\n<p>\u5728\u9019\u7bc7\u6587\u7ae0\u4e2d\u6211\u5011\u5c0d\u9019\u7247\u96fb\u5b50\u7d19\u505a\u4e86\u8a73\u7d30\u7684\u4ecb\u7d39\uff0c\u540c\u6642\u4e5f\u8aaa\u660e\u4e86\u5982\u4f55\u5728<a rel=\"noreferrer noopener\" href=\"https:\/\/www.waveshare.net\/\" target=\"_blank\">\u5fae\u96ea<\/a>\u768491\u6bb5\u96fb\u5b50\u7d19\u986f\u793a\u6eab\u6ebc\u5ea6\u8cc7\u8a0a\u3002\u5be6\u969b\u6e2c\u8a66\u4ee5\u5f8c\uff0c\u7b46\u8005\u8a8d\u70ba\u9019\u6b3e\u96fb\u5b50\u7d19\u5728\u986f\u793a\u4e0a\u5b8c\u5168\u53ef\u4ee5\u53d6\u4ee3\u50b3\u7d71\u7684\u6db2\u6676\u986f\u793a\u5668\uff0c\u96fb\u5b50\u7d19\u5728\u975c\u6b62\u986f\u793a\u72c0\u614b\u4e0b\u5e7e\u4e4e\u4e0d\u8017\u4efb\u4f55\u96fb\u91cf \uff0c\u5237\u65b0\u6240\u9700\u7684\u96fb\u6d41\u4e5f\u5f88\u5c0f\uff0c\u518d\u642d\u914d ESP32 \u7684 Sleep Mode \u5c31\u6703\u5f88\u9069\u5408\u7528\u5728\u6709\u4f4e\u529f\u8017\u9700\u6c42\u4e14\u9700\u8981\u87a2\u5e55\u986f\u793a\u7684\u5c08\u6848\u3002<\/p>\n\n\n\n<p>\u9019\u7247\u96fb\u5b50\u7d19\u7684\u53e6\u4e00\u9805\u512a\u9ede\u662f\uff0c\u5b83\u548c\u5e38\u898b\u7684\u6eab\u6ebc\u5ea6\u611f\u6e2c\u5668\uff08\u4f8b\u5982BME280\u3001HTU21D\u3001SHT31\uff09\u90fd\u662f\u4f7f\u7528I2C\u901a\u8a0a\u754c\u9762\uff0c\u6240\u4ee5\u5728\u786c\u9ad4\u9023\u63a5\u7684\u90e8\u5206\u53ef\u4ee5\u5171\u7528\u76f8\u540c\u7684\u63a5\u8173\uff0c\u80fd\u6709\u6548\u7684\u7bc0\u7701I\/O\u63a5\u8173\u7684\u4f7f\u7528\u6578\u91cf\uff0c\u5982\u679c\u60a8\u7684\u5c08\u6848\u9700\u8981\u986f\u793a\u6eab\u6ebc\u5ea6\u8cc7\u8a0a\uff0c\u4e0d\u59a8\u53ef\u4ee5\u8003\u616e\u5b83\u54e6\uff01d(`\uff65\u2200\uff65)b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u4e00\u7bc7\u8aaa\u660e\u4e86\u600e\u9ebc\u4f7f\u7528 I2C \u4ecb\u9762\u7684\u6eab\u6ebc\u5ea6\u611f\u6e2c\u5668\u8207 OLED\u87a2\u5e55\uff0c\u4e26\u4e14\u5c07\u6eab\u6ebc\u5ea6\u8cc7\u8a0a\u986f\u793a\u5728 OLED \u4e0a\u9762\u3002\u5728\u9019\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u5011\u6703\u4f7f\u7528\u8ddf\u4e0a\u4e00\u7bc7\u76f8\u540c\u7684\u611f\u6e2c\u5668\uff0c\u76ee\u6a19\u4e00\u6a23\u662f\u5448\u73fe\u6eab\u6ebc\u5ea6\u8cc7\u8a0a\uff0c\u53ea\u662f\u6539\u7528\u96fb\u5b50\u7d19\u986f\u793a\u3002<\/p>\n","protected":false},"author":1,"featured_media":21331,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[235,238],"tags":[],"table_tags":[],"_links":{"self":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/21175"}],"collection":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/comments?post=21175"}],"version-history":[{"count":19,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/21175\/revisions"}],"predecessor-version":[{"id":21333,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/21175\/revisions\/21333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/media\/21331"}],"wp:attachment":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/media?parent=21175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/categories?post=21175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/tags?post=21175"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/table_tags?post=21175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}