Smart Blind Walking Stick Using Arduino
Intro: 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
*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
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
5 Comments
JesúsD53 5 years ago
There is an error with:
Serial.printIn("inches");
muhesh kanna 7 years ago
code engappa...
ThunderHawk7 6 years ago
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");
}
kartikRAO 7 years ago
where is the code.......
ThunderHawk7 6 years ago
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");
}