Hey everyone today I want to show you how to make an Arduino-controlled lie detector to see when your friends are lying to you :D or to measure the different responses that your bodies skin goes through depending on the situation you are in or the emotions you are feeling. The result will be based on the visual in processing.
Step 1: How it works:
Our skin is amazing! It provides a medium for us to experience the sense of touch, it keeps infections out and keeps innards in but I bet you didn't know that our skin changes conductivity depending on many different things one being our mood! It called Electrodermal activity (EDA). The basics are that our skin changes its conductivity depending on how we feel.
We start by connect our Arduino to the subject and then connect the Arduino to a computer with the graphing software (I'll go over this in detail later). The data from the arduino will be transmitted to processing software where a visual will appear.
We have to start by asking the subject some easy questions we know they will answer truthfully like "what is your name" and "where do you live" to get a baseline and from there we can start asking questions that they may lie about, if they do they would probably feel nervous and then we can see the visual change.
Step 2: Parting list:
We need, Arduino Nano, 3 leds, 2K resistors, cables and some basic tools like cardboard and aluminium foil.
Step 3: Wiring
The wiring for this is pretty easy, we will start by connecting them in this order:
- Connect a piece of cable to Arduino analog pin 0
- Connect the 2k resistor to ground and the the extended analog 0 pin
- Connect a piece of cable to Arduinos 5 volt pin
- Connect the anode (long leg) of the green led to pin 2 and the cathode (short leg) to ground
- Connect the anode of the orange led to pin 3 and the cathode to ground
- Connect the anode of the red led to pin 4 and the cathode to ground
That's all the wiring for the Arduino.
Step 4: Software and code
We will be using arduino and processing software. First copy and paste the arduino code to arduino and upload it to the board. Make sure it is working fine. Next, open up processing and select sketch and import library serial. Go to sketch > import library > serial. This will make the data from arduino run in processing.
Step 5: Making the finger clips
Now that the basic form of the project is done we can start adding features to make it easier to use we will start by adding finger clips to keep a stable connection between our fingers and the cables. Lets start by gluing a strip of aluminium foil on a mounting board. Now tape down the exposed wire from analog pin 0 to the aluminium foil and repeat this step fo the 5 volt pin (make sure it makes a good connection).