smart gloves for blind using 1sheeld

                                                             Smart gloves  for blind person using 1sheeld

 

https://www.youtube.com/watch?v=4FVtinMF7Ic&list=UU_eOodxvwS_H7x2uLQa-svw&index=2

 

 

 

All you need to get started

1. Any Arduino board (here i
used 
UNO)

2. 1sheeld

3. Ultrasonic sensor (I used two for better navigation)

4. Male-female arduino
jumbers or wires

5. Your belt 

6. Any smart phone that runs Android V2.3 and above.

Download 1sheeld application to
your android smart phone from 
here

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

 

 

Code

// 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<30)||(sensor_l_value<30)){

TextToSpeech.say(“stop now and rotate”);

}

else{}

if(((sensor_r_value>30)&&(sensor_l_value>30))&&((sensor_r_value_last<30)||(sensor_l_value_last<30))){

 
TextToSpeech.say(“Go Forward”);}

sensor_r_value_last=sensor_r_value;

sensor_l_value_last=sensor_l_value;

}

                                                                                                                                 




Related Blogs

Arduino Robotics

Arduino Robotics Series, from a car to a robot arm

Arduino keeps standing out from the crowd of all-around development boards due too its ease of use and budget price. As a result, this has enabled almost anyone to get his own idea into life no matter how crazy or even useless to the whole world it was, except for its maker! Also, it has …

Arduino Robot Arm

How to build an Arduino Robot Arm placed on RC Car

Arduino robots are always funny and definitely more enjoyable when combined with robotic arm! And today, I will walk you through the making of a simple Arduino Robot Arm that’s made of cardboard and how you can attach it over your Arduino Bluetooth RC Car / Robot that you have made so far through this series. …

Arduino Line Following Robot

How to build an Arduino Line Following Robot using Cardboard

Arduino Line Following Robot is one of the easiest and most well-known projects that anyone can make to learn the basics of programming, electronics, and mechanics all in one project. It’s known that this project is common for most of the makers and tech students and today I am going to give it a revisit …

Arduino Obstacle Avoiding Robot

How to build an Arduino Obstacle Avoiding Robot using Cardboard

Back again with another Arduino Bluetooth RC Car tutorial but with an advanced feature that makes your car autonomous by adding ultrasonic sensors to the RC Car you have made before!. Yeah, I know that you may have seen other tutorials using ultrasonic to make the car/robot avoid obstacles ahead, but I am going to …

Arduino Bluetooth RC car

How to make an Arduino Bluetooth RC Car using Cardboard

  Cardboard crafts are one of the most popular and easy to make DIY stuff. Mixing this with the unmatchable enjoyment of RC Cars and the ease of using Arduino, I am going to show you how to make a Cardboard Arduino Bluetooth RC car that you can control via Bluetooth from your smartphone.  …

Arduino Security Camera

Arduino Security Camera System (Arduino Home Hacks #4)

Arduino Security Camera Have you ever wanted to check your home in real time? Afraid that maybe someone has stormed in, don’t remember if you shut the door or not or maybe wanna check if your Hyper-energetic dog has broken any of your dishes AGAIN!! 🙂 Then this is the perfect place for you cause today …