Update inductor.html

Added AWG guide for Americans.
pull/2/head
miguel 2020-11-18 21:10:29 +11:00
rodzic 3331e44876
commit 6809208d4c
1 zmienionych plików z 92 dodań i 3 usunięć

Wyświetl plik

@ -36,7 +36,7 @@
</div>
</div>
<br>
<b>Notes:</b><br>
<b><u>Notes:</u></b><br>
RF Inductor Designer was developed to help users predict the RF characteristics of a single-layer solenoid-style air-core inductor. <br><br>
<u>Inputs via the slider widgets:</u>
<ul>
@ -47,8 +47,8 @@
<li>N : Number of turns or windings.</li>
<li>f : The frequency of interest (MHz) for some of the calculations.</li>
</ul>
<p>Characteristics on the left are independent of frequency, while the characteristics on the right are dependent on the selected frequency. </p>
<p>Each of the graphic representations attempt to keep the relative geometry correct, without exceeding the drawing boundary. The coil diameter
<p>Characteristics on the left are independent of frequency, while the characteristics on the right are dependent on the selected frequency. <br><br>
Each of the graphic representations attempt to keep the relative geometry correct, without exceeding the drawing boundary. The coil diameter
relative to the conductor diameter are representative. </p>
<u>Calculated dimensions:</u>
<ul>
@ -383,6 +383,95 @@
const cond_dia = 1.0 * conductor_diameter_slider.value;
fctx.textAlign = "center";
fctx.fillText("\u2300a = " + cond_dia.toPrecision(3).toString() + "mm", loopx, loopy - 6);
var awg = "";
switch(cond_dia) {
case 0.100 :
awg = "~38 AWG";
break;
case 0.150 :
awg = "~35 AWG";
break;
case 0.200 :
awg = "~32 AWG";
break;
case 0.250 :
awg = "~30 AWG";
break;
case 0.300 :
awg = "~29 AWG";
break;
case 0.350 :
awg = "~27 AWG";
break;
case 0.400 :
awg = "~26 AWG";
break;
case 0.450 :
awg = "~25 AWG";
break;
case 0.500 :
awg = "~24 AWG";
break;
case 0.550 :
awg = "~23 AWG";
break;
case 0.650 :
awg = "~22 AWG";
break;
case 0.700 :
awg = "~21 AWG";
break;
case 0.800 :
awg = "~20 AWG";
break;
case 0.900 :
awg = "~19 AWG";
break;
case 1.00 :
awg = "~18 AWG";
break;
case 1.15 :
awg = "~17 AWG";
break;
case 1.30 :
awg = "~16 AWG";
break;
case 1.45 :
awg = "~15 AWG";
break;
case 1.55 :
awg = "~14 AWG";
break;
case 1.80 :
awg = "~13 AWG";
break;
case 2.00 :
awg = "~12 AWG";
break;
case 2.30 :
awg = "~11 AWG";
break;
case 2.60 :
awg = "~10 AWG";
break;
case 2.90 :
awg = "~9 AWG";
break;
case 3.25 :
awg = "~8 AWG";
break;
case 3.65 :
awg = "~7 AWG";
break;
case 4.10 :
awg = "~6 AWG";
break;
case 4.60 :
awg = "~5 AWG";
break;
}
fctx.textAlign = "left";
fctx.fillText(awg, loopx + loop_radius + cond_radius + 2.0*arrow_size, loopy - 6);