Smart Blind Stick by Arduino UNO

COMPONENTS AND SUPPLIES

NECESSARY TOOLS AND MACHINES

93f2827 40 Tape, Scotch

APPS AND ONLINE SERVICES

Ide web Arduino IDE

ABOUT THIS PROJECT

After seeing the blind people in the street pleasing people to help them walk on street.I felt sad for that, and then T started working on this project.

CODE

upload this codeC/C++

it is in the C/C++ language

/*
 * make a smart stick that helps the Blind
 */
 #define trigPin 9
 #define echoPin 8

 #define Buzzer1 5//active
 #define Buzzer2 7//passive
 #define Led1 6//Vibration

 
int sound = 250;


void setup() {
 Serial.begin (9600);
 pinMode(trigPin, OUTPUT);
 pinMode(echoPin, INPUT);
 pinMode(Buzzer1, OUTPUT);
 pinMode(Buzzer2, OUTPUT);
 pinMode(Led1, OUTPUT);
}

void loop() {
  Serial.begin(9600);

  long duration, distance;
  digitalWrite(trigPin, LOW);
  delay(2);
  digitalWrite(trigPin, HIGH);
  delay(10);
  digitalWrite(trigPin, LOW);
  duration = pulseIn(echoPin, HIGH);
  distance = (duration/2) / 29.1;
  digitalWrite(Buzzer1, LOW);
  digitalWrite(Buzzer2, LOW);
  digitalWrite(Led1, LOW);
  
  if (distance<40) {
    digitalWrite(Led1, HIGH);
    delay(2000);
  }
  if (distance<20) {
    digitalWrite(Led1, HIGH);
    delay(2000);
    digitalWrite(Buzzer1, HIGH);
    delay(2000);
  }
  if (distance<10) {
    digitalWrite(Led1, HIGH);
    delay(2000);
    digitalWrite(Buzzer1, HIGH);
    delay(2000);
    digitalWrite(Buzzer2, HIGH);
    delay(2000);
  }
  }

SCHEMATICS

the schematic

DOWNLOAD

first the
ultrasonic sensor
2 buzzer
Led
should be attached to breadboard
then we should connect these components to arduino by wires
after that the circuit should be attached to a stick with a tape

2019 01 12 (3) zfojehamlx

You can refer the link for more details:
Arduino Blind Stick - Arduino Project Hub

1 Like

Hi, thanks for sharing.

I modified the post a little bit to make the code section easier to read.

To add code section in your post, just use the </> button on the top bar:

or wrap the code with ``` like below:
```
printf(“Hellow World”);
```

will be shown as

printf("Hellow World");