Introduction: Smart Blind Walking Stick Using Arduino
needed materials
*arduino uno
*ultrasonic sensor HCSR-04
*A low voltage buzzer
*A vibrating motor, it just cost 50rs., for India money
wiring the smart walking stick
*First connect the ultrasonic sensor
++VCC -5v
++GND-GND
++ECHO -D11
*Now buzzer
++positive -D7
++negative-GND
To find positive and negative,long side is positive and the other is negative
*Now the vibrating motor
++pin1-D7
++pin2-GND
*CONNECT the power source (battery ? 9volt)
++Dc male power Jack, that is connect the negative directly to the ? ++toggle switch pin2-to Dc male power Jack, positive. that is
positive at one and the opposite the wire from the battery
Step 1:
Step 2:
Step 3:
const int triggerPin=7;
const int echoPin=8;
int duration=11;
int distance=11;
void setup() {
Serial.begin(9600);
pinMode(triggerPin,OUTPUT);
pinMode(echoPin,INPUT);
}
void loop() {
digitalWrite(triggerPin,HIGH);
delay(5);
digitalWrite(triggerPin,LOW);
distance=(duration/2)/74;
delay(500);
Serial.print(distance);
Serial.printIn("inches");
}
this is the coding
Step 4:
Participated in the
Amps and Speakers Contest 2016