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

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 GSR Galvanic Skin Response Sensor module.
// Instantiate a GSR on analog pin A0
upm::GSR gsr(0);
cout << "Calibrating...." << endl;
gsr.calibrate();
while (shouldRun) {
cout << gsr.value() << endl;
upm_delay_us(500000);
}

Public Member Functions

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

Constructor & Destructor Documentation

GSR ( int  pin)

Grove GSR sensor constructor

Parameters
pinAnalog pin to use
~GSR ( )

GSR 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: