GSR sensing with Unity

So I’ve been waiting for a while for some complete GSR sensor units (That’s Galvanic Skin Response, in simplistic terms they measure how “sweaty” you are) to arrive at work. These are for an Undergrad Project team to use, so it’s rather frustrating for the supplier to be soooo slow.

Thankfully, a different supplier was really prompt in sending a couple of GSR sensor boards to us that use the Grove platform. Unfortunately I don’t have any Grove shields for the Arduino so I had to do a quick bit of tinkering with a breadboard to get it hooked up. Actually very simple in practice, theres a +ve, ground and analog signal wire that you need to set up with the Arduino – then it is just a matter of reading in the values from the analog pin.

Just about visible on the Grove unit itself (in the photo below) is a little potentiometer that you can turn with a small screwdriver to adjust the sensitivity range of the resistance being recorded.

GSR Sensor (Grove)

GSR Sensor (Grove)

Once that was up and running it was then a case of getting Unity reading information over the SerialPort (as the raw analog values were being sent via Serial Comms from the Arduino). Some really useful code for this was found here:

A quick bit of hacking with the Unity LineRenderer later as a means of visualising the data and there you have it – Unity getting biometric data from an Arduino!


Displaying Serial Data in Unity using a Line Renderer

Displaying Serial Data in Unity using a Line Renderer


4 thoughts on “GSR sensing with Unity

    • Unfortunately I did this at a previous workplace, and I don’t have any of the equipment (or the software project files) to hand any more :/

  1. Do you have the white wire from the GSR connected to anything? With the connector from the GSR having a black,red,white, and yellow wire, it looks like you have black going to ground, red to 5v, and yellow to an analog pin, but the white isn’t connected. Any idea what it’s for?

    • I can’t remember for sure (this was a while back and I don’t have the equipment to hand), but I think that you can hook up a potentiometer to adjust sensitivity, it might be for that(?)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s