SMART BLIND STICK
The smart blind stick is the project made to help the blind people who is suffering when walking.It just uses to detect the object which is in their walking way.It will alert them by giving the buzzer sound.
COMPONENTS USED
ARDUINO NANO*1
ULTRASONIC SENSOR HC-SR04*1
BUZZER SMALL*1
JUMPER WIRES*10 FEMALE-FEMALE
CONNECTIONS
*Connect the HC-SR04 ultrasonic sensor to the arduino nano board.
CIRCUIT DIAGRAM
The circut diagram of this SMART BLIND STICK is shown below it is designed using FRIDZING SOFTWARE.
download link of fridzing app-https://softfamous.com/fritzing/
CODE
The arduino code for this project is given below.the program can only used in arduino ide software only.
/*
This code should work to get warning cross the buzzer when something be closer than 1 meter
Circuit is ultrasonic sensor and buzzer +5v and Arduino uno is used
lalithlakshmipathy07@gmail.com
https://www.module143.com/
+91 7010794705
*/
// Define pins for ultrasonic and buzzer
int const trigPin = 10;
int const echoPin = 9;
int const buzzPin = 2;
void setup()
{
pinMode(trigPin, OUTPUT); // trig pin will have pulses output
pinMode(echoPin, INPUT); // echo pin should be input to get pulse width
pinMode(buzzPin, OUTPUT); // buzz pin is output to control buzzering
}
void loop()
{
// Duration will be the input pulse width and distance will be the distance to the obstacle in centimeters
int duration, distance;
// Output pulse with 1ms width on trigPin
digitalWrite(trigPin, HIGH);
delay(1);
digitalWrite(trigPin, LOW);
// Measure the pulse input in echo pin
duration = pulseIn(echoPin, HIGH);
// Distance is half the duration devided by 29.1 (from datasheet)
distance = (duration/2) / 29.1;
// if distance less than 1 meter and more than 0 (0 or less means over range)
if (distance <= 100 && distance >= 0) {
// Buzz
digitalWrite(buzzPin, HIGH);
} else {
// Don't buzz
digitalWrite(buzzPin, LOW);
}
// Waiting 60 ms won't hurt any one
delay(60);
}
The smart blind stick is the project made to help the blind people who is suffering when walking.It just uses to detect the object which is in their walking way.It will alert them by giving the buzzer sound.
COMPONENTS USED
ARDUINO NANO*1
ULTRASONIC SENSOR HC-SR04*1
BUZZER SMALL*1
JUMPER WIRES*10 FEMALE-FEMALE
CONNECTIONS
*Connect the HC-SR04 ultrasonic sensor to the arduino nano board.
Vcc - 5v
trig pin - D10 pin
echo pin - D9 pin
gnd pin - gndpin
*Connect the buzzer to arduino nano board.
-ve - gnd
+ve - D2
The circut diagram of this SMART BLIND STICK is shown below it is designed using FRIDZING SOFTWARE.
download link of fridzing app-https://softfamous.com/fritzing/
CODE
The arduino code for this project is given below.the program can only used in arduino ide software only.
/*
This code should work to get warning cross the buzzer when something be closer than 1 meter
Circuit is ultrasonic sensor and buzzer +5v and Arduino uno is used
lalithlakshmipathy07@gmail.com
https://www.module143.com/
+91 7010794705
*/
// Define pins for ultrasonic and buzzer
int const trigPin = 10;
int const echoPin = 9;
int const buzzPin = 2;
void setup()
{
pinMode(trigPin, OUTPUT); // trig pin will have pulses output
pinMode(echoPin, INPUT); // echo pin should be input to get pulse width
pinMode(buzzPin, OUTPUT); // buzz pin is output to control buzzering
}
void loop()
{
// Duration will be the input pulse width and distance will be the distance to the obstacle in centimeters
int duration, distance;
// Output pulse with 1ms width on trigPin
digitalWrite(trigPin, HIGH);
delay(1);
digitalWrite(trigPin, LOW);
// Measure the pulse input in echo pin
duration = pulseIn(echoPin, HIGH);
// Distance is half the duration devided by 29.1 (from datasheet)
distance = (duration/2) / 29.1;
// if distance less than 1 meter and more than 0 (0 or less means over range)
if (distance <= 100 && distance >= 0) {
// Buzz
digitalWrite(buzzPin, HIGH);
} else {
// Don't buzz
digitalWrite(buzzPin, LOW);
}
// Waiting 60 ms won't hurt any one
delay(60);
}
No comments:
Post a Comment