A portable distance meausring system for blind

Published Apr 19, 2021
 5 hours to build
 Beginner

When any object or any person will come closer than 15 towards the blind person the buzzer will buzz . In the project ultrasonic sensor is used for the calculation of distance .

display image

Components Used

Ultrasonic Module HC-SR04
Ultrasonic module HC-SR04 is generally used for finding distance value and obstacle detection. It can operate in the range 2cm-400cm.
1
Arduino Nano
Arduino Nano
1
Connecting Wire Jumper Wires
Connecting Wire Breadboard wires
1
Buzzer 5V
Buzzer 5V
1
9V Battery
Consumer Battery & Photo Battery 9V RECTANGLE
1
Description

Code -

    int trigger_pin = 2;
    int echo_pin = 3;
    int buzzer_pin = 11; 
    int time;
    int distance; 

      void setup ( ) {  
      Serial.begin (9600);   
     pinMode (trigger_pin, OUTPUT);   
     pinMode (echo_pin, INPUT);      
     pinMode (buzzer_pin, OUTPUT);
     }

  void loop ( ) {
   digitalWrite (trigger_pin, HIGH);   
   delayMicroseconds (10);
   digitalWrite (trigger_pin, LOW);    
   time = pulseIn (echo_pin, HIGH);    
   distance = (time * 0.034) / 2;

   if (distance <= 15)     
   {      
  Serial.println (" object is near ");     
   Serial.print (" Distance= ");           
    Serial.println (distance);       
   digitalWrite (buzzer_pin, HIGH);   
   delay (1000);        }

 else {       
   Serial.println (" object is far ");        
   Serial.print (" Distance= ");                 
   Serial.println (distance);             
   digitalWrite (buzzer_pin, LOW);        
   delay (1000);        
 } 
    } 

 

    Secondly, we will make the circuit.

 1.Connections : Ultrasonic sensor 

  •     Gnd to Gnd 
  •     Vcc to 3.3 v
  •     Echo to  digital pin 3
  •     trig to  digital pin 2 

2. Connections :  Buzzer 

  •     Negative to Gnd 
  •     Positive to digital pin 11

 3.Connections : Battery 

  •     Negative :  Gnd 
  •     Positive  :  5v

 After completing the connections as per the circuit diagram attach the circuit to the band . 

 

 

Downloads

arduino projects 2 Download
Comments
Ad