EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: pipe2null on December 15, 2019, 10:11:44 am

Title: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: pipe2null on December 15, 2019, 10:11:44 am
Please Note: This topic is intended to be about using (or not using) cheap-ish SDRs for general purpose spectrum analysis, RF signal generation, general-purpose (NOT application specific) dev/test/debug/hacking HW and FW of devices that communicate wirelessly, and whatever other practical use ElCheapo-ish SDRs have as (low-grade) test equipment in a basic, economical, home lab setting.  It is from the perspective of: Can't afford "the right" equipment for RF but need modestly decent, general purpose functionality on a budget.  Basic capabilities are better than none at all.  The technical terms "ElCheapo-ish" and "Cheap-ish" are intended as "cheap in comparison to standard lab equipment but not necessarily the absolute bottom price".  This includes SDR devices up to around a few hundred ($US), but if a $20 device can provide the needed functionality, awesome.  This topic is about SDRs as Test Equipment, thus I am posting the thread here.  There are various threads on SDRs, but I haven't seen one for general purpose lab use: they are either application specific or appropriately located on the "RF, Microwave, and Ham Radio" board.  If I missed something, please tell me.

I am still "beginner-ish" since it has been decades since I actively used EE (and "atrophied" is a gross understatement), so I'm re-learning everything as I go.

First off, many thanks to Eeevblog for...  Well, lots of reasons, especially helping me finalize my first scope purchase decision: a "field upgraded" MSO5000.  And Dave's #168 for a basic lab setup checklist, which I have mostly accomplished with a few cut corners.  The spirit of Dave's recommendations to help people (like myself) get started building an economical but decently effective home lab brings us to the Topic at Hand:  ElCheapo spectrum analysis w/transmission capability.  Or:  Using (Or perhaps DO NOT use???) Software Defined Radio's as economical but decently effective "test" equipment to upgrade your home lab for RF work/tinkering.

Background for why I started this topic plus a bonus rant (Feel Free To Skip):
So I was trying to use the FM radio feature on my smartphone by rigging up a DIY antenna to a 3.5mm plug so I could use my $$$ Bluetooth headphones, but apparently that configuration is not supported.  Checking online for apps to connect to online streaming of those broadcast stations led me to the conclusion that "mad cash grabbing" is getting worse everyday, some apps requiring an initial fee plus a monthly subscription just to listen to commercial radio stations that are already broadcasting tons of commercials...  I'll stop my rant there.  So, I decided to search for USB FM radio receivers.  That was a very BAD idea, because I discovered SDR receivers.  And SDR TRANS-ceivers.  AND Dave's "EEVblog #1178 - Build a $10 DIY EMC Probe".  And now that I know those capabilities exist, I HAVE TO HAVE ONE (well, tentatively, multiple, thus this topic).

So, what started out as trying to listen to local commercial radio has turned into a plausible excuse to add capability to my lab.  You might consider this a cry for help, begging a referral to the TEA group, but "I don't have a problem, D*MNIT!  I can quit at any time!"

On to the actual topic for discussion.  Here are some of my personal (beginner-ish) use-cases:
My immediate (but not limited to) SDR use as a spectrum analyzer:

My immediate (but not limited to) SDR use as a signal generator:

My immediate (but not limited to) SDR use as an RF transceiver for GP device dev/test/hack:

My immediate (but not limited to) SDR use as an RF receiver:

Finally some actual questions:
I am attempting to figure out, for the general use case that includes all of the above categories, plus any categories suggested by other posters:

Please let me know any thoughts you may have regarding my questions above, or if you know of other SDRs in the cheap-ish $ range that might be suitable as economical but decently effective, general purpose RF test equipment.

Thanks!


(Yea...  This post turned into another epic.  Sorry about that...)

Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: jjoonathan on December 15, 2019, 07:13:19 pm
Cheap SDRs are so cheap that you should just buy one. Don't analyze the decision to death. The SDR that you do have beats a spectrum analyzer that you don't have, and if you buy a real SA then the $20 you spent on a SDR will be insignificant in comparison to both the cost of the SA and the value of what it taught you. That said, here's what a spectrum analyzer gets you that an SDR doesn't:

* Sweep. "Show me everything from 0-xGHz, repeatedly, as fast as possible" is a useful capability for hunting down unknown signals. SDRs have historically sucked at this.

* Spur-free dynamic range. A SDR might have 20dB of it, rated liberally, while, a SA might have 65dB of it, rated conservatively. Spurs are ghost signals that don't really exist in the input but do show up on the instrument. They show up lower than the true signal by at least the SFDR, spur-free-dynamic-range. If you have 80dB of dynamic range but only 20dB of spur-free range, you are going to be seeing some pretty serious spurs. Learning to identify them will be instructive, but a hassle. The hassle compounds with every type of further analysis you want to do on your spur-filled spectrum.

