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.

  • 4,144 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 Home - Smart Rules using ARTIK Cloud & Photon

Project tutorial by Raghavendra Ponuganti

  • 3,653 views
  • 2 comments
  • 12 respects

Elara: A Smart 'Airflow Detector' for Your Smart Home!

Project tutorial by Fike Rehman

  • 625 views
  • 1 comment
  • 8 respects

SUMO : Smart Pulse Monitor ( A Low Cost Smart ECG )

Project tutorial by Geeve George

  • 2,356 views
  • 3 comments
  • 18 respects

SENSE : Smart Breath Analysis Device (A Smart Breathalyzer)

Project tutorial by Geeve George

  • 697 views
  • 1 comment
  • 2 respects

LinkIt™ Smart 7688 Smart Room

Project tutorial by Muhammad Afzal

  • 564 views
  • 0 comments
  • 3 respects

Berrt: Smart Button for Smart Home or IoT

Project showcase by Team BerryButton

  • 867 views
  • 0 comments
  • 4 respects
Add projectSign up / Login