Skip to content

C++ library for EMG, ECG, EOG, and EEG processing.

License

Notifications You must be signed in to change notification settings

ChinmayLonkar/libexg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libexg

This repository contains Arduino library for using Bio-Potential Amplifiers to record EMG, ECG, EEG, EOG data using Arduino. You can use the filtered data from the Bio-potential Amplifier Modules to create new and awesome Projects!

Compatibility

This Library can be used with multiple Arduino boards available in the market, for example

  • Arduino Micro
  • Arduino Leonardo
  • Arduino Mega
  • Arduino Due
  • Arduino Nano

Also this library can support ESP32 develpment boards.


Usage

This library allows an Arduino board to use it's ADC for getting analog data from Bio-Potential amplifiers. This library has been tested on the Bio-Amp-EXG-Pill module that amplifies the electrcal signals generated in our nerve cells and sends the filtered and amplified electricals signals to the microcontroller.

The libexg library supports only one amplifier module at a time with a particular type of data extraction which maybe anyone from EMG, ECG, EEG, EOG data extraction. To use this library:

#include <libexg.h>


Circuit

The Basic connection of Bio-Amp-EXG-Pill can de done as shown

connection

The data pin can be connected to any analog input pin of arduino.

Similarly, ESP32 can also be connected but with a Voltage-Divider as this microcontroller works on 3.3volts.

Any other Bio-Potential Amplifier can be connected in the same way with the analog output of the module connected to the analog input of arduino or any other microcontroller.


Examples

The examples with this library shows the basic implementation of data extraction from Bio-Amp-EXG-Pill Module.

Methods


getecg()

  • Enable an analog Input pin and get filtered ECG data at a specific sample rate.

  • Syntax - libEXG.getecg(pin)

Parameters

  • pin - the number of the pin that the Bio-Amp_EXG-Pill data pin is attached to.

Return


geteeg()

  • Enable an analog Input pin and get filtered EEG data at a specific sample rate.
  • Syntax - libEXG.getecg(pin)

Parameters

  • pin - the number of the pin that the Bio-Amp_EXG-Pill data pin is attached to

getemg()

  • Enable an analog Input pin and get filtered EMG data at a specific sample rate.
  • Syntax - libEXG.getecg(pin)

Parameters

  • pin - the number of the pin that the Bio-Amp_EXG-Pill data pin is attached to

geteog()

  • Enable an analog Input pin and get filtered EOG data at a specific sample rate.
  • Syntax - libEXG.getecg(pin)

Parameters

  • pin - the number of the pin that the Bio-Amp_EXG-Pill data pin is attached to

About

C++ library for EMG, ECG, EOG, and EEG processing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%