{"id":742,"date":"2022-12-16T22:35:23","date_gmt":"2022-12-16T14:35:23","guid":{"rendered":"http:\/\/wordpress.loc\/?p=742"},"modified":"2022-12-16T22:35:54","modified_gmt":"2022-12-16T14:35:54","slug":"esp32_ch3-12","status":"publish","type":"post","link":"https:\/\/www.nmking.io\/index.php\/2022\/12\/16\/742\/","title":{"rendered":"[\u6a21\u7d44] LD3320 \u96e2\u7dda\u8a9e\u97f3\u8fa8\u8b58\u6676\u7247\u8207 ESP32 \u7121\u7dda\u50b3\u8f38"},"content":{"rendered":"\n<figure class=\"wp-block-pullquote\"><blockquote><p>\u4f7f\u7528\u96e2\u7dda\u8a9e\u97f3\u8fa8\u8b58\u6676\u7247 LD3320\uff0c\u7372\u5f97\u8fa8\u8b58\u7d50\u679c\u5f8c\u900f\u904e ESP32S \u7121\u7dda\u6a21\u7d44\u50b3\u8f38\u5230\u53e6\u4e00\u584a\u7121\u7dda\u6a21\u7d44\u4e0a\u986f\u793a\u51fa\u7d50\u679c<\/p><\/blockquote><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u6211\u7684ESP32\u5be6\u505a\u66f8\u7c4d\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/www.nmking.io\/index.php\/2022\/11\/10\/esp32_ch1-2\/\" target=\"_blank\">\u6211\u51fa\u66f8\u4e86 ESP32 \u7269\u806f\u7db2\u5c08\u984c<\/a><br>\u535a\u5ba2\u4f86\u7db2\u5740\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/www.books.com.tw\/products\/0010901195\" target=\"_blank\">https:\/\/www.books.com.tw\/products\/0010901195<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p>\u672c\u7bc7\u662f\u5b8c\u5168\u8907\u88fd\u4f5c\u8005\u6f22\u4e9e\u79d1\u6280\uff0c\u539f\u59cb\u9023\u7d50\uff1ahttps:\/\/han-ya.blogspot.com\/2021\/02\/ld3320-esp32.html<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5be6\u9a57\u8aaa\u660e<\/h2>\n\n\n\n<p>\u4f7f\u7528\u96e2\u7dda\u8a9e\u97f3\u8fa8\u8b58\u6676\u7247 LD3320\uff0c\u7372\u5f97\u8fa8\u8b58\u7d50\u679c\u5f8c\u900f\u904e ESP32S \u7121\u7dda\u6a21\u7d44\u50b3\u8f38\u5230\u53e6\u4e00\u584a\u7121\u7dda\u6a21\u7d44\u4e0a\u986f\u793a\u51fa\u7d50\u679c\uff0c\u5982\u4e0b\u5716\u4e00\u6240\u793a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7121\u7dda\u6a21\u7d44 ESP32<\/h2>\n\n\n\n<p>\u7121\u7dda\u6a21\u7d44 ESP \u7cfb\u5217\u662f\u4e0a\u6d77\u6a02\u946b\u6240\u958b\u767c\uff0c\u7d93\u7531\u5b89\u4fe1\u53ef\u4e8c\u6b21\u958b\u767c\u5f8c\u63a8\u5ee3\uff0c\u6a21\u7d44\u63d0\u4f9b AT command (UART) \u7684\u65b9\u5f0f\u9032\u884c\u63a7\u5236\uff0c\u4f46\u9019\u7a2e\u65b9\u5f0f\u4f7f\u7528\u8d77\u4f86\u7e3d\u662f\u89ba\u5f97\u9694\u4e86\u4e00\u5c64\u7d17\uff0c\u6709\u5c64\u8ddd\u96e2\u611f\uff0c\u64cd\u63a7\u4e0a\u53cd\u61c9\u6216\u901f\u5ea6\u4e0d\u5920\u5373\u6642\u3002<br><br>\u5e78\u904b\u7684\u662f\uff0c\u96a8\u8457\u9019\u584a\u6a21\u7d44\u7684\u751f\u614b\u7cfb\u8d8a\u4f86\u8d8a\u6210\u719f\uff0c\u4f7f\u7528\u8005\u4e5f\u8d8a\u591a\u4e86\uff0cESP \u6a21\u7d44\u5df2\u7d93\u80fd\u50cf Arduino \u4e00\u6a23\uff0c\u53ef\u4ee5\u5728 Arduino IDE \u74b0\u5883\u4e0b\u958b\u767c\u7de8\u8b6f\u4e26\u4e0b\u8f09\uff0c\u540c\u6642\u4e0d\u5c11\u958b\u767c\u8005\u4e5f\u5206\u4eab\u5404\u985e\u7121\u7dda\u6a21\u7d44\u7684\u6848\u4f8b\uff0c\u65b9\u4fbf\u6211\u5011\u62ff\u4f86\u53c3\u8003 [1][2]\u3002<br><br>\u7814\u7a76\u904e\u7a0b\u4e2d\uff0c\u767c\u73fe ESP32S \u4e0a\u9762\u7684 FLASH \u6240\u5c6c\u7684\u63a5\u8173\u4e0d\u80fd\u76f4\u63a5\u62ff\u4f86\u7576\u4f5c GPIO \u4f7f\u7528\uff0c\u56e0\u70ba\u9019\u6a23\u6703\u5f71\u97ff\u5230 IDE \u71d2\u9304\uff0cFLASH D0-D3 + CMD + SCK \u6b63\u597d\u5c0d\u61c9\u5230 GPIO 6-11\uff0c\u96fb\u8def\u898f\u5283\u6642\u5f97\u907f\u958b\u4f7f\u7528\u9019\u5e7e\u6839 I\/O\u3002<br><br>\u53e6\u5916\uff0c\u9019\u584a ESP32S \u6a21\u7d44\u6709\u63d0\u4f9b 3.3V \u548c 5V \u8f38\u51fa\uff0c\u6b63\u597d LCD_I2C \u6a21\u7d44\u9700\u8981\u5403 5V \u96fb\u58d3\uff0c\u800c\u8a9e\u97f3\u8fa8\u8b58\u6676\u7247\u5403 3.3V \u96fb\u58d3\uff0c\u80fd\u540c\u6642\u6eff\u8db3\u958b\u767c\u7684\u9700\u6c42\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/1.bp.blogspot.com\/-Cin1bLMmrVs\/YBn7wyz2YPI\/AAAAAAAAJJs\/M096ha-Ahys4JXXkaXqmUvJIz7HrePbfACLcBGAsYHQ\/w480-h640\/ESP32S-2.jpg?resize=839%2C1119&#038;ssl=1\" alt=\"\" width=\"839\" height=\"1119\"\/><figcaption class=\"wp-element-caption\">\u5716\u4e00\uff1a\u4ee5\u7121\u7dda\u50b3\u8f38\u8a9e\u97f3\u8fa8\u8b58\u7684\u7d50\u679c<\/figcaption><\/figure>\n\n\n\n<p>ESP32S \u662f\u540c\u6642\u5177\u6709 WiFi \u548c\u85cd\u82bd\u529f\u80fd\u7684\u6a21\u7d44\uff0c\u5be6\u9a57\u4e2d\uff0c\u6211\u5011\u4f7f\u7528\u6a21\u7d44\u7684\u85cd\u82bd\u50b3\u8f38\u529f\u80fd\uff0c\u4e26\u53c3\u8003\u7bc4\u4f8b\u4e2d\u7684 BluetoothSerial \u7a0b\u5f0f\uff0c\u901a\u8a0a\u7684\u4e00\u7aef\u4ee3\u78bc\u662f Bluetooth Master\uff0c\u53e6\u4e00\u7aef\u70ba Bluetooth Slave\uff0c\u4e0b\u5716\u4e8c\u662f\u5169\u908a\u4ee3\u78bc\u7684\u8aaa\u660e\u3002<br><br>\u5c07 Slave \u7aef\u8a2d\u5b9a\u85cd\u82bd\u540d\u7a31 (ESP32-ASR) \u5f8c\uff0c\u7b49\u5f85 Master \u4f86\u9023\u63a5\uff0c\u5728 Master \u7aef\u5247\u5c0d\u540d\u7a31 (ESP32-ASR) \u767c\u51fa\u9023\u7dda\u8acb\u6c42\uff0c\u63a5\u8457\u96d9\u65b9\u5c31\u6703\u81ea\u52d5\u9023\u63a5\u6210\u529f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/1.bp.blogspot.com\/-gxy9R2CIJFk\/YBoMdOATNOI\/AAAAAAAAJJ4\/JGefsI4mUDMyhaqZRXilwvrLbO8UMjcqwCLcBGAsYHQ\/w640-h318\/%25E8%259E%25A2%25E5%25B9%2595%25E6%2593%25B7%25E5%258F%2596%25E7%2595%25AB%25E9%259D%25A2%2B2021-02-03%2B103252.jpg?resize=841%2C418&#038;ssl=1\" alt=\"\" width=\"841\" height=\"418\"\/><figcaption class=\"wp-element-caption\">\u5716\u4e8c\uff1a\u85cd\u82bd\u901a\u8a0a\u96d9\u65b9\u7684\u539f\u59cb\u78bc<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u96e2\u7dda\u8a9e\u97f3\u8fa8\u8b58<\/h2>\n\n\n\n<p>LD3320 \u662f\u5341\u5e74\u524d\u7684\u8a9e\u97f3\u8fa8\u8b58\u6676\u7247 [3]\uff0c\u4e3b\u8981\u8fa8\u8b58\u4e2d\u6587\uff0c\u5df2\u4e0d\u662f\u65b0\u9bae\u8ca8\u3002\u5b83\u4e0d\u9700\u8981\u9023\u4e0a\u96f2\u7aef\uff0c\u53ea\u8981\u8a2d\u5b9a\u597d\u8fa8\u8b58\u7684\u5b57\u53e5\u5132\u5b58\u5230\u6676\u7247\u7684\u66ab\u5b58\u5668\u5167\uff0c\u5b83\u5c31\u80fd\u9032\u884c\u96e2\u7dda\u8fa8\u8b58\u3002<br><br>\u512a\u9ede\u662f\u8fa8\u8b58\u904e\u7a0b\u5f88\u5feb\uff0c\u800c\u4e14\u662f\u4e0d\u7279\u5b9a\u4eba\u7684\u8fa8\u8b58\u65b9\u5f0f\uff0c\u5c0d\u65bc\u8a2d\u5b9a\u5f8c\u7684\u5b57\u53e5\uff0c\u5176\u8fa8\u8b58\u6e96\u78ba\u7387\u7b97\u4e0d\u932f\u7684 (\u5728\u7121\u566a\u97f3\u5e72\u64fe\u74b0\u5883\u4e0b)\u3002<br><br>\u7136\u800c\uff0c\u5176\u7f3a\u9ede\u662f\u91dd\u5c0d\u4e0d\u7279\u5b9a\u8a9e\u53e5\u7684\u8fa8\u8b58\uff0c\u5982\u679c\u8b1b\u4e86\u4e00\u6bb5\u4e0d\u662f\u4e00\u958b\u59cb\u8a2d\u5b9a\u7d66\u6676\u7247\u7684\u5b57\u53e5\uff0c\u6676\u7247\u8fa8\u8b58\u5f8c\uff0c\u901a\u5e38\u6703\u7d66\u51fa\u4e0d\u6b63\u78ba\u7684\u7d50\u679c\u3002<br><br>\u6bd4\u5982\uff0c\u6211\u5011\u8a2d\u5b9a\u7d66\u6676\u7247\u7684\u5b57\u53e5\u662f &#8220;\u6253\u958b&#8221; &#8220;\u95dc\u9589&#8221;\u2026\u4e4b\u985e\uff0c\u4f46\u662f\u6211\u5011\u8b1b\u4e86\u4e00\u53e5 &#8220;\u4f60\u597d&#8221; \u9019\u985e\u7121\u95dc\u7684\u5b57\u53e5\uff0c\u5b83\u53ef\u80fd\u6703\u7d66\u51fa &#8220;\u6253\u958b&#8221; \u7684\u7d50\u679c\uff0c\u9019\u53ef\u80fd\u6703\u9020\u6210\u56b4\u91cd\u7684\u64cd\u4f5c\u3002\u7576\u7136\uff0c\u73fe\u5728\u5df2\u7d93\u6709\u4e0d\u5c11\u96f2\u7aef\u7684\u8a9e\u97f3\u8fa8\u8b58\u670d\u52d9\uff0c\u4e5f\u8a31\u501f\u52a9\u5927\u516c\u53f8\u7684\u670d\u52d9\u662f\u66f4\u597d\u7684\u9078\u64c7\u3002<\/p>\n\n\n\n<p>\u958b\u767c LD3320 \u6642\uff0c\u6211\u5011\u8981\u628a\u6b32\u8fa8\u8b58\u7684\u4e2d\u6587\u8a9e\u53e5\u5efa\u7acb\u6210\u8868\uff0c\u518d\u5beb\u5165\u6676\u7247\u5167\uff0c\u5982\u4e0b\u5716\u6240\u793a\u3002<br><br>C++ \u8a9e\u6cd5\u7684\u7de8\u8b6f\u904e\u7a0b\u4e0d\u53ef\u80fd\u63a5\u53d7\u4e2d\u6587\u5b57\uff0c\u6240\u4ee5\u7a0b\u5f0f\u78bc\u7684\u4e2d\u6587\u8a9e\u53e5\u662f\u4ee5\u6f22\u8a9e\u62fc\u97f3\u70ba\u57fa\u6e96\uff0c\u6bcf\u500b\u8a9e\u53e5\u5247\u5c0d\u61c9\u4e00\u500b ID \u7de8\u865f\uff0c\u6676\u7247\u5c07\u8fa8\u8b58\u51fa\u7684\u7d50\u679c\u4ee5\u7de8\u865f\u65b9\u5f0f\u544a\u77e5\u6211\u5011\uff0c\u4f8b\u5982\uff1a&#8221;\u4e8c\u5341\u4e94&#8221; \u548c &#8220;\u4e8c\u4e94&#8221; \u90fd\u4ee3\u8868\u6578\u503c 25\uff0c\u90a3\u6211\u5011\u5c31\u6703\u5c07\u9019\u5169\u500b\u8a9e\u53e5\u5b9a\u7fa9\u540c\u4e00\u500b ID \u7de8\u865f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/1.bp.blogspot.com\/-1lxs_QZj92I\/YBs0n47Iv8I\/AAAAAAAAJKI\/gGbsQv1kVBslpm9o5Fhu8YT46V2JoV_DQCLcBGAsYHQ\/w574-h640\/%25E8%259E%25A2%25E5%25B9%2595%25E6%2593%25B7%25E5%258F%2596%25E7%2595%25AB%25E9%259D%25A2%2B2021-02-04%2B074045.jpg?resize=842%2C939&#038;ssl=1\" alt=\"\" width=\"842\" height=\"939\"\/><figcaption class=\"wp-element-caption\">\u5716\u4e09\uff1a\u5efa\u7acb\u8fa8\u8b58\u7684\u8a9e\u53e5\u8868<\/figcaption><\/figure>\n\n\n\n<p>\u5c07 LD3320 \u9a45\u52d5\u7a0b\u5f0f\u5beb\u5728 ESP32S \u6a21\u7d44\u4e0a\uff0c\u6e2c\u8a66\u7684\u7d50\u679c\u9304\u88fd\u6210\u5e95\u4e0b\u5f71\u7247\uff0c\u8acb\u53c3\u8003\u3002\u8aaa\u5b8c\u4e00\u53e5\u8a71\u5f8c\uff0c\u8fa8\u8b58\u7684\u7d50\u679c\u5f88\u5feb\u5730\u986f\u793a\u5728 LCD \u6a21\u7d44\u4e0a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\u96e2\u7dda\u8a9e\u97f3\u8fa8\u8b58 LD3320 \u6a21\u7d44 (\u4e0d\u7279\u5b9a\u4eba\u7684\u8fa8\u8b58)\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/lMq770fXUpg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528\u96e2\u7dda\u8a9e\u97f3\u8fa8\u8b58\u6676\u7247 LD3320\uff0c\u7372\u5f97\u8fa8\u8b58\u7d50\u679c\u5f8c\u900f\u904e ESP32S \u7121\u7dda\u6a21\u7d44\u50b3\u8f38\u5230\u53e6\u4e00\u584a\u7121\u7dda\u6a21\u7d44\u4e0a\u986f\u793a\u51fa\u7d50\u679c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-742","post","type-post","status-publish","format-standard","hentry","category-esp32"],"blocksy_meta":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/posts\/742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/comments?post=742"}],"version-history":[{"count":1,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/posts\/742\/revisions"}],"predecessor-version":[{"id":743,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/posts\/742\/revisions\/743"}],"wp:attachment":[{"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/media?parent=742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/categories?post=742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/tags?post=742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}