Smart glasses for Blind using Arduino & Ultrasonic sensor
fig: Smart Glass |
Introduction:
According to the World Health Organization, there are approximately 285 million people worldwide who are visually impaired, with 39 million of those people being blind. For people who are visually impaired, navigating the world can be challenging, especially in unfamiliar environments. Smart glasses for the blind are a revolutionary piece of technology that can provide a new level of independence and freedom for people who are visually impaired. With the help of Arduino, ultrasonic sensors, a buzzer, and a battery, it is possible to create a pair of smart glasses that can detect obstacles and alert the wearer of potential dangers.
In this article, we will guide you through the process of making your own pair of smart glasses for the blind. We will discuss the materials you will need and provide step-by-step instructions on how to assemble the glasses.
Materials Needed:
- 1. Arduino Nano
- 2. Ultrasonic Sensor HC-SR04
- 3. Buzzer
- 4. Battery (9V) /3.7V li-po battery
- 5. Switch
- 6 Breadboard
- 7.Jumper Wires (Male to Male and Male to Female)
- 8. A pair of glasses (preferably lightweight and comfortable)
Step 1: Setting up the Arduino Board
Step 2: Wiring the Ultrasonic Sensor to the Arduino Board
1. The VCC pin to the 5V pin of the Arduino board.
2. Connect the GND pin of the ultrasonic sensor to the GND pin of the Arduino board.
3. Finally, connect the Trig pin of the ultrasonic sensor to pin 5 of the Arduino board
4. The Echo pin of the sensor to pin 4 of the Arduino board.
Step 3: Connecting the Buzzer to the Arduino Board
We also need to connect the buzzer to the Arduino board. Take the buzzer and connect the negative pin of the buzzer to pin 2 of the Arduino board. Connect the positive pin of the buzzer to the 5v pin of the Arduino board.
Step 4: Connecting the Battery to the Arduino Board
Now, we need to connect the battery to the Arduino board. Connect the positive terminal of the battery to the VIN pin of the Arduino board. Connect the negative terminal of the battery to the GND pin of the Arduino board.
You can also do the connection by looking the diagram given below :
Step 5: Testing the Smart Glasses
After wiring all the components, it's time to test the smart glasses. Open the Arduino IDE and upload the code provided below :
//*****************//Program Developed By sakshyam Bastakoti//*****************//
#define buzzer 2
#define motor 3
#define echopin 4
#define
trigPin 5
//***************************************************************************//
void setup()
{
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(motor, OUTPUT);
pinMode(buzzer,OUTPUT);
}
//*************************************************************************//
void loop()
{
long duration, distance;
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.1;
if (distance < 70) // This is where checking the distance you can change the value
{
digitalWrite(motor,HIGH); // When the the distance below 100cm
digitalWrite(buzzer,LOW);
} else
{
digitalWrite(motor,LOW); // when greater than 100cm
digitalWrite(buzzer,HIGH );
} delay(500);
}
//*****************//Program Developed By sakshyam Bastakoti//*****************//
Step 6: This code uses the ultrasonic sensor to detect obstacles within 100 cm of the user, and the buzzer will sound an alert to indicate the presence of the obstacle.
- Full details of this project – Download
Here, are the some images and video of this glasses which we have made :
we can add more features to the smart glasses. For example, we can add a vibration motor to provide haptic feedback to the user. We can also use a Bluetooth module to connect the glasses to a smartphone and provide all the data which have recorded in it.