upm  0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Public Member Functions
GroveEMG Class Reference

API for the Grove EMG Muscle Signal Reader. More...

Detailed Description

Grove EMG muscle signal reader gathers small muscle signals, then processes them, and returns the result

groveemg.jpg
// The was tested with the GroveEMG Muscle Signal Reader Sensor Module
// Instantiate a GroveEMG on analog pin A0
cout << "Calibrating...." << endl;
emg->calibrate();
while (shouldRun)
{
cout << emg->value() << endl;
usleep(100000);
}

Public Member Functions

 GroveEMG (int pin)
 
 ~GroveEMG ()
 
void calibrate ()
 
int value ()
 

Constructor & Destructor Documentation

GroveEMG ( int  pin)

Grove EMG reader constructor

Parameters
pinAnalog pin to use
~GroveEMG ( )

GroveEMG destructor

Member Function Documentation

void calibrate ( )

Calibrates the Grove EMG reader

int value ( )

Measures muscle signals from the reader

Returns
Muscle output as analog voltage

The documentation for this class was generated from the following files: