Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
resources:tools-software:fm-radio [20 Feb 2014 17:12] – created Paul Cercueilresources:tools-software:fm-radio [18 Oct 2014 10:54] – [Playback] Lars-Peter Clausen
Line 9: Line 9:
 **FM channels:** **FM channels:**
   * either 200 kHz wide, with a frequency deviation limited to 150 kHz total,   * either 200 kHz wide, with a frequency deviation limited to 150 kHz total,
-  * or 100 kHz wide, with a frequency deviation limited to 75 MHz total.+  * or 100 kHz wide, with a frequency deviation limited to 75 KHz total.
  
 ===== The sysfs interface ===== ===== The sysfs interface =====
Line 66: Line 66:
 {{:resources:tools-software:capture4.png?300|}} {{:resources:tools-software:capture4.png?300|}}
  
-  * **RX LO Frequency**: the base frequency at which the hardware will be tuned. Set to 87.4 MHz (and not 87.5, since 87.5 is the middle of a 200 MHz channel);+  * **RX LO Frequency**: the base frequency at which the hardware will be tuned. Set to 87.4 MHz (and not 87.5, since 87.5 is the middle of a 200 KHz channel);
   * **RF Baudwidth**: the size of the band you want to capture. Here, we want at least a band of 107.9 - 87.5 = 20.4 MHz   * **RF Baudwidth**: the size of the band you want to capture. Here, we want at least a band of 107.9 - 87.5 = 20.4 MHz
   * **Sampling rate**: the number of samples you want to capture (in millions per second). Here we set this to 22, so that we get a resolution of approximatively one hertz.   * **Sampling rate**: the number of samples you want to capture (in millions per second). Here we set this to 22, so that we get a resolution of approximatively one hertz.
Line 84: Line 84:
   echo fast_attack > /sys/bus/iio/devices/iio:device1/in_voltage1_gain_control_mode   echo fast_attack > /sys/bus/iio/devices/iio:device1/in_voltage1_gain_control_mode
  
-Then, the **iio_fm_radio** tool will playback the desired channel: +Then, the **iio_fm_radio_play** tool will playback the desired channel on the speaker of the HDMI monitor: 
-  iio_fm_radio 95.5+  iio_fm_radio_play 95.5 
 +   
 +To directly get access to the audio waveform data the **iio_fm_radio** tool can be used. This tool outputs the audio data (in 16-bit mono at 48kHz) on standard output from where it can be taken and further processed. E.g. the following command plays back the stream on the headphone jack of the ZED board. 
 +  iio_fm_radio 95.5 | aplay -D default:CARD=ADAU1761 -r 48000 -f S16
resources/tools-software/fm-radio.txt · Last modified: 14 Mar 2016 22:29 by Robin Getz