The eyes of a blind man Arduino Project
This is my 19th project based on Arduino. The name of the project is 'The eyes of a blind man. This project is designed for people who can't see with their eyes. Using the 'The eyes of a blind man' Project they understand if there is any obstacle within the specified distance. Moreover, blind people can now understand day or night using the 'The eyes of a blind man' Project. 'The eyes of a blind man' project can be the ideal choice for any college university or science fair project.
তৈরিতে ব্যবহার করা হয়েছে
- Arduino Mega/Uno/Nano
- Ultrasonic Distance Range Sensor Module(HC-SR04)
- Buzzer
- Push Button
- LDR
- 10k Resistor
- Wire
- Hardboard
সার্কিট ডায়াগ্রাম
int trigPinA =8;//l int echoPinA =A1; int trigPinB =A2;//m int echoPinB =A3; int trigPinC =A4; int echoPinC =A5; long durationA;//L int distanceA; long durationB;//M int distanceB; long durationC;//R int distanceC; int buzzer = 13; int LDR = A0; int LDRState=0; void setup() { pinMode(trigPinA,OUTPUT);//L pinMode(echoPinA,INPUT); pinMode(trigPinB,OUTPUT);//M pinMode(echoPinB,INPUT); pinMode(trigPinC,OUTPUT);//R pinMode(echoPinC,INPUT); pinMode(LDR,INPUT); Serial.begin(9600); } void loop() { //L digitalWrite(trigPinA,LOW); delayMicroseconds(2); digitalWrite(trigPinA,HIGH); delayMicroseconds(10); digitalWrite(trigPinA,LOW); durationA=pulseIn(echoPinA,HIGH); distanceA = durationA*0.034/2; //(distanceA >= 50)?digitalWrite(buzzer,HIGH):digitalWrite(buzzer,LOW); //L //M digitalWrite(trigPinB,LOW); delayMicroseconds(2); digitalWrite(trigPinB,HIGH); delayMicroseconds(10); digitalWrite(trigPinB,LOW); durationB=pulseIn(echoPinB,HIGH); distanceB = durationB*0.034/2; //(distanceB >= 50)?digitalWrite(buzzer,HIGH):digitalWrite(buzzer,LOW); //M //R digitalWrite(trigPinC,LOW); delayMicroseconds(2); digitalWrite(trigPinC,HIGH); delayMicroseconds(10); digitalWrite(trigPinC,LOW); durationC=pulseIn(echoPinC,HIGH); distanceC = durationC*0.034/2; //R (distanceA >= 50 || distanceB >= 50 || distanceC >= 50)?digitalWrite(buzzer,HIGH):digitalWrite(buzzer,LOW); //LDR LDRState=analogRead(LDR); if(LDRState >= 50){ digitalWrite(buzzer,HIGH); delay(20); digitalWrite(buzzer,LOW); delay(20); } else{ digitalWrite(buzzer,LOW); //LDR Serial.println(distanceA); } }