Skip to content

FT9R/FIR

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published