Arduino Yangın Alarmı

 MALZEMELER

1 X Arduino UNO

1 X LM35

2 X Led ( Kırmızı, Yeşil )

2 X 330 Ω Direnç

1 X Buzzer

DEVRE ŞEMASI

 

 

 

 

 

 

 

 

 

 

KODLAMA

[sourcecode language=”c”]</pre>
int yesil_led=11;

int kirmizi_led=5;

int buzzer_alarm=2;

void setup()

{ pinMode(lm35_pin,INPUT);

pinMode(yesil_led,OUTPUT);

pinMode(kirmizi_led,OUTPUT);

pinMode(buzzer_alarm,OUTPUT);

digitalWrite(yesil_led,HIGH);

} void loop()

{ float lm35_okunan_deger=analogRead(lm35_pin);

float analog_sicaklik=(lm35_okunan_deger/1023)*5000;

float dijital_sicaklik=analog_sicaklik/10.0;

if(dijital_sicaklik>50)

{ tone(buzzer_alarm,300);

digitalWrite(kirmizi_led,HIGH);

digitalWrite(yesil_led,LOW);

} else

{ noTone(buzzer_alarm);

digitalWrite(yesil_led,HIGH);

digitalWrite(kirmizi_led,LOW);

} }
<pre>[/sourcecode]

Arduino Yangın Alarmı” için 3 yorum

  • 15 Kasım 2020 tarihinde, saat 22:54
    Permalink

    I simply needed to say thanks all over again. I do not know the things I might have implemented without the creative ideas contributed by you regarding this subject. It has been a very horrifying dilemma in my view, however , being able to see this specialised style you processed that made me to weep with delight. I’m just happy for the service as well as pray you are aware of a powerful job that you’re doing instructing others through a site. I am certain you haven’t met all of us.

    Yanıtla
  • 15 Kasım 2020 tarihinde, saat 22:55
    Permalink

    I needed to send you the very little observation to help say thank you over again with your extraordinary thoughts you’ve provided on this website. It has been tremendously generous of people like you in giving unhampered all that a number of people could have distributed as an ebook to help with making some dough for their own end, notably considering the fact that you might have done it if you ever decided. Those strategies additionally served as the good way to be sure that most people have similar desire much like my own to find out good deal more concerning this problem. Certainly there are millions of more pleasant moments ahead for individuals who find out your site.

    Yanıtla
  • 15 Kasım 2020 tarihinde, saat 22:55
    Permalink

    Needed to draft you the tiny observation to say thanks a lot yet again for those remarkable basics you have discussed on this page. It was pretty open-handed of people like you to make openly all many of us could have supplied as an e-book in order to make some profit for their own end, notably given that you might well have tried it if you ever desired. The strategies also worked to be the great way to fully grasp that some people have the identical desire just as my very own to grasp many more around this matter. I believe there are thousands of more pleasant instances ahead for people who browse through your blog.

    Yanıtla

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Hack Forum Kitap Yayın Evi Üstad Kadir Mısıroğlu Siber Güvenlik Saklanan Gerçekler Türkiye Gerçekleri Saklanan Gerçekler risale i nur Saklanan Gerçekler Türkiyeden Haberler pratik yemek tarifleri Saklanan Tarih 1919'dan 1923'e Cumhuriyet Tarihi Lozan zafer mi ? Hezimet mi ? Güncel Haberler