GNU Radio World

RTL-SDR Simple Example

Press Load to open this flowgraph in an editor embedded above, then ▶ to run it. Nothing is downloaded until you do.

Open in the full editor ▶ Download the .grc

Blocks used

BlockModuleUsed
QT GUI RangeGNU Radio2
👂 RTL-SDR SourceGNU Radio1
GUI LayoutGNU Radio1
QT GUI Frequency SinkGNU Radio1
QT GUI Waterfall SinkGNU Radio1
VariableGNU Radio1

Flowgraph source

rtlsdr/rtlsdr_simple.grc
options:
    parameters:
        author: Marc
        copyright: ''
        description: ''
        generate_options: qt_gui
        id: RTL_SDR_Simple_Example
        title: RTL-SDR Simple Example
    states:
        coordinate: [10, 10]
        rotation: 0
        state: enabled
blocks:
-   name: center_freq
    id: variable_qtgui_range
    parameters:
        comment: ''
        label: RF Frequency
        min_len: '200'
        orient: QtCore.Qt.Horizontal
        rangeType: float
        start: '71000000'
        step: '500000'
        stop: '2000000000'
        value: '100000000'
        widget: counter_slider
    states:
        coordinate: [320, 20]
        rotation: 0
        state: enabled
-   name: gain
    id: variable_qtgui_range
    parameters:
        comment: ''
        label: Gain
        min_len: '200'
        orient: QtCore.Qt.Horizontal
        rangeType: float
        start: '0'
        step: '1'
        stop: '49'
        value: '45'
        widget: counter_slider
    states:
        coordinate: [560, 20]
        rotation: 0
        state: enabled
-   name: samp_rate
    id: variable
    parameters:
        comment: ''
        value: '2048000'
    states:
        coordinate: [80, 130]
        rotation: 0
        state: enabled
-   name: qtgui_freq_sink_x_0
    id: qtgui_freq_sink_x
    parameters:
        affinity: ''
        alias: ''
        alpha1: '1'
        alpha10: '1'
        alpha2: '1'
        alpha3: '1'
        alpha4: '1'
        alpha5: '1'
        alpha6: '1'
        alpha7: '1'
        alpha8: '1'
        alpha9: '1'
        autoscale: 'True'
        average: '0.1'
        axislabels: 'True'
        color1: '"blue"'
        color10: '"dark blue"'
        color2: '"red"'
        color3: '"green"'
        color4: '"black"'
        color5: '"cyan"'
        color6: '"magenta"'
        color7: '"yellow"'
        color8: '"dark red"'
        color9: '"dark green"'
        comment: ''
        ctrlpanel: 'False'
        fc: center_freq
        fftsize: '2048'
        grid: 'False'
        label1: ''
        label10: ''
        label2: ''
        label3: ''
        label4: ''
        label5: ''
        label6: ''
        label7: ''
        label8: ''
        label9: ''
        legend: 'True'
        marker1: '-1'
        marker10: '-1'
        marker2: '-1'
        marker3: '-1'
        marker4: '-1'
        marker5: '-1'
        marker6: '-1'
        marker7: '-1'
        marker8: '-1'
        marker9: '-1'
        maxoutbuf: '0'
        minoutbuf: '0'
        name: Spectrum
        nconnections: '1'
        samp_rate: samp_rate
        style1: '1'
        style10: '1'
        style2: '1'
        style3: '1'
        style4: '1'
        style5: '1'
        style6: '1'
        style7: '1'
        style8: '1'
        style9: '1'
        tr_chan: '0'
        tr_level: '0'
        tr_mode: qtgui.TRIG_MODE_FREE
        tr_tag: ''
        update_time: '0.1'
        width1: '1'
        width10: '1'
        width2: '1'
        width3: '1'
        width4: '1'
        width5: '1'
        width6: '1'
        width7: '1'
        width8: '1'
        width9: '1'
        ymax: '10'
        ymin: '-140'
    states:
        coordinate: [430, 250]
        rotation: 0
        state: enabled
-   name: qtgui_waterfall_sink_x_0
    id: qtgui_waterfall_sink_x
    parameters:
        affinity: ''
        alias: ''
        alpha1: '1'
        alpha10: '1'
        alpha2: '1'
        alpha3: '1'
        alpha4: '1'
        alpha5: '1'
        alpha6: '1'
        alpha7: '1'
        alpha8: '1'
        alpha9: '1'
        axislabels: 'True'
        color1: '0'
        color10: '0'
        color2: '0'
        color3: '0'
        color4: '0'
        color5: '0'
        color6: '0'
        color7: '0'
        color8: '0'
        color9: '0'
        comment: ''
        fc: center_freq
        fftsize: '1024'
        grid: 'False'
        int_max: '10'
        int_min: '-140'
        label1: ''
        label10: ''
        label2: ''
        label3: ''
        label4: ''
        label5: ''
        label6: ''
        label7: ''
        label8: ''
        label9: ''
        legend: 'True'
        maxoutbuf: '0'
        minoutbuf: '0'
        name: Waterfall
        nconnections: '1'
        samp_rate: samp_rate
        update_time: '0.1'
    states:
        coordinate: [430, 420]
        rotation: 0
        state: enabled
-   name: wasm_gui_layout_0
    id: wasm_gui_layout
    parameters:
        affinity: ''
        alias: ''
        columns: '12'
        comment: ''
        layout: '{"center_freq":[0,0,7,1],"gain":[8,0,4,1],"qtgui_freq_sink_x_0":[0,1,12,3],"qtgui_waterfall_sink_x_0":[0,4,12,6]}'
        row_height: '60'
    states:
        coordinate: [820, 30]
        rotation: 0
        state: enabled
-   name: wasm_rtlsdr_source_0
    id: wasm_rtlsdr_source
    parameters:
        affinity: ''
        alias: ''
        bias_tee: 'False'
        bufflen: '262144'
        center_freq: center_freq
        comment: ''
        device: ''
        direct_samp: '0'
        freq_correction: '0'
        gain: gain
        gain_mode: 'False'
        maxoutbuf: '0'
        minoutbuf: '0'
        samp_rate: samp_rate
        type: complex
    states:
        coordinate: [40, 340]
        rotation: 0
        state: enabled
connections:
- [wasm_rtlsdr_source_0, '0', qtgui_freq_sink_x_0, '0']
- [wasm_rtlsdr_source_0, '0', qtgui_waterfall_sink_x_0, '0']
metadata:
    file_format: 1
    grc_version: 3.11.0.0