A walking-stick add-on that beeps when an obstacle is close.
Built and tested by Sreejith K V · Industrial Robotics Institute

An assistive device that helps visually impaired people detect obstacles while walking. An HC-SR04 ultrasonic sensor measures the distance ahead; when something is closer than 20 cm, the Arduino sounds a buzzer. It can be fixed to a walking stick or carried in the hand.
| Component | Qty |
|---|---|
| Arduino Uno | 1 |
| HC-SR04 Ultrasonic Sensor | 1 |
| Buzzer | 1 |
| Vibration Motor (optional) | 1 |
| Breadboard | 1 |
| Jumper Wires | As needed |
| Battery / Power Bank | 1 |
| From | Connect to |
|---|---|
| Ultrasonic VCC | 5V |
| Ultrasonic GND | GND |
| Ultrasonic TRIG | Pin 9 |
| Ultrasonic ECHO | Pin 10 |
| Buzzer + | Pin 8 |
| Buzzer − | GND |
Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the Arduino Uno.
#define trigPin 9
#define echoPin 10
#define buzzer 8
long duration;
int distance;
void setup()
{
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(buzzer, 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;
Serial.print("Distance: ");
Serial.println(distance);
if (distance < 20)
{
digitalWrite(buzzer, HIGH);
}
else
{
digitalWrite(buzzer, LOW);
}
delay(100);
}An assistive device that helps visually impaired people detect obstacles while walking. An HC-SR04 ultrasonic sensor measures the distance ahead; when something is closer than 20 cm, the Arduino sounds a buzzer.
You need: Arduino Uno (1), HC-SR04 Ultrasonic Sensor (1), Buzzer (1), Vibration Motor (optional) (1), Breadboard (1), Jumper Wires, Battery / Power Bank (1). Software: Arduino IDE.
Yes. It is rated beginner and takes about 1–2 hours to build, using the Arduino Uno. The guide on this page explains every connection and step.
The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.
Yes. IRI sells a kit with the parts for this project (PRJ-014). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.