#signal-processing #filter #filtering #noise #frequencies #power #semg

emg-filter-rs

This is an implementation of the EMGFilters library by OYMotion in Rust

1 unstable release

0.1.0 Sep 13, 2024

#2 in #frequencies

Download history 195/week @ 2024-09-12 12/week @ 2024-09-19 6/week @ 2024-09-26 2/week @ 2024-10-03

215 downloads per month

MIT/Apache

12KB
244 lines

emg-filter-rs

This is an implementation of the EMGFilters library by OYMotion in Rust.

Overview

Just like the OYMotion library, this library provides the following filters for processing sEMG signals.

  • Anti-hum notch filter - for filtering out 50HZ or 60Hz power line noise
  • Lowpass filter - filtering out noises above 150HZ
  • Highpass filter - filtering out noises below 20HZ

Only input frequencies of 500HZ and 1000HZ are supported, but more can be added as needed.

How to use

Use the library from GitHub by adding the following to your Cargo.toml

emg-filter-rs = { git = "https://github.com/Devils-Prosthetics/emg-filter-rs" }

Differences from EMGFilters library by OYMotion

  • It fixes issues, when used with multiple instances #7.
  • It doesn't round from float to int multiple times unnecessarily, as a result, it should be more accurate.

No runtime deps