Thejas Raja Elandassery
Published

Third Eye For Blinds

This project helps the blinds to detect obstacles in path and help them to avoid it. This project is made in our school ATL LAB.

IntermediateFull instructions provided9 hours251
Third Eye For Blinds

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×2
Solar Cockroach Vibrating Disc Motor
Brown Dog Gadgets Solar Cockroach Vibrating Disc Motor
×2

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

goggles

Story

Read more

Schematics

Third Eye For Blinds

Code

Third Eye For Blinds

C/C++
/* This project describes how to make an ultrasonic goggle for blind  using 
LED, Ultasonic Sensor(HC-SR04) and a buzzer.*/ 

//Firstly the connections of ultrasonic Sensor1.Connect +5v and GND normally and trigger pin to 12 & echo pin to 13. 
//Firstly the connections of ultrasonic Sensor2.Connect +5v and GND normally and trigger pin to 11 & echo pin to 10. 
#define trigPin 12 
#define echoPin 13
#define trigPin1 11
#define echoPin1 10
int VML = 8; // Connect vibrating motor left pin to 8
int VMR= 6;  //Connect vibrating motor right pin to 6
int duration, distance; //to measure the distance and time taken 

void setup() {
        Serial.begin (9600); 
        //Define the output and input objects(devices)
        pinMode(trigPin, OUTPUT); 
        pinMode(echoPin, INPUT);
        pinMode(trigPin1, OUTPUT); 
        pinMode(echoPin1, INPUT);
        pinMode(VML, OUTPUT);//vibrating motor left
        pinMode(VMR, OUTPUT);//vibrating motor right
}

void loop() {

    digitalWrite(trigPin, HIGH); //for first ultrasonic
    delayMicroseconds(10);
    digitalWrite(trigPin, LOW);
    duration = pulseIn(echoPin, HIGH);
    distance = (duration/2) / 29.1;

    //when distance is greater than or equal to 100 OR less than or equal to 0
  if (distance >= 100 || distance <= 0) //you can change distance by reducing or increasing the left value
        {
        Serial.println("no object detected");
        digitalWrite(VML,LOW);
      
        }
  else {
        Serial.println("object detected \n");
        Serial.print("distance= ");              
        Serial.print(distance);        //prints the distance if it is between the range 0 to 200
        digitalWrite(VML,HIGH);  //turns vml on
  }
       digitalWrite(trigPin1, HIGH); //for second ultrasonic
    delayMicroseconds(10);
    digitalWrite(trigPin1, LOW);
    duration = pulseIn(echoPin1, HIGH);
    distance = (duration/2) / 29.1;
    if (distance >= 100 || distance <= 0) 
        {
        Serial.println("no object detected");
        digitalWrite(VMR,LOW);
      
        }
  else {
        Serial.println("object detected \n");
        Serial.print("distance= ");              
        Serial.print(distance);        //prints the distance if it is between the range 0 to 100
        digitalWrite(VMR,HIGH);       //turns vmr on
  }
}

Credits

Thejas Raja Elandassery

Thejas Raja Elandassery

2 projects • 3 followers

Comments