Ultrasonic Blind Aid

HI! well, i am Nitin ,13 years old ,and i love robotics So, i made this project "The Blind Aid " mainly for a contest but i was interested in sharing this, i hope this will be helpful for all those who are interested in robotics or just want a quick project.

This project is made with "Empowering the disabled in mind", i always wanted robotics to be something that doesn't make people lazy. Well with that in mind i wanted to create something that helps the physically challenged, so thats what inspired me to make this project.

It's made with an Arduino nano as it's brain and three ultra sonic sensors as its inputs and two servos to alert the individual by pressing against their face.This is a very simple yet a useful gadget that can be used by blind people

This helps them by alerting when they are about to hit a wall its very easy to use as it can be worn like glasses with ease and comfort.the whole contraption is powered by a power bank this can be replaced with a lithium battery when it is manufactured in a commercial scale.

Lets see how I made it!!

Step 1: THE CODE

//this is a code made by NITIN
#include<servo.h>
//declaring pins on the ultrasonic sensor
const int trigPin = 9; 
const int echoPin = 10;
const int trigPin1 = 11; 
const int echoPin1 = 12;
const int trigPin2 = 4; 
const int echoPin2 = 5;
//declaring the two servos
Servo servoL;
Servo servoR; 
long duration; 
int distance;
long duration1; 
int distance1;
long duration2;
int distance2;
void setup{
//declaring digitalpins and servo pins and setting baud rate for serial  monitor
pinMode(trigPin, OUTPUT); 
pinMode(echoPin, INPUT);
pinMode(trigPin1, OUTPUT);
pinMode(echoPin1, INPUT);
pinMode(trigPin2, OUTPUT); 
pinMode(echoPin2, INPUT);
Serial.begin(9600);
servoL.attach(8);
servoR.attach(7);
} 
void loop() {
//main loop
//first ultrasonic sensor
digitalWrite(trigPin, LOW); 
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW); 
duration = pulseIn(echoPin, HIGH);
distance = duration * 0.034 / 2; 
Serial.print("Distance: ");
Serial.println(distance);
//second ultrasonic sensor
digitalWrite(trigPin1, LOW);
delayMicroseconds(2);
digitalWrite(trigPin1, HIGH);
delayMicroseconds(10);  
digitalWrite(trigPin1, LOW); 
duration1 = pulseIn(echoPin1, HIGH);
distance1 = duration1 * 0.034 / 2;
Serial.print("Distance1: "); 
Serial.println(distance1);
//third ultra sonic sensor 
digitalWrite(trigPin2, LOW);
delayMicroseconds(2); 
 digitalWrite(trigPin2, HIGH); 
 delayMicroseconds(10); 
 digitalWrite(trigPin2, LOW);
 duration2 = pulseIn(echoPin2, HIGH);
 distance2 = duration2 * 0.034 / 2; 
 Serial.print("Distance2: ");
 Serial.println(distance2);
 // if thing in front and left
 if (distance < 30 && distance1 < 30)   {
    servoR.write(60);
    delay(5);
  }
  else if (distance > 30 && distance1 > 30)
 
 {
    servoR.write(0);
    delay(5);
  }
  //if thing in front and right
  if (distance < 30 && distance2 < 30) 
  {
    servoL.write(60);
    delay(5);
  }
  else if (distance > 30 && distance2 > 30)
  
{
    servoL.write(0);
    delay(5);
  }
  // if thing in front
  if (distance < 30 && distance1 > 30 && distance2 > 30)
  
{
    servoR.write(60);
    servoL.write(60);
    delay(5);
  }
  else if (distance > 30 && distance1 > 30 && distance2 > 30)
  
{
    servoR.write(0);
    servoL.write(0);
    delay(5);
  }
  // if thing in right
  
if (distance > 30 && distance2 < 30 && distance1 > 30)
 
 {
    servoL.write(60);
    delay(5);
  }
  else if (distance < 30 && distance2 > 30 && distance1 < 30) 
  {
    servoL.write(0);
    delay(5);
  }
  // if thing in left
  
if (distance > 30 && distance1 < 30 && distance2 > 30)
 
 {
    servoR.write(60);
    delay(5);
  }
  else if (distance < 30 && distance1 > 30 && distance2 < 30) 
  {
    servoR.write(0);
    delay(5);
  }
 
}
//End of code

Step 2: REQUIRED MATERIALS

HARDWARE:

  • Arduino nano
  • Servo motors (2 needed)
  • Ultrasonic sensors (3 needed)
  • USB to USB type B cable (to program the Arduino nano)
  • Laptop or PC
  • A safety glass (To mount all the electronics)
  • Male header pins (18 to solder on the perf board)
  • Female to Female jumper wires (To connect the ardiono with all the components)
  • Flux
  • Solder
  • An elastic band (So that u can wear it)

SOFTWARE:

TOOLS:

  • Soldering Iron
  • HOT glue gun (for sticking the components on the glasses)

Step 3: SCHEMATICS

Step 4: ASSEMBLING

Now all the components are put together on the glasses,the three ultrasonic sensors go on three sides Front,Left,Right, the servos go on both sides on the glasses and the main soldered board goes in front

The elastic band is stitched on both sides so that the glasses can be worn,and finally the power bank is stuck in the elastic band

Step 5: YOUR DONE!!!!

I hope this project made u understand the basic concepts of Arduino and help you in learning it,THANK YOU!! for reading this instrutables page Made by me!

Arduino Contest 2019

This is an entry in the
Arduino Contest 2019

Share

    Recommendations

    • Tape Contest

      Tape Contest
    • Trash to Treasure

      Trash to Treasure
    • Arduino Contest 2019

      Arduino Contest 2019

    2 Discussions

    2
    None
    Penolopy Bulnick

    20 days ago

    That sounds like a great project! Thanks for sharing it on Instructables :)