Project tutorial
Smart gloves for the blind

Smart gloves for the blind

Help blind people navigate on their own by detecting obstacles

  • 6,560 views
  • 4 comments
  • 11 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
Any board, here I used the Uno
×1
Screen shot 2019 03 20 at 2 38 27 pm fqndazqcx1
1Sheeld
×1
Ultrasonic sensor
I used two for better navigation
×2
Male-female Arduino jumpers or wires
×1
Your belt
×1
Smartphone that runs Android V2.3 or above
×1

About this project

http://www.youtube.com/watch?v=4FVtinMF7Ic

Hardware

Components list below

Software

Download the 1Sheeld application to your android smart phone from here.

Download the 1Sheeld library from here and put it in the libraries folder in your Arduino folder.

Untitled file

Warning: Embedding code files within the project story has been deprecated. To edit this file or add more files, go to the "Software" tab. To remove this file from the story, click on it to trigger the context menu, then click the trash can button (this won't delete it from the "Software" tab).

// by soumil shah

#include
#define inputPin 11
#define outputPin 10
#define inputPin2 13 
#define outputPin2 12
#define my_constant 20

unsigned int sensor_r_value;
unsigned int sensor_l_value;
unsigned int sensor_r_value_last;
unsigned int sensor_l_value_last;
int difference;

void setup(){
  pinMode(inputPin,INPUT);
  pinMode(outputPin,OUTPUT);
  pinMode(inputPin2,INPUT);
  pinMode(outputPin2,OUTPUT);
  OneSheeld.begin();
}

void loop(){
  read_sensors();
  delay(1500);
}

int measure_r(){
  digitalWrite(outputPin, LOW);  // send low pulse for 2μs
  delayMicroseconds(2);
  digitalWrite(outputPin, HIGH); // send high pulse for 10μs
  delayMicroseconds(10);
  digitalWrite(outputPin, LOW);  // back to low pulse
  int distance = pulseIn(inputPin, HIGH);  // read echo value
  int distance1 = distance/29/2;  // in cm
  return distance1;
}

int measure_l(){
  digitalWrite(outputPin2, LOW);  // send low pulse for 2μs
  delayMicroseconds(2);
  digitalWrite(outputPin2, HIGH); // send high pulse for 10μs
  delayMicroseconds(10);
  digitalWrite(outputPin2, LOW);  // back to low pulse
  int distance = pulseIn(inputPin2, HIGH);  // read echo value
  int distance2 = distance/29/2;  // in cm
  return distance2;
}

int read_sensors(){
  sensor_r_value = measure_r();
  sensor_l_value = measure_l();

  if (sensor_r_value) {
    TextToSpeech.say("stop now and rotate");
  }
  if (sensor_r_value > 30 && sensor_l_value > 30 && sensor_r_value_last) {
    TextToSpeech.say("Go Forward");
  }
  sensor_r_value_last = sensor_r_value;
  sensor_l_value_last = sensor_l_value;
}


Code

file_7666.txtC/C++
// by soumil shah

#include
#define inputPin 11
#define outputPin 10
#define inputPin2 13 
#define outputPin2 12
#define my_constant 20

unsigned int sensor_r_value;
unsigned int sensor_l_value;
unsigned int sensor_r_value_last;
unsigned int sensor_l_value_last;
int difference;

void setup(){
  pinMode(inputPin,INPUT);
  pinMode(outputPin,OUTPUT);
  pinMode(inputPin2,INPUT);
  pinMode(outputPin2,OUTPUT);
  OneSheeld.begin();
}

void loop(){
  read_sensors();
  delay(1500);
}

int measure_r(){
  digitalWrite(outputPin, LOW);  // send low pulse for 2s
  delayMicroseconds(2);
  digitalWrite(outputPin, HIGH); // send high pulse for 10s
  delayMicroseconds(10);
  digitalWrite(outputPin, LOW);  // back to low pulse
  int distance = pulseIn(inputPin, HIGH);  // read echo value
  int distance1 = distance/29/2;  // in cm
  return distance1;
}

int measure_l(){
  digitalWrite(outputPin2, LOW);  // send low pulse for 2s
  delayMicroseconds(2);
  digitalWrite(outputPin2, HIGH); // send high pulse for 10s
  delayMicroseconds(10);
  digitalWrite(outputPin2, LOW);  // back to low pulse
  int distance = pulseIn(inputPin2, HIGH);  // read echo value
  int distance2 = distance/29/2;  // in cm
  return distance2;
}

int read_sensors(){
  sensor_r_value = measure_r();
  sensor_l_value = measure_l();

  if (sensor_r_value) {
    TextToSpeech.say("stop now and rotate");
  }
  if (sensor_r_value > 30 && sensor_l_value > 30 && sensor_r_value_last) {
    TextToSpeech.say("Go Forward");
  }
  sensor_r_value_last = sensor_r_value;
  sensor_l_value_last = sensor_l_value;
}

Comments

Similar projects you might like

Blind Stick Navigator

Project tutorial by Team MeRo

  • 10,236 views
  • 6 comments
  • 23 respects

ISBBM: Integrated Smart Belt for Blind's Mobility

Project tutorial by Ahmed Adel Gomaa

  • 2,996 views
  • 6 comments
  • 7 respects

Smart Blind Assistant

Project in progress by Chandru S

  • 2,738 views
  • 1 comment
  • 4 respects

Talking Smart Glass for the Blind

Project tutorial by Amal Shajan

  • 3,710 views
  • 5 comments
  • 11 respects

Control your Light System Using Smart Phone

Project tutorial by Ahmed Yassin

  • 35,276 views
  • 4 comments
  • 55 respects

Smart Selfie Stick

Project tutorial by yasser saber

  • 2,010 views
  • 0 comments
  • 7 respects
Add projectSign up / Login