Smart Glasses for Eye Strain Awareness
by cakee in Circuits > Arduino
17 Views, 0 Favorites, 0 Comments
Smart Glasses for Eye Strain Awareness
Smart glasses designed to help reduce eye strain by monitoring lighting conditions and viewing distance. Using an LDR and ultrasonic sensor, the system alerts the user through a buzzer whenever the surroundings are too dim or an object is detected too close to the eyes.
Supplies
- Arduino Uno
- LDR
- 10kΩ Resistor
- Ultrasonic Sensor (HC-SR04)
- Buzzer
- Jumper Wires
- Breadboard
- 9V Battery
- Glasses Frame
Hardware Setup
Connect all the components as shown below.
Connections
LDR
- One Leg → 5V
- Other Leg → A0
- 10kΩ Resistor between A0 and GND
Ultrasonic Sensor (HC-SR04)
- VCC → 5V
- GND → GND
- Trig → D9
- Echo → D10
Buzzer
- Positive (+) → D8
- Negative (-) → GND
Power
- Arduino powered using a 9V Battery.
Arduino Code
Upload the code using the Arduino IDE.
The system continuously monitors ambient light and viewing distance. If the lighting becomes too dim or an object is detected closer than the predefined distance, the buzzer alerts the user.
Note: The light and distance threshold values can be adjusted in the code according to the application and user requirements.
Downloads
Working
The smart glasses continuously monitor:
- Ambient light levels using the LDR
- Viewing distance using the ultrasonic sensor
If the surroundings become too dim or an object is detected closer than the preset distance, the buzzer is activated to alert the user.
This provides a simple demonstration of how sensors can be integrated into wearable devices for awareness and assistance applications.