Skip to content
View Doruardiuno's full-sized avatar

Block or report Doruardiuno

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Doruardiuno/README.md alev sensörü ile buzzer çalıştırma
int flameSensorPin = 2; // Alev sensörünün bağlı olduğu dijital pin
int buzzerPin = 8; // Buzzer veya LED'in bağlı olduğu dijital pin
int sensorValue = 0;

void setup() {
  pinMode(flameSensorPin, INPUT); // Alev sensörünü giriş olarak ayarla
  pinMode(buzzerPin, OUTPUT); // Buzzer veya LED'i çıkış olarak ayarla
  Serial.begin(9600); // Seri iletişimi başlat
}

void loop() {
  sensorValue = digitalRead(flameSensorPin); // Alev sensöründen gelen değeri oku
  Serial.println(sensorValue); // Değeri seri monitöre yazdır

  if (sensorValue == LOW) { // Alev algılandığında (sensör modülüne göre HIGH veya LOW olabilir)
    digitalWrite(buzzerPin, HIGH); // Buzzer veya LED'i aç
  } else {
    digitalWrite(buzzerPin, LOW); // Buzzer veya LED'i kapat
  }
  delay(100); // 100 ms bekle
}

Popular repositories Loading

  1. Ardiuno Ardiuno Public

  2. Doruardiuno Doruardiuno Public

    Config files for my GitHub profile.