Giter Site home page Giter Site logo

ft9r / fir Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8.05 MB

CMSIS DSP low-pass FIR filter example with python scripts on windows machine

Python 2.15% Jupyter Notebook 78.16% C++ 13.93% C 0.84% Shell 4.93%
cmsis-dsp consoleapp filter finite-impulse-response firfilter windows

fir's Introduction

Description

The current repository contains some Python scripts for:

  • Generating a noisy signal
  • Calculating the coefficients of a finite impulse response (FIR) filter
  • Applying the filter to noisy signal
  • Comparing signals on charts
  • Performing a fast Fourier transform (FFT) to evaluate filtering efficiency

Notes

Despite the fact that CMSIS DSP software library is designed to work alongside with Cortex-based MCUs,
this time windows machine is used because of its extended debug capability.
So CMSIS arm_fir_f32 and arm_fir_init_f32 functions are implemented in form of DLL with minor changes
to be used by a console application.

Sequence of application

  1. Run GenerateSignal.py

Generated Signals

  1. Use GetCoefficients.ipynb to interract with notebook and calculate filter coefficients
  2. In arm_fir_example_f32.cpp replace definitions and coefficients with new values
  3. Run fir.exe to get filtered signal values
  4. Run CompareSignal.py

Signals comparison

  1. Run PerformFFT.py

Signals FFT

fir's People

Contributors

ft9r avatar

Watchers

 avatar

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.