Third Eye for the Blind
This project is designed to aid people with visual impairment navigate in their daily lives, this project is easy to follow and is fun to make! If you have any questions you can contact me on my YouTube channel, or via Telegram @Lama0x.
Supplies
1-Arduino (I used Arduino Uno for this project)
2-Buzzer
3- Ultrasonic Sensor
4-Battery (I used 9v)
5-Cables
*You can use any material for building*
Step 1: Wiring!
Let's start with wiring,
Ultrasonic Sensor:
Trig: Digital pin 4
Echo: Digital pin 5
GND: Ground
VCC: 5V
Buzzer:
GND: Ground
VCC: 5V
I/O: Digital pin 3
All Done!
Step 2: Let's Code!
int trigPin = 4;int buzzer = 3;int echoPin = 5;int distance;int duration;void setup() { // put your setup code here, to run once:pinMode(3, OUTPUT);pinMode(trigPin, OUTPUT);pinMode(echoPin, INPUT);}void loop() { // put your main code here, to run repeatedly: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 < 30) { digitalWrite(3, LOW);}else { digitalWrite(3, HIGH);}}