arduino dc မော်တာအမြန်နှုန်းနှင့် ဦးတည်ချက် l293d
ကြည့်ရှုမှုများ- 0 ရေးသားသူ- Site Editor ထုတ်ဝေချိန်- 2020-09-02 မူရင်း- ဆိုက်
မေးမြန်းပါ။
ဤလက်စွဲစာအုပ်သည် သင့်အား DC မော်တာ၏ အမြန်နှုန်းနှင့် ဦးတည်ရာကို ထိန်းချုပ်ရန် အစိတ်အပိုင်းများနှင့် အဆင့်များကို ပြီးမြောက်စေရန် လမ်းညွှန်ပေးမည်ဖြစ်ပြီး နှစ်ထပ် H- သူ၏အကူအညီဖြင့်
Arduino Bridge L293D မော်တာမောင်း
မော်တာမောင်းသူတွင် လမ်းကြောင်းနှစ်ခုပါရှိပြီး၊ ဆိုလိုသည်မှာ ၎င်းသည် DC မော်တာနှစ်ခုလုံး၏ ဦးတည်ရာကို တစ်ချိန်တည်းတွင် ထိန်းချုပ်နိုင်သည်။
အဲဒါလုပ်ဖို့ လိုအပ်တဲ့ အပိုင်းတွေကို သင်ပေးပါရစေ။ . .
ပြီးရင် ကုဒ်နံပါတ်နဲ့ အဆင့်လိုက် ရှိပါတယ်။ 1) Arduino uno ။ .
L293D မှပေးသော မူရင်းဗားရှင်းသည် အလွန်စျေးသက်သာပါသည်။ . .
5 ကို 1 အတွက်ရနိုင်သည်။
ထိတွေ့နိုင်သောခလုတ်သည် 59 ယူရိုဖြစ်သည်။ . အတွက် 100pcs ။
€99 10 K potentiometer. . . ပေါင်မုန့်ပြား။ .
Jumper ဝါယာကြိုးများ။ . .
arduino IDE ပါသော ကွန်ပျူတာ။ . .
မင်းသိတဲ့ ဒီလင့်ခ်ကို ငါ မပေးနိုင်ဘူး။
အခုပဲ အလုပ်စလိုက်ရအောင်။
L293D ပင်နံပါတ်ချိတ်ဆက်မှု 1 (Enable1)--DigitalPin11(PWM)PIN2(INPUT1)--DigitalPin10(PWM)PIN3(OUTPUT1)--
1 PIN4 မော်တာပင်နံပါတ် (GND1)--GndPIN6(OUTPUT2)--
မော်တာပင်နံပါတ် 2PIN7 (INPUT2)--DigitalPin9(PWM)PIN8(12v)--5vPIN9(Vss3. 3v)--
5 v/pin ဆိုသည်မှာ 3.
3 v၊ သို့သော် ၎င်းကို 5 v သို့ ချိတ်ဆက်နိုင်သည်။
ချိတ်ဆက်မှု ပင်နံပါတ် 1 (အပြုသဘော)--5vPin2(အချက်ပြမှု)
-PIn3SH ချိတ်ဆက်မှု ခလုတ်(GN) ခလုတ် = gnd2 pin = DigitalPIN7/*/int enablePin = 11; int in1Pin = 10; int in2Pin = 9;
Int switchPin = 7; int potPin = 0;
int status pin = 13; ထည့်သွင်းခြင်း(){pinMode(in1Pin၊ OUTPUT); pinMode(in2Pin၊ OUTPUT); pinMode(
အထွက်); pinMode(
SwitchPin၊ input _ pullup); pinMode(
Output status pin; }void loop(){digitalWrite(13,HIGH);
Int speed = analogRead (potPin)/ 4;
Boolean reverse = digitalRead (switchPin); setMotor(speed, reverse); }void setMotor(
Int speed၊ Boolean reversal){analogWrite)
;1,in reverse digitalWrite(In2Pin၊ ပြောင်းပြန်) }
မော်တာ၏အမြန်နှုန်းကိုထိန်းချုပ်ရန် potentiometer ကိုဖွင့်ပြီး ဦးတည်ချက်ပြောင်းရန် ခလုတ်ကိုနှိပ်ပါ။