/QtTinySA

A Python 'TinySA' GUI programme using Qt5 and PyQt5

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

QtTinySA

Screenshot_20231228_154327

A Python 'TinySA Ultra' (and original 'TinySA') GUI programme using Qt5 and PyQt5. Designed to run in Linux but works in Windows (minimal testing) and mac (no testing).
The Windows executable does not work on Windows versions < 10.

The code attempts to replicate some of the TinySA Ultra on-screen commands on the PC. Generator control seemed pointless so I have not added it. Development took place on Kubuntu 22.04LTS with Python 3.9.18 and PyQt5 using Spyder in Anaconda.

'TinySA', 'TinySA Ultra' and the TinySA icon are trademarks of Erik Kaashoek and are used with his permission.

TinySA commands are based on Erik's Python examples: http://athome.kaashoek.com/tinySA/python/

The serial communication commands are based on Martin's Python NanoVNA/TinySA Toolset https://github.com/Ho-Ro

Dependencies: Install from your repository - numpy, pyqtgraph, pyopengl, pyqt5, pyserial.
You may need to add the Qt5 SQLite 3 database driver (libqt5sql5-sqlite) and Python3 bindings for QT5's SQL Module.
If you get a serial exception on startup, add your username to the 'dialout' group.
The 3D (time) spectrum requires OpenGL

The GUI was originally designed for a 7" 1024 x 600 screen but should maximise properly. The GUI appearence may change significantly due to development.

There is limited error trapping. The 3D spectrum can sometimes crash the Application, but this only happens if it's enabled.

Working Features (v0.8 onwards):

Trace updates as tinySA scans.
LNA on/off.
SPUR auto/off.
Scan points selectable between 20 and 30,000 set manually or automatically based on RBW.
RBW control.
4 different colour traces, all can be turned on/off and set to average, max hold or min hold.
Selectable averaging.
Selectable memory depth.
Band frequency selection.
Start/stop frequency selection.
4 different colour markers. Each trace has 1 marker associated with it. Markers can be set to normal, delta, or one of the four largest peaks with a selectable threshold.
The selected marker(s) can be set to sweep start frequency with a button, or can be draggged to any desired frequency.
All standard pyqtgraph features, selectable by right-click on the graph display, including:
Export as CSV, HDF5, Image file of various types, Matplotlib window, SVG
3D spectrum with measurements over time represented as a surface plot. Can be clicked/zoomed/dragged/rotated using the mouse and with the control buttons.
The 3D spectrum can be enabled/disabled on its tab page. Disabled by default.
Trace and marker settings are saved when the programme is closed and restored when opened.
The 'band' frequencies can be edited and made visible or hidden in the preferences menu.
The signal level reminder lines can be made visible or hidden in the preferences menu.