Audio Power Software

Audio Power is written in C# and uses NAudio , Zedgraph and Lomont’s FFT .

Click on screen shots below to get a larger picture

AudioPower_SV1CAL

AudioPower_SV1CAL_2

It basically calculates the average power of a number of audio samples. It can also display raw ADC input , FFT etc

To download the software click here

SUN NOISE MEASUREMENT

I wanted to have an accurate way of measuring the well known “Sun Noise” of my 23cm Moonbounce setup.

Comparing the received power when pointing the antenna at the  Sun  with the noise when pointing it at the quietest point in the sky gives a good estimation of reception capabilities.  If I had a spectrum analyzer I would just have to connect the output of the LNA or down converter to the spectrum analyzer input ,then turn the antenna to the Sun , measure noise power (Signal) in a given bandwidth , then move the antenna to “cold” sky, measure noise power (Noise)  in the same bandwidth and calculate the Signal to Noise Ratio (in dB).

Maximizing this ratio by modifying the antenna , LNA etc ensures best reception.

Higher Sun noise power means that the antenna has higher gain.

But just increasing the gain of an antenna does not mean that SNR will get better because noise received is also as important.

Less Cold sky power means that the antenna receives less noise.

Just decreasing noise without looking at antenna gain is also not enough.

SOUND CARD VS SPECTRUM ANALYZER

Since a spectrum analyzer wasn’t available , I decided to write this application. Obviously , there are other ham radio applications available like the excellent SpectraVue etc which can be used to measure audio power.

But writing its own software is part of the fun . There were many new things to learn . I had to figure out how to access audio samples in C# , how to display data and calculate  FFT efficiently.

So this sounded like a really interesting project 🙂

Finally the excellent NAudio library was used to access sound samples.

Zedgraph makes plotting really easy and it is very fast as well.

For FFT display, I found Lomont’s implementation fast and efficient.

USING AUDIO POWER SOFTWARE

After selecting Capture device, sample rate , number of samples used for averaging and time span to be shown , click “CONFIG” button. Hitting “START” button will enable sound capturing and the results will be displayed in the plot below.

Adjust sound card input sensitivity within Windows Mixer .

There is a button “Open Windows Mixer(WinXP)” that will open the necessary controls. At the moment, this only works in Windows XP.

To stop capturing and possibly modify settings hit “STOP” change parameters , hit “CONFIG” and then “START” again

Hitting button “STORE A” or “STORE B” stores the current averaged power to the text box next to the button.

Hitting “DELTA” will calculate the difference and show it in the text box.

For example, point at the sun and hit “STORE A”. Point at cold sky and hit “STORE B” . Hitting “DELTA” will give you the difference or  the SUN NOISE / COLD SKY ratio in dB.

Besides average power, the software can also display raw sound card samples , a simple FFT  vs time, DC and average value of incoming samples, Delta between averaged samples, FFT peak power and frequency.

To download the software click here

Please send me your comments and bug reports !

Best 73s,

Michael Margaras , SV1CAL

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: