GithubHelp home page GithubHelp logo

acidbourbon / numpy_ltspice_filter Goto Github PK

View Code? Open in Web Editor NEW
45.0 6.0 8.0 44 KB

A python module for seamless integration of analog filters designed in LTspice into Python3/Numpy signal processing projects.

Home Page: https://acidbourbon.wordpress.com/2019/11/26/seamless-integration-of-ltspice-in-python-numpy-signal-processing/

License: GNU Affero General Public License v3.0

Python 91.91% Shell 0.57% AGS Script 7.52%
ltspice fast-convolution-filtering filter-demo convolution impulse response python numpy signal processing

numpy_ltspice_filter's Introduction

numpy_ltspice_filter

A python module for seamless integration of analog filters designed in LTspice into Python3/Numpy signal processing projects.

For a demonstration of its uses:

run ./filter_demo.py and ./fast_convolution_filter_demo.py

find an extensive article about this software example at: https://acidbourbon.wordpress.com/2019/11/26/seamless-integration-of-ltspice-in-python-numpy-signal-processing/

and a follow-up article about fast convolution filtering using LTspice: https://acidbourbon.wordpress.com/2019/12/04/ltspice-numpy-part-2-fast-convolution-filter/

The utilities in this repository heavily rely on the PyLTSpice module developed by Nuno Brum. It is now a pip package. Install via: sudo pip3 install PyLTSpice

A warm thank you to Nuno.

numpy_ltspice_filter's People

Contributors

acidbourbon avatar jaseg avatar urbanij avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

numpy_ltspice_filter's Issues

Only seeing 1 plot

[Windows example, using filter_demo.py without changes]

Everything is basically working but I only see one output plot.

  • It seems to correspond to b2 in the example, regardless of which parameters are used.
  • It seems like parameters are being hard-coded somewhere, because I'm changing "C" and "L" but the plots are always the same.
  • If I use one set of parameters at a time, I can see they get written to param.txt.

Note: I ran the simulation in LTSpice first, to output the raw file, because the Python script appeared to need it as an input.

Capture

Thanks

Control simulation with python

Hi, got here from your article!

Do you know if somehow is it possible to interact with the circuit during the simulation? I got your idea of setting some variables in the circuit then use python to simulate with many values, but how about decide a value between time steps?

Im researching on MPPT AI based control, so Im looking a manner to be able to simulate a circuit in python and for each time step, read some values and act on control.

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.