28BYJ-48: yonke into oyifunayo kufuneka uyazi malunga nale nqwelo ihamba

I-28BYJ-48 injini yokuhamba

Enye ye Eyona motor ithandwayo ihamba phambili ngama-28BYJ-48. Emva kwenqaku elapapashwa kule bhlog, kuya kufuneka sele uyazi yonke into oyifunayo ngolu hlobo lwenjini Ukuchaneka apho unokulawula khona ukujika ukuze iqhubeke kancinci okanye ihlale ihleli ndawonye kwindawo oyifunayo. Oko kuvumela ukuba babe nobuninzi bezicelo, ukusuka kwimizi-mveliso, ukuya kwiirobhothi, nangabanye abaninzi onokucinga ngabo.

I-28BYJ-48 incinci uhlobo unipolar stepper motor, kwaye kulula ukuyidibanisa neArduino, kuba inemodeli yemodyuli yokulawula / yokulawula i-ULN2003A edla ngokudityaniswa nayo. Zonke ngexabiso eliphantsi kakhulu kunye nobungakanani obulinganayo. Ezi zinto zikwenza ukuba kube lula ukuqala ukuziqhelanisa nezi zixhobo.

Iimpawu ze-28BYJ-48

28BYJ-48

Imoto 28BYJ-498 I-motor stepper eneempawu ezilandelayo:

  • Uhlobo: Isantya se-motor okanye i-unipolar stepper
  • Izigaba: 4 (inyathelo elipheleleyo), njengoko kukho iikhoyili ezi-4 ngaphakathi.
  • Ukuchasa: 50 Ω.
  • Injini yetorque: I-34 N / m, oko kukuthi, ukuba i-Newtons ngemitha nganye idluliselwe kwi-Kg, iya kuba ngamandla alingana nokubeka malunga ne-0.34 Kg nge-cm kwi-axis yayo. Kwanele ukuphakamisa nge-pulley ngaphezulu kwekota yekhilo.
  • Ukusetyenziswa: 55 MA
  • Amanyathelo ngokwethanga ngalinye: 8 yohlobo lwenyathelo lesiqingatha (45º inye)
  • Ibhokisi yebhokisi edibeneyo: ewe, 1/64, ke yahlula inyathelo ngalinye libe ngamashumi amathandathu anesine amancinci ngokuchaneka okukhulu, ke ngoko, ifikelela kuma-64 amanyathelo ayi-512º inye. Okanye inokubonwa njengamanyathelo apheleleyo angama-0.7 ngomlenze (inyathelo elipheleleyo).

Amanyathelo apheleleyo okanye anesiqingatha, okanye amanyathelo apheleleyo nesiqingatha, ziindlela onokusebenza kuzo. Ukuba uyakhumbula, kwinqaku lee-motors ezihamba ngenyawo ndathi umzekelo wekhowudi ye-Arduino IDE wasebenza kwitorque epheleleyo.

Ngolwazi oluthe kratya, unako Khuphela uxwebhu lwakho lwedatha, njengoko umzekelo this. Ngokuphathelele i-pinout, awunakukhathazeka kakhulu, nangona ungabona ulwazi kwiphepha ledatha lemodeli oyithengileyo. Kodwa le khonkrithi inonxibelelwano olukuvumela ukuba uqhagamshele zonke iintambo ngaxeshanye, ngaphandle kokukhathazeka malunga nokwahlulahlula okanye apho nganye nganye iya khona, faka nje kumlawuli kunye ne-voila ...

Imodyuli yomqhubi we-ULN2003

