Harici LED'i Güvenle Bağlama
Bir direnç ekleyin ve kart dışındaki bir LED'i yakıp söndürün.
Harici LED'i Güvenle Bağlama, CoddyKit'te ücretsiz bir Arduino & IoT Academy dersidir. Bu, 4 dersinin 4. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Arduino & IoT Academy öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Arduino & IoT Academy kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
Beyond the Onboard LED
The onboard light is handy, but real projects need their own LEDs. Wiring one up takes just a few parts and a little care. 🔧
LEDs Have a Direction
An LED only lets current flow one way. Its long leg is the positive anode, and the short leg is the negative cathode. Orientation matters.
Long Leg to the Pin
Connect the long leg toward your Arduino pin, the source of voltage. The short leg heads toward ground, completing the path for current.
Why You Need a Resistor
A raw pin can shove too much current through an LED and burn it out. A resistor limits that flow so the LED stays bright but safe.
Pick the Right Value
For a 5V pin, a resistor around 220 ohms is a safe, common choice. It gives a clear glow without stressing the LED or the pin.
It Goes In Series
Place the resistor in line with the LED, not beside it. Pin to resistor to LED to ground means every electron passes through the resistor.
Either Side Works
A resistor has no direction, so it can sit before or after the LED. What matters is that it stays in the same series path with it.
Find the Ground Pin
Your Arduino has a pin marked GND. The LED circuit must return there, because current needs a complete loop back to ground to flow.
Reuse Your Blink Code
The wiring changed, not the code. Point pinMode and digitalWrite at the pin you wired, and your familiar blink sketch lights the new LED.
const int ledPin = 9;
pinMode(ledPin, OUTPUT);When It Stays Dark
No light usually means a backwards LED or a loose wire. Flip the LED and recheck each connection to ground before blaming the code.
Never Skip the Resistor
Tempted to wire an LED straight to a pin? Do not. Without a resistor you risk frying the LED and even damaging the Arduino pin.
Quick Check
Why does an external LED need a resistor in series?
Recap
You wired an external LED with the long leg to a pin and a resistor guarding the path to ground. You can now build LEDs into any project. 🎉
Sıkça Sorulan Sorular
“Harici LED'i Güvenle Bağlama” dersi ücretsiz mi?
Evet — “Harici LED'i Güvenle Bağlama” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Arduino & IoT Academy kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Arduino & IoT Academy kursu toplamda 4 dersten oluşur.
“Harici LED'i Güvenle Bağlama” dersinde ne öğreneceğim?
Bir direnç ekleyin ve kart dışındaki bir LED'i yakıp söndürün. Arduino & IoT Academy ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
Arduino & IoT Academy öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te Arduino & IoT Academy, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 4. dersidir.
“Harici LED'i Güvenle Bağlama” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu Arduino & IoT Academy dersinde kod yazıp çalıştırabilir miyim?
Evet. Her Arduino & IoT Academy dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- pinMode ve OUTPUT
- digitalWrite HIGH ve LOW
- delay() ve Yanıp Sönme Zamanlaması
- Harici LED'i Güvenle Bağlama