top of page

AKILLI BASTON PROJESİ

  • Yazarın fotoğrafı: muhammed ali balkaya
    muhammed ali balkaya
  • 1 Ara 2018
  • 1 dakikada okunur

Görme engelli vatandaşların hayatını kolaylaştıran basit ve az maliyetli projedir.


Devre Şeması


Proje Kodu

#define trigPin 13
#define echoPin 12
#define motor 7
#define buzzer 6

void setup()
{ pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(motor, OUTPUT);
pinMode(buzzer,OUTPUT);
}

void loop()
{ long duration, distance;
digitalWrite(trigPin, LOW); 
delayMicroseconds(2); 
digitalWrite(trigPin, HIGH);
delayMicroseconds(10); 
digitalWrite(trigPin, LOW);

duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.1;

if (distance < 70) // Checking the distance, you can change the value
{ 
digitalWrite(motor,HIGH); // When the the distance below 100cm
digitalWrite(buzzer,HIGH);
} else
{
digitalWrite(motor,LOW);// when greater than 100cm
digitalWrite(buzzer,LOW); 
} delay(500);
}
 
 
 

7件のコメント


ba2273211
2018年12月03日

Özür Dilerim

いいね!

ba5573211
2018年12月02日

merhaba

いいね!

ba5573211
2018年12月02日

ytttttgdpohıygşuk

いいね!

0sa9414367
2018年12月02日

çook ğüzel olmuş

いいね!

sukrofer_mukotik.97
2018年12月02日

mükemmel anlatmaya gerek yok görüyorsunuz mükemmel anlatmam

いいね!

© 2023 by Parenting Blog

Proudly created with MAB.com

  • YouTube Sosyal Simge
  • Facebook Black Round
  • Twitter Black Round

BURSA / OSMANGAZİ

Mail listemize katılın

bottom of page