Ngokuphathelele kumlawuli weemoto okanye kumqhubi obandakanyiweyo kule moto ye-28BYJ-48, unayo i-ULN2003A, yenye yezona zidume kakhulu kwaye onokuzisebenzisa kunye neArduino ngokulula. Inoluhlu lweetransistors zaseDarlington ezixhasa ukuya kuthi ga kwi-500mA kwaye inezikhonkwane zonxibelelwano zokudibanisa iikhoyili ezi-4 nezikhonkwane zebhodi yeArduino enenombolo ukusuka kwi-IN1 ukuya kwi-IN4, njengoko ubonile kwinqaku leemoto ezihamba ngasentla endikhe ndalikhankanya apha ngasentla. Ukusuka eArduino, unokuba neengcingo ukusuka kwipini ye-5v kunye ne-GND ukuya kwizikhonkwane ezimbini kwibhodi yemodyuli yomqhubi ephawulwe- + (5-12v) ukunika amandla ibhodi kunye nemoto yokuhamba.

I-ULN2003A chip pinout kunye nesekethe

Ngendlela, nge Abaguquleli beDarlington kuvunyelwe ukusebenzisa iperi ye-bipolar transistors ezibekwe kunye nokwenza njenge-transistor enye. Oku kunyusa kakhulu ukuzuza komqondiso kwisiphumo 'transistor' esinye, kwaye kananjalo kuvumela imisinga ephezulu kunye neevolthi ezenziwayo.

El Isibini saseDarlington, njengoko "i-transistor" enye eyenziweyo ngokudityaniswa kwe-bipolar transistors yaziwa. Ivela kwiBell Labs ngo-1952, nguSidney Darlington, yiyo loo nto igama layo. Aba batshintshi baxhunyiwe ngendlela yokuba enye i-NPN iqokelele umqokeleli wayo kumqokeleli wesibini we-NPN. Ngelixa umnikeli wokuqala eye kwisiseko sesibini. Oko kukuthi, isiphumo sokudlula okanye isibini sinonxibelelwano ezintathu njenge-transistor enye. Isiseko se-transistor yokuqala kunye nomqokeleli / umkhupheli we-transistor yesibini ...

Uyithenga phi imoto

Iphakheji ye-injini ye-28BYJ-48

Los unokufumana kwiivenkile ezininzi ngokukodwa kwi-elektroniki, nakwi-intanethi njenge-Amazon. Umzekelo, ungazithenga kwi:

  • Malunga ne- € 6 ungaba nayo Injini ye-28BYJ-48 enemodyuli yomqhubi.
  • Akukho mveliso ifunyenweyo kunye nezintambo zonxibelelwano lwayo, ukuba ufuna ngaphezulu kwesinye seemoto kwiirobhothi okanye kwiprojekthi oyenzayo ...

Inkqubo ye-28BYJ-48 eneArduino

IArduino eneemoto ezihambayo kunye nomlawuli

Okokuqala, kuya kufuneka Cacisa malunga neekhontrakthi zemoto ehamba ngokuthe nkqo, Ndikucebisa funda inqaku likaHwlibre malunga nezi zinto. Ezi motors azenzelwanga ukuba zondliwe ngokuqhubekekayo, kodwa zibacola ngokwamanqanaba abo ahlukeneyo ukuze baqhubele phambili kuphela kwizidanga esizifunayo. Ukonwabisa izigaba kunye nokulawula ukujikeleza kweshafti, kuya kufuneka ukondle uqhagamshelo ngalunye ngokufanelekileyo.

Umenzi ucebisa ukuqhuba iikhoyili ezi-2 ngexesha.

  • Ukuyenza isebenze torque ubuninzi, ngesantya esikhawulezayo kunye nokusetyenziswa okuphezulu, ungayisebenzisa le tafile:
Paso Ikhoyili A Ikhoyili B Ikhoyili C Ikhoyili D
1 EZIPHAKATHI EZIPHAKATHI NJE NJE
2 NJE EZIPHAKATHI EZIPHAKATHI NJE
3 NJE NJE EZIPHAKATHI EZIPHAKATHI
4 EZIPHAKATHI NJE NJE EZIPHAKATHI
  • Ukuvuyisa ikhoyili enye ngexesha, kwaye yenze isebenze kwimodi yokuqhuba (Nokuba sisiqingatha, kodwa usisebenzise kancinci), unokusebenzisa le theyibhile ilandelayo:
