peterhinch / micropython-filters Goto Github PK
View Code? Open in Web Editor NEWDigital filters impemented in MicroPython's inline ARM Thumb assembler (e.g. Pyboard, RP2).
License: MIT License
Digital filters impemented in MicroPython's inline ARM Thumb assembler (e.g. Pyboard, RP2).
License: MIT License
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?
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 !
Looking for an easy implementation of a Kalman filter... in case this is a valid enhancement idea/request
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.