Project tutorial

Smart Cap © CC BY-NC-SA

Good vision is a precious gift but unfortunately loss of vision is becoming common now-a-days. Smart cap can help with navigation.

  • 3,670 views
  • 2 comments
  • 9 respects

Components and supplies

About this project

Good vision is a precious gift, but unfortunately loss of vision is becoming common these days. Blindness may result from a disease, injury or other conditions that limit vision, and because of this, blind people confront a number of challenges everyday. Navigation is one of them. And the solution is the Smart Cap - it helps with navigation.

Step 1: List of materials

  • Arduino x1 (I had used the Uno Pro Mini as recommended)
  • Ultrasonic sensor x3
  • Mobile phone vibrator x2
  • Small Buzzer x1
  • Power source for the Arduino

Step 2: Schematics

The ultrasonic sensors have 4 pins each:

  • Vcc
  • GND
  • Trig
  • Echo

Connect all the Vcc and GND pins of all the sensors to the Arduino Vcc and GND pins.

Sensor 1

  • Trig Pin 1 ---- Arduino A0
  • Echo Pin 1 ---- Arduino A1

Sensor 2

  • Trig Pin 2 ---- A2
  • Echo Pin 2 ---- A3

Sensor 3

  • Trig Pin 3 ---- A4
  • Echo Pin 3 ---- A5

Left vibrator

  • Vcc ---- Arduino Pin 5 (left sensor is 2)
  • GND ---- GND

Right vibrator

  • Vcc ---- Arduino Pin 6 (right sensor is 3)
  • GND ---- GND

Buzzer

  • Vcc ---- Arduino Pin 3
  • GND ---- GND

Step 3: Code

If you want to increase range, you can simply change the distance in the code at this part: If (distance < 45)

Step 4: Arrangement of sensors

  • Place sensor 1 at the front part of the cap.
  • Sensor 2 at the left side of the cap.
  • Sensor 3 at the right side of the cap.
  • Place the vibrators in left and right sides of the cap.

Step 5: Video

Step 6: Conclusion

The only drawback of the cap is that it can sense the objects only at the height range of the sensors. If you want, you can make something like a smart shoe; I am currently working on it and want to improve it using Open CV, Raspberry Pi and Microsoft.

Hope you guys like this project. If you like it, don't forget to vote my project. Thank you!

If you have any inquiries, feel free to ask in the comment section!

Code

FIZZQV0IZ6D1PFF.inoArduino
#define trigPin1 A0
#define echoPin1 A1

#define trigPin2 A2
#define echoPin2 A3

#define trigPin3 A4
#define echoPin3 A5


#define motor1 5
#define motor2 6
#define buzzer 3

void setup()
{
pinMode(trigPin1, OUTPUT);

pinMode(echoPin1, INPUT);

pinMode(trigPin2, OUTPUT);

pinMode(echoPin2, INPUT);

pinMode(trigPin3, OUTPUT);

pinMode(echoPin3, INPUT);


pinMode(motor1, OUTPUT);

pinMode(motor2, OUTPUT);

pinMode(buzzer,OUTPUT);

}

void loop()

{

long duration, distance;

digitalWrite(trigPin1, LOW); 

delayMicroseconds(2); 

digitalWrite(trigPin1, HIGH);

delayMicroseconds(1); 

digitalWrite(trigPin1, LOW);

duration = pulseIn(echoPin1, HIGH);

distance = (duration/2) / 29.1;

if (distance < 45)

{ 

 

digitalWrite(buzzer,HIGH);

} else

{



digitalWrite(buzzer,LOW); 

} delay(50);



digitalWrite(trigPin2, LOW); 

delayMicroseconds(2); 

digitalWrite(trigPin2, HIGH);

delayMicroseconds(1); 

digitalWrite(trigPin2, LOW);

duration = pulseIn(echoPin2, HIGH);

distance = (duration/2) / 29.1;

if (distance < 40)

{ 

digitalWrite(motor1,HIGH);



} else

{

digitalWrite(motor1,LOW);

 

} delay(100);




digitalWrite(trigPin3, LOW); 

delayMicroseconds(2); 

digitalWrite(trigPin3, HIGH);

delayMicroseconds(2); 

digitalWrite(trigPin3, LOW);

duration = pulseIn(echoPin3, HIGH);

distance = (duration/2) / 29.1;

if (distance < 30)

{ 

digitalWrite(motor2,HIGH); 

} else

{

digitalWrite(motor2,LOW);

 

} delay(100);

}

Comments

Similar projects you might like

Smart Access [Home/Office Automation]

Project in progress by Ajmal Muhammad P

  • 1,570 views
  • 5 comments
  • 6 respects

Internal Timers of Arduino

Project tutorial by Marcazzan_M

  • 5,069 views
  • 10 comments
  • 35 respects

SPCPM (Solar Powered City Pollution Monitor)

Project tutorial by 5 developers

  • 3,565 views
  • 0 comments
  • 18 respects

Mini CNC Laser Wood Engraver and Laser Paper Cutter

Project tutorial by Maggie Shah

  • 4,417 views
  • 0 comments
  • 27 respects

Smart Talking Humanoid Robot Just with Arduino!

Project tutorial by ashraf_minhaj

  • 756 views
  • 2 comments
  • 9 respects

Sigfox kWh Meter

Project tutorial by jassak

  • 4,817 views
  • 3 comments
  • 12 respects
Add projectSign up / Login