×

Arduino Eğitimi 1.Gün: LED Yakma (Blink) Projesi

Arduino Eğitimi 1.Gün: LED Yakma (Blink) Projesi

Bu proje, Arduino Nano kullanarak bir LED’in belirli aralıklarla yanıp sönmesini sağlayacaktır.


🛠 Gerekli Malzemeler

  • Arduino Nano
  • 1x LED
  • 1x 220Ω veya 270Ω direnç
  • Bağlantı kabloları
  • Breadboard (isteğe bağlı)

🔌 Bağlantı Şeması

LED’i Arduino Nano’ya şu şekilde bağlayacağız:

LED BacağıArduino Nano
Uzun Bacak (Anot, +)D13 (Direnç üzerinden)
Kısa Bacak (Katot, -)GND

🔹 Direnç (220Ω veya 270Ω), LED’in anot bacağı (uzun bacak) ile D13 pini arasına bağlanmalıdır.
🔹 GND’ye doğrudan bağlantı yapılmalıdır.


📜 Kodlama (Arduino Sketch)

Bu kod, LED’i 1 saniye aralıklarla yanıp sönecek şekilde çalıştırır.

cppKopyalaDüzenleconst int ledPin = 13; // LED’in bağlı olduğu pin

void setup() {
  pinMode(ledPin, OUTPUT); // D13 pinini çıkış olarak ayarla
}

void loop() {
  digitalWrite(ledPin, HIGH); // LED'i yak
  delay(1000); // 1 saniye bekle
  digitalWrite(ledPin, LOW);  // LED'i söndür
  delay(1000); // 1 saniye bekle
}

📖 Çalışma Mantığı

  1. Arduino’nun D13 pinine bir LED bağlanır.
  2. pinMode(ledPin, OUTPUT); komutu, LED’in bağlı olduğu pini çıkış olarak tanımlar.
  3. digitalWrite(ledPin, HIGH); komutu LED’i yakar.
  4. delay(1000); komutu, 1 saniye beklemeyi sağlar.
  5. digitalWrite(ledPin, LOW); komutu LED’i söndürür.
  6. Sonsuz döngü (loop()) içinde bu işlem tekrar eder.

📡 Bağlantı Şeması Açıklaması

      LED           Arduino Nano
--------- -------------
[ + ] Anot ---> D13 (Direnç üzerinden)
[ - ] Katot ---> GND

📌 Geliştirme Önerileri

  • LED Yanma Süresini Değiştir: delay(1000); süresini değiştirerek LED’in yanma hızını artırabilir veya azaltabilirsin.
  • Farklı Pinlerde LED Yak: D13 yerine D9, D7 gibi farklı pinleri kullanabilirsin.
  • Buton ile LED Kontrolü: Buton ekleyerek LED’in butona basınca yanmasını sağlayabilirsin.

Eğer geliştirmek istersen haber ver, projeyi genişletebiliriz!

24 comments

comments user
binance

Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

comments user
Inscription

Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

comments user
zoritoler imol

Good write-up, I¦m normal visitor of one¦s web site, maintain up the nice operate, and It is going to be a regular visitor for a long time.

https://www.zoritolerimol.com

comments user
binance

Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

comments user
drover sointeru

Someone essentially lend a hand to make severely posts I would state. That is the very first time I frequented your web page and to this point? I amazed with the analysis you made to make this actual put up amazing. Great process!

https://www.droversointeru.com

comments user
jalalive

Really enjoyed this! Your writing style is so engaging.

comments user
jala live

This gave me a lot to think about—thank you for sharing your thoughts!

comments user
jalalive

Clear, concise, and super helpful. Great job!”

comments user
jalalive apk

Always a pleasure reading your blog. Keep the great content coming!

comments user
jalalive

Thanks for the great read! Very informative and well-written.

comments user
spotbet login

Really helpful content — I learned a lot from this!

comments user
jalalive88

Great post! I really enjoyed reading this. Your insights were clear and helpful — thanks for sharing!

comments user
jalalive

Really helpful content – thanks for putting this together!

comments user
jalalive55

This was a great read! I learned something new today.

comments user
jala live 2025

Loved your perspective on this topic. Keep it up!

comments user
jalalive

Thanks for the valuable insights. Looking forward to your next post!

comments user
jalalive

Interesting points! You explained it in a very clear way.

comments user
jala live

Such a well-written piece. It kept me engaged from start to finish.

comments user
jalalive

Great post! I really enjoyed the insights you shared. Looking forward to reading more from you!

comments user
jala live

I’ve been looking for info like this—glad I found your blog.

comments user
spot bet

Well-written and straight to the point. Keep up the good work!

comments user
jala live

Great insights! I really enjoyed how you explained this topic clearly and simply.

comments user
jala live

Interesting perspective. It really made me think differently.

comments user
jala live

Love this post! Especially the part about staying consistent—so true.