ashish80
Published © GPL3+

Smart stick for the visually impaired

Smart stick that will help visually impaired to identify obstacles.

IntermediateProtip1,424
Smart stick for the visually impaired

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
USB-A to B Cable
USB-A to B Cable
×1
Solderless Breadboard Full Size
Solderless Breadboard Full Size
×1
Male/Male Jumper Wires
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
Buzzer
Buzzer
×1
Grove - Vibration Motor
Seeed Studio Grove - Vibration Motor
×1
5 mm LED: Red
5 mm LED: Red
×1
Resistor 330 ohm
Resistor 330 ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

chematic diagram of smart stick

Refer to the schematic diagram given below, it will help you to understand the connection.

Code

Arduino Uno code of smart stick.

C/C++
The program is quite simple and understandable.
//Smart stick for the visually impaired
/* 
<--connection With Arduino Uno R3-->

HC-SR04 Ultrasonic Sensor: 
 #VCC--> +5V
 #TRIG--> D13
 #ECHO--> D12
 #GND--> pin to ground
 
 Buzzeer:
 positive(+)--> D10
 negative(-)--> pin to ground
 
 Vibration Motor:
 positive(+)--> D7
 negative(-)--> pin to ground
 
 LED:
 positive(+)--> D2
 negative(-)--> pin to ground
 
 */

long cm,duration;
    

void setup(){
  Serial.begin(9600);
  pinMode(13,OUTPUT); // TrigPin
  pinMode(12,INPUT);  // EchoPin
  pinMode(10,OUTPUT); // Buzzer
  pinMode(2,OUTPUT);  // LED As a indicaor
  pinMode(7,OUTPUT);  // Vibration Motor


}
void loop() {
 
digitalWrite(13,LOW); //Trig Off
delayMicroseconds(20);
digitalWrite(13,HIGH);//Trig ON
delayMicroseconds(20);
digitalWrite(13,LOW);//Trig Off
delayMicroseconds(20);
  
digitalWrite(2,HIGH); 
    
duration = pulseIn(12, HIGH); //To receive the reflected signal.
Serial.println(duration);  
cm = duration*0.034/2;
Serial.println(cm);

    
    
  if ((cm<100))
  {
    tone(10,3000);
    digitalWrite(7,HIGH);
    delay(500);
    noTone(10);
    delay(30);
  }
  else{
    
  digitalWrite(7,LOW);
  }
  delay(50);
  
}

Credits

ashish80
0 projects • 1 follower

Comments