Jump to main content

Build Obstacle-Detecting Glasses for Visually Impaired People

1
2
3
4
5
141 reviews

Abstract

Many visually impaired people use canes to detect obstacles at ground level. What about detecting an obstacle at face level, like a tree branch? What if you need to keep both your hands free and cannot hold a cane? Solve both problems at once with these obstacle-detecting glasses! The glasses use an ultrasonic sensor to measure distance and a buzzer to alert the user of nearby objects. You can customize the design to add or swap out features, like using a vibration motor instead of a buzzer. What other ideas can you think of?

Summary

Areas of Science
Difficulty
Method
Time Required
Short (2-5 days)
Prerequisites

Previous experience with Arduino is recommended before you try this project. See our How to Use an Arduino page.

Material Availability

A kit is available from our partner Home Science Tools®. See the Materials section for details.

Cost
Average ($50 - $100)
Safety

Be careful if you practice using your glasses with your eyes closed. Have another person watch you to make sure you do not get hurt.

Credits
Science Buddies is committed to creating content authored by scientists and educators. Learn more about our process and how we use AI.

If you have never used an Arduino before, please go through at least the first few tutorials on our How to Use an Arduino page before attempting this project.

Objective

Design and build obstacle-detecting glasses using an ultrasonic distance sensor and a buzzer. 

Introduction

Check out this video from the Broadcom Foundation showing projects by Damini Jordan and Johan Santana from the Renaissance Youth Center in Bronx, New York:

People who are blind or visually impaired can use a variety of assistive technologies to help them navigate the world. For example, they can use braille to read physically printed text and screen reader software that reads text on a computer screen out loud. Many of them use white canes to detect obstacles when walking by sweeping the cane back and forth in front of them as they walk (Figure 1). The canes are white to help other people nearby (like pedestrians and drivers) identify that the user is visually impaired and use appropriate caution. The main color of the cane and the significance of any additional colors, like red bands signaling that the user is also hard of hearing, can differ from country to country.

A woman crossing the street using a white cane, with a man walking next to her.Image Credit: US Government / Public Domain
Figure 1. A woman crossing the street using a white cane.

Some people use smart canes or electronic walking sticks that have additional features. For example, a stick might connect to an app on your phone and have built-in microphones and speakers to work with voice commands. Some sticks contain an ultrasonic distance sensor to detect obstacles. An ultrasonic sensor emits a burst of ultrasonic sound and measures how long it takes the sound wave to reflect back to the sensor - just like a bat uses sonar to echolocate objects. The stick can then provide some sort of feedback to the user - like a beep or vibration - to alert them of the obstacle. A forward-facing sensor can help detect obstacles at ground level. In theory, an upward-facing sensor could detect obstacles above ground level, helping users avoid bumping their shins on a coffee table or their face on a tree branch. However, ultrasonic sensors have a limited range and may not always accurately detect obstacles at head level. Sometimes users might also want hands-free operation of an obstacle-detecting device. This is where mounting ultrasonic sensors on other pieces of clothing or accessories, like a headband or pair of glasses (Figure 1), can become useful. 

Figure 2. This project's author wearing glasses with an ultrasonic distance sensor.

In this project, you will need to decide how to mount an ultrasonic distance sensor and other electronics on a pair of glasses so they are comfortable and practical for a user to wear. You can also edit the code that controls the buzzer. Watch this video to get started learning how to use an ultrasonic distance sensor with an Arduino. Check out our How to Use an Arduino page for tutorials on other parts like buzzers and motors.

Terms and Concepts

Questions

Bibliography

Materials and Equipment Buy Kit

Recommended Project Supplies

Get the right supplies — selected and tested to work with this project.

View Kit

This is an engineering design project. The exact materials you will need depend on what you decide to build. The list below is for the circuit shown in the procedure with one ultrasonic sensor and one buzzer. You may wish to add multiple ultrasonic sensors or other outputs like a vibration motor

Disclaimer: Science Buddies participates in affiliate programs with Home Science Tools®, Amazon.com, Carolina Biological, and Jameco Electronics. Proceeds from the affiliate programs help support Science Buddies, a 501(c)(3) public charity, and keep our resources free for everyone. Our top priority is student learning. If you have any comments (positive or negative) related to purchases you've made for science projects from recommendations on our site, please let us know. Write to us at [email protected].