* Calibration. SDRs make little effort at frequency and level stability, and very little effort at accuracy.

SDR transmitters have the same caveats. If you expect to use your SDR transmitter to mitigate the caveats of your SDR receiver or vice versa, you will be disappointed to discover that having the same set of caveats at both ends makes this rather difficult, and that there is a fairly low ceiling on what you can actually mitigate in software (e.g. if it's out of band, your software can't touch it).

If you just buy a cheap SDR, you will quickly discover either that it meets your needs (which were really limited to checking signal presence and maybe a decode project or two) or that it is painfully inadequate for your R&D work to such a degree that you are willing to pay $cost-of-SA to make the pain go away.
Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: 0culus on December 15, 2019, 07:27:53 pm
My opinion is that if you are doing serious RF work, you need a spectrum analyzer. SDRs are, as another forum member put it, basically the cheap toy oscilloscope of the frequency domain world. You can spend a lot of money on some high end SDRs (Ettus for instance), but to be honest, that's $1200 US that could fund a spectrum analyzer.

Personally, I threw my hat into the boat anchor segment, and I invested in HP 8566 and 8568 analyzers. They are heavy but if it's in good working order, things like phase noise performance are going to be superior to the lower cost options on the market today from Rigol and Siglent, mainly if you are doing narrowband carrier stuff (which is mostly what I'm interested in). These analyzers were decades ahead of their time when they were introduced. However, if you are wanting to work outside the realm of narrowband carriers, modern options from the Chinese OEMs are fairly appealing. They will typically be able to at least cover the 2.4 GHz ISM band and usually are equipped with an onboard tracking generator too, which is a super useful feature. I believe Siglent doesn't charge for the tracking generator either (@tautech can correct me if I'm wrong!)
Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: jjoonathan on December 15, 2019, 07:46:30 pm
Yep. It is not economical to work around the deficiencies of a SDR. Your application can either ignore the deficiencies entirely -- in which case SDRs are great -- or you can't, and you should bite the bullet and buy a SA. If you already know that you want to do R&D rather than just tinker, you will not be able to ignore the deficiencies of a SDR, and you should bite the bullet and buy a SA.
Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: tautech on December 15, 2019, 08:01:10 pm
I believe Siglent doesn't charge for the tracking generator either (@tautech can correct me if I'm wrong!)
You are quite correct, SSA3000X and the upgraded SSA3000X+ now with touch display, keyboard and mouse support and modulation analysis to match the SA/VNA combo SVA1000X range features all have TG as standard fare at no additional cost.
Cheapest models; 2.1 GHz SSA3031X start at $ 1395.
Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: pipe2null on December 16, 2019, 01:23:10 am
Thanks for the feedback!

Is my understanding reasonably on point?:
If my above understanding is reasonably correct as far as spectrum analysis is concerned, then I think you've answered my questions fully, Thanks!  Since it's only $20, it's kind of a no brainer that I'll pick one up, or perhaps a cheap-ish one just to play/tinker/learn Tx as well...  But I'll expect: frequency and level (and phase shift?) inaccuracies, lots of phantoms to waste time investigating, and a very low probability of detecting/capturing intermittent signals.  Oh, and I'll also expect significant headaches and pain if attempting to use any inaccurate/erroneous measurements in projects.

Future budgeting-wise, when I do take the plunge on a real SA, at some point I will likely need to work with protocol "X" that uses 2.4GHz.  What minimum spec should I keep in mind for an SA?  For the moment I'll have to settle on being Pinocchio a little while longer.

For the sake of completeness, using a cheap-ish SDR as an RF signal generator:  You've made it pretty clear to expect poor and potentially unusable results.  That said, is my idea of using an SDR transmitter to measure the bandwidth of my scope worth pursuing, strictly as a learning exercise?

I'm curious if there are any sellers of old equipment that throw in a free sailor's hat with purchase?   :D

Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: tautech on December 16, 2019, 01:29:03 am

Future budgeting-wise, when I do take the plunge on a real SA, at some point I will likely need to work with protocol "X" that uses 2.4GHz.  What minimum spec should I keep in mind for an SA?  For the moment I'll have to settle on being Pinocchio a little while longer.

This 2.1 GHz unit hacked to 3.2 GHz would be perfect for your needs:
https://www.eevblog.com/forum/buysellwanted/fs-(uk)-siglent-ssa-3021x-hacked-spectrum-analyzer/ (https://www.eevblog.com/forum/buysellwanted/fs-(uk)-siglent-ssa-3021x-hacked-spectrum-analyzer/)

