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

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

Detailed Description

Deprecated:
This class is being replaced by GSR

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.

gsr.jpg
// The was tested with the GroveGSR Galvanic Skin Response Sensor module.
// Instantiate a GroveGSR on analog pin A0
upm::GroveGSR gsr(0);
cout << "Calibrating...." << endl;
gsr.calibrate();
while (shouldRun) {
cout << gsr.value() << endl;
upm_delay_us(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: