Thuta Learning
Raspberry Pi
IntermediateHardwareအခြေခံ

GPIO Pins — What They Are

Raspberry Piသင်ခန်းစာ 8

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

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

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

Pi board ရဲ့ ဘေးတစ်ဖက်မှာ pin ၄၀ ခု row ၂ ခု ရှိပါတယ် — pin တစ်ခုစီစီမှာ Numbering system ၂ မျိုး ရှိပါတယ် (Physical pin number vs BCM/GPIO number, code ရေးရာမှာ BCM numbering ကိုပဲ အများဆုံးသုံးပါတယ်)။ Pin တစ်ခုစီက Output mode (code ကနေ voltage ပို့ပြီး LED light on/off) ဒါမှမဟုတ် Input mode (button press, sensor value ကို ဖတ်) ဆိုပြီး configure လုပ်လို့ရပါတယ်။ Power pin (5V, 3.3V) နဲ့ Ground pin (GND) တွေလည်း ပါဝင်ပါတယ် — circuit ရဲ့ power source/return path အတွက်ပါ။

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

GPIO pin layout diagram (pinout.xyz လို website ကနေ ကြည့်နိုင်) ကို reference ထားပြီး, project ကို စမ်းခင် ဘယ် pin ကို ဘာအတွက်သုံးမလဲ ကြိုတင် plan ချသင့်ပါတယ် — Power pin ကို Ground pin တိုက်ရိုက် ချိတ်ရင် (short circuit) board ကို ဖျက်ဆီးနိုင်ပါတယ်, ဒါကြောင့် wiring diagram ကို အသေးစိတ် ဂရုစိုက်ကြည့်ရပါတယ်။

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

text
GPIO pin categories
---------------------
Power pins    → 5V, 3.3V (circuit ကို power ပေး)
Ground pins   → GND (return path)
GPIO pins     → Output (LED on/off) or Input (button/sensor read)

Before wiring: check pinout.xyz for your Pi model's exact layout
You should see
GPIO pin ရဲ့ Power/Ground/GPIO category သုံးမျိုးကို ခွဲခြားနိုင်မည်။

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

pinout.xyz website (ဒါမှမဟုတ် documentation) ကို ဝင်ကြည့်ပြီး ကိုယ့် Pi model ရဲ့ GPIO layout diagram ကို ကူးရေးကြည့်ပါ (physical pin number vs BCM number)။

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

GPIO pin ကို wiring မလုပ်ခင် Pi ကို power ပိတ်ထားတာက အကောင်းဆုံးပါ — power ဖွင့်ထားချိန် wiring ပြောင်းလဲရင် short circuit risk ရှိပြီး board ကို ဖျက်ဆီးနိုင်ပါတယ်။

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

  • Power pin (5V) ကို Ground pin တိုက်ရိုက် ချိတ်မိပြီး short circuit ဖြစ်ခြင်း (board ပျက်နိုင်)
  • Physical pin number နဲ့ BCM/GPIO number ကို ရောနှောပြီး wrong pin ကို code ထဲ ရေးမိခြင်း

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

pinout.xyz website (ဒါမှမဟုတ် documentation) ကို ဝင်ကြည့်ပြီး ကိုယ့် Pi model ရဲ့ GPIO layout diagram ကို ကူးရေးကြည့်ပါ (physical pin number vs BCM number)။

အလုပ်ဖြစ်ကြောင်း ဒီလိုသိမယ်: GPIO pin ရဲ့ Power/Ground/GPIO category သုံးမျိုးကို ခွဲခြားနိုင်မည်။

နောက်ဆုံးပြင်ဆင်ရက်

Progress ကို ဤ browser (ဤစက်) တွင်သာ သိမ်းထားပါသည်။ အခြားစက်များနှင့် sync မလုပ်ပါ။

ဤသင်ခန်းစာတွင် အမှားတွေ့ပါက အကြောင်းကြားရန်သင့် email app ကို ဤသင်ခန်းစာလိပ်စာ ဖြည့်ပြီးသားဖြင့် ဖွင့်ပေးပါမည် — သင်ကိုယ်တိုင် ပို့မှသာ ပို့မည်ဖြစ်သည်။

GPIO Pins — What They Are | Thuta Learning