Eye blink sensor circuit diagram and code


 Arduino code:

#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);
  }
}




Post a Comment

9 Comments

  1. I want to make this project. I want this project details please send me

    ReplyDelete
  2. Sit Arduino ko program nahi kiya to problem hoga kiya

    ReplyDelete
  3. I am interested this project pl cost & purchase link

    ReplyDelete
  4. I want to this projects on cardboard ,please tell me cost and your adress

    ReplyDelete
    Replies
    1. I want this project Bhai. I want this project details

      Delete
  5. I have one issue in my project that is when my eyes are open the buzzer rings and when I close my eyes the buzzer stops ringing. So what should I do. Please help me

    ReplyDelete