Decoding AM station from SDR into sound?

  • Thread starter Thread starter Artlav
  • Start date Start date
  • Tags Tags
    Sound
AI Thread Summary
To decode AM signals from I/Q samples into sound, two methods are discussed. The first method, considered less effective, involves producing sound as a beat frequency of the carrier, which results in poor audio quality and requires precise frequency selection. The second, more effective method applies a band-pass filter around the target frequency, allowing for clearer audio by capturing the envelope of the AM signal. Implementing a good band-pass filter, such as a Butterworth IIR filter, is crucial but more complex than the first method. Additional resources for learning about digital signal processing (DSP) and relevant algorithms are suggested for further exploration.
Artlav
Messages
161
Reaction score
1
In short, how do you decode AM signal from I/Q samples into sound?

In details, i made a software defined radio that uses a PC sound card as ADC.
The local oscillator on it is set to 700KHz, there is a radio station at 731KHz.
With existing software i verified that the hardware works - the station is here and i can hear it.

Now, the goal is to make my own SDR software.
I can read the I/Q signals, at 96K samples per second, into a program on a PC.
When i do FFT on them, i see the target station at 31KHz in there.

And that's where i ran out of knowledge.
There is a lot of info on the net on how to make SDR hardware, but i wasn't able to find anything on how to make SDR software.

So, i have two sets of numbers that are I/Q samples, 96000 of them per second, and a frequency of the station.

How do i get sound out of them?
Where to begin, what names to google for, what to read?
 
Engineering news on Phys.org
Figured it out.
Two ways to do it, good and bad.

1. The bad. Produce the sound as beat frequency of the carrier. Sound sample = input sample (as a complex number I,Q) multiplied by sin(wt)+i*cos(wt), where w is 2*PI*Fcarrier.
This results in a sound, but the sound is quite bad.
Also, you need to pick the frequency exactly, or the sound will overlap with noise and shifted carrier.
Only advantage is - it's simple to implement.
Might be useful for some other signal type, but not quite good enough for AM audio.

2. The good. Apply a band pass filter to the target's frequency (i.e. carrier+-4KHz). Now, the sound is the complex magnitude of the input sample - the envelope of the AM signal.
This gives clear audio.
The trick is to get a good enough band-pass filter, and these are two orders of magnitude harder to implement than both the first method and the rest of the receiver program combined.
I ended up using Butterworth IIR filter, for which there is good info on http://www-users.cs.york.ac.uk/~fisher/mkfilter .

In both cases it's a good idea to apply even simple low-pass and high-pass filters to the audio, to get rid of stuff at the edges.

Things to look for and google:
-DSP, digital signal processing
-C Algorithms For Real Time DsP, by Paul Embree, a book.
-http://www.arrl.org/dsp-digital-signal-processing

Perhaps this is better moved to Math section?
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top