upm  0.3.1
Sensor/Actuator repository for libmraa (v0.7.2)
Public Member Functions

API for the GroveEMG Muscle Signal Reader Sensor. More...

Detailed Description

GroveEMG Muscle Signal reader gathers small muscle signals, then processes 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)

GroveEMG sensor constructor

Parameters
pinanalog pin to use
~GroveEMG ( )

GroveEMG Destructor

Member Function Documentation

void calibrate ( )

Calibrate the GroveEMG Sensor

int value ( )

Measure the muscle signals from the sensor

Returns
the muscle output as analog voltage

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