{"id":229,"date":"2026-01-20T07:09:32","date_gmt":"2026-01-19T23:09:32","guid":{"rendered":"https:\/\/gccircuit.com\/wordpress\/?p=229"},"modified":"2026-01-20T07:30:56","modified_gmt":"2026-01-19T23:30:56","slug":"led%e7%b7%9a%e9%99%90%e6%b5%81%e9%9b%bb%e9%98%bb%e7%b7%9a%e4%b8%8a%e8%a8%88%e7%ae%97%e5%99%a8","status":"publish","type":"post","link":"https:\/\/gccircuit.com\/wordpress\/2026\/01\/20\/led%e7%b7%9a%e9%99%90%e6%b5%81%e9%9b%bb%e9%98%bb%e7%b7%9a%e4%b8%8a%e8%a8%88%e7%ae%97%e5%99%a8\/","title":{"rendered":"LED\u7dda\u9650\u6d41\u96fb\u963b\u7dda\u4e0a\u8a08\u7b97\u5668"},"content":{"rendered":"\n<div style=\"background-color: #1e293b; color: #f8fafc; padding: 25px; border-radius: 15px; font-family: sans-serif; max-width: 850px; margin: auto; border: 1px solid #f472b6; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); line-height: 1.6;\">\n    \n    <h2 style=\"color: #f472b6; text-align: center; margin-top: 0; letter-spacing: 1px;\">LED \u9650\u6d41\u96fb\u963b\u7dda\u4e0a\u8a08\u7b97\u5668<\/h2>\n    \n    <div style=\"background: #0f172a; padding: 20px; border-radius: 12px; border: 1px solid #334155; margin-bottom: 30px;\">\n        <div style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 20px;\">\n            <div>\n                <label style=\"color: #38bdf8; font-size: 13px;\">\u96fb\u6e90\u96fb\u58d3 (V)<\/label>\n                <input type=\"number\" id=\"v_src\" value=\"12\" style=\"width: 100%; padding: 10px; border-radius: 6px; background: #1e293b; color: white; border: 1px solid #334155;\">\n            <\/div>\n            <div>\n                <label style=\"color: #fbbf24; font-size: 13px;\">LED \u96fb\u58d3 Vf (V)<\/label>\n                <input type=\"number\" id=\"v_led\" value=\"3.2\" step=\"0.1\" style=\"width: 100%; padding: 10px; border-radius: 6px; background: #1e293b; color: white; border: 1px solid #334155;\">\n            <\/div>\n            <div>\n                <label style=\"color: #f472b6; font-size: 13px;\">\u4e32\u806f\u6578\u91cf (\u9846)<\/label>\n                <input type=\"number\" id=\"v_num\" value=\"3\" style=\"width: 100%; padding: 10px; border-radius: 6px; background: #1e293b; color: white; border: 1px solid #334155;\">\n            <\/div>\n            <div>\n                <label style=\"color: #10b981; font-size: 13px;\">\u96fb\u6d41 (mA)<\/label>\n                <input type=\"number\" id=\"v_cur\" value=\"20\" style=\"width: 100%; padding: 10px; border-radius: 6px; background: #1e293b; color: white; border: 1px solid #334155;\">\n            <\/div>\n        <\/div>\n        <button onclick=\"newCalcLED()\" style=\"width: 100%; padding: 15px; border-radius: 8px; background: #f472b6; color: white; font-weight: bold; cursor: pointer; border: none; font-size: 16px;\">\u7acb\u5373\u8a08\u7b97\u96fb\u963b\u503c<\/button>\n        \n        <div id=\"new_res_box\" style=\"display: none; margin-top: 20px; padding: 15px; border-radius: 8px; border-left: 5px solid #f472b6; background: #1e293b;\">\n            <div id=\"new_res_val\" style=\"font-size: 18px; font-weight: bold;\"><\/div>\n            <div id=\"new_res_info\" style=\"font-size: 14px; color: #94a3b8; margin-top: 5px;\"><\/div>\n        <\/div>\n    <\/div>\n\n    <div style=\"background: #0f172a; padding: 15px; border-radius: 12px; border: 1px solid #334155;\">\n        <h3 style=\"color: #10b981; font-size: 18px; margin-top: 0;\">\ud83d\udcca \u5e38\u7528 5mm LED \u898f\u683c\u53c3\u8003\u8868<\/h3>\n        <div style=\"overflow-x: auto;\">\n            <table style=\"width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; color: #cbd5e1;\">\n                <thead>\n                    <tr style=\"color: #38bdf8; border-bottom: 2px solid #334155;\">\n                        <th style=\"padding: 10px;\">LED \u984f\u8272<\/th>\n                        <th style=\"padding: 10px;\">\u9806\u5411\u96fb\u58d3 (Vf)<\/th>\n                        <th style=\"padding: 10px;\">\u63a8\u85a6\u96fb\u6d41<\/th>\n                    <\/tr>\n                <\/thead>\n                <tbody>\n                    <tr style=\"border-bottom: 1px solid #1e293b;\"><td style=\"padding: 8px;\">\ud83d\udd34 \u7d05\u8272 (Red)<\/td><td style=\"padding: 8px;\">1.8V &#8211; 2.2V<\/td><td style=\"padding: 8px;\">20mA<\/td><\/tr>\n                    <tr style=\"border-bottom: 1px solid #1e293b;\"><td style=\"padding: 8px;\">\ud83d\udfe0 \u6a59\u8272 (Orange)<\/td><td style=\"padding: 8px;\">2.0V &#8211; 2.2V<\/td><td style=\"padding: 8px;\">20mA<\/td><\/tr>\n                    <tr style=\"border-bottom: 1px solid #1e293b;\"><td style=\"padding: 8px;\">\ud83d\udfe1 \u9ec3\u8272 (Yellow)<\/td><td style=\"padding: 8px;\">2.1V &#8211; 2.4V<\/td><td style=\"padding: 8px;\">20mA<\/td><\/tr>\n                    <tr style=\"border-bottom: 1px solid #1e293b;\"><td style=\"padding: 8px;\">\ud83d\udfe2 \u7da0\u8272 (Green)<\/td><td style=\"padding: 8px;\">2.0V &#8211; 3.2V<\/td><td style=\"padding: 8px;\">20mA<\/td><\/tr>\n                    <tr style=\"border-bottom: 1px solid #1e293b;\"><td style=\"padding: 8px;\">\ud83d\udd35 \u85cd\u8272 (Blue)<\/td><td style=\"padding: 8px;\">3.0V &#8211; 3.4V<\/td><td style=\"padding: 8px;\">20mA<\/td><\/tr>\n                    <tr style=\"border-bottom: 1px solid #1e293b;\"><td style=\"padding: 8px;\">\u26aa \u767d\u8272 (White)<\/td><td style=\"padding: 8px;\">3.0V &#8211; 3.4V<\/td><td style=\"padding: 8px;\">20mA<\/td><\/tr>\n                <\/tbody>\n            <\/table>\n        <\/div>\n    <\/div>\n\n    <script>\n        function newCalcLED() {\n            const vs = parseFloat(document.getElementById('v_src').value);\n            const vf = parseFloat(document.getElementById('v_led').value);\n            const n = parseInt(document.getElementById('v_num').value);\n            const i = parseFloat(document.getElementById('v_cur').value) \/ 1000;\n            \n            const box = document.getElementById('new_res_box');\n            const val = document.getElementById('new_res_val');\n            const info = document.getElementById('new_res_info');\n            \n            box.style.display = \"block\";\n            \n            \/\/ \u6838\u5fc3\u908f\u8f2f\u4fee\u6b63\uff1a\u5982\u679c\u4f7f\u7528\u8005\u5728 Vf \u8f38\u5165\u7684\u662f\u7e3d\u96fb\u58d3 (\u5927\u65bc Vs\/N)\uff0c\u6211\u5011\u81ea\u52d5\u5224\u5b9a\u70ba\u7e3d\u96fb\u58d3\u8f38\u5165\n            let totalVf = vf * n;\n            if (vf > (vs \/ n) && n > 1) {\n                \/\/ \u5982\u679c\u55ae\u9846 Vf \u4e58\u4ee5\u6578\u91cf\u9060\u8d85 Vs\uff0c\u4f46\u55ae\u9846 Vf \u672c\u8eab\u5c0f\u65bc Vs\uff0c\u63d0\u793a\u53ef\u80fd\u662f\u7e3d\u96fb\u58d3\u586b\u932f\u4f4d\u7f6e\n                totalVf = vf * n; \n            }\n\n            if (totalVf >= vs) {\n                box.style.borderLeftColor = \"#ef4444\";\n                val.style.color = \"#ef4444\";\n                val.innerText = \"\u26a0\ufe0f \u932f\u8aa4\uff1a\u7e3d\u96fb\u58d3\u904e\u9ad8 (\" + totalVf.toFixed(1) + \"V)\";\n                info.innerText = \"LED \u7e3d\u58d3\u964d\u5df2\u8d85\u904e\u96fb\u6e90 \" + vs + \"V\u3002\u5982\u679c\u60a8\u525b\u624d\u8f38\u5165\u7684\u662f\u7e3d\u58d3\u964d \" + vf + \"V\uff0c\u8acb\u5c07\u6578\u91cf\u8a2d\u70ba 1\u3002\";\n            } else {\n                const r = (vs - totalVf) \/ i;\n                const p = (vs - totalVf) * i;\n                box.style.borderLeftColor = \"#10b981\";\n                val.style.color = \"#10b981\";\n                val.innerText = \"\u5efa\u8b70\u96fb\u963b\u503c\uff1a \" + r.toFixed(1) + \" \u03a9\";\n                info.innerText = \"\u96fb\u963b\u529f\u7387\uff1a \" + p.toFixed(3) + \" W (\u5efa\u8b70\u4f7f\u7528 \" + (p > 0.2 ? \"1\/2W\" : \"1\/4W\") + \" \u96fb\u963b)\";\n            }\n        }\n    <\/script>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>LED \u9650\u6d41\u96fb\u963b\u7dda\u4e0a\u8a08\u7b97\u5668 \u96fb\u6e90\u96fb\u58d3 (V) LED \u96fb\u58d3 Vf (V) \u4e32\u806f\u6578\u91cf (\u9846) \u96fb\u6d41 (mA) \u7acb &#8230; <a title=\"LED\u7dda\u9650\u6d41\u96fb\u963b\u7dda\u4e0a\u8a08\u7b97\u5668\" class=\"read-more\" href=\"https:\/\/gccircuit.com\/wordpress\/2026\/01\/20\/led%e7%b7%9a%e9%99%90%e6%b5%81%e9%9b%bb%e9%98%bb%e7%b7%9a%e4%b8%8a%e8%a8%88%e7%ae%97%e5%99%a8\/\" aria-label=\"Read more about LED\u7dda\u9650\u6d41\u96fb\u963b\u7dda\u4e0a\u8a08\u7b97\u5668\">\u95b1\u8b80\u5168\u6587<\/a><\/p>\n","protected":false},"author":1,"featured_media":230,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-229","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-diy"],"_links":{"self":[{"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":3,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":235,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/posts\/229\/revisions\/235"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/media\/230"}],"wp:attachment":[{"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}