This project utilizes an Arduino Nano and an IR sensor to detect closed eyes (indicating potential drowsiness). When the IR sensor detects closed eyes for 2 seconds or more, it stops the motorized car, activates a buzzer, and lights up a red LED as a warning until the eyes are opened again.
- Eye Detection: Uses an IR sensor to detect closed eyes.
- Safety Alert: Stops the motorized car and activates a buzzer and red LED when eyes are closed for 2 seconds.
- Automatic Reset: Resets the system when eyes are opened again.
- Arduino Nano: Microcontroller for sensor interfacing and motor control.
- IR Sensor: Detects eye movements (open/close).
- Motor Driver: Controls the movement direction of the car.
- LED and Buzzer: Indicators for alert notifications.
- IR Sensor: Digital pin 3
- Motor Driver (L298N):
- in1 (Left Motor Forward): Digital pin 8
- in2 (Left Motor Backward): Digital pin 7
- in3 (Right Motor Forward): Digital pin 5
- in4 (Right Motor Backward): Digital pin 4
- LED: Digital pin 2
- Buzzer: Digital pin 6
- Relay (for motor control): Digital pin 6
To implement the functionality described, refer to the provided Arduino sketch.
- Connect the components according to the specified pin connections.
- Upload the Arduino code to the Arduino Nano board.
- Monitor sensor readings and system operation via the Serial Monitor.
- Ensure the goggles detect eye closure effectively and activate the safety alerts as intended.