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
GroveGSR Class Reference

API for the Grove GSR Galvanic Skin Response Sensor. More...

Detailed Description

Measures the electrical conductance of skin to measure strong emotional reactions. In other words, it measures sweat on your fingers as an indicator of strong emotional reactions.

grovegsr.jpg
// The was tested with the GroveGSR Galvanic Skin Response Sensor module.
// Instantiate a GroveGSR on analog pin A0
cout << "Calibrating...." << endl;
gsr->calibrate();
while (shouldRun)
{
cout << gsr->value() << endl;
usleep(500000);
}

Public Member Functions

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

Constructor & Destructor Documentation

GroveGSR ( int  pin)

Grove GSR sensor constructor

Parameters
pinAnalog pin to use
~GroveGSR ( )

GroveGSR destructor

Member Function Documentation

void calibrate ( )

Calibrates the Grove GSR sensor

int value ( )

Gets the electrical conductance of the skin from the sensor

Returns
Electrical conductance of the skin

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