We have previously posted the the project lie detector, now here is is also a lie detector  using arduino.  Here is a simple tutorial to build a simple lie detector which will give visual indication  through LED arrangement whether the person speaks lie or truth.  The project uses a arduino duemilanove or uno. So the project is based on arduino.
But our final circuit will be standalone circuit without attached arduino programmer.
Circuit Description:
Wiring diagram is very simple, we simply connected three LED to 3 different digital pins as
shown in diagram. A touch Plate is connected to an analog pin.
Software:
Her is a simple version of software:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
int redPin = 9; int greenPin = 10; int bluePin = 11; int buzzerPin = 7; int potPin = 1; int sensorPin = 0; long red = 0xFF0000; long green = 0x00FF00; long blue = 0x000080; int band = 10; // adjust for sensitivity void setup() { pinMode(potPin, INPUT); pinMode(sensorPin, INPUT); pinMode(redPin, OUTPUT); pinMode(greenPin, OUTPUT); pinMode(bluePin, OUTPUT); pinMode(buzzerPin, OUTPUT); } void loop() { int gsr = analogRead(sensorPin); int pot = analogRead(potPin); if (gsr > pot + band) { setColor(red); beep(); } else if (gsr < pot - band) { setColor(blue); } else { setColor(green); } } void setColor(long rgb) { int red = rgb >> 16; int green = (rgb >> 8) & 0xFF; int blue = rgb & 0xFF; analogWrite(redPin, 255 - red); analogWrite(greenPin, 255 - green); analogWrite(bluePin, 255 - blue); } void beep() { // 5 Khz for 1/5th second for (int i = 0; i < 1000; i++) { digitalWrite(buzzerPin, HIGH); delayMicroseconds(100); digitalWrite(buzzerPin, LOW); delayMicroseconds(100); } } |
PARTS LIST
R1 – R3 = 100 Ω
R4 = 470 KΩ VR1 = 100 KΩ Arduino  duemilanove or uno LED1 – LED3 different color LED PZ1 = piezo buzzer |
hi , my lie only hsow green light on when i give supply to it..
can u tell me how to solve it??
Hi, what exactly are the touch pads that are used in this project?