Hardware components | ||||||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
Software apps and online services | ||||||
![]() |
| |||||
Hand tools and fabrication machines | ||||||
![]() |
|
just helping the world to be a better place
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.
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.

amaurotic shoe accessory
Arduinothis 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.
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);
}
}
Comments
Please log in or sign up to comment.