Smart Blind Stick

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

IntermediateFull instructions provided2 days12,850
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

Dr. Umesh Dutta

42 projects • 60 followers
Working as Director of Innovation Centre at Manav Rachna, India. I am into development for the last 12 years.
Texas Instruments University Program

Texas Instruments University Program

91 projects • 120 followers
TI helps students discover what's possible to engineer their future.
Energia

Energia

34 projects • 26 followers
Founder of @energiaproject
Ashwani

Ashwani

0 projects • 4 followers
Student at Manav Rachna University, exploring the world of computer science....
Aarzoo Kapoor

Aarzoo Kapoor

0 projects • 3 followers
sahiba kaur

sahiba kaur

0 projects • 1 follower
ria mittal

ria mittal

0 projects • 1 follower
devdutt

devdutt

10 projects • 9 followers
Robotic Gold Medalist at IIT Guwahati and Embedded,Hardware Developer at Manav Rachna Innovation and Incubation Centre

Comments