Author Topic: NanoVNA Custom Software  (Read 553263 times)

0 Members and 5 Guests are viewing this topic.

Offline N2CUA

  • Newbie
  • Posts: 9
Re: NanoVNA Custom Software
« Reply #175 on: September 02, 2019, 04:25:29 pm »
Yeah I never got that concept either ..
My sister is a bit like that .. but she's family so I just accept it for what it is and try to find ways to make her see ( gently ) that its just not the case .. Takes time ... but I think she is coming around .. a bit of tough love though .. 

I hope you change your mind at some point .. but thats your call of course..

Thanks for the kind words .. :)

You would think with all the available data on the USB bus coming from the VNA that there would be a more robust interface ..
But still ... for the price its great and I dont have to lug my Rigol spectrum analyzer around when helping friends with their antennas ..

Randy
 
The following users thanked this post: levesqj

Offline Psynosaur

  • Newbie
  • Posts: 1
  • Country: za
Re: NanoVNA Custom Software
« Reply #176 on: September 02, 2019, 04:32:46 pm »
Thanks to the OP joeqsmith.

Your videos are very educational and well put together :)

Then thanks 5q5r for your nanovna - saver app, it quite a treat playing with it :D

Kind regards

Keep the information coming!

ZS1SCI
 
The following users thanked this post: joeqsmith, 5q5r

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11969
  • Country: us
Re: NanoVNA Custom Software
« Reply #177 on: September 03, 2019, 11:46:53 am »
5q5r

I tried your prebuilt EXE on Windows 10.  It connected to the Nano and I was able to get it to plot the data without any problems.   It looks like a very good start.   So far, I think you are the only one who has stepped up and shown something other than lip service.   With the number of people asking for open source, Python code, you are making a lot of people very happy.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11969
  • Country: us
Re: NanoVNA Custom Software
« Reply #178 on: September 03, 2019, 12:00:23 pm »
Yeah I never got that concept either ..
My sister is a bit like that .. but she's family so I just accept it for what it is and try to find ways to make her see ( gently ) that its just not the case .. Takes time ... but I think she is coming around .. a bit of tough love though .. 

I hope you change your mind at some point .. but thats your call of course..

Thanks for the kind words .. :)

You would think with all the available data on the USB bus coming from the VNA that there would be a more robust interface ..
But still ... for the price its great and I dont have to lug my Rigol spectrum analyzer around when helping friends with their antennas ..

Randy

I'm a bit surprised myself that the PC software was released in its current state.    You could have a look at 5q5r's code.  Obviously they are just getting started but it looks promising.

https://github.com/mihtjel/nanovna-saver


Offline hendorog

  • Super Contributor
  • ***
  • Posts: 1628
  • Country: nz
Re: NanoVNA Custom Software
« Reply #179 on: September 03, 2019, 12:03:58 pm »
I haven't been following this thread, but if anyone is interested:

Here are some examples of offline calibrations, comparative tests with my HP 8753 and another NanoVNA, and a TDR example.

https://github.com/hendorog/nanovna_test
This uses the free Jupyter Notebook which you need to install if you want to play on your machine with this code.
Apologies in advance as the comments are pretty sparse, most were done as part of conversations on groups.io.

Note, I am not grabbing the data automatically yet, this is just for offline analysis at the moment. I have been using the NanoVNA C# app to get the s1p files to date.
 
The following users thanked this post: radiolistener

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 4065
  • Country: ua
Re: NanoVNA Custom Software
« Reply #180 on: September 03, 2019, 10:14:45 pm »
hendorog, what mixers are used in your nanovna version - SA602 or SA612?

Can you take S1P for some load different than 50 Ohm?
For example 500 Ohm (SWR=10.0) will be a good choice for testing nano vna precision.
You can create such dummy load with SMA connector and two 1k SMD resistors soldered on it.

Such dummy loads - 500 Ohm and 5 Ohm is a must have for VNA testing and calibration. They both should give SWR=10.
« Last Edit: September 03, 2019, 10:18:22 pm by radiolistener »
 

Offline hendorog

  • Super Contributor
  • ***
  • Posts: 1628
  • Country: nz
Re: NanoVNA Custom Software
« Reply #181 on: September 03, 2019, 11:14:53 pm »
hendorog, what mixers are used in your nanovna version - SA602 or SA612?

Can you take S1P for some load different than 50 Ohm?
For example 500 Ohm (SWR=10.0) will be a good choice for testing nano vna precision.
You can create such dummy load with SMA connector and two 1k SMD resistors soldered on it.

Such dummy loads - 500 Ohm and 5 Ohm is a must have for VNA testing and calibration. They both should give SWR=10.

