I hate it when I can't figure something out, but this has me stumped...
This online Helical Antenna Design Calculator has an error in it - it gives an incorrect answer for the wire length required.
I looked at the page source, and saw that the calculations are done with a javascript, I found the error quite easily. I decided to use the java formulae in an excel spreadsheet so I could get correct results.
After doing the excel equivalent of the java calculations, I spotted that my excel sheet gives a different answer for the antenna Gain than the answer given by the javascript.
The javascript formula is ...
G= 10.8 + 10*log( CL*CL*N*SL )/LN10;
Given that C = lambda, and CL = C/lambda, CL is always going to be 1.
N is the number of turns (10), and SL is an input value, typically 0.25
So the javascript returns 14.8 dB gain
My excel formula for G is ...
=10.8 + 10*LOG(CL * CL * N * SL)/LN(10)
... which gives 12.5 dB gain
CL is 1.00000
N is 10
and SL is 0.25
The two formulas look to be equivalent to me, but they give different answers, and I can't figure out why... It's been driving me crazy for a few days. Can anyone shed any light on it ?? I'm starting to think that the java isn't handling the LN10 division correctly, but I've got nothing to test it with.
I have attached the full javascript from the web-page, and my excel file...
This online Helical Antenna Design Calculator has an error in it - it gives an incorrect answer for the wire length required.
I looked at the page source, and saw that the calculations are done with a javascript, I found the error quite easily. I decided to use the java formulae in an excel spreadsheet so I could get correct results.
After doing the excel equivalent of the java calculations, I spotted that my excel sheet gives a different answer for the antenna Gain than the answer given by the javascript.
The javascript formula is ...
G= 10.8 + 10*log( CL*CL*N*SL )/LN10;
Given that C = lambda, and CL = C/lambda, CL is always going to be 1.
N is the number of turns (10), and SL is an input value, typically 0.25
So the javascript returns 14.8 dB gain
My excel formula for G is ...
=10.8 + 10*LOG(CL * CL * N * SL)/LN(10)
... which gives 12.5 dB gain
CL is 1.00000
N is 10
and SL is 0.25
The two formulas look to be equivalent to me, but they give different answers, and I can't figure out why... It's been driving me crazy for a few days. Can anyone shed any light on it ?? I'm starting to think that the java isn't handling the LN10 division correctly, but I've got nothing to test it with.
I have attached the full javascript from the web-page, and my excel file...