Thuta Learning
ရှာဖွေရန်
IntermediateHardwarebeginner

Wiring an LED

စိတ်လျှော့ပါ။ ဒီခန်းကို စာအုပ်လိုမဟုတ်ဘဲ စကားပြောသလိုပဲ၊ နားလည်လွယ်အောင် ရှင်းပါမယ်။

ဒီခန်းပြီးရင် ဘာတတ်သွားမလဲ

  • Wiring an LED ကို ကြောက်စရာမလိုအောင် နားလည်မယ်
  • ကိုယ်တိုင် hardware wiring/code ကို run ကြည့်တတ်မယ်
  • Real project ထဲမှာ ဒီ concept ကို ချက်ချင်း အသုံးချတတ်မယ်

ခဏလေး ဒီလိုပဲ စဉ်းစားကြည့်

Breadboard က solder (ကြေးမီးအိုးရိုက်) မလိုဘဲ circuit ကို temporary ချိတ်ဆက်စမ်းသပ်နိုင်တဲ့ board ပါ — row/column တွေက internally ချိတ်ဆက်ထားပြီး, component leg ကို hole ထဲ ထိုးထည့်ရုံနဲ့ circuit ပြည့်စုံသွားပါတယ်။ Resistor (330Ω-1kΩ) ကို LED နဲ့ series ချိတ်ဆက်ရပါတယ် — resistor မပါရင် current များလွန်းပြီး LED ပူလောင်ပျက်စီးနိုင်ပါတယ် (LED ကို 'protect' လုပ်ပေးတာပါ)။

လက်တွေ့ scenario နဲ့ ချိတ်ကြည့်မယ်

Circuit ရေးနည်း — Pi ရဲ့ GPIO pin (ဥပမာ BCM 17) ကနေ wire တစ်ချောင်း → breadboard row → resistor → LED long leg (anode) → LED short leg (cathode) → wire → Pi ရဲ့ Ground (GND) pin ပြန်ချိတ်ရပါတယ် — 'circuit loop' ကို ပြည့်စုံအောင် ဖန်တီးရတာပါ။ LED ကို reverse (contrary direction) ချိတ်ရင် light မလင်းနိုင်ပါဘူး (LED က current ကို direction တစ်ခုတည်းကနေပဲ ဖြတ်သန်းခွင့်ပြုလို့ — polarity matters)။

အတူတူ ကြည့်မယ်

text
LED Circuit Wiring
--------------------
GPIO pin (e.g. BCM 17) → wire → breadboard
breadboard → resistor (330Ω) → LED anode (long leg)
LED cathode (short leg) → wire → GND pin

(Full loop: GPIO → resistor → LED → GND)
You should see
Wiring ကို ကြည့်ပြီး circuit loop ပြည့်စုံမပြည့်စုံ (GPIO → resistor → LED → GND) စစ်ဆေးနိုင်မည်။

၅ မိနစ် စမ်းကြည့်

Breadboard, LED, resistor (330Ω), jumper wire ၂ ချောင်းကို ပြင်ဆင်ပြီး (Pi ရှိရင်) circuit ကို wiring diagram အတိုင်း ကိုယ်တိုင် ချိတ်ဆက်ကြည့်ပါ (code မရေးရသေးပါ, နောက်ခန်းမှာ ဆက်လုပ်ပါမယ်)။

သတိလေးတစ်ချက်

Wiring လုပ်ချိန် Pi ကို power ပိတ်ထားပါ — power ဖွင့်ထားချိန် wire ပြောင်းလဲမိရင် short circuit ဖြစ်ပြီး GPIO pin ပျက်စီးနိုင်ပါတယ် (Pi board တစ်ခုလုံးလည်း ထိခိုက်နိုင်ပါတယ်)။

ဒီနေရာမှာ လူအများမှားတတ်တယ်

  • Resistor မထည့်ဘဲ LED ကို GPIO pin တိုက်ရိုက် ချိတ်ပြီး LED/GPIO pin ပျက်စီးခြင်း
  • LED ရဲ့ anode/cathode (long leg/short leg) ကို ရောပြီး reverse ချိတ်ခြင်း — light မလင်း

အခု ကိုယ်တိုင် စမ်းကြည့်

Breadboard, LED, resistor (330Ω), jumper wire ၂ ချောင်းကို ပြင်ဆင်ပြီး (Pi ရှိရင်) circuit ကို wiring diagram အတိုင်း ကိုယ်တိုင် ချိတ်ဆက်ကြည့်ပါ (code မရေးရသေးပါ, နောက်ခန်းမှာ ဆက်လုပ်ပါမယ်)။

You'll know it worked when: Wiring ကို ကြည့်ပြီး circuit loop ပြည့်စုံမပြည့်စုံ (GPIO → resistor → LED → GND) စစ်ဆေးနိုင်မည်။

Wiring an LED | Thuta Learning