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 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 …

Arduino IoT

Arduino IoT Shield Functions Explainer

Arduino makers …. you can connect your Arduino to MQTT brokers(servers) and launch your IoT with Arduino IoT Shield! It’s the 1Sheeld IoT shield that will do the job for you. It’s one of the most important but recent Arduino shields in 1Sheeld. Simply, it turns your Arduino into MQTT client where you can publish and …

Arduino Temperature Humidity System

IoT Arduino Temperature and Humidity System

Monitor my home environmental parameters remotely is one of the most desirable things I have ever wanted to make. It’s not about purchasing such a system that can get the job done for me. But, passion to create it myself. So, today, I am going to connect the popular DHT sensor to an online MQTT …

Arduino Door Lock

IoT Arduino Door Lock using 1Sheeld and Smartphone

  “Oh God! … It seems like I have forgotten the door lock open, again” … the normal saying whenever I am in hurry to go out! Have you encountered this problem before? It always confuses me since I may even think that I have left the door lock opened, and once I go back, …

IoT Fan Control

Arduino IoT Fan Control using 1Sheeld and Smartphone

Here I am with another IoT-based home automation project; Arduino IoT Fan Control. Every day, I get back from work tired and feeling hot. No air conditioner here and the fan takes much time to start cooling the room, sadly! So, I was thinking why not controlling the fan from outside my home with my …

Arduino Light Control

IoT Arduino Light Control using 1Sheeld and Smartphone

Have you ever forgotten to turn your home lights off when you got outside? Sadly, it happens to me all the time. And this causes confusion once I get my bills! Furthermore, here is one secret about me; I am a lazy man. I always want to control my room lamp from my sweet bed. …