Note it has all options hacked too.  :)
Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: pipe2null on December 16, 2019, 01:56:04 am
@tautech:  I'm not sure if you are the angel or the devil sitting on either of my shoulders, whispering advice that is good but also encourages an expenditure that I should consider outside of my current budget, although current "budget" is unrealistically small by an order of magnitude for any real equipment, so...  Heh.  Either way, I suspect you are a recruiter for the TEA group.  Thanks (I think?) for bringing that item to my attention, I'll check it out.
Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: BravoV on December 16, 2019, 02:21:49 am
@tautech:  I'm not sure if you are the angel or the devil sitting on either of my shoulders, whispering advice that is good but also encourages an expenditure that I should consider outside of my current budget, although current "budget" is unrealistically small by an order of magnitude for any real equipment, so...  Heh.  Either way, I suspect you are a recruiter for the TEA group.  Thanks (I think?) for bringing that item to my attention, I'll check it out.

More temptation ...  >:D

-> Used spectrum analyzer buyer's guide (https://www.eevblog.com/forum/testgear/used-spectrum-analyzer-buyer_s-guide/)
Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: pipe2null on December 16, 2019, 07:36:36 am
So...  After digging around a little bit, I have the impression that the Siglent SSA3021X (and the newer plus version apparently) is the current HackChampion of the spectrum analyzer world, same as Rigol's MSO5000 is for scopes?
Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: tautech on December 16, 2019, 08:14:50 am
@tautech:  I'm not sure if you are the angel or the devil sitting on either of my shoulders, whispering advice that is good but also encourages an expenditure that I should consider outside of my current budget, although current "budget" is unrealistically small by an order of magnitude for any real equipment, so...  Heh.  Either way, I suspect you are a recruiter for the TEA group.  Thanks (I think?) for bringing that item to my attention, I'll check it out.
TEA Enabler !  :)
So...  After digging around a little bit, I have the impression that the Siglent SSA3021X (and the newer plus version apparently) is the current HackChampion of the spectrum analyzer world, same as Rigol's MSO5000 is for scopes?
Sure but where do you put the limit on the feature set you want ?

When SSA3kX first came out I got the 3.2 GHz model at distributor demo pricing and as it was my first ever SA I was damn nervous about buggering it with novice errors but it's survived albeit not without sounding the input overload buzzer a few times !  :o  :phew:
However since then and until recently the SVA range has more of my attention due to its vastly greater feature set being a VNA as well as a SA with the the same SSA feature set plus the goodies of touch and keyboard/mouse support. The new SSA3kX+ range has now leveled that playing field.
Of late the SVA1015X has the VNA option as permanent now and at a not insignificant increased price when previously it was the same price as SSA3021X. Now having the even newer SVA1032X I feel I have a tool for life unless I start chasing the 5 GHz WiFi bands.  :scared:
All these while in my hands have been improved with the help of unnamed forum members;
SSA3032X
SVA1015X
SVA1032X
plus numerous scopes etc.

It is hard to know what might be your future needs however IME as my skills and knowledge have grown I'm finding the better gear is helping drive my knowledge further and faster.
RF is scary and fun, enjoy the ride.  :)
Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: pipe2null on January 09, 2020, 10:21:56 pm
I'm not trying to resurrect this thread, just thought I'd post what I ended up with on the short term and what I'm looking at for the longer term.

I bought an RTL-SDR Blog v3 kit ($30 including cheap but effective antennas for starting out), a LimeSDR, a LimeSDR-mini, and a $200ish grab bag of cheap RF components (LNAs/RF filters) and SMA adapters/cables with the intention of making SMA/RP-SMA the "standard connector" whenever possible in my lab.  Each of the SDRs have an intended immediate and longer term use for projects, so no, I did not buy a grab bag of SDRs for the sake of having them.

Test-Equipment-Wise short term: For the purpose of TEMPORARY/short term make-shift test equipment, I can use any of the SDRs for basic, uncalibrated, "Haunted" with ghosts/etc, spectrum analysis.  One thing to note, I also bought a cheapo $15 RF noise generator so I can get a crude but reasonable idea of the frequency response of RF filters, both purchased and DIY.  With this combination of tools, I now have at least ultra-basic RF capability in my lab.

Test-Equipment-Wise longer term: I am seriously looking at buying a SA, SA-TG, -OR- a VNA.  From the various thread I have read, I think a plain old SA would be a waste of money.  At this point I'm trying to understand the differences (worth paying for) between a single path VNA that might be within $ range and an SA with built in TG.
Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: 0culus on January 10, 2020, 12:02:57 am
Someone correct me if I'm wrong, but I believe it's usually better to have both a spectrum analyzer and a VNA. The characteristics that make a fine VNA don't necessarily translate to a good SA.
Title: Re: ElCheapo-ish Frequency Domain tools: SDR! (or maybe not?)
Post by: tggzzz on January 10, 2020, 12:22:14 am
For as few experiments with a cheap SDR rx dongle, have a look at https://entertaininghacks.wordpress.com/tag/sdr/

Starting point: doing more with less, as a fun experiment.