Close

Setting it all up

A project log for DIY SDR for fun

I try programming my own SDR for fun and to learn Python and digital signal processing.

max-felix-mllerMax-Felix Müller 05/05/2019 at 21:020 Comments

I use VS Code as my programming enviorment for Python.

As radio I used the Nooelec NESDR Smartee, which was the cheapest one I found that looked usefull when I bought it. It also comes with different antennas and has a SMA connector which is a plus for me.

My only complaint is that it has a limited band but for that price I can live with it. I don't yet want to invest in a Hack RF One.

You will need the pyrtlsdr module to easily interface with your radio. That in turn depends on librtlsdr being installed. You can download both from the links I provided in this project.

To enable Python to interact with your radio, extract all the files from librtlsdr directly into your Python folder.

Example: "D:/Programme/Python"

Now you should be able to run the demo code from pyrtlsdr.

I copy pasted it here for completion, but I do not claim any rights here.

from rtlsdr import RtlSdr

sdr = RtlSdr()

# configure device
sdr.sample_rate = 2.048e6  # Hz
sdr.center_freq = 70e6     # Hz
sdr.freq_correction = 60   # PPM
sdr.gain = 'auto'

print(sdr.read_samples(512)) 

Source

Discussions