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 Comments


ba2273211
Dec 03, 2018

Özür Dilerim

Like

ba5573211
Dec 02, 2018

merhaba

Like

ba5573211
Dec 02, 2018

ytttttgdpohıygşuk

Like

0sa9414367
Dec 02, 2018

çook ğüzel olmuş

Like

sukrofer_mukotik.97
Dec 02, 2018

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

Like

© 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