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.

// 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;
while (shouldRun) {
cout << gsr.value() << endl;

Public Member Functions

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

Constructor & Destructor Documentation

GSR ( int  pin)

Grove GSR sensor constructor

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

Electrical conductance of the skin

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