Tem 26, 2026, 03:33 ÖÖ

Haberler:

Dear site friends, our aim is to inform and develop the field of electronics. All messages containing links and advertisements, and members who share them, will be banned. With respect and love, PulseQRP R&D management.


New alan tarama

Başlatan Yörük, Dün, 11:52 ÖS

« önceki - sonraki »

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Yörük

Merhaba
```

#include <LiquidCrystal.h>

// RS, E, D4, D5, D6, D7

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

const int pinSesArti = 6;

const int pinSesEksi = 7;

const int pinMetalAyrim = 8; // Değerli / Değersiz seçimi

int sesSeviyesi = 5;

bool sadeceDegerli = false;

void setup() {

  lcd.begin(16, 2);

  lcd.clear();

  lcd.setCursor(0, 0);

  lcd.print("PULSE QRP R&G");

  lcd.setCursor(0, 1);

  lcd.print("ALAN TARAMA");

  delay(2000);

  

  pinMode(pinSesArti, INPUT_PULLUP);

  pinMode(pinSesEksi, INPUT_PULLUP);

  pinMode(pinMetalAyrim, INPUT_PULLUP);

  

  ekranGuncelle();

}

void loop() {

  if (digitalRead(pinSesArti) == LOW) {

    if (sesSeviyesi < 10) sesSeviyesi++;

    ekranGuncelle();

    delay(200);

  }

  

  if (digitalRead(pinSesEksi) == LOW) {

    if (sesSeviyesi > 0) sesSeviyesi--;

    ekranGuncelle();

    delay(200);

  }

  

  if (digitalRead(pinMetalAyrim) == LOW) {

    sadeceDegerli = !sadeceDegerli;

    ekranGuncelle();

    delay(300);

  }

}

void ekranGuncelle() {

  lcd.clear();

  lcd.setCursor(0, 0);

  lcd.print("Ses: ");

  lcd.print(sesSeviyesi);

  

  lcd.setCursor(0, 1);

  if (sadeceDegerli) {

    lcd.print("Mod: DEGERLI");

  } else {

    lcd.print("Mod: TUM METALLER");

  }

}

```bu çalışmamız geliştirme sürecinde ina121a  alıcı devremiz detayları ve şemayı paylaşağım