propeller FM modulator/demodulator
laser-vector
Posts: 118
Hi I have an experiment where Id like to use a propeller to take an audio input and convert it to an FM output. Then use another prop (or another cog) to demodulate that signal and conver it back to audio.
Any ideas or refrences to similar projects would be very helpful!
Thanks,
LV.
Any ideas or refrences to similar projects would be very helpful!
Thanks,
LV.
Comments
-Phil
Signal would be transmitted via optical medium and consist of LED (TX) / Photodiode (RX)
I need to send FM via optical to test a piece of data comm. equiptement we're designing.
The reason we want FM is because its easy to quickly find signals when listening for music.
If the prop could do this then it might save me some time to test
LV
Here's a schematic of the circuit I used to test and monitor the signals:
The FM signal is created by modulating frqa of an NCO-mode counter. This produces a square wave whose instantaneous frequency is the carrier frequency, plus the value of a computed sine wave. The carrier frequency is clkfreq / 2048 == 39.0625 KHz. The modulation frequency is 250 Hz. The maximum FM deviation is ± 6.25% of the carrier frequency (± 2.44 KHz).
I cheated a little on the demodulation, since I used the period, rather than the inverse period (i.e. frequency) to reconstitute the modulation envelope. This introduces some non-linearity; but if the FM deviation percentage is small, the non-linearity will also be small. Here's the formula:
The circuit shown above monitors both the modulating signal and the demodulated signal for comparison on a scope. Both use a counter's DUTY mode, along with an RC low-pass filter, to produce the digital-to-analog conversion. Here are the scope displays:
Here's the program that generated them:
Hopefully, this will be useful to your project.
-Phil