Experimental Procedure

This project follows the Engineering Design Process. Confirm with your teacher if this is acceptable for your project, and review the steps before you begin.
Before you begin: Review How to Use an Arduino Tutorials 1-3.

Design Your Glasses

It may be tempting to just jump right in and start building something, but the engineering design process involves some careful planning and research before you build a prototype. See our engineering design process guide for more details, but here is an overview of some things you should consider for this project:

  • What problem are you trying to solve? Specifically, as discussed in the introduction, how is your device supposed to help blind or visually impaired people?
  • What features are available on existing smart glasses/headsets? What type(s) of sensor(s) do they use? What are some pros and cons of the different sensors?
  • What features do you want to include in your design?
  • If you are using multiple sensors to detect obstacles in different directions, how will you alert the user? For example, could you use different beeping or vibration patterns to indicate obstacles in different locations?

Prototype the Circuit

You should build and test your circuit on a breadboard before you mount everything to your glasses. Figures 2 and 3 show one possible breadboard layout and circuit diagram for a circuit with a single ultrasonic sensor and buzzer. You will need to modify the circuit for additional sensors or outputs. You can access a Tinkercad Circuits simulation of the circuit here.

Important: depending on where you bought your breadboard, the left/right orientation of the power (+) and ground (-) buses may be reversed. 

  1. Connect the ultrasonic sensor directly to the Arduino using male-female jumper wires.
    1. GND pin to GND
    2. ECHO pin to Arduino pin 7
    3. TRIG pin to Arduino pin 6
    4. VCC pin to 5V
  2. Connect the buzzer directly to the Arduino pins.
    1. Negative (-) pin to GND
    2. Positive (+) pin to Arduino pin 11
Figure 2. Breadboard diagram.
Figure 3. Circuit schematic.

Test the Code

If your circuit is identical to Figures 2 and 3, you can download our example code. You will need to modify the code if you add more sensors or outputs.

  1. Upload the code to your Arduino.
  2. Hold your hand in front of the ultrasonic sensor and slowly move it back and forth. Listen to how the buzzer responds.
  3. If the buzzer does not work, double-check that you have all of the connections correct and that no wires are loose. 
  4. Experiment with changing the threshold, buzzerDelayMin, and buzzerDelayMax variables in the code. How do they let you change the buzzer's behavior?
  5. Once you have the code working the way you want it, you are ready to mount your circuit to your glasses.

Build the Glasses

You can decide how to mount your circuit to your glasses. How you do this will depend on the materials you have available and the criteria for your project - are you just building a prototype for demonstration at a science fair, or do you want something more durable for long-term use? Figures 4 and 5 show two different views of our example, but how you build your glasses (or headset, headband, etc.) is up to you.

  1. Mount the Arduino vertically to one side of the glasses with electrical tape.
  2. Mount the ultrasonic sensor forward-facing on the front of the glasses.
    1. Note: if your male-female jumper wires are not long enough to reach where you want to mount the sensor, you can connect two wires end-to-end to extend them. 
  3. Tape a 9V battery on the opposite side from the Arduino (this helps distribute the weight so the glasses are not too lopsided).
  4. Connect the 9V battery to the Arduino with a barrel jack connector that has a built-in switch. This lets you easily turn the glasses on and off without needing to unplug the battery. The barrel jack connector can wrap around the back of the user's head/neck.
Figure 4. View of circuit mounted to glasses.

 

Figure 5. Another view of circuit mounted to glasses.

Test the Glasses

Once you have the prototype built, it is time for some real-world testing! Remember that the engineering design process is iterative. It is OK if your design does not work perfectly on the first try - you can always change it and make improvements. 

  1. Try moving your hand back and forth in front of the ultrasonic sensor again to make sure your circuit is still working properly.
  2. If something does not work, double-check that all your connections to the ultrasonic sensor and buzzer are secure. Wires may have come loose when you mounted everything on the glasses.
  3. Try wearing the glasses, walking, and moving your head around to get a sense of how well they detect obstacles. Keep your eyes open for now. If you decide to test with your eyes closed, have another person observe you for safety. 
  4. Detecting obstacles with the glasses is different from waving your hand in front of the sensor. Revisit the threshold and buzzerDelayMin/Max variables, adjusting them if needed. What values provide the best overall combination of adequate warning without unnecessary beeping?
  5. If possible, ask blind or visually impaired people to test your glasses for you. Ask for their feedback. Can you incorporate it into an improved version of your design?

