Introduction To RTL-SDR Using MATLAB PDF
Introduction To RTL-SDR Using MATLAB PDF
MATLAB/Simulink
EE423 Applications of Digital Signal Processing
Dr. Prust
4/14/2015
RTL-SDR Hardware
RTL-SDR Hardware
Realtek RTL2832U
(ADC, I/Q Demod, USB data pump)
RTL-SDR in Matlab
SDRRTLReceiver system object
Specify radio parameters (e.g., fc, fs, gain)
View parameter settings and status
Receive data
% Create receiver and spectrum analyzer System objects
hRadio = comm.SDRRTLReceiver(
'CenterFrequency', 91.7e6, ...
'EnableTunerAGC', true, ...
'SampleRate', 1e6, ...
'OutputDataType', 'double');
RTL-SDR in Simulink
RTL-SDR Receiver block
Example flowgraph
in Simulink
Block Parameters
Block Parameters
Play Time
Some items to investigate:
Tuner gain setting
Relationship between sampling rate and BW
View some other FM radio stations
Tune to your favorite, OR do a web search to find local stations
FM Receiver (Mono)
Open: sdrrFMMonoExample
Back to MATLAB
Download getRawData_RTLSDR.m
function [ data, t, infoRTLSDR] = getRawData_RTLSDR( freq, gain, fs, duration )
% function [ data, t, infoRTLSDR] = getRawData_RTLSDR( freq, gain, fs, duration )
%
% This function reads complex envelope data from the NooElec R820T SDR
% and returns the raw data to the Matlab workspace
%
% PARAMETERS:
% freq is the carrier frequency (in Hz)
% gain is the reciever gain (in dB)
% fs is the sampling rate (in Hz)
% duration is the record time (in seconds)
%
% RETURN VALUES:
% data is the vector of raw data samples
% t is the vector of time samples
% info is the data structure providing actual RTL-SDR settings for the
% recording
Example:
>>
>>
>>
>>