upm  1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Public Member Functions

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

Detailed Description

This class is being replaced by EMG

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

// The was tested with the GroveEMG Muscle Signal Reader Sensor Module
// Instantiate a GroveEMG on analog pin A0
upm::GroveEMG emg(0);
cout << "Calibrating...." << endl;
while (shouldRun) {
cout << emg.value() << endl;

Public Member Functions

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

Constructor & Destructor Documentation

GroveEMG ( int  pin)

Grove EMG reader constructor

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

Muscle output as analog voltage

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