pavel-demin / red-pitaya-notes

Notes on the Red Pitaya Open Source Instrument
http://pavel-demin.github.io/red-pitaya-notes/
MIT License
337 stars 209 forks source link

HamVNA instructions #170

Closed TacHawkes closed 8 years ago

TacHawkes commented 8 years ago

Hi,

could you give a short introduction how to use HamVNA with your SDR app? I'm using the HPSDR transceiver App from the Bazaar and installed the HamVNA software. The connection works so far but I do not get any meaningful data from the software. I assume the DUT ist connected to OUT 1 and IN 1 for measurements in transmission mode? For testing purpose I've hooked up a small LCR circuit with about 200 kHz resonance frequency which I can measure using the Bode analyzer.

pavel-demin commented 8 years ago

I suppose that the instructions at http://www.dxatlas.com/hamvna/ could be directly applied when using this program with Red Pitaya.

Looking at these instructions I'd say that connecting a DUT directly to OUT1 and IN1 won't work.It should be connected via a series fixture or a reflection bridge.

Last week, I found that the VNA functionality required some additional code in the FPGA configuration and in the server running on Red Pitaya. I've added the missing parts and updated the SDR/HPSDR bazaar application and the SD card image. Please make sure that you're using the latest version (0.94-861) of the SDR/HPSDR application.

I'd be very interested to make HamVNA program usable with Red Pitaya. So, it would be great if you could test it with a series fixture or a reflection bridge and explain me what do you think is going wrong.

TacHawkes commented 8 years ago

Hi,

I will try if with a series fixture as soon as I have one available. For now I just wanted to give the software a quick test. I should mention that I've connected 50 Ohms in parallel to IN1 to have impedance matching between OUT 1 and IN 1 (actually I do not understand why the RP has no internal "50 Ohms mode") but of course this does not replace the fixture. Still I would have expected to measure at least something for the magnitude/gain parameter but instead I just get the flat noise-floor.

pavel-demin commented 8 years ago

I've just done three frequency sweeps with the following elements connected to OUT1 and IN1: vna_sch

Here are the frequency responses that I've obtained:

vna_1 vna_2 vna_3

TacHawkes commented 8 years ago

Ok this looks completely different ;) As I said I get basically no signal, just the noisefloor. I will try it again.

pavel-demin commented 8 years ago

If you get something flat, then it's probably the SDR/HPSDR version that is not up-to-date on your Red Pitaya.

TacHawkes commented 8 years ago

Ok I've updated the Ecosystem and your Bazaar App. I still get the flat response using your first circuit (OUT 1 to IN 1 with 50 Ohms between signal and GND)

TacHawkes commented 8 years ago

Just to be sure: I do not need you custom image from your blog, do I? I have updated to the most recent 0.94 ecosystem (build 561), and installed all apps from Bazaar again, so your SDR/HPSDR app is now on version 0.94-861. I have no clue what could be wrong at the moment, as analyzing a DUT with the bode analyzer app works flawlessly.

pavel-demin commented 8 years ago

I do not need you custom image from your blog, do I?

No, not necessary. I used SDR/HPSDR 0.94-861 installed via bazaar to produce the above plots.

Could you check with an oscilloscope if you have any signal coming from OUT1?

pavel-demin commented 8 years ago

After several only partially successful attempts to make my SDR application reliably work with HamVNA I developed a new VNA application for Red Pitaya: http://pavel-demin.github.io/red-pitaya-notes/vna/

It's now available from the Red Pitaya application marketplace.

pavel-demin commented 7 years ago

To @stevec5000: Since your questions aren't related to HamVNA, I've moved them to a new issue: https://github.com/pavel-demin/red-pitaya-notes/issues/490.

Rolf-L commented 7 years ago

Hi Pavel, I tried to use HamVNA 1.1 running on my PC with Windows 7. I used SDR/HPSDR installed via bazaar, but there is no output signal at OUT1 or at OUT2. I checked this with my oscilloscope running "Sweep" after calibrating. There is just the red noisefloor and a blue signal line at -110dBFS. Any idea what's wrong?

Your RP VNA program works fine. Is there a RP VNA version available, using IN2 and OUT2 instead of IN1 and OUT1?. I'm using IN1 and OUT1 with my HPSDR TRX.

image

pavel-demin commented 7 years ago

Hi Rolf,

I used SDR/HPSDR installed via bazaar, but there is no output signal at OUT1 or at OUT2.

As I mentioned in my previous comment, my attempts to make my SDR application reliably work with HamVNA were only partially successful. Then I removed all the VNA related code from the 'SDR transceiver compatible with HPSDR' application for Red Pitaya. So, HamVNA can't be currently used with the 'SDR transceiver compatible with HPSDR' application for Red Pitaya.

Is there a RP VNA version available, using IN2 and OUT2 instead of IN1 and OUT1?.

Using IN2 requires a very simple modification of the Python code in vna.py: adc1 should be replaced with adc2 on line 212 in vna.py.

Using OUT2 requires some modifications of the FPGA configuration.