top of page

LDR İLE LED YAKMA PROJESİ

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

Proje Kodu

int ldrPin=A2;

int ldrDeger=0;

int esikDeger=50;

void setup(){

  pinMode(12, OUTPUT);

}

void loop(){

  ldrDeger=analogRead(ldrPin);

  if(ldrDeger<esikDeger){

    digitalWrite(12, HIGH);

  }

  else{

    digitalWrite(12, LOW);

  }

}

 
 
 

4 Comments


sukrofer_mukotik.97
Dec 02, 2018

en güzeli mq7

Like

www.ibrahimeti
Dec 01, 2018

mütiş

Like

www.ibrahimeti
Dec 01, 2018

AKILLICA

Like

www.umuteti1625
Nov 30, 2018

Selamun Aleyküm

İbrahim ETİ


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