Paso Ikhoyili A Ikhoyili B Ikhoyili C Ikhoyili D
1 EZIPHAKATHI NJE NJE NJE
2 NJE EZIPHAKATHI NJE NJE
3 NJE NJE EZIPHAKATHI NJE
4 NJE NJE NJE EZIPHAKATHI
  • Okanye ngenkqubela phambili isiqingatha amanyathelo, ungakusebenzisa oku ukufezekisa ukutshintsha okuthe ngqo kumanyathelo amafutshane:
Paso Ikhoyili A Ikhoyili B Ikhoyili C Ikhoyili D
1 EZIPHAKATHI NJE NJE NJE
2 EZIPHAKATHI EZIPHAKATHI NJE NJE
3 NJE EZIPHAKATHI NJE NJE
4 NJE EZIPHAKATHI EZIPHAKATHI NJE
5 NJE NJE EZIPHAKATHI NJE
6 NJE NJE EZIPHAKATHI EZIPHAKATHI
7 NJE NJE NJE EZIPHAKATHI
8 NJE NJE NJE EZIPHAKATHI

Kwaye unokucinga ... inantoni yokwenza ne-Arduino yenkqubo? Ewe inyaniso yile nto, kuba Unokwenza i-matrix okanye uluhlu olunamaxabiso kwi-Arduino IDE Ukuze imoto ihambe ngendlela othanda ngayo, emva koko usebenzise uluhlu olwenziweyo kwiluphu okanye xa uyifuna ... Uthathela ingqalelo ukuba LOW = 0 kunye HIGH = 1, Oko kukuthi, ukungabikho kwamandla ombane okanye ombane ophezulu, unokwenza imiqondiso ekufuneka uyithumele ku-Arduino kumlawuli wokuqhuba imoto. Umzekelo, ukuthatha amanyathelo aphakathi unokusebenzisa ikhowudi yematriki:

int Paso [ 8 ][ 4 ] = 
     {  {1, 0, 0, 0}, 
        {1, 1, 0, 0}, 
        {0, 1, 0, 0}, 
        {0, 1, 1, 0}, 
        {0, 0, 1, 0}, 
        {0, 0, 1, 1}, 
        {0, 0, 0, 1}, 
        {1, 0, 0, 1} };

Oko kukuthi, kuba ikhowudi epheleleyo yomzobo Ukusuka kwi-IDE yeArduino, ungasebenzisa lo mzekelo usisiseko ukuvavanya ukuba imoto yeenyawo ezingama-28BYJ-48 isebenza njani. Ngayo, unokujikeleza i-motor shaft nje ukuba wonke umzobo uqhagamshele ngokufanelekileyo. Zama ukuguqula amaxabiso okanye utshintshe ikhowudi yesicelo osifunayo kwimeko yakho:

// Definir pines conectados a las bobinas del driver
#define IN1  8
#define IN2  9
#define IN3  10
#define IN4  11

// Secuencia de pasos a par máximo del motor. Realmente es una matriz que representa la tabla del unipolar que he mostrado antes
int paso [4][4] =
{
  {1, 1, 0, 0},
  {0, 1, 1, 0},
  {0, 0, 1, 1},
  {1, 0, 0, 1}
};

void setup()
{
  // Todos los pines se configuran como salida, ya que el motor no enviará señal a Arduino
  pinMode(IN1, OUTPUT);
  pinMode(IN2, OUTPUT);
  pinMode(IN3, OUTPUT);
  pinMode(IN4, OUTPUT);
}

// Bucle para hacerlo girar
void loop()
{ 
    for (int i = 0; i < 4; i++)
    {
      digitalWrite(IN1, paso[i][0]);
      digitalWrite(IN2, paso[i][1]);
      digitalWrite(IN3, paso[i][2]);
      digitalWrite(IN4, paso[i][3]);
      delay(10);
    }
}

Njengoko ubona, kule meko inokusebenza ngetorque ephezulu yokwenza iikhoyili zibe mbini ngambini ...


Yiba ngowokuqala ukuphawula

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.