RoboticsBeginnerPRJ-036

Smart Hat for Blind People Using Arduino Nano

A wearable hat that buzzes when something is within 50 cm ahead.

Built and tested by Aboobacker sidheeq K P · Industrial Robotics Institute

Circuit diagram of the Smart Hat for Blind People using Arduino Nano
Circuit diagram · Arduino Nano
LevelBeginner
Build time1–2 hours
BoardArduino Nano
Parts6 components

What is the Smart Hat for Blind People?

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.

How it works

  1. The ultrasonic sensor on the hat sends out sound pulses.
  2. The pulses bounce off obstacles and return.
  3. The Arduino Nano times the echo and calculates the distance.
  4. If something is within 50 cm, the buzzer turns on; otherwise it stays off.

Parts list

ComponentQty
Arduino Nano1
Ultrasonic Sensor (HC-SR04)1
Buzzer1
Lithium-ion Batteries2
2-cell Battery Holder with Switch1
Jumper WiresAs needed

Software

  • Arduino IDE

Wiring and connections

FromConnect to
Ultrasonic VCC5V
Ultrasonic GNDGND
Ultrasonic TRIGD9
Ultrasonic ECHOD10
Buzzer +D3
Buzzer −GND

How to build the Smart Hat for Blind People

  1. Wire the ultrasonic sensor to the Nano: VCC 5V, GND, TRIG D9, ECHO D10.
  2. Connect the buzzer to D3 and GND.
  3. Upload the code from the Arduino IDE.
  4. Fix the sensor to the front of the hat brim, facing forward.
  5. Mount the Nano and battery holder inside or on top of the hat.
  6. Switch on and walk towards a wall to test the warning distance.

Smart Hat for Blind People code

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);
}

Real-world uses

  • Assistive wearables
  • Visually impaired mobility
  • Elderly care
  • Wearable tech learning

Frequently asked questions

What is a Smart Hat for Blind People?

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.

What components are needed for the Smart Hat for Blind People?

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.

Is the Smart Hat for Blind People project good for beginners?

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.

Where can I get the code for the Smart Hat for Blind People?

The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.

Can I buy a kit for the Smart Hat for Blind People?

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.

Industrial Robotics Institute
Logo