/* From the feeble mind of N3GO - Gary O'Neil - March 17, 1995 */
/* End-fed Zepp/J-pole design calculations */
/* */
/* Converted from BASIC to C by SM5SXL Mats Petersson 950407 */
/* Ncurses conversion 970319 */
design()
{
/* ZA = Antenna Feedpoint Impedance, ZF = Feedline Impedance, and */
/* Z0 = the impedance of the matching transmission line. */
/* ZA = 3500 to 5000 ohms for end fed dipole. */
/* ZF = 50 ohms in my analysis */
/* Z0 = 300 Ohms nominal ** Note: Maximum = sqrt(ZA*ZF) */
/* The constant 5606 is 95 per cent of the speed of light in inches
for a half wavelength at 1 MHz */
dipole = 5606 / f; /* Equation A9 - A */
/* The constant 32.78 is the speed of light in inches/degree/MHz */
series = 32.78 * v * (l1/f); /* Equation A9 - B */
shunt = 32.78 * v * (l2/f); /* Equation A9 - C */
printf("\nFrequency in MHz = %f\n",f);
printf("Wavelength in air = %f cm\n",(299.7*39.37/f) * 2.54);
printf("Length of stub = %f wavelengths\n",(l1+l2)/360);
printf("Height of 'Tap' = %f wavelengths\n",l2/360);
printf("Dipole Length = %f cm\n",dipole * 2.54);
printf("Series Trans. Line = %f cm\n",series * 2.54);
printf("Shunt Trans. Line = %f cm\n",shunt * 2.54);
printf("Stub Length = %f cm\n",series * 2.54 + shunt * 2.54);
printf("Overall Length = %f cm\n",series * 2.54 + shunt * 2.54 + dipole * 2.54);
printf("\n");
printf("Impedances used for this calculation are as follows:\n\n");
printf("Impedance of End-fed Dipole: %.0f Ohms\n",za);
printf("Antenna System Feedline Impedance: %.0f Ohms\n",zf);
printf("Matching Section Transmission line Impedance: %.0f Ohms\n",z0);
printf("Maximum Usable Matching line Impedance: %.0f Ohms\n",zmax);
printf("Velocity Factor of Matching Section: %f\n",v);
input("\nNew Velocity factor (enter zero to quit): ", &v);
if (v == 0) return;
}
errexit:
printf("\nUse matching transmission line impedance less than %f Ohms\n",zmax);
printf("Change term in data statement to reflect a lower impedance.\n");
}
if (dl > 0)
printf("\nReduce the length of the halfwave element "
"by: %f cm\n", dl * 12 * 2.54);
else
printf("\nIncrease the length of the halfwave element "
"by: %f cm\n", fabs(dl) * 12 * 2.54);
}
printf("\nGood Job!!!\n");
}
input("\nDesired operating frequency (MHz): ", &f1);
input("\nEstimate the velocity factor of the transmission line: ",
&v);
printf("\nCut an electrical half wavelength sample.\n");
l1 = (v * 491.78) / f1; /* Equation C1 */
printf("\nCut sample length to: %f cm\n",l1 * 12 * 2.54);
while (1) {
input("\nFrequency (MHz) where VSWR is lowest: ", &f2);
/* Compute new velocity factor estimate based on VSWR measurement result */