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 comentaris


ba2273211
03 de des. del 2018

Özür Dilerim

M'agrada

ba5573211
02 de des. del 2018

merhaba

M'agrada

ba5573211
02 de des. del 2018

ytttttgdpohıygşuk

M'agrada

0sa9414367
02 de des. del 2018

çook ğüzel olmuş

M'agrada

sukrofer_mukotik.97
02 de des. del 2018

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

M'agrada

© 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