Search

How to Make Eye Blink Sensor



This Project is use for anti sleeping on Car drive, Book reading. I can make this project using ir sensor, ATmega328p and some components and buzzer. you can make this project with any Arduino board. you can make this project help with this video....



Circuit:




Download Programming and Circuit:



#define SENSE A0


void setup()

{

pinMode(SENSE, INPUT);

pinMode(2, OUTPUT);



pinMode(LED_BUILTIN, OUTPUT);

}

void loop()

{

if(digitalRead(SENSE))

{

digitalWrite(LED_BUILTIN, LOW);

pinMode(2, LOW);

}

else

{

delay (2000);

if(digitalRead(SENSE))

{

digitalWrite(LED_BUILTIN, LOW);

pinMode(2, LOW);

}

else

digitalWrite(LED_BUILTIN, HIGH);

pinMode(2, HIGH);

}

}




Demo Video:


493 views0 comments

Recent Posts

See All