Coder Social home page Coder Social logo

peterhinch / micropython-filters Goto Github PK

View Code? Open in Web Editor NEW
64.0 7.0 13.0 556 KB

Digital filters impemented in MicroPython's inline ARM Thumb assembler (e.g. Pyboard, RP2).

License: MIT License

Python 100.00%
micropython fir-filter assembler

micropython-filters's People

Contributors

peterhinch 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  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  avatar

micropython-filters's Issues

lpf.py on VS code

I am trying to make an lpf FIR filter run on my pico pi. I use VS code and the examples from your filter project. In VS Code I am not able to get rid of the import error on "from fir import fir". Reading several days on internet, I read a lot concerning import problems. Local imports seem to be a trouble on VS Code, so mine do as well! Do somebody know a solution? I tried extra python paths, ini.py file etc. Nothing advised on the internet makes this local import possible. However, in Thonny it works (after saving fir.py to the pico pi). My python is 3.10.2 and my VS code is 1.71.2 + PYLANCE, PICO-W-GO. Can somebody hint me?

fir.py bug

Hi Peter,
I try fir.py with MicroPython 1.17 on NUCLEO-L476RG board.
There is a problem only when the number of coefficients is a multiple of 4.
For exemple :
coeffs = array.array('i', (100, 100, 100, 100))
ncoeffs = len(coeffs)
data = array.array('i', [0]*(ncoeffs +3))
data[0] = ncoeffs
data[1] = 0
fir(data, coeffs, 1) # 100 OK
fir(data, coeffs, 0) # 100 OK
fir(data, coeffs, 0) # 100 OK
fir(data, coeffs, 0) # 134492960 bug

coeffs = array.array('i', (0, 100, 100, 100, 100)) works !

Kalman?

Looking for an easy implementation of a Kalman filter... in case this is a valid enhancement idea/request

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.