The last graph on this page https://github.com/hendorog/nanovna_test/blob/master/NanoVNA%20test.ipynb shows nanovna and 8753 measurements of a reference attenuator provided with my cal compared with reference data provided by Dr Kirkby.
(Note the 8753 was intentionally setup to match the nanovna, without any cal kit information. When properly configured for the cal kit, the 8753 will match the green line closely)

This gives a good idea of the out of the box accuracy of the device using its own (uncharacterised) cal kit against an independently measured standard above 50MHz.

Will do some more tests for you, but if I don't get it done tonight it might be a while due to other commitments.

My two devices (white gecko and black hugen) both have 602 mixers. I have read that the two models of mixers are internally identical but no idea if that has been confirmed.

 

Offline hendorog

  • Super Contributor
  • ***
  • Posts: 1628
  • Country: nz
Re: NanoVNA Custom Software
« Reply #182 on: September 03, 2019, 11:22:53 pm »
Also, just to add there is a known bug in the released NanoVNA sharp application when using it to do calibrations.

The measurement of the other standards are discarded unless the Short is the first standard measured.

This is because the Short button click event in the NanoVNA sharp app does a call to the 'cal_reset' operation - which wipes any earlier measurements out.

So if you do a cal in Open Short Load order using the NanoVNA sharp application, there will be an error of about 0.3dB - not much, but significant enough to be important when doing comparisons as can be seen in the attached pic.

First pic attached showing the effect of doing OSL cal order.
Second pic attached which is the same as in the previous post, showing the workaround of doing SOL cal order.

 
The following users thanked this post: syau

Offline N2CUA

  • Newbie
  • Posts: 9
Re: NanoVNA Custom Software
« Reply #183 on: September 03, 2019, 11:54:44 pm »
Inspired by Joe's great YouTube videos on the NanoVNA, I went ahead and botched together a little Python app that does some of the same things (most importantly, multiple sweeps to increase the amount of data points.)

It's open source and on github, as "NanoVNA-Saver" (because I initially just made it to save s1p/s2p files). I daren't post a link in my first post on this forum though :-)

Thanks Joe for the inspiration, and I hope some of the rest of you may find it useful.

Would you be up to helping me set up my Python on windows 10? Its installed but having issues with installing PyQT5. Python is completely new to me ..  Not sure if its worth all this just to have a better interface .. :(
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 4065
  • Country: ua
Re: NanoVNA Custom Software
« Reply #184 on: September 04, 2019, 01:50:05 am »
My two devices (white gecko and black hugen) both have 602 mixers. I have read that the two models of mixers are internally identical but no idea if that has been confirmed.

It looks that SA612A works much better. My NanoVNA have SA602A mixers. Here is my 500 Ohm terminator measurement:

Series RLC:
826632-0

Parallel RLC:
826638-1

Also see S1P file for SA602A version with 500R terminator on CH0 in attachment.


Here is also screenshot for 500R terminator from another user, who have NanoVNA with SA612A:
826644-2

As you can see, SA612A looks much better and works almost up to 900 MHz with above 200 Ohm result. While SA602A is going below 200 Ohms at just 160 MHz. But I'm not sure. May be this is just quality issue with my NanoVNA (for example bad soldering or something like that).

It will be good if you can confirm that your SA602A version also has bad performance on Series RLC screen. So, if SA602A is the root of cause for that, then it probably can be fixed by replacement SA602A mixers with SA612A :)
 
The following users thanked this post: n3mmr

Offline N2CUA

  • Newbie
  • Posts: 9
Re: NanoVNA Custom Software
« Reply #185 on: September 04, 2019, 02:45:20 am »
Inspired by Joe's great YouTube videos on the NanoVNA, I went ahead and botched together a little Python app that does some of the same things (most importantly, multiple sweeps to increase the amount of data points.)

It's open source and on github, as "NanoVNA-Saver" (because I initially just made it to save s1p/s2p files). I daren't post a link in my first post on this forum though :-)

Thanks Joe for the inspiration, and I hope some of the rest of you may find it useful.

Would you be up to helping me set up my Python on windows 10? Its installed but having issues with installing PyQT5. Python is completely new to me ..  Not sure if its worth all this just to have a better interface .. :(


I got it working .. Just have to learn PYTHON now .. lol
 

Offline hendorog

  • Super Contributor
  • ***
  • Posts: 1628
  • Country: nz
Re: NanoVNA Custom Software
« Reply #186 on: September 04, 2019, 03:48:57 am »
My two devices (white gecko and black hugen) both have 602 mixers. I have read that the two models of mixers are internally identical but no idea if that has been confirmed.


As you can see, SA612A looks much better and works almost up to 900 MHz with above 200 Ohm result. While SA602A is going below 200 Ohms at just 160 MHz. But I'm not sure. May be this is just quality issue with my NanoVNA (for example bad soldering or something like that).

It will be good if you can confirm that your SA602A version also has bad performance on Series RLC screen. So, if SA602A is the root of cause for that, then it probably can be fixed by replacement SA602A mixers with SA612A :)