See the Variations section for more ideas about other features you could add to your project.

icon scientific method

Ask an Expert

Do you have specific questions about your science project? Our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.

Global Goals

The United Nations Sustainable Development Goals (UNSDGs) are a blueprint to achieve a better and more sustainable future for all.

This project explores topics key to Reduced Inequalities: Reduce inequality within and among countries.

Variations

  • Can you mount sensors on other clothing or accessories like a walking stick?
  • Can you miniaturize the circuit using a smaller Arduino instead of the UNO to make the glasses lighter and more compact?
  • Can you solder all of the connections using a protoboard instead of a solderless breadboard? This will help make the design more permanent, so the wires do not accidentally rip out during use. 
  • Can you think of other ways to make the glasses more practical and durable for everyday use? What about waterproofing them for use in the rain?
  • Can you power the Arduino with a rechargeable battery instead of a disposable 9V battery?
  • For an advanced project, can you add a camera to the glasses and use artificial intelligence and computer vision for object recognition? This will require something more powerful than an Arduino for processing.

Careers

If you like this project, you might enjoy exploring these related careers:

Career Profile
Just as a potter forms clay, or a steel worker molds molten steel, electrical and electronics engineers gather and shape electricity and use it to make products that transmit power or transmit information. Electrical and electronics engineers may specialize in one of the millions of products that make or use electricity, like cell phones, electric motors, microwaves, medical instruments, airline navigation system, or handheld games. Read more
Career Profile
Have you watched "The Transformers" cartoon series or seen the "Transformers" movies? Both shows are about how good and evil robots fight each other and the humans who get in the middle. Many TV shows and movies show robots and humans interacting with each other. While this is, at present, fantasy, in real life robots play a helpful role. Robots do jobs that can be dangerous for humans. For example, some robots defuse landmines in war-stricken countries; others work in harsh environments like… Read more
Career Profile
Think of all the things you do as you go about your day, like putting on your shoes, buttoning your shirt, turning on a faucet, typing on a keyboard, going grocery shopping, picking up laundry, making a sandwich, or using a spoon. Now imagine trying to maintain your independence if an injury or illness made it difficult for you to use your hands, move your arms, or even walk. Occupational therapists are the healthcare providers who help people regain independence by developing or restoring… Read more
Home Science Tools®

Contact Us

Our kits are developed in partnership with Home Science Tools®. If you have purchased a kit for this project, Home Science Tools® is pleased to answer any questions.

In your email, please follow these instructions:
  1. Include your Home Science Tools® order number.
  2. Please describe how you need help as thoroughly as possible:

    Examples

    Good Question I'm trying to do Experimental Procedure step #5, "Scrape the insulation from the wire. . ." How do I know when I've scraped enough?
    Good Question I'm at Experimental Procedure step #7, "Move the magnet back and forth . . ." and the LED is not lighting up.
    Bad Question I don't understand the instructions. Help!
    Good Question I am purchasing my materials. Can I substitute a 1N34 diode for the 1N25 diode called for in the material list?
    Bad Question Can I use a different part?

Contact Support

News Feed on This Topic

 
, ,

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Finio, Ben. "Build Obstacle-Detecting Glasses for Visually Impaired People." Science Buddies, 5 Nov. 2025, https://www.sciencebuddies.org/science-fair-projects/project-ideas/Elec_p108/electricity-electronics/obstacle-detecting-glasses?from=Blog. Accessed 11 June 2026.

APA Style

Finio, B. (2025, November 5). Build Obstacle-Detecting Glasses for Visually Impaired People. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/Elec_p108/electricity-electronics/obstacle-detecting-glasses?from=Blog


Last edit date: 2025-11-05
Top
Free science fair projects.