Giter VIP home page Giter VIP logo

nanovna-saver's Introduction

NanoVNASaver

A small tool to save touchstone files from the NanoVNA, and to allow sweeping frequency spans in sections to gain more than 101 data points.

Copyright 2019 Rune B. Broberg

Introduction

This software connects to a NanoVNA and extracts the data for display on a computer, and for saving to Touchstone files.

Current features:

  • Reading data from a NanoVNA
  • Splitting a frequency range into multiple segments to increase resolution (tried up to >10k points)
  • Displaying data on Smith charts and LogMag-charts for both S11 and S21
  • Displaying two markers, and the impedance and VSWR (against 50 ohm) at these locations
  • Exporting 1-port and 2-port Touchstone files
  • TDR function (measurement of cable length)
  • Reading and displaying Touchstone files as reference traces

Expected features:

  • Mouse control of markers
  • Further data readout for markers, such as return loss/forward gain

0.0.3: Screenshot of version 0.0.3 0.0.2: Screenshot of version 0.0.2 0.0.1: Screenshot of version 0.0.1

Windows

The software was written in Python on Windows, using Pycharm, and the modules PyQT5, numpy and pyserial.

Linux

In order to run this app in Linux environment, you'll need the following packages:

  • python3-serial
  • python3-pyqt5
  • numpy

To Run

python3 nanovna-saver.py

Using the software

Connect your NanoVNA to a serial port, and enter this serial port in the serial port box. Click "Open serial" to connect.

The app can collect multiple sweeps to get more accurate measurements. Enter the number of sweeps to be done in the sweep count box. Each sweep is 101 data points, and takes about 1.5 seconds to complete.

Marker frequencies are entered in Hz. Press enter after typing the frequency for it to take effect.

To get accurate TDR measurements, calibrate the device, and attach the cable to be measured at the calibration plane - ie. at the same position where the calibration load would be attached.

License

This software is licensed under version 3 of the GNU General Public License. It comes with NO WARRANTY.

You can use it, commercially as well. You may make changes to the code, but I (and the license) ask that you give these changes back to the community.

Credits

Original application by Rune B. Broberg (5Q5R)

TDR inspiration shamelessly stolen from the work of Salil (VU2CWA) at https://nuclearrambo.com/wordpress/accurately-measuring-cable-length-with-nanovna/

Thanks to everyone who have tested, commented and inspired.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.