Skip to content

kspi/skardas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skardas

A tool for measuring the frequency response of passive or active filters and possibly other electronic circuits.

Uses the Siglent SDG10x0 function generator together with the Rigol DS1052E oscilloscope. The function generator generates a sine wave in the various frequencies, the filter is connected between them and the oscilloscope is used for measuring the response.

Installation and usage

The program supports Python 3 and requires setuptools for installation. You can install it by running ./setup.py install (which may require root) or with pip. The dependencies should be installed automatically from PyPI.

The signal generator's channel 1 should be connected to the filter's input and the filter's output should be connected to the scope's channel 1. The signal generator's sync out (on the back panel) should be connected to the scope's external trigger input. Then you can run the analysis with:

skardas start_frequency end_frequency

(substituting the appropriate frequency numbers in Hz)

Contributing

Suggestions and patches are welcome. The package can be installed in development mode with:

pip install --user -e .

Before submitting patches, check that the code passes the tests and flake8's checks. The tests can be executed using:

./setup.py test

The master branch is tested with actual instruments, while devel contains untested development.

This project is free software, licensed under LGPLv2.1 or (at your option) any later version.

TODO

  • Multiple plot interface.
    • Phase measurement.
    • Distortion measurement.
  • Perform Fourier transform of response for more robustness.
  • Upload to PyPI.

About

Measure frequency response with a sweep.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages