Simple Polygraph With Arduino

6,554

94

13

A polygraph is commonly known as a lie detector. Really, it detects how excited a person is. They aren't foolproof (and aren't admissable in court in the United States), but they are fun and a good way to learn about using biosensors. Our polygraph initially contained three parts, galvanic skin response, heart rate, and breathing rate and all the data was processed through arduino. In this instructable, I will demonstrate how the polygraph was built, and then how to read the data in real time to interrogate your friends (or for the more daring, your enemies). Feel free to contact me for clarification and assistance. Happy deception detecting!

Parts list:

  • Computer
  • Arduino (I used an Uno, but any will do)
  • Breadboard
  • Jumper cables and wires
  • 1kOhm resistor
  • Pulse sensor (or other heart rate monitoring device)
  • Breadboard
  • 3D printing capabilites (optional)
  • velcro
  • aluminum foil
  • acrylic sheet
  • hot glue
  • strain gauge (optional)
  • thick rope/belt (optional)

Tools:

  • Wire cutter
  • Wire stripper
  • Scissors

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Heart Rate Monitoring

The first component of our polygraph was a heart rate monitor. As I'm sure you've experienced, when you're nervous or excited, your heart tends to beat harder and faster. I used a plug and play Pulse Sensor which can be found here. All the code is open source and found on the pulse sensor website. I used this as the basis for my code and added in the (far simpler) code for the galvanic skin response and processing code.

For the arduino circuit, connect the red wire to 5V, the black wire to ground, and the purple data wire to an analog input.

The 3D printed clip for the pulse sensor can be found on GrabCAD here (I did not design this clip).

For an even more DIY experience, you could also make your own EKG (heart rate monitor), which I will write up instructions on in the near future.

Step 2: Galvanic Skin Response

Galvanic Skin Response, or GSR, is a fancy way of saying "how sweaty are you?" When you sweat, your skin becomes more conductive. If we let a little bit of electricity (too little for you to even feel) run over your skin, we can notice when it becomes more conductive. The super simple way to do this is to take aluminum foil and velcro. Place the stripped end of a wire on the velcro and cover it with aluminum foil, then make a smaller piece of the oppsite side of the velcro and stick it on top of the aluminum foil. You should be able to roll up the sensor around your fingertip snuggly and maintain good electrical contact. Make a second sensor exactly the same way, and use the breadboard so a 5V signal goes in one finger and out the other to the breadboard. Then, have the signal go through a 1kOhm pull up resistor, and to both an analog input and ground.

Step 3: Breathing Sensor

So for the record, the breathing sensor was removed from my project, but I bought a strain gauge that was going to be tied around the wearer's chest so every time they inhale the sensor would flex. Let me know if you try this out and how it works!

Step 4: Code and Interrogations

The code for this project is super simple (but feel free to reach out to me for help). I'm not just publishing it here because your circuit might be different than mine. The basis of the code was the pulse sensor, then I added in the functionality of analogreadserial for the GSR. This will also instruct you how to send the data to processing (you might want to offset the pulse or GSR on the y-axis so the values aren't overlapping).

To interrogate your friend, have them press their fingertip gently to the pulse senor and put two fingers into the GSR. Runt he code and open up processing. Start out simple, asking yes/no questions like if they are sitting and if today is their birthday. You should see very consistent heartbeats and a smooth, steady GSR signal. The more emotion associated with the response, the more fluctuation you will see. Every person is different, so take time and good luck!

Makerspace Contest

Participated in the
Makerspace Contest

Sensors Contest 2016

Participated in the
Sensors Contest 2016

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    13 Discussions

    0
    None
    JoškaR

    6 months ago

    Can you please post or send me the code? I am trying to make this for my college project. Thank you

    0
    None
    cross_cross

    6 months ago

    can i get the code please

    0
    None
    MayadaK

    11 months ago

    Very nice project can u send me the code please pleeeeeas i willy need it

    0
    None
    SugguT

    1 year ago

    can i get code please

    0
    None
    GarimaM6

    1 year ago

    code please?

    0
    None
    fahiths

    2 years ago

    Can i get the code pls.i am trying to replicate your project

    0
    None
    iamashik24

    2 years ago

    can i get the code please

    0
    None
    ohoilett

    3 years ago

    I used the galvanic skin response circuit with my little sister. Then I scared the life out of her. Her GSR was interesting to say the least. Lol.

    0
    None
    al2code

    3 years ago

    Great ideea! I've been playing around with my Raspberry Pi for a while and I never thought about this project.

    0
    None
    tedmyers

    3 years ago

    Cool project!

    0
    None

    This is a fun sensor project. Good job on including the breath sensor. Most people leave that off.

    1 reply
    0
    None
    PerriRDIY Hacks and How Tos

    Reply 3 years ago

    We had a lot of fun playing with the breath sensor. I wish we could have used it more!

    0
    None
    ash_doge

    3 years ago

    Nice job!