Hackster is hosting Hackster Holidays, Ep. 5: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 5 on Friday!
Mohd Sohail
Published © GPL3+

Empower the Visually Impaired with a Smart Blind Stick!

How to make a Smart Stick for Blind People

IntermediateFull instructions provided2 hours277
Empower the Visually Impaired with a Smart Blind Stick!

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Ultrasonic Sensor - HC-SR04
SparkFun Ultrasonic Sensor - HC-SR04
×1
Solar Cockroach Vibrating Disc Motor
Brown Dog Gadgets Solar Cockroach Vibrating Disc Motor
×1
Buzzer
Buzzer
×1
9V battery (generic)
9V battery (generic)
×1
9V Battery Clip
9V Battery Clip
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)
stick wooden

Story

Read more

Schematics

Circuit

Code

Code

Arduino
// https://www.youtube.com/channel/UCaXI2PcsTlH5g0et67kdD6g  //
// Smart Stick for Blind peoples //
// By MOHD SOHAIL //

const int trigPin = 3;
const int echoPin = 2;
const int buzzer = 5;
const int motorPin = 6;


long duration;
int distance;
int safetyDistance;


void setup() {
pinMode(trigPin, OUTPUT); 
pinMode(echoPin, INPUT); 
pinMode(buzzer, OUTPUT);
pinMode(motorPin, OUTPUT);
Serial.begin(9600); 
}


void loop() {

digitalWrite(trigPin, LOW);
delayMicroseconds(2);


digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);


duration = pulseIn(echoPin, HIGH);


distance= duration*0.034/2;

safetyDistance = distance;
if (safetyDistance <= 30){
  digitalWrite(buzzer, HIGH);
  digitalWrite(motorPin, HIGH);
}
else{
  digitalWrite(buzzer, LOW);
  digitalWrite(motorPin, LOW);
}


Serial.print("Distance: ");
Serial.println(distance);
}

Credits

Mohd Sohail

Mohd Sohail

10 projects • 4 followers
I'm a Robotics Engineer and Freelancer

Comments