All is good but coding is wrong right ✅️ coding is const int sensorPin = 2; // Pin connected to the IR sensor (or eye detection sensor) const int motorPin = 8; // Pin connected to the motor const int buzzerPin = 9; // Pin connected to the buzzer unsigned long eyesOpenTime = 0; // Variable to store the time when eyes were first detected open void setup() { pinMode(motorPin, OUTPUT); // Set motorPin as an OUTPUT pinMode(buzzerPin, OUTPUT); // Set buzzerPin as an OUTPUT pinMode(sensorPin, INPUT); // Set sensorPin as an INPUT digitalWrite(motorPin, HIGH); // Turn on the motor initially } void loop() { if (!digitalRead(sensorPin)) { // Eyes are closed, reset the timer eyesOpenTime = 0; // Start buzzer if eyes are closed for 2 seconds delay(2000); if (!digitalRead(sensorPin)) { digitalWrite(buzzerPin, HIGH); } // Stop motor if eyes are closed for 4 seconds delay(2000); // Additional delay after starting buzzer if (!digitalRead(sensorPin)) { digitalWrite(motorPin, LOW); } } else { // Eyes are open, reset the timer and turn off buzzer eyesOpenTime = millis(); digitalWrite(buzzerPin, LOW); // Turn on motor if eyes were closed for less than 4 seconds if (millis() - eyesOpenTime < 4000) { digitalWrite(motorPin, HIGH); } } }
Will this code be work ? 🙏🙏🙏Because when I open my eyes ,buzzer beeps & motor starts and when I close my eyes, buzzer stops , motor also stops. What to do please tell me 🙏🙏🙏🙏 on 7th August there's an exhibition. Plzzz help 🙏🙏🙏🙏
🙏🙏🙏I put the IR sensor on a distance from my eyes as you said. But now, when the buzzer beeps ,motor starts and when buzzer stops motor also stops. What to do please tell me 🙏🙏🙏🙏 on 7th August there's an exhibition and I want this project to work fine. I have checked the circuit 4 to 5 times there is no fault. Is there any fault in code ? Plzzz let me know 🙏🙏
you know what that IR sensor does not detect any eye black or white colour. IR sensor is an object detector so there is one screw like structure present on it so you can adjust the distance(range) of eye pupil and eye lashes . so make such adjustment such that when you open eye it can't detect but when you closed the eye the eye lashes is detect by senssor as an object and then it can blew alarm and stop motor❤
🙏🙏🙏🙏🙏I had made this project but buzzer works alternatively. When I opens my eyes after 3 second it beeps . But when I close my eyes it doesn't beeps. While motor works properly. I have rechecked 4 to 5 times but there is no circuit fault, what should I do ? Plzzz let me know... 🙏🙏🙏🙏🙏
I put it on a distance from my eyes. But now, when the buzzer beeps ,motor starts and when buzzer stops motor also stops. What to do please tell me 🙏🙏🙏🙏 on 7th August there's an exhibition and I want this project to work fine
Bro please respond,the Arduino code which you have given is not working properly,please check it and see if it is correct or not, please help ,and bro will the code work if we use eye blibk sensor instead of ir sensor🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
hello Mera project achhe se run nhi ho raha jab aankh band krr leta huu alarm aur gear motor dono ghumne lagte hain aur jab bhi kholta huu dono band ho jate hai
Thank❤❤, you are the best no body in you tub gives code but you given in your chanel ,. Thanks very much😊😊😊😊😊❤❤❤❤❤
It's my pleasure.. thanks
@PendTech
@@PendTech send coding
All is good but coding is wrong right ✅️ coding is
const int sensorPin = 2; // Pin connected to the IR sensor (or eye detection sensor)
const int motorPin = 8; // Pin connected to the motor
const int buzzerPin = 9; // Pin connected to the buzzer
unsigned long eyesOpenTime = 0; // Variable to store the time when eyes were first detected open
void setup() {
pinMode(motorPin, OUTPUT); // Set motorPin as an OUTPUT
pinMode(buzzerPin, OUTPUT); // Set buzzerPin as an OUTPUT
pinMode(sensorPin, INPUT); // Set sensorPin as an INPUT
digitalWrite(motorPin, HIGH); // Turn on the motor initially
}
void loop() {
if (!digitalRead(sensorPin)) {
// Eyes are closed, reset the timer
eyesOpenTime = 0;
// Start buzzer if eyes are closed for 2 seconds
delay(2000);
if (!digitalRead(sensorPin)) {
digitalWrite(buzzerPin, HIGH);
}
// Stop motor if eyes are closed for 4 seconds
delay(2000); // Additional delay after starting buzzer
if (!digitalRead(sensorPin)) {
digitalWrite(motorPin, LOW);
}
} else {
// Eyes are open, reset the timer and turn off buzzer
eyesOpenTime = millis();
digitalWrite(buzzerPin, LOW);
// Turn on motor if eyes were closed for less than 4 seconds
if (millis() - eyesOpenTime < 4000) {
digitalWrite(motorPin, HIGH);
}
}
}
❤
Will this code be work ? 🙏🙏🙏Because when I open my eyes ,buzzer beeps & motor starts and when I close my eyes, buzzer stops , motor also stops. What to do please tell me 🙏🙏🙏🙏 on 7th August there's an exhibition. Plzzz help 🙏🙏🙏🙏
Bhai ye code run kare raha hai
Ye kahan kis app se upload karna hai 😢
Arduinodroid@@generalknowledgeworld6091
Thank you brother, that was so helpful
Thanks broo. Nobody gave code in youtube but you did ❤️ may god gives you a long and healthy lifee
Wil it work if we use 5v relay modeul 3 chanel
hmm koraga
Thank you
Bro challenge for you do a solar charge and battery. Do a cooler are thing in summer only with solar energy
Ok I will do for you
Please sir one project Arduino UNO use anti sleep drive project please sir
🙏🙏🙏I put the IR sensor on a distance from my eyes as you said. But now, when the buzzer beeps ,motor starts and when buzzer stops motor also stops. What to do please tell me 🙏🙏🙏🙏 on 7th August there's an exhibition and I want this project to work fine. I have checked the circuit 4 to 5 times there is no fault. Is there any fault in code ? Plzzz let me know 🙏🙏
Are Young Solve the problem? I have the same problem
you know what that IR sensor does not detect any eye black or white colour. IR sensor is an object detector so there is one screw like structure present on it so you can adjust the distance(range) of eye pupil and eye lashes . so make such adjustment such that when you open eye it can't detect but when you closed the eye the eye lashes is detect by senssor as an object and then it can blew alarm and stop motor❤
🙏🙏🙏🙏🙏I had made this project but buzzer works alternatively. When I opens my eyes after 3 second it beeps . But when I close my eyes it doesn't beeps. While motor works properly. I have rechecked 4 to 5 times but there is no circuit fault, what should I do ? Plzzz let me know... 🙏🙏🙏🙏🙏
set the IR sensor distance according your eye..
either you can use eye blinking sensor instant of IR sensor
I put it on a distance from my eyes. But now, when the buzzer beeps ,motor starts and when buzzer stops motor also stops. What to do please tell me 🙏🙏🙏🙏 on 7th August there's an exhibition and I want this project to work fine
The code is wrong
Audino R3 SMD hoga ki
hoga
Thanks for video ❤😊
My pleasure 😊
Super bro👍👍👍
Thank you
Super bro💙
Thanks dude 🤟🏻
Bhai anti sleep alarm project ke saman general Store me milege
Bro can we use board rather then arduino company
Aap apna mobile bhejiye mujhe nahin Banane a raha hai 25 tarikh ko Le Jana Hai Mera
Kya Arduino UNO use kar sakte with same connection
U can use
Kya yah project dhup mein bahar kam kar sakta hai
Bro what is the budget of this project
600-700
Approx 1000
brother please make a video about how to make fire fighting robot.
ok next video for you 👍🏻
Can we make it without Relay Module
@Pendtech
yes.. you can use single Relay
I have made this project and it worked but the motor is not stable i.e. it is not stopping can u plz help me
😂
We can use jumper wires
Yes
Bro how did u do the coding in phone???
using ArduinoDroid mobile app
No, how did u connect the usb?☺️
I wana talk to u do u have what's app
Cuz i am having some confusion and my science fest is soon. ☺️
@@PendTechpls tell me how I can coding in phone I don't know
From where can I study about full component and connection
Is projejct me kya 2 lagna h please uski jankari den.
Lekin bhaiya aise toh bich me gadi rukne se accident bhi ho sakta hai na
Which cable use ????
Bro please respond,the Arduino code which you have given is not working properly,please check it and see if it is correct or not, please help ,and bro will the code work if we use eye blibk sensor instead of ir sensor🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
okay, change the video description. I will provide the another code.
When i open The eye, buzzer still works, i think either the circuit diagram or the code is wrong, please help me
top of the code there is written pend tech we have to copy that or not
Karo yaa mat karo usase kuch nahi ho raha
The motor is working alternatively while buzzer is working well
Coding ke liye konsa cable lagayenge plz help
Arduino cable
❤👍
🤟🏻👍🏻
@@PendTechCan we make without relay module
Sir relay module is not working
My also
Kya ye sahi coading hai please koi batao
Please bhaiya help me Mera science exhibition 17 October ko hai
please brother make a alcohol detection car and auto cut of engine using arduino ❤
Bro Maine same connection Arduino Uno par kiya but motor nahi chal rahi hai sensor work kar raha hai
Hello song is project Mein kya-kya Saman aaega
The project is unavailable in Amazon
pero por que no te lo pones bien a los anteojos ??? veo que lo sostenes con las mano y no te lo pones normalmente por que??
Sensor Ulta work kr rha h aankh khulne pe Awaz aa rha h band hone pe nahi aa rha h plzzz reply 😢
Bhaiya ji mujhe bhi Doge project banane ke Saman
Bahi ye work to karege na
You make wireless project please
Bhai plese wireless anti sleep alarm banao
ok obviously I pick your comment
motor is running continuosly and buzzer also
hello
Mera project achhe se run nhi ho raha jab aankh band krr leta huu alarm aur gear motor dono ghumne lagte hain aur jab bhi kholta huu dono band ho jate hai
Reply kro jaldi
If we blink our eyes then also it will sound the alarm
Hlo
👍🏻
Sir aurdino board ka full name plzzzz
My project is not work
Please help me
order nahi ho pa raha hai plz
Bhai code upload karne per ulta work ho raha hai, kya Kare
Your Program is not working problem line 53 and 69
Cost please
you can check the video description
Bro i need your help
motor is nót Working pls help
please do something
Sir aap ni mila
All in fake