Smart Glasses for Eye Strain Awareness

by cakee in Circuits > Arduino

17 Views, 0 Favorites, 0 Comments

Smart Glasses for Eye Strain Awareness

IMG_20240829_120043_1111x500.jpg

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

  1. Arduino Uno
  2. LDR
  3. 10kΩ Resistor
  4. Ultrasonic Sensor (HC-SR04)
  5. Buzzer
  6. Jumper Wires
  7. Breadboard
  8. 9V Battery
  9. Glasses Frame

Hardware Setup

Connect all the components as shown below.

Connections

LDR

  1. One Leg → 5V
  2. Other Leg → A0
  3. 10kΩ Resistor between A0 and GND

Ultrasonic Sensor (HC-SR04)

  1. VCC → 5V
  2. GND → GND
  3. Trig → D9
  4. Echo → D10

Buzzer

  1. Positive (+) → D8
  2. Negative (-) → GND

Power

  1. 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.

const int lightThreshold = 300; // Adjust according to environment
const int distanceThreshold = 25; // cm

Downloads

Working

IMG_20240829_120043_1111x500.jpg

The smart glasses continuously monitor:

  1. Ambient light levels using the LDR
  2. 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.