1. You can now help support WorldwideDX when you shop on Amazon at no additional cost to you! Simply follow this Shop on Amazon link first and a portion of any purchase is sent to WorldwideDX to help with site costs.
    Dismiss Notice
Dismiss Notice
This forum does not allow a single user to have more than one username. If anyone wants to change their username contact an admin and it will be done. Multiple accounts belonging to the same member will be deleted without warning.

ButtFuzz' PowerShell Radio / Antenna Math

Discussion in 'General Ham Radio Discussion' started by ButtFuzz, Jul 25, 2019.

  1. ButtFuzz

    ButtFuzz Anti-BS Advocate ● WO0WOO ● Reverend Doctor

    Joined:
    Aug 11, 2005
    Messages:
    573
    Likes Received:
    294
    I was bored in PowerShell class today.
    Here's a simple PowerShell script to roughly calculate antenna values. YMMV. Wooooooo!

    #####################################################
    Function Show-DipoleSize()
    {
    CLS
    [float]$freq = Read-Host "What is the desired freq. in MHz?"
    $f = ($freq)
    $a = (468/$freq)
    $b = ($a/2)
    $c = ($b * 12)
    $d = ($f*3)
    $e = ($f*9)
    $l = ($a*2)
    $cm = ($b*30.48)
    Write-Host ""
    Write-Host "At $freq MHz:" -ForegroundColor Yellow
    Write-Host ""
    Write-Host " $a ft. is the lenth of a 1/2-wave dipole made of copper."
    Write-Host " Each 'leg' of the dipole should be $b ft. long."
    Write-Host " If you are building a ground plane, the radiator should be $b ft."
    Write-Host " The GP radials (4 minimum) should be slightly shorter than $b ft."
    Write-Host " A full-wave loop should reach 52 Ohm impedance at approximately $l ft."
    Write-Host " $b ft. = $c inches."
    Write-Host " $b ft. = $cm centimeters."
    Write-Host ""
    Write-Host "The antenna should function just fine around $d MHz."
    Write-Host "The antenna should function just fine around $e MHz."
    }#end-function
    ##########################################################



    Copy/Paste what's between the #####'s into PowerShell ISE and save it to your liking.
     
    Shadetree Mechanic likes this.
  2. ButtFuzz

    ButtFuzz Anti-BS Advocate ● WO0WOO ● Reverend Doctor

    Joined:
    Aug 11, 2005
    Messages:
    573
    Likes Received:
    294
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
     
    Shadetree Mechanic likes this.

Share This Page

  • About Us

    The WorldwideDX Radio Forum was originally established in 2001. We pride ourselves on welcoming Radio Hobby enthusiasts of all types, while offering unbiased, informative, and friendly discussion among the members. We are working every day to make sure our community is the best Radio Hobbyist's site.
  • Like us on Facebook

  • Premium VIP Member

    The management works very hard to make sure the community is running the best software, best designs, and all the other bells and whistles. Care to buy us a beer? We'd really appreciate it!

    Donate to us!