Interesting - based on the hint I mentioned, I searched and found this story on the internet:
https://soldersmoke.blogspot.com/2009/06/na5n-on-ne602.html

I'll do that test, tonight if I have time, and I will also sweep the loads on my 8753 for comparison.



 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 4065
  • Country: ua
Re: NanoVNA Custom Software
« Reply #187 on: September 04, 2019, 08:22:19 am »
it seems that my NanoVNA with SA602A may be OK. Probably this measurement error caused by 1 cm SMA-M to SMA-M adapter. I tried to add two adapters on another VNA and got similar measurement error.

Just incredible, 1 cm SMA to SMA adapter leads to so high measurement error...  :)
« Last Edit: September 04, 2019, 08:24:05 am by radiolistener »
 
The following users thanked this post: hendorog

Offline N2CUA

  • Newbie
  • Posts: 9
Re: NanoVNA Custom Software
« Reply #188 on: September 04, 2019, 01:22:40 pm »
it seems that my NanoVNA with SA602A may be OK. Probably this measurement error caused by 1 cm SMA-M to SMA-M adapter. I tried to add two adapters on another VNA and got similar measurement error.

Just incredible, 1 cm SMA to SMA adapter leads to so high measurement error...  :)

Can you try a calibration with all cables and connectors that will be used in place ?
Other than the needed calibration items of course
 

Offline Flynt

  • Newbie
  • Posts: 6
  • Country: it
Re: NanoVNA Custom Software
« Reply #189 on: September 04, 2019, 05:22:08 pm »
A greeting to the whole group.
I'm a new user.

I tried to follow all the Treead, but I don't read English well, (I'm Italian).

I would like to ask you if anyone can kindly tell me where to recover this software "Custom Lab View for Nano VNA"

THANK YOU ANTICIPATEDLY WHO WILL MAKE ME AID ... :) :) :)
 

Online _Wim_

  • Super Contributor
  • ***
  • Posts: 1559
  • Country: be
Re: NanoVNA Custom Software
« Reply #190 on: September 04, 2019, 06:44:22 pm »
A greeting to the whole group.
I'm a new user.

I tried to follow all the Treead, but I don't read English well, (I'm Italian).

I would like to ask you if anyone can kindly tell me where to recover this software "Custom Lab View for Nano VNA"

THANK YOU ANTICIPATEDLY WHO WILL MAKE ME AID ... :) :) :)

Hello Flynt, for the moment ;) this software is not available for download. It was developed by joeqsmith to show what is possible with the Nanovna, to make some educational youtube video's about the NanoVNA and to inspire others to make apps of their own (which has worked already, thanks to 5q5r)

 
The following users thanked this post: 5q5r

Offline Flynt

  • Newbie
  • Posts: 6
  • Country: it
Re: NanoVNA Custom Software
« Reply #191 on: September 04, 2019, 07:18:56 pm »
Thanks Wim
I've already written a private message to joeqsmith, to know how to get it ... :)

I'm not able to program... :-\
« Last Edit: September 04, 2019, 07:20:33 pm by Flynt »
 

Online _Wim_

  • Super Contributor
  • ***
  • Posts: 1559
  • Country: be
Re: NanoVNA Custom Software
« Reply #192 on: September 04, 2019, 08:51:43 pm »
I think this software is a good alternative to what joeqsmith has made:

https://github.com/mihtjel/nanovna-saver

 

Online _Wim_

  • Super Contributor
  • ***
  • Posts: 1559
  • Country: be
Re: NanoVNA Custom Software
« Reply #193 on: September 04, 2019, 08:56:05 pm »
The executable can be downloaded from here if you do not want to run it in phython (download the zip file)

https://github.com/mihtjel/nanovna-saver/releases

 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 4065
  • Country: ua
Re: NanoVNA Custom Software
« Reply #194 on: September 04, 2019, 09:09:31 pm »
Can you try a calibration with all cables and connectors that will be used in place ?
Other than the needed calibration items of course

The problem here is that all calibration loads should be connected through the same length as 500 Ohm terminator.

Here is my calibration kit and 500 Ohm terminator:
827082-0

As you can see, it's about 15 mm longer than calibration terminators. It leads to additional delay in wave propagation and as result it leads to measurement error.

You can check my previous S1P file for 500R terminator, see Group Delay S11, it's about 0.25 ns.

Now I tried to setup ELECTRICAL DELAY = 247 picoseconds (see SCALE menu in NanoVNA) to get software correction for that delay. I tried different values and 247 ps give me the best result. So it seems like these 15 mm leads to 247 ps delay. And now, with 247 ps delay correction, I get much better result :)

Series RLC:
827088-1

Parallel RLC:
827094-2

Group Delay S11:
827103-3

S11:
827109-4

VSWR:
827115-5
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 4065
  • Country: ua
Re: NanoVNA Custom Software
« Reply #195 on: September 04, 2019, 09:50:19 pm »
Here is another finding. When I tried to get the same measurement (with electric delay 247 ps) for 500R terminator with no connection to PC (powered from accumulator), it shows 500 Ohm and VSWR=10 almost up to 900 MHz.

For example:
600 MHz: Rs = 550 Ohm, VSWR = 11.07
700 MHz: Rs = 501 Ohm, VSWR = 10.03
800 MHz: Rs = 478 Ohm, VSWR = 9.62
900 MHz: Rs = 462 Ohm, VSWR = 9.08

So, it seems that USB connection to PC affects measurements...

Tried more tests about that. When I connect it to powered off power bank, there is no influence, but after power on, there is a change in measurement above 500 MHz. It seems that external power supply leads to increase power supply voltage and it affects measurement.

I tried to calibrate it with external power supply, but it seems, that calibration cannot eliminate measurement error which appears with external power supply. So, the only way to get the best measurement is to disconnect device from external power supply. Very strange. Any idea how to fix it?
« Last Edit: September 04, 2019, 10:09:49 pm by radiolistener »
 

Offline rhb

  • Super Contributor
  • ***
  • Posts: 3501
  • Country: us
Re: NanoVNA Custom Software
« Reply #196 on: September 04, 2019, 11:09:22 pm »
I checked the pinout of  the STM32F303CCT6 with 48 KB of RAM and 256 KB of flash today and it should be a drop-in replacement for the existing STM32F072CBT6.  The 3x increase in RAM and 2x increase in flash would allow a substantial increase in features such as TDR, storing multiple calibration ranges, etc.  The groups.io list is a firehose of activity.

I was going to do the chip swap myself, but one of the sellers, hugen, has offered to provide a unit with the '303 part.  I expect that will be very popular with people wanting to write FW with additional features.  So I'm hoping for an announcement that '303 based units are available for  an extra $5-10 US.  In quantity 2400 from Digikey, the price differential is $1.28 US.  $1.92 vs $3.20 for the MCU.  That makes it an attractive change for an OEM if it allows more features.

The 16 KB memory of the current versions is a significant limitation.  An important application for the additional memory is TDR from VNA data. There are already multiple implementations for producing TDR traces from VNA data being done on a PC, but no room for it on the device.

The existing FW should run on the larger part unaltered, so buying a unit with the STMF303 part  makes it easy for a buyer who is not interested in writing FW to do updates as things develop.  This is the RF version of the $20 LCR-transistor tester.  Hang on to your hats!

Have Fun!
Reg
 
The following users thanked this post: I wanted a rude username

Offline rhb

  • Super Contributor
  • ***
  • Posts: 3501
  • Country: us
Re: NanoVNA Custom Software
« Reply #197 on: September 04, 2019, 11:19:40 pm »
Here is another finding. When I tried to get the same measurement (with electric delay 247 ps) for 500R terminator with no connection to PC (powered from accumulator), it shows 500 Ohm and VSWR=10 almost up to 900 MHz.

For example:
600 MHz: Rs = 550 Ohm, VSWR = 11.07
700 MHz: Rs = 501 Ohm, VSWR = 10.03
800 MHz: Rs = 478 Ohm, VSWR = 9.62
900 MHz: Rs = 462 Ohm, VSWR = 9.08

So, it seems that USB connection to PC affects measurements...

Tried more tests about that. When I connect it to powered off power bank, there is no influence, but after power on, there is a change in measurement above 500 MHz. It seems that external power supply leads to increase power supply voltage and it affects measurement.

I tried to calibrate it with external power supply, but it seems, that calibration cannot eliminate measurement error which appears with external power supply. So, the only way to get the best measurement is to disconnect device from external power supply. Very strange. Any idea how to fix it?

My first guess would be EMI coming in on the power cable.  Does the cable you're using have chokes?
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29492
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: NanoVNA Custom Software
« Reply #198 on: September 04, 2019, 11:25:02 pm »
The sweep width and the few data points available is also a significant limitation on accuracy. Joe showed this earlier where the interpolation with so few points had it drawing a series of straight lines on the Smith chart.
The user needs keep this data point limitation firmly in mind and use a sweep width that's appropriate and a heap of averaging if necessary.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 4065
  • Country: ua
Re: NanoVNA Custom Software
« Reply #199 on: September 05, 2019, 12:01:40 am »
My first guess would be EMI coming in on the power cable.  Does the cable you're using have chokes?

I also thought about it. But this is not the case. I can connect any length of cable and it doesn't affect measurement. Also I tried to connect cable to power bank with disabled output and it doesn't affect measurement. But when I press power on button on power bank, it leads to measurement error. So, the the issue appears when external voltage is applied and don't depends on the cable.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf