amulya_suthrave
Published © GPL3+

Amaurotic shoe accessory

Helping the visually impaired person to walk around safely. this model helps to detect any obstracle present in front of the shoe

BeginnerFull instructions provided1 hour314
Amaurotic shoe accessory

Things used in this project

Hardware components

Bolt WiFi Module
Bolt IoT Bolt WiFi Module
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
Buzzer, Piezo
Buzzer, Piezo
×1

Software apps and online services

Bolt Cloud
Bolt IoT Bolt Cloud

Hand tools and fabrication machines

Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)
Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)

Story

Read more

Schematics

amaurotic shoe accessory

there are totally 4 components used
bolt wifi module
ultrasonic sensor
piezo buzzer
vibrator
the ultrasonice sensor has 4 terminals . namely vcc,trigger, echo and gnd.
vcc is connected to 5v of bolt module
trigger is connected to pin number 1
echo is connected to pin number 2
and gnd is connected to gnd of bolt deevice
coming to piezo buzzer, positive terminal is connected to pin number 4 and negative terminal is connected to ground of bolt module respectively.
since vibrator needs pwm (pulse width modulation, analog results using digital means) posiitve terminal of it is connected to A0 and negative to gnd of bolt respectively.

the logic behind the code is the person with this accessory should get a vibration and a sound buzzer when there is an obstracle within 300 cm from him.

Code

amaurotic shoe accessory

Arduino
this is a simple c language .
first defining all the variables, i have defined the input and output pins
the ultrasonic sensor runs through out and the loops inside checks the conditions and alloe the vibrator and buzzer to be in action accordingly.
int trigPin = 1 ;
int echoPin = 2 ;
long duration ;
int distanceCm ;
int buzzer = 4 ;
int vibrate = A0 ;

void setup() 
{
  // put your setup code here, to run once:
   pinMode(trigPin,OUTPUT);
   pinMode(echoPin,INPUT);
   pinMode(vibrate,OUTPUT);
}

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);
   distanceCm = duration*0.034/2;
   
   if(distanceCm<=300 && distanceCm>=150)
   {
      tone(buzzer,450);
      delay(500);
      tone(buzzer,0);
       delay(500);
   }

   else if( distanceCm<=150)
   {
      tone(buzzer,450);
      delay(200);
      tone(buzzer,0);
       delay(200);

       digitalWrite(vibrate,HIGH);
       delay(500);
       digitalWrite(vibrate,LOW);
       delay(200);
       
   }
   else
   {
      tone(buzzer,0);
       digitalWrite(vibrate,LOW);
   }
   

       
   
}

Credits

amulya_suthrave
1 project • 0 followers
Contact

Comments

Please log in or sign up to comment.