Smart Blind Stick

A low-cost stick designed for blind people that enables them to walk without any assistance.

IntermediateFull instructions provided2 days12,912
Smart Blind Stick

Things used in this project

Story

Read more

Code

Energia Code for Smart Blind Stick

Arduino
Dtecting obstacle and sending alerts via app
const int trigPin = 37;
const int echoPin = 36;
const int buzzer = 23;
const int bt=10;
long duration;
int distance;
int safetyDistance;

void setup()
{
  Serial.begin(9600);
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
  pinMode(buzzer, OUTPUT);
  pinMode(bt,INPUT);
}

void loop()
{
    digitalWrite(trigPin, LOW);
    delayMicroseconds(2);
    digitalWrite(trigPin, HIGH);
    delayMicroseconds(10);
    digitalWrite(trigPin, LOW);
    duration = pulseIn(echoPin, HIGH);
    distance= duration*0.034/2;
    safetyDistance = distance;
    if (safetyDistance <= 50)
    {
        digitalWrite(buzzer, HIGH);
    }
    else
    {
        digitalWrite(buzzer, LOW);
    }
    if(digitalRead(bt)==HIGH)
    {
        Serial.println("a");
    }
    delay(400);
}

Credits

Dr. Umesh Dutta
42 projects • 61 followers
Working as Director of Innovation Centre at Manav Rachna, India. I am into development for the last 12 years.
Contact
Texas Instruments University Program
91 projects • 120 followers
TI helps students discover what's possible to engineer their future.
Contact
Energia
34 projects • 26 followers
Founder of @energiaproject
Contact
Ashwani
0 projects • 4 followers
Student at Manav Rachna University, exploring the world of computer science....
Contact
Aarzoo Kapoor
0 projects • 3 followers
Contact
sahiba kaur
0 projects • 1 follower
Contact
ria mittal
0 projects • 1 follower
Contact
devdutt
10 projects • 9 followers
Robotic Gold Medalist at IIT Guwahati and Embedded,Hardware Developer at Manav Rachna Innovation and Incubation Centre
Contact

Comments

Please log in or sign up to comment.