Giter VIP home page Giter VIP logo

emgfilters's Introduction

EMG Filters

Overview

This library provides the following filters for processing OYMotion's sEMG signals:

  1. an anti-hum notch filter to filter out 50HZ or 60HZ power line noise.
  2. a lowpass filter to filter out noises above 150HZ.
  3. a highpass filter to filter out noises below 20HZ.

You can turn on or off these filters by the init function.

Note:

Only input frequencies of 500HZ and 1000HZ are supported!

As you might have known, there has been some existing DSP libraries which provide rich set of functions you may need (e.g. https://github.com/vinniefalco/DSPFilters). Rather than re-inventing the wheel, what we're going to provide is a set of simplified functions that allows developers to focus on sEMG signal processing with common configurations.

How to Use It

The library is written in standard C++ without dependency of external libraries, so it should be easy to embed it into any C++ project.

A simple sample code for using on Arduino in the example folder is provided for your reference.

The sample program prints envelope, which is squared sEMG signal data, to serial line. The user can plot it using Arduino SerialPlotter.

This sample program also helps the user calibrate the baseline value with the maximal value of input sEMG signal while relaxing muscles for a while.

Note:

It is recommended that you do calibration every time you wear the sEMG sensor before using the data. After calibration, any squared value of sEMG signal below the baseline will be treated as zero.

emgfilters's People

Contributors

joeyu avatar saber-hyw 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.