{"id":690,"date":"2026-06-25T14:56:35","date_gmt":"2026-06-25T14:56:35","guid":{"rendered":"https:\/\/batdd.com\/shop\/?p=690"},"modified":"2026-06-25T15:39:56","modified_gmt":"2026-06-25T15:39:56","slug":"batterycablecal","status":"publish","type":"post","link":"https:\/\/batdd.com\/shop\/2026\/06\/25\/batterycablecal\/","title":{"rendered":"\u0e04\u0e33\u0e19\u0e27\u0e13\u0e02\u0e19\u0e32\u0e14\u0e2a\u0e32\u0e22\u0e41\u0e1a\u0e15\u0e40\u0e15\u0e2d\u0e23\u0e35\u0e48"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"th\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>\u0e04\u0e33\u0e19\u0e27\u0e13\u0e02\u0e19\u0e32\u0e14\u0e2a\u0e32\u0e22\u0e41\u0e1a\u0e15\u0e40\u0e15\u0e2d\u0e23\u0e35\u0e48 Solar Cell &#8211; BatDD Style<\/title>\n    <style>\n        body {\n            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, Arial, sans-serif;\n            background-color: #f0f2f5; \n            margin: 0;\n            padding: 40px 20px;\n            color: #333;\n        }\n        .container {\n            max-width: 650px;\n            margin: 0 auto;\n            background: #ffffff;\n            padding: 30px;\n            border-radius: 8px;\n            box-shadow: 0 2px 10px rgba(0,0,0,0.08);\n        }\n        \/* \u0e2a\u0e44\u0e15\u0e25\u0e4c\u0e42\u0e0b\u0e19\u0e25\u0e34\u0e07\u0e01\u0e4c\u0e23\u0e49\u0e32\u0e19\u0e04\u0e49\u0e32\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19 *\/\n        .shop-links-container {\n            display: flex;\n            flex-wrap: wrap;\n            justify-content: center;\n            gap: 10px;\n            margin-bottom: 25px;\n            padding-bottom: 15px;\n            border-bottom: 1px dashed #e2e8f0;\n        }\n        .shop-link {\n            font-size: 13px;\n            font-weight: 600;\n            text-decoration: none;\n            padding: 6px 12px;\n            border-radius: 20px;\n            transition: all 0.2s;\n            display: inline-flex;\n            align-items: center;\n        }\n        .link-main { background-color: #e3f2fd; color: #0d47a1; border: 1px solid #bbdefb; }\n        .link-main:hover { background-color: #0d47a1; color: white; }\n        .link-shopee { background-color: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; }\n        .link-shopee:hover { background-color: #e65100; color: white; }\n        .link-lazada { background-color: #f3e5f5; color: #4a148c; border: 1px solid #e1bee7; }\n        .link-lazada:hover { background-color: #4a148c; color: white; }\n        .link-tiktok { background-color: #eceff1; color: #212121; border: 1px solid #cfd8dc; }\n        .link-tiktok:hover { background-color: #212121; color: white; }\n\n        h2 {\n            text-align: center;\n            color: #1a1a1a;\n            margin-top: 0;\n            margin-bottom: 30px;\n            font-size: 24px;\n            border-bottom: 2px solid #3182ce;\n            padding-bottom: 15px;\n        }\n        .form-group {\n            margin-bottom: 22px;\n        }\n        .form-label {\n            display: flex;\n            align-items: center;\n            margin-bottom: 10px;\n            font-weight: 600;\n            color: #2d3748;\n            font-size: 16px;\n        }\n        .step-num {\n            display: inline-flex;\n            align-items: center;\n            justify-content: center;\n            width: 24px;\n            height: 24px;\n            background-color: #3182ce;\n            color: #fff;\n            border-radius: 50%;\n            font-size: 13px;\n            margin-right: 10px;\n            font-weight: bold;\n        }\n        select, input {\n            width: 100%;\n            padding: 12px 15px;\n            border: 1px solid #ccd0d5;\n            border-radius: 4px;\n            box-sizing: border-box;\n            font-size: 16px;\n            background-color: #fff;\n            transition: border-color 0.2s;\n        }\n        select:focus, input:focus {\n            outline: none;\n            border-color: #3182ce;\n            box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);\n        }\n        button {\n            width: 100%;\n            background-color: #3182ce;\n            color: white;\n            padding: 14px;\n            border: none;\n            border-radius: 4px;\n            font-size: 18px;\n            font-weight: bold;\n            cursor: pointer;\n            transition: background 0.2s;\n            margin-top: 15px;\n            box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);\n        }\n        button:hover {\n            background-color: #2b6cb0;\n        }\n        .result-box {\n            margin-top: 30px;\n            padding: 25px;\n            background-color: #f8fafc;\n            border: 1px solid #e2e8f0;\n            border-radius: 6px;\n            display: none;\n        }\n        .result-title {\n            font-size: 18px;\n            font-weight: bold;\n            color: #2d3748;\n            margin-bottom: 18px;\n            border-left: 4px solid #3182ce;\n            padding-left: 10px;\n        }\n        .result-row {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            padding: 12px 0;\n            border-bottom: 1px dashed #e2e8f0;\n        }\n        .result-row:last-of-type {\n            border-bottom: none;\n        }\n        .result-label {\n            font-size: 15px;\n            color: #4a5568;\n        }\n        .result-value {\n            font-weight: bold;\n            font-size: 18px;\n            color: #1a202c;\n        }\n        .highlight-blue {\n            color: #2b6cb0;\n            font-size: 20px;\n        }\n        .highlight-red {\n            color: #e53e3e;\n            font-size: 20px;\n        }\n        .highlight-green {\n            color: #2f855a;\n        }\n        .note-text {\n            font-size: 13px;\n            color: #718096;\n            margin-top: 15px;\n            line-height: 1.5;\n            background: #fff;\n            padding: 12px;\n            border-radius: 4px;\n            border: 1px solid #e2e8f0;\n        }\n    <\/style>\n<\/head>\n<body>\n\n<div class=\"container\">\n    \n    <div class=\"shop-links-container\">\n        <a href=\"https:\/\/www.batdd.com\/shop\" target=\"_blank\" class=\"shop-link link-main\">\ud83c\udf10 \u0e23\u0e49\u0e32\u0e19\u0e2b\u0e25\u0e31\u0e01 (\u0e25\u0e14 20%)<\/a>\n        <a href=\"https:\/\/s.shopee.co.th\/gA5HYw3pg\" target=\"_blank\" class=\"shop-link link-shopee\">\ud83e\udde1 Shopee<\/a>\n        <a href=\"https:\/\/www.lazada.co.th\/shop\/batdd-com\" target=\"_blank\" class=\"shop-link link-lazada\">\ud83d\udc99 Lazada<\/a>\n        <a href=\"https:\/\/vt.tiktok.com\/ZSQKv93hN\/?page=TikTokShop\" target=\"_blank\" class=\"shop-link link-tiktok\">\ud83d\udda4 TikTok Shop<\/a>\n    <\/div>\n\n    <h2>\ud83d\udd0b \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e04\u0e33\u0e19\u0e27\u0e13\u0e2a\u0e32\u0e22\u0e41\u0e1a\u0e15\u0e40\u0e15\u0e2d\u0e23\u0e35\u0e48 Solar Cell<\/h2>\n    \n    <div class=\"form-group\">\n        <div class=\"form-label\"><span class=\"step-num\">1<\/span> \u0e41\u0e23\u0e07\u0e14\u0e31\u0e19\u0e23\u0e30\u0e1a\u0e1a\u0e41\u0e1a\u0e15\u0e40\u0e15\u0e2d\u0e23\u0e35\u0e48 (V)<\/div>\n        <select id=\"system_voltage\">\n            <option value=\"12\">12V<\/option>\n            <option value=\"24\">24V<\/option>\n            <option value=\"48\" selected>48V<\/option>\n        <\/select>\n    <\/div>\n\n    <div class=\"form-group\">\n        <div class=\"form-label\"><span class=\"step-num\">2<\/span> \u0e02\u0e19\u0e32\u0e14\u0e27\u0e31\u0e15\u0e15\u0e4c\u0e15\u0e48\u0e2d\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07 \u0e2b\u0e23\u0e37\u0e2d\u0e02\u0e19\u0e32\u0e14\u0e2d\u0e34\u0e19\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e40\u0e15\u0e2d\u0e23\u0e4c (W)<\/div>\n        <input type=\"number\" id=\"power_watts\" value=\"3000\" min=\"100\" max=\"20000\" placeholder=\"\u0e40\u0e0a\u0e48\u0e19 3000 \u0e2b\u0e23\u0e37\u0e2d 5000\">\n    <\/div>\n\n    <div class=\"form-group\">\n        <div class=\"form-label\"><span class=\"step-num\">3<\/span> \u0e04\u0e27\u0e32\u0e21\u0e22\u0e32\u0e27\u0e2a\u0e32\u0e22\u0e41\u0e1a\u0e15\u0e40\u0e15\u0e2d\u0e23\u0e35\u0e48 \u0e40\u0e17\u0e35\u0e48\u0e22\u0e27\u0e40\u0e14\u0e35\u0e22\u0e27 (\u0e40\u0e21\u0e15\u0e23)<\/div>\n        <input type=\"number\" id=\"cable_length\" value=\"2\" min=\"0.5\" max=\"20\" step=\"0.5\">\n    <\/div>\n\n    <button onclick=\"calculateBatteryCable()\">\u0e04\u0e33\u0e19\u0e27\u0e13\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c<\/button>\n\n    <div id=\"result\" class=\"result-box\">\n        <div class=\"result-title\">\ud83c\udfaf \u0e1c\u0e25\u0e01\u0e32\u0e23\u0e04\u0e33\u0e19\u0e27\u0e13\u0e41\u0e25\u0e30\u0e04\u0e33\u0e41\u0e19\u0e30\u0e19\u0e33\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e23\u0e30\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13<\/div>\n        \n        <div class=\"result-row\">\n            <span class=\"result-label\">\u0e01\u0e23\u0e30\u0e41\u0e2a\u0e2a\u0e39\u0e07\u0e2a\u0e38\u0e14\u0e43\u0e19\u0e2a\u0e32\u0e22 (Current):<\/span>\n            <span class=\"result-value\"><span id=\"res_amps\">&#8211;<\/span> A<\/span>\n        <\/div>\n        \n        <div class=\"result-row\">\n            <span class=\"result-label\">\u0e02\u0e19\u0e32\u0e14\u0e2a\u0e32\u0e22\u0e41\u0e19\u0e30\u0e19\u0e33 \u0e21\u0e32\u0e15\u0e23\u0e10\u0e32\u0e19\u0e44\u0e17\u0e22 (THW \/ \u0e2a\u0e32\u0e22\u0e2d\u0e48\u0e2d\u0e19):<\/span>\n            <span class=\"result-value highlight-blue\"><span id=\"res_cable\">&#8211;<\/span> mm\u00b2<\/span>\n        <\/div>\n        \n        <div class=\"result-row\">\n            <span class=\"result-label\">\u0e02\u0e19\u0e32\u0e14\u0e2a\u0e32\u0e22\u0e41\u0e19\u0e30\u0e19\u0e33 \u0e21\u0e32\u0e15\u0e23\u0e10\u0e32\u0e19\u0e2d\u0e40\u0e21\u0e23\u0e34\u0e01\u0e31\u0e19 (AWG \/ \u0e0b\u0e34\u0e25\u0e34\u0e42\u0e04\u0e19):<\/span>\n            <span class=\"result-value highlight-red\"><span id=\"res_awg\">&#8211;<\/span> AWG<\/span>\n        <\/div>\n        \n        <div class=\"result-row\">\n            <span class=\"result-label\">\u0e02\u0e19\u0e32\u0e14\u0e23\u0e30\u0e1a\u0e1a\u0e2d\u0e34\u0e19\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e17\u0e35\u0e48\u0e04\u0e33\u0e19\u0e27\u0e13:<\/span>\n            <span class=\"result-value highlight-green\"><span id=\"res_sys_size\">&#8211;<\/span> kW<\/span>\n        <\/div>\n        \n        <div class=\"note-text\">\n            <strong>* \u0e02\u0e49\u0e2d\u0e41\u0e19\u0e30\u0e19\u0e33\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22:<\/strong><br>\n            \u0e23\u0e30\u0e1a\u0e1a\u0e04\u0e33\u0e19\u0e27\u0e13\u0e40\u0e1c\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22 (Safety Factor) \u0e44\u0e27\u0e49\u0e17\u0e35\u0e48 125% \u0e41\u0e25\u0e30\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e41\u0e23\u0e07\u0e14\u0e31\u0e19\u0e15\u0e01\u0e43\u0e19\u0e2a\u0e32\u0e22 (Voltage Drop) \u0e44\u0e21\u0e48\u0e43\u0e2b\u0e49\u0e40\u0e01\u0e34\u0e19 2% \u0e41\u0e25\u0e49\u0e27 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e23\u0e30\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e20\u0e32\u0e1e\u0e2a\u0e39\u0e07\u0e2a\u0e38\u0e14 \u0e04\u0e27\u0e23\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e43\u0e0a\u0e49\u0e2a\u0e32\u0e22\u0e44\u0e1f\u0e1f\u0e49\u0e32\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17 <strong>&#8220;\u0e17\u0e2d\u0e07\u0e41\u0e14\u0e07\u0e1d\u0e2d\u0e22\u0e2d\u0e48\u0e2d\u0e19&#8221;<\/strong> (\u0e40\u0e0a\u0e48\u0e19 \u0e2a\u0e32\u0e22 THW(f) \u0e2b\u0e23\u0e37\u0e2d\u0e2a\u0e32\u0e22 AWG \u0e0b\u0e34\u0e25\u0e34\u0e42\u0e04\u0e19\u0e40\u0e01\u0e23\u0e14\u0e2a\u0e39\u0e07\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e07\u0e32\u0e19\u0e41\u0e1a\u0e15\u0e40\u0e15\u0e2d\u0e23\u0e35\u0e48\u0e42\u0e14\u0e22\u0e40\u0e09\u0e1e\u0e32\u0e30) \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e19\u0e04\u0e27\u0e32\u0e21\u0e23\u0e49\u0e2d\u0e19\u0e2a\u0e30\u0e2a\u0e21\u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e2a\u0e39\u0e0d\u0e40\u0e2a\u0e35\u0e22\u0e1e\u0e25\u0e31\u0e07\u0e07\u0e32\u0e19\u0e43\u0e19\u0e23\u0e30\u0e1a\u0e1a\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\n    function calculateBatteryCable() {\n        const V = parseFloat(document.getElementById('system_voltage').value);\n        const P = parseFloat(document.getElementById('power_watts').value);\n        const L = parseFloat(document.getElementById('cable_length').value);\n\n        if (isNaN(P) || P <= 0 || isNaN(L) || L <= 0) {\n            alert('\u0e01\u0e23\u0e38\u0e13\u0e32\u0e01\u0e23\u0e2d\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e43\u0e2b\u0e49\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e41\u0e25\u0e30\u0e04\u0e23\u0e1a\u0e16\u0e49\u0e27\u0e19');\n            return;\n        }\n\n        let I_continuous = P \/ V;\n        let I_design = I_continuous * 1.25;\n\n        const cableSpecs = [\n            { size: 4,   awg: \"12\",     amp: 35,   r: 4.95 },\n            { size: 6,   awg: \"10\",     amp: 45,   r: 3.30 },\n            { size: 10,  awg: \"7-8\",    amp: 65,   r: 1.83 },\n            { size: 16,  awg: \"6\",      amp: 90,   r: 1.15 },\n            { size: 25,  awg: \"4\",      amp: 120,  r: 0.727 },\n            { size: 35,  awg: \"2\",      amp: 150,  r: 0.524 },\n            { size: 50,  awg: \"1\/0\",    amp: 195,  r: 0.387 },\n            { size: 70,  awg: \"2\/0\",    amp: 245,  r: 0.268 },\n            { size: 95,  awg: \"3\/0\",    amp: 300,  r: 0.193 },\n            { size: 120, awg: \"4\/0\",    amp: 350,  r: 0.153 }\n        ];\n\n        let matchedIndex = cableSpecs.length - 1;\n        for (let i = 0; i < cableSpecs.length; i++) {\n            if (I_design <= cableSpecs[i].amp) {\n                matchedIndex = i;\n                break;\n            }\n        }\n\n        let max_vd = V * 0.02; \n        let finalIndex = matchedIndex;\n\n        for (let i = matchedIndex; i < cableSpecs.length; i++) {\n            let R = cableSpecs[i].r;\n            let vd = (2 * L * I_continuous * R) \/ 1000;\n            \n            if (vd <= max_vd) {\n                finalIndex = i;\n                break;\n            }\n            if (i === cableSpecs.length - 1) {\n                finalIndex = i;\n            }\n        }\n\n        let recommendedCable = cableSpecs[finalIndex];\n        let systemKw = (P \/ 1000).toFixed(1);\n\n        document.getElementById('res_amps').innerText = I_continuous.toFixed(2);\n        document.getElementById('res_cable').innerText = recommendedCable.size;\n        document.getElementById('res_awg').innerText = recommendedCable.awg;\n        document.getElementById('res_sys_size').innerText = systemKw;\n\n        document.getElementById('result').style.display = 'block';\n    }\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>\u0e04\u0e33\u0e19\u0e27\u0e13\u0e02\u0e19\u0e32\u0e14\u0e2a\u0e32\u0e22\u0e41\u0e1a\u0e15\u0e40\u0e15\u0e2d\u0e23\u0e35 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","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":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-690","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/batdd.com\/shop\/wp-json\/wp\/v2\/posts\/690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/batdd.com\/shop\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/batdd.com\/shop\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/batdd.com\/shop\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/batdd.com\/shop\/wp-json\/wp\/v2\/comments?post=690"}],"version-history":[{"count":2,"href":"https:\/\/batdd.com\/shop\/wp-json\/wp\/v2\/posts\/690\/revisions"}],"predecessor-version":[{"id":693,"href":"https:\/\/batdd.com\/shop\/wp-json\/wp\/v2\/posts\/690\/revisions\/693"}],"wp:attachment":[{"href":"https:\/\/batdd.com\/shop\/wp-json\/wp\/v2\/media?parent=690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/batdd.com\/shop\/wp-json\/wp\/v2\/categories?post=690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/batdd.com\/shop\/wp-json\/wp\/v2\/tags?post=690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}