A wearable hat that buzzes when something is within 50 cm ahead.
Built and tested by Aboobacker sidheeq K P · Industrial Robotics Institute

An assistive smart hat for visually impaired people. An ultrasonic sensor on the brim measures the distance to anything in front; when an obstacle comes within 50 cm, the buzzer sounds so the wearer can avoid it. A small Arduino Nano and battery pack keep it light enough to wear.
| Component | Qty |
|---|---|
| Arduino Nano | 1 |
| Ultrasonic Sensor (HC-SR04) | 1 |
| Buzzer | 1 |
| Lithium-ion Batteries | 2 |
| 2-cell Battery Holder with Switch | 1 |
| Jumper Wires | As needed |
| From | Connect to |
|---|---|
| Ultrasonic VCC | 5V |
| Ultrasonic GND | GND |
| Ultrasonic TRIG | D9 |
| Ultrasonic ECHO | D10 |
| Buzzer + | D3 |
| Buzzer − | GND |
Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the Arduino Nano.
int trigPin = 9;
int echoPin = 10;
int buzzer = 3;
long duration;
int distance;
void setup()
{
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(buzzer, OUTPUT);
}
void loop()
{
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = duration * 0.034 / 2;
if (distance > 0 && distance <= 50)
{
digitalWrite(buzzer, HIGH);
}
else
{
digitalWrite(buzzer, LOW);
}
delay(200);
}An assistive smart hat for visually impaired people. An ultrasonic sensor on the brim measures the distance to anything in front; when an obstacle comes within 50 cm, the buzzer sounds so the wearer can avoid it.
You need: Arduino Nano (1), Ultrasonic Sensor (HC-SR04) (1), Buzzer (1), Lithium-ion Batteries (2), 2-cell Battery Holder with Switch (1), Jumper Wires. Software: Arduino IDE.
Yes. It is rated beginner and takes about 1–2 hours to build, using the Arduino Nano. 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-036). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.