Galvanic Skin Response GSR Sensor Homemade Stress Monitor

Galvanic Skin Response (GSR) sensors can be used to objectively measure psychological distress.

GSR measures a person’s physical response to a stressor, rather than their subjective evaluation of that response. So it is far more useful for studying psychosomatic responses.

This was first discovered by Charles Féré (1888), then expanded by Ivan Tarchanoff (1890).

These days, GSR is often used in lie detector tests, also known as polygraphs. Widacki (2015) mentions studies where GSR had 80% accuracy, then was combined with respiration and blood pressure for accurate results (87%).

So, I built a GSR!

This page provides more details about how to build your own Galvanic Skin Response monitor for only £38.50!

My personal thanks and gratitude go to the Pi Hut and Seeed Studio for helping me understand this amazing new technology.

When using information from this page online, please display a link to this page.

Buying the Parts

This was also easier than expected!

I headed over to the Pi Hut, who staff were really helpful, and bought:

Connecting Things

The mini-computer, base shield and Grove GSR all connect to each other very easily.

Next step, download and install the Arduino IDE to your full size computer or laptop. This is used to programme the Arduino.

Connect the Arduino to your computer. This may need an extra cable (like a printer cable), to connect to your computer USB.

Program the Arduino

Copy and paste the following code into the IDE.

const int GSR=A0;
int gsrVal=0;
int gsrAvg=0;

void setup(){
  Serial.begin(9600);
}

void loop(){
  long grsSum=0;
  for(int i=0;i<100;i++)
      {
      gsrVal=analogRead(GSR);
      grsSum += gsrVal;
      delay(10);
      }
   gsrAvg = grsSum/100;
   Serial.println(gsrAvg);
}

Then click “Upload”. This transfers the code to the Arduino

Marvel at the results

On the IDE, click Tools->Serial Monitor to get a print out.

Or click Tools->Serial Plotter to get a graph.

It should show a single number, being updated every second. That’s your baseline, zero resistance figure.

Adjust the little screw on the Grove GSR, if you want a different baseline number.

Then put the finger pads on your fingers.

Test Your Stress

Think of things that distress you. Fears, angers, hates, etc. Notice where the number goes.

Then chill. Holding your breath (in or out), and long out breaths should allow the number to go down.

Now test your therapy techniques, to see which ones change clients fastest!

Exporting to text / csv / Excel file

While the Arduino IDE displays information on screen, if can’t save that to a file.

I found CoolTerm by Roger Meier can help with this. Download the app, extract it from the Zip file, connect your Arduino, but don’t have it running.

Reference

See more here…


Scroll to Top