{"id":2018,"date":"2025-12-27T21:10:53","date_gmt":"2025-12-27T13:10:53","guid":{"rendered":"https:\/\/xujiwei.com\/blog\/?p=2018"},"modified":"2025-12-27T21:10:53","modified_gmt":"2025-12-27T13:10:53","slug":"diy-ch339-usb-hub","status":"publish","type":"post","link":"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/","title":{"rendered":"\u4e3a\u4e86 DIY \u66f4\u5e26\u52b2\uff0c\u7528 CH339 \u624b\u6413\u4e00\u4e2a\u56db\u8def\u7535\u6d41\u68c0\u6d4b\u3001\u72ec\u7acb\u5f00\u5173\u7684 USB Hub\uff0c\u5168\u5f00\u6e90\uff5e"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<p class=\"ez-toc-title\">\u6587\u7ae0\u76ee\u5f55<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f0658e80e4b\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f0658e80e4b\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#%E9%A1%B9%E7%9B%AE%E4%BB%8B%E7%BB%8D\" title=\"\u9879\u76ee\u4ecb\u7ecd\">\u9879\u76ee\u4ecb\u7ecd<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#%E7%A1%AC%E4%BB%B6%E9%80%89%E5%9E%8B\" title=\"\u786c\u4ef6\u9009\u578b\">\u786c\u4ef6\u9009\u578b<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#CH339W\" title=\"CH339W\">CH339W<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#CH32V006\" title=\"CH32V006\">CH32V006<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#%E5%8E%9F%E7%90%86%E5%9B%BE\" title=\"\u539f\u7406\u56fe\">\u539f\u7406\u56fe<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#PCB_%E5%B8%83%E7%BA%BF\" title=\"PCB \u5e03\u7ebf\">PCB \u5e03\u7ebf<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#PCB_%E5%B8%83%E7%BA%BF-2\" title=\"PCB \u5e03\u7ebf\">PCB \u5e03\u7ebf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#PCB_%E6%B8%B2%E6%9F%93%E5%9B%BE\" title=\"PCB \u6e32\u67d3\u56fe\">PCB \u6e32\u67d3\u56fe<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#PCB_%E7%84%8A%E6%8E%A5\" title=\"PCB \u710a\u63a5\">PCB \u710a\u63a5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#%E5%9B%BA%E4%BB%B6%E6%B5%8B%E8%AF%95\" title=\"\u56fa\u4ef6\u6d4b\u8bd5\">\u56fa\u4ef6\u6d4b\u8bd5<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#%E5%A4%96%E5%A3%B3%E6%A8%A1%E5%9E%8B\" title=\"\u5916\u58f3\u6a21\u578b\">\u5916\u58f3\u6a21\u578b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#%E5%AE%9E%E6%B5%8B%E6%BC%94%E7%A4%BA\" title=\"\u5b9e\u6d4b\u6f14\u793a\">\u5b9e\u6d4b\u6f14\u793a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#%E9%A1%B9%E7%9B%AE%E5%BC%80%E6%BA%90\" title=\"\u9879\u76ee\u5f00\u6e90\">\u9879\u76ee\u5f00\u6e90<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/#%E5%B0%8F%E7%BB%93\" title=\"\u5c0f\u7ed3\">\u5c0f\u7ed3<\/a><\/li><\/ul><\/nav><\/div>\n<p>\u5728\u76f8\u5f53\u957f\u4e00\u6bb5\u65f6\u95f4\u91cc\uff0c\u73a9\u7535\u5b50 DIY \u7684\u65f6\u5019\u6211\u7528\u7684 USB Hub \u90fd\u662f\u4e4b\u524d\u7528 CH334R \u505a\u7684\u4e00\u4e2a 4 \u4f4d USB 2.0 Hub\uff08\u89c1 <a href=\"https:\/\/mp.weixin.qq.com\/s\/oT0au9bavNoDie8efvvsmw\">\u542c\u4eba\u529d\u5403\u9971\u996d\uff0c\u8bd5\u8bd5CH334R\u6765\u505aUSB 2.0 Hub<\/a>\uff09\uff0c\u4e0d\u8fc7\u9010\u6e10\u53d1\u73b0\u5e38\u89c4 USB Hub \u4e00\u4e9b\u4e0d\u65b9\u4fbf\u7684\u5730\u65b9\uff0c\u7279\u522b\u662f\u5728\u8c03\u8bd5\u4e00\u4e9b\u8bbe\u5907\u7684\u65f6\u5019\uff0c\u9700\u8981\u62d4\u63d2 USB \u8fde\u63a5\uff0c<strong>\u4e00\u624b\u8981\u6309\u4f4f BOOT \u6309\u94ae\uff0c\u4e00\u624b\u8981\u62d4\u63d2 USB \u57fa\u672c\u4e0a\u4e0d\u592a\u73b0\u5b9e<\/strong>\u3002<\/p>\n<p>\u56e0\u6b64\u5c31\u60f3\u7740\u518d\u505a\u4e00\u4e9b\u66f4\u7b26\u5408\u81ea\u5df1\u9700\u6c42\u7684\u3001\u66f4\u65b9\u4fbf\u8f85\u52a9\u7535\u5b50 DIY \u7684 USB Hub\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E9%A1%B9%E7%9B%AE%E4%BB%8B%E7%BB%8D\"><\/span>\u9879\u76ee\u4ecb\u7ecd<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4e3a\u4e86\u66f4\u597d\u5730\u8f85\u52a9\u7535\u5b50 DIY \u4e2d\u7684\u8c03\u8bd5\u5de5\u4f5c\uff0c\u5148\u5217\u4e3e\u4e00\u4e0b\u75db\u70b9\uff1a<\/p>\n<ul>\n<li><strong>\u9700\u8981\u81ea\u5e26 UART \u8c03\u8bd5\u63a5\u53e3<\/strong>\uff0c\u8fd9\u6837\u53ef\u4ee5\u7701\u6389\u4e00\u4e2a USB \u8f6c\u4e32\u53e3\u5de5\u5177\u3002\u867d\u7136\u4e00\u4e9b MCU \u4e5f\u53ef\u4ee5\u901a\u8fc7 USB CDC \u8fdb\u884c\u8c03\u8bd5\u65e5\u5fd7\u8f93\u51fa\uff0c\u4f46\u662f<strong>\u5728 RESET \u7684\u65f6\u5019\uff0cUSB CDC \u4f1a\u65ad\u5f00\u8fde\u63a5<\/strong>\uff0c\u4e0d\u5982\u786c\u4ef6 UART \u53ef\u4ee5\u6301\u7eed\u4fdd\u6301\u8fde\u63a5\uff0c\u4ece\u542f\u52a8\u65f6\u5c31\u89c2\u5bdf\u65e5\u5fd7\u8f93\u51fa\u3002<\/li>\n<li>\u4e0a\u4f4d\u673a USB \u53ca\u4e0b\u6e38 USB \u5747\u53ef\u4ee5\u72ec\u7acb\u63a7\u5236\u7535\u6e90\uff0c\u5e76\u4e14\u662f\u5bb9\u6613\u64cd\u4f5c\u7684\u65b9\u5f0f\uff0c\u4ece\u800c\u5728\u8fdb\u5165\u5237\u673a\u6a21\u5f0f\u65f6\uff0c<strong>\u53ef\u4ee5\u5355\u624b\u5b8c\u6210 MCU \u7684\u65ad\u7535\u3001\u4e0a\u7535\u64cd\u4f5c<\/strong>\u3002<\/li>\n<li>\u53ef\u4ee5<strong>\u76d1\u63a7 USB \u6bcf\u4e00\u8def\u7684\u7535\u6d41\u6d88\u8017<\/strong>\uff0c\u8fd9\u6837\u5728\u6d4b\u8bd5\u65f6\u4e5f\u53ef\u4ee5\u5927\u6982\u9884\u4f30\u9879\u76ee\u7684\u529f\u8017\u6c34\u5e73\uff0c\u4e5f\u4e0d\u9700\u8981\u989d\u5916\u8fde\u63a5\u4e07\u7528\u8868\u6765\u68c0\u6d4b\uff0c\u8981\u5728 USB \u4e2d\u95f4\u63d2\u5165\u4e07\u7528\u8868\u8fde\u63a5\u4e5f\u4e0d\u662f\u7279\u522b\u65b9\u4fbf\u3002<\/li>\n<\/ul>\n<p>\u5728\u77e5\u9053\u8981\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898\u4e4b\u540e\uff0c\u5269\u4e0b\u7684\u5c31\u662f\u627e\u4e00\u627e\u4ec0\u4e48\u82af\u7247\u9002\u5408\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u4e86\u3002<\/p>\n<p>\u5728\u719f\u6089\u7684\u5382\u5bb6\u4ea7\u54c1\u5217\u8868\u627e\u4e86\u627e\uff0c\u6700\u7ec8\u5b9a\u4f4d\u5230\u6c81\u6052\u7684 CH339 \u8fd9\u6b3e USB Hub \u82af\u7247\uff0c\u4ece\u5b98\u7f51\u4ecb\u7ecd\u6765\u770b\uff0c\u8db3\u4ee5\u6ee1\u8db3\u6211\u8fd9\u4e9b\u9700\u6c42\u4e86\u3002<\/p>\n<p>\u5bf9\u4e8e\u72ec\u7acb\u7535\u6e90\u63a7\u5236\uff0c\u4f7f\u7528 PMOS + \u81ea\u9501\u5f00\u5173\u5c31\u53ef\u4ee5\u6bd4\u8f83\u65b9\u4fbf\u5730\u5904\u7406\u4e86\uff0c\u5355\u624b\u5c31\u53ef\u4ee5\u6309\u4e0b\u548c\u91ca\u653e\u3002<\/p>\n<p>\u7535\u6d41\u68c0\u6d4b\u5c31\u7b80\u5355\u4e86\uff0c\u76f4\u63a5\u4e32\u8054\u4e00\u4e2a\u91c7\u6837\u7535\u963b\uff0c\u672c\u6765\u7528\u9a71\u52a8\u5c4f\u5e55\u7684 MCU \u7684 ADC \u91c7\u6837\u5c31\u884c\u4e86\uff0c\u4f46\u662f\u521a\u597d\u4ee5\u524d\u73a9\u8fc7\u4e00\u4e2a\u56db\u8def ADC \u82af\u7247 ADS1115 \u8fd8\u6709\u5269\uff0c16bit \u5206\u8fa8\u7387\u4e5f\u9ad8\uff0c\u53ef\u4ee5\u7cbe\u786e\u5230 1mA\uff0c\u5c31\u9009\u5b83\u4e86\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E7%A1%AC%E4%BB%B6%E9%80%89%E5%9E%8B\"><\/span>\u786c\u4ef6\u9009\u578b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>\u4e3b\u63a7 USB Hub \u82af\u7247\uff1a\u6c81\u6052 CH339W\uff0c\u4e00\u6b3e 7 \u7aef\u53e3\u591a\u529f\u80fd USB HUB<\/li>\n<li>\u4e3b\u63a7 MCU\uff1a\u6c81\u6052 CH32V006\uff0c32 \u4f4d RISC-V MCU\uff0c65KB Flash\uff0c8KB RAM<\/li>\n<li>\u7535\u6d41\u68c0\u6d4b\u82af\u7247\uff1aTI ADS1115\uff0c4 \u8def 16 \u4f4d ADC<\/li>\n<li>USB \u8fc7\u6d41\u4fdd\u62a4\uff1a\u6c81\u6052 CH217<\/li>\n<li>\u5c4f\u5e55\uff1a0.96 \u5bf8 TFT LCD \u6a21\u5757\uff0cSPI \u9a71\u52a8\uff0c\u5206\u8fa8\u7387 160x80<\/li>\n<li>\u7535\u6e90\u63a7\u5236\uff1aAO3401 PMOS<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"CH339W\"><\/span>CH339W<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5b98\u7f51\u7f51\u7ad9\uff1a <a href=\"https:\/\/www.wch.cn\/products\/CH339.html\">https:\/\/www.wch.cn\/products\/CH339.html<\/a><\/p>\n<blockquote>\n<p>CH339 \u662f\u7b26\u5408 USB 2.0 \u534f\u8bae\u89c4\u8303\u7684 7 \u7aef\u53e3\u591a\u529f\u80fd USB HUB \u63a7\u5236\u5668\u82af\u7247\uff0c\u5355\u82af\u7247\u96c6\u6210 7 \u53e3 USB HUB\u3001USB \u767e\u5146\u4ee5\u592a\u7f51\u3001USB \u9ad8\u901f SD \u8bfb\u5361\u5668\u3001USB PD \u548c USB \u8f6c SPI\u3001USB \u8f6c JTAG\u3001USB \u8f6c UART\u3001USB\u8f6c I2C \u63a5\u53e3\u7b49\u529f\u80fd\u3002<\/p>\n<\/blockquote>\n<p>\u8fd9\u91cc\u4e3b\u8981\u662f\u7528 CH339 \u7684 USB Hub \u4ee5\u53ca\u4e32\u53e3\u3001JTAG\u3001SPI\u3001I2C \u529f\u80fd\uff0c\u53ea\u80fd\u8bf4\uff0c<strong>CH339 \u529f\u80fd\u592a\u4e30\u5bcc\u4e86\uff0c\u4ee5\u81f3\u4e8e\u6211\u53ea\u53d1\u6325\u4e86\u5b83\u4e0d\u5230\u4e00\u534a\u7684\u80fd\u529b<\/strong> \ud83d\ude02\uff0c\u4e00\u822c 4 \u8def USB \u4e5f\u591f\u7528\u4e86\uff0c\u50cf\u8bfb\u5361\u5668\u3001\u767e\u5146\u4ee5\u592a\u7f51\u6ca1\u6709\u52a0\u8fdb\u6765\uff0c\u4e00\u65b9\u9762\u5e73\u65f6\u4e0d\u592a\u7528\u5f97\u5230\uff0c\u53e6\u5916\u4e00\u65b9\u9762\u4e5f\u8282\u7701\u4e00\u70b9 PCB \u5e03\u7ebf\u538b\u529b \ud83d\ude48\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2025\/11\/ch339-diy-usb-hub-2.png\" alt=\"ch339-diy-usb-hub-2\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"CH32V006\"><\/span>CH32V006<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5b98\u65b9\u7f51\u7ad9\uff1a <a href=\"https:\/\/www.wch.cn\/products\/CH32V006.html\">https:\/\/www.wch.cn\/products\/CH32V006.html<\/a><\/p>\n<p>\u6211\u539f\u6765\u7528\u4e86\u76f8\u5f53\u957f\u4e00\u6bb5\u65f6\u95f4\u7684 CH32V003\uff0c\u4f46\u662f\u53d7\u5236\u4e8e Flash \u548c RAM \u5927\u5c0f\u7684\u9650\u5236\uff0c\u53ea\u80fd\u9a71\u52a8 OLED\uff0c\u540e\u6765\u53d1\u73b0 <strong>CH32V006<\/strong>\uff0c\u5c31\u9a6c\u4e0a\u89c9\u5f97\u8fd9\u4e2a\u66f4\u9002\u5408\u6211\uff0c\u53ea\u6bd4 CH32V003 \u8d35\u4e00\u70b9\u70b9\uff0c<strong>8 \u6bdb\u7684\u5355\u4ef7\uff0c\u4f46\u662f\u63d0\u4f9b\u4e86 65KB Flash \u7684 8KB RAM<\/strong>\uff0c\u56e0\u6b64\u4e4b\u524d\u5c31\u5c1d\u8bd5\u4e86\u4e00\u4e0b\u6765\u9a71\u52a8\u5f69\u8272\u6db2\u6676\u5c4f\uff08\u89c1 <a href=\"https:\/\/mp.weixin.qq.com\/s\/Dg4elnzivI0sjridRW2EJA\">\u4e0d\u5230 1 \u5143\uff0c64K Flash + 8K RAM\uff1aCH32V006 \u76f4\u9a71\u5f69\u8272 TFT LCD\uff0c100 FPS \u65e0\u538b\u529b<\/a>\uff09\u3002<\/p>\n<p>\u53e6\u5916 <strong>CH32V006 \u7684 MSOP-20 \u5c01\u88c5\u548c CH32V003 \u662f\u53ef\u4ee5 Pin to Pin \u66ff\u6362\u7684<\/strong>\uff0c\u539f\u7406\u56fe\u8bbe\u8ba1\u7684\u65f6\u5019\uff0c\u6211\u4e5f\u662f\u76f4\u63a5\u7167\u642c\u4e4b\u524d\u7684\u4e86 \ud83d\ude48\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2025\/11\/ch339-diy-usb-hub-3.jpg\" alt=\"ch339-diy-usb-hub-3\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%8E%9F%E7%90%86%E5%9B%BE\"><\/span>\u539f\u7406\u56fe<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u786c\u4ef6\u90e8\u5206\u4e00\u5982\u65e2\u5f80\u7684\u4f7f\u7528\u7acb\u521b EDA \u8fdb\u884c\u9879\u76ee\u5f00\u53d1\u3002<\/p>\n<p>\u8fd9\u4e2a\u9879\u76ee\u672c\u8eab\u4e0d\u662f\u5f88\u590d\u6742\uff0c\u4e3b\u8981\u662f\u5916\u8bbe\u6bd4\u8f83\u591a\uff0cCH339 \u76f8\u5173\u90e8\u5206\u76f4\u63a5\u53c2\u8003\u5b98\u65b9\u5e94\u7528\u4f8b\u7a0b\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>CH32V006 \u90e8\u5206\u4e5f\u6ca1\u4ec0\u4e48\u590d\u6742\u7684\uff0c\u4e3b\u8981\u5c31\u662f\u5c06 SPI \u8fde\u63a5\u5230 TFT LCD \u4e0a\uff0c\u539f\u7406\u56fe\u90e8\u5206\u5c31\u76f4\u63a5\u4ece\u4e4b\u524d LCD \u6d4b\u8bd5\u9879\u76ee\u4e2d\u590d\u5236\u8fc7\u6765\u4e86\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2025\/11\/ch339-diy-usb-hub-4.jpg\" alt=\"ch339-diy-usb-hub-4\" \/><\/p>\n<p>\u5728\u6700\u5f00\u59cb\u7684\u7248\u672c\u4e2d\uff0c<strong>\u4e0b\u6e38 USB \u53e3\u8fd8\u641e\u9519\u4e86\u4e00\u6b21\uff0c\u53ea\u5c06 GND \u8fde\u63a5\u5230\u4e86\u91c7\u6837\u7535\u963b\u4e0a\uff0cSHELL \u76f4\u63a5\u63a5\u5730\u4e86<\/strong>\uff0c\u5fd8\u8bb0\u4e86\u901a\u5e38\u5728\u8bbe\u5907\u7aef\uff0cSHELL \u4e5f\u662f\u8ddf\u7535\u6e90\u5730\u8fde\u63a5\u5728\u4e00\u8d77\u7684\uff0c\u56e0\u6b64\u7b2c\u4e00\u7248\u5b8c\u5168\u6ca1\u80fd\u6d4b\u91cf\u51fa\u7535\u6d41\u6765\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2025\/11\/ch339-diy-usb-hub-5.png\" alt=\"ch339-diy-usb-hub-5\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"PCB_%E5%B8%83%E7%BA%BF\"><\/span>PCB \u5e03\u7ebf<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8fd9\u6b21\u56e0\u4e3a\u6709\u6bd4\u8f83\u591a\u7684\u5143\u4ef6\uff0c\u5e76\u4e14\u6709\u5927\u91cf\u5916\u90e8\u63a5\u53e3\uff0cCH339W \u5305\u62ec 4 \u8def USB 2.0\uff0c\u4ee5\u53ca  JTAG\u3001UART\u3001SPI\u3001I2C\uff0c\u56e0\u6b64\u9009\u62e9\u4e86 4 \u5c42\u677f\u6765\u8fdb\u884c\u5e03\u7ebf\uff0c\u7a7a\u95f4\u4e0a\u53ef\u4ee5\u7a0d\u5fae\u5bbd\u88d5\u4e00\u70b9\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"PCB_%E5%B8%83%E7%BA%BF-2\"><\/span>PCB \u5e03\u7ebf<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u56db\u5c42\u677f\u5e03\u7ebf\u8fd8\u662f\u6bd4\u8f83\u5bbd\u88d5\u7684\uff0cUSB \u4fe1\u53f7\u8d70\u4e86\u5e95\u5c42\uff0c\u9876\u5c42\u4e3b\u8981\u662f JTAG\u3001UART \u63a5\u53e3\u7b49\u8d70\u7ebf\uff0c1 \u5c42\u8d70\u4e86\u7535\u6e90\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2025\/11\/ch339-diy-usb-hub-6.png\" alt=\"ch339-diy-usb-hub-6\" \/><\/p>\n<p>\u53e6\u5916\u53cd\u6b63\u81ea\u7528\uff0c<strong>\u4e3a\u4e86\u7701\u4e8b\uff0c\u5c31\u6ca1\u52a0 TVS \u76f8\u5173\u7684\u4fdd\u62a4\u7535\u8def<\/strong> \ud83d\ude48\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"PCB_%E6%B8%B2%E6%9F%93%E5%9B%BE\"><\/span>PCB \u6e32\u67d3\u56fe<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5143\u4ef6\u5e03\u5c40\u786e\u5b9a\u597d\uff0c\u62c9\u7ebf\u62c9\u5b8c\uff0c\u5c31\u53ef\u4ee5\u770b\u770b PCB \u7684 3D \u6e32\u67d3\u6548\u679c\u56fe\u4e86\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2025\/11\/ch339-diy-usb-hub-7.jpg\" alt=\"ch339-diy-usb-hub-7\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"PCB_%E7%84%8A%E6%8E%A5\"><\/span>PCB \u710a\u63a5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728\u5609\u7acb\u521b\u6253\u6837 PCB \u5230\u624b\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u710a\u63a5\u4e86\uff0c<strong>\u4f7f\u7528\u725b\u76ae\u7eb8\u94a2\u7f51\u5237\u9521\u818f<\/strong>\uff08\u89c1 <a href=\"https:\/\/mp.weixin.qq.com\/s\/E0adZk4nlMuz5CwhVMKPDQ\">\u5c06\u8282\u7701\u8fdb\u884c\u5230\u5e95\uff0c\u4f7f\u7528\u6fc0\u5149\u96d5\u523b\u673a\u548c\u725b\u76ae\u7eb8 DIY SMT \u94a2\u7f51<\/a>\uff09\uff0c\u548c\u52a0\u70ed\u53f0\u6765\u5b8c\u6210\u8d34\u7247\u5143\u4ef6\u7684\u710a\u63a5\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2025\/11\/ch339-diy-usb-hub-8.jpg\" alt=\"ch339-diy-usb-hub-8\" \/><\/p>\n<p>\u8fd9\u6b21\u6362\u4e86\u74f6\u65b0\u7684\u9521\u818f\uff0c\u6548\u679c\u597d\u591a\u4e86\uff0c\u4f7f\u7528\u725b\u76ae\u7eb8\u94a2\u7f51\uff0cCH339W \u7684 QFN \u4e5f\u80fd\u4e00\u6b21\u710a\u63a5\u6210\u529f\uff0c\u53ef\u4ee5\u770b\u5230\u710a\u70b9\u8fd8\u662f\u633a\u89c4\u6574\u7684\uff0c\u6d4b\u8bd5\u4e0b\u6765\u4e5f\u662f\u5168\u90e8\u90fd\u6b63\u786e\u710a\u63a5\u4e0a\u4e86\u3002<\/p>\n<p>\u770b\u6837\u5b50<strong>\u9521\u818f\u5982\u679c\u4e0d\u653e\u5728\u51b0\u7bb1\uff0c\u8fd8\u662f\u5f97\u5e38\u4e70\u5e38\u65b0<\/strong>\uff0c\u7701\u5f97\u6bcf\u6b21\u710a\u63a5\u5f15\u811a\u5bc6\u96c6\u7684\u5143\u4ef6\u8fd8\u5f97\u7528\u7535\u94ec\u94c1\u8865\u710a \ud83d\ude48\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2025\/11\/ch339-diy-usb-hub-9.jpg\" alt=\"ch339-diy-usb-hub-9\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%9B%BA%E4%BB%B6%E6%B5%8B%E8%AF%95\"><\/span>\u56fa\u4ef6\u6d4b\u8bd5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u6700\u540e\u628a 0.96 \u5bf8\u5c4f\u5e55\u6a21\u5757\u63d2\u4e0a\uff0c\u7ed9 CH32V006 \u5237\u5165\u56fa\u4ef6\uff0c\u5c4f\u5e55\u6b63\u786e\u663e\u793a\u4e86 4 \u4e2a USB \u63a5\u53e3\u7684\u7535\u6d41\u5c31\u6ca1\u6709\u95ee\u9898\u4e86\uff5e<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2025\/11\/ch339-diy-usb-hub-10.jpg\" alt=\"ch339-diy-usb-hub-10\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%A4%96%E5%A3%B3%E6%A8%A1%E5%9E%8B\"><\/span>\u5916\u58f3\u6a21\u578b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5916\u58f3\u4f7f\u7528\u4e86\u7ecf\u5178\u4e09\u660e\u6cbb\u7ed3\u6784\uff0c\u5e95\u58f3\u901a\u8fc7\u81ea\u653b\u87ba\u4e1d\u7a7f\u8fc7 PCB\uff0c\u56fa\u5b9a\u5728\u4e0a\u58f3\u4e0a\u3002<\/p>\n<p>\u56e0\u4e3a\u6574\u4f53\u5e03\u5c40\u6bd4\u8f83\u7d27\u51d1\uff0c\u87ba\u4e1d\u5b54\u90fd\u6ca1\u6709\u5bf9\u79f0\u6392\u5217\u4e86 \ud83d\ude48\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2025\/11\/ch339-diy-usb-hub-11.jpg\" alt=\"ch339-diy-usb-hub-11\" \/><\/p>\n<p>\u53e6\u5916\u540e\u9762\u60f3\u4e86\u60f3\uff0c\u641e\u4e86\u4e2a\u53cc\u8272\u7684\u7535\u6e90\u5207\u6362\u6309\u94ae\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u770b\u51fa\u6309\u952e\u662f\u6309\u4e0b\u8fd8\u662f\u5f39\u8d77\u72b6\u6001 \ud83d\ude03\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2025\/11\/ch339-diy-usb-hub-12.jpg\" alt=\"ch339-diy-usb-hub-12\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%AE%9E%E6%B5%8B%E6%BC%94%E7%A4%BA\"><\/span>\u5b9e\u6d4b\u6f14\u793a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8fd9\u91cc\u4f7f\u7528 CH339 Hub \u8fde\u63a5\u4e86\u4e00\u4e2a\u53cc\u53e3\u7684 ESP32-S3 \u5f00\u53d1\u677f\uff0c\u53ef\u4ee5\u770b\u5230\u5728\u5355\u624b\u4e3e\u624b\u673a\u62cd\u6444\u7684\u60c5\u51b5\u4e0b\uff0c\u53e6\u5916\u4e00\u4e2a\u624b\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u63a7\u5236\u7535\u6e90\u5f00\u5173\uff0c\u5e76\u4e14\u5c4f\u5e55\u53ef\u4ee5\u663e\u793a\u4e24\u8def\u7535\u6d41\u3002<\/p>\n<p><strong>\u89c6\u9891<\/strong><\/p>\n<p>\u53e6\u5916 CH339 \u81ea\u5e26\u7684\u4e32\u53e3\u53ef\u4ee5\u76f4\u63a5\u5728\u4e32\u53e3\u8c03\u8bd5\u5de5\u5177\u4e2d\u770b\u5230\uff0c\u5c31\u4e0d\u989d\u5916\u6f14\u793a\u4e86\uff0c\u548c CH340 \u8f6c\u4e32\u53e3\u4e00\u6837\uff0c\u8fd9\u4e2a\u5728 macOS \u4e0a\u4e5f\u662f\u514d\u9a71\u7684\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E9%A1%B9%E7%9B%AE%E5%BC%80%E6%BA%90\"><\/span>\u9879\u76ee\u5f00\u6e90<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u6574\u4e2a\u9879\u76ee\u90fd\u5df2\u7ecf\u5f00\u6e90\u4e86\uff0c\u786c\u4ef6\u90e8\u5206\u5728\u7acb\u521b\u5f00\u6e90\u5e73\u53f0\uff0c\u5916\u58f3\u5728\u62d3\u7af9 MakerWorld\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u94fe\u63a5\u67e5\u770b\u3002<\/p>\n<p>\u786c\u4ef6\uff1a <a href=\"https:\/\/oshwhub.com\/wandaeda\/ch339-electronic-diy-development\/\">https:\/\/oshwhub.com\/wandaeda\/ch339-electronic-diy-development\/<\/a><\/p>\n<p>\u5916\u58f3\uff1a <a href=\"https:\/\/makerworld.com.cn\/zh\/models\/1775912-ch339-usb-hub-wai-ke\">https:\/\/makerworld.com.cn\/zh\/models\/1775912-ch339-usb-hub-wai-ke<\/a><\/p>\n<p>\u5982\u679c\u786c\u4ef6\u9879\u76ee\u6253\u4e0d\u5f00\uff0c\u53ef\u80fd\u5728\u5ba1\u6838\u5f53\u4e2d\uff0c\u53ef\u4ee5\u8fc7\u6bb5\u65f6\u95f4\u518d\u5c1d\u8bd5\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%B0%8F%E7%BB%93\"><\/span>\u5c0f\u7ed3<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u53ea\u80fd\u8bf4\uff0c\u5f97\u76ca\u4e8e CH339 \u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u7528\u8fd9\u4e2a\u82af\u7247\u505a\u8fd9\u4e2a USB Hub \u5c31\u5df2\u7ecf\u9884\u544a\u5b8c\u6210\u4e86\u4e00\u534a\uff0c\u5269\u4e0b\u7684\u5c31\u662f\u7b80\u5355\u7684\u4f7f\u7528 CH32V006 \u901a\u8fc7 SPI \u9a71\u52a8\u5c4f\u5e55\u8fdb\u884c\u663e\u793a\u4e86\uff0c\u5f97\u76ca\u4e8e\u66f4\u5927\u7684 Flash \u548c SRAM\uff0c\u5728\u5c4f\u5e55\u6a21\u5757\u4ef7\u683c\u5dee\u4e0d\u591a\u7684\u60c5\u51b5\u4e0b\uff0c\u4ee5\u540e DIY \u53ef\u4ee5\u8fdb\u5165\u5f69\u5c4f\u65f6\u4ee3\u4e86 \ud83d\ude03\u3002<\/p>\n<p>\u73b0\u5728\u8fd9\u4e2a USB Hub\uff0c\u5e94\u8be5\u53ef\u4ee5\u652f\u6491\u76f8\u5f53\u957f\u4e00\u6bb5\u65f6\u95f4\u7684\u7535\u5b50 DIY \u5de5\u4f5c\u4e86\uff5e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u76f8\u5f53\u957f\u4e00\u6bb5\u65f6\u95f4\u91cc\uff0c\u73a9\u7535\u5b50 DIY \u7684\u65f6\u5019\u6211\u7528\u7684 USB Hub \u90fd\u662f\u4e4b\u524d\u7528 C &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/xujiwei.com\/blog\/2025\/12\/diy-ch339-usb-hub\/\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":1983,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[402],"tags":[494,416,370,495,386],"_links":{"self":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/2018"}],"collection":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/comments?post=2018"}],"version-history":[{"count":0,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/2018\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media\/1983"}],"wp:attachment":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media?parent=2018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/categories?post=2018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/tags?post=2018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}