Un umqhubi wemoto Yisekethe evumela ukuba ii-motors zangoku zilawulwe ngendlela elula kakhulu. Aba balawuli bayakuvumela ukuba uphathe i-voltages kunye nemisinga apho i-motor ibonelelwa khona ukuze ulawule isantya sokujikeleza. Ukongeza, zisebenza njengendlela yokukhusela ukuthintela i-elektroniki yeemoto ukuba zonakaliswe ngokunciphisa umda wokujikeleza ngoku (ukucanda).
Ke ngoko, ukuba uza kwenza iprojekthi ye-DIY eya kuthi zibandakanya enye okanye nangaphezulu ii-DC motorsNokuba yeyiphi na uhlobo, ngakumbi i-stepper motors, kuya kufuneka usebenzise umqhubi ukwenza izinto zibe lula kuwe. Nangona zikho iindlela zokwenza ngokwahlukileyo, kusetyenziswa i-transistors, iimodyuli ezinabaqhubi beemoto ziluncedo ngakumbi kwaye zilungile. Ngapha koko, aba baqhubi baxhomekeke kubaguquleli ukuba benze umsebenzi wabo ...
Kutheni ndifuna umqhubi?
El Umqhubi uyimfuneko kulawulo lweemoto, njengoko benditshilo ngaphambili. Kwakhona, kufuneka ukhumbule ukuba ibhodi yeArduino kunye ne-microcontroller yayo ayinakukwazi ukunyanzelisa ukuhamba kwemoto. Yenzelwe nje imiqondiso yedijithali, kodwa ayinakusebenza kakuhle xa amandla athe kratya kufuneka anikezelwe njengaleyo ifunwa zezi ntlobo zeemoto. Kungenxa yoko le nto kufuneka ube nale nto phakathi kwebhodi yeArduino kunye neenjini.
Iindidi zomqhubi
Kuya kufuneka uyazi loo nto Kukho iindidi ezininzi zabaqhubi kuxhomekeke kuhlobo lwe-injini ekujoliswe kuyo. Oku kubalulekile ukuba uyazi indlela yokwahlulahlula ukuze ufumane umqhubi ofanelekileyo:
- Umqhubi wemoto ye-unipolar: zezona zilula ukulawula, kuba ukuqukuqela okwangoku kwiikhoyili kuhlala kuhamba kwicala elinye. Umsebenzi womqhubi ngokulula kufuneka azi ukuba zeziphi iikhoyili ekufuneka uzenzile kwimpuliso nganye. Umzekelo wolu hlobo lwesilawuli iya kuba yi-ULN2003A.
- Umqhubi wemoto ebipolar: ezi motors zintsonkothe ngakumbi kwaye abaqhubi bazo nabo, njengeDRV8825. Kule meko banokusebenza ngoku ngoku kwicala elinye okanye kwelinye (emantla-emazantsi nakumazantsi-emantla). Ngumqhubi ogqiba ekubeni atshintshe ubungakanani bamandla ombane aveliswayo ngaphakathi kwemoto. Isiphaluka esaziwa kakhulu sokuguqula ulwalathiso kuthiwa yiPunete H, ukuvumela imoto ukuba ijikeleze macala omabini. Le bhulorho i-H yenziwe ziitransistors ezininzi.
Ezi zokugqibela ziye zaziwa ngakumbi kule minyaka idlulileyo kuba zibandakanyiwe kwezinye Iiprinta ze-3D ukulawula ushicilelo ngentloko. Kungenzeka ukuba unenjongo yokunyusa umshicileli we-3D okanye ukuba sele unayo, uyakufuna enye yezi zinto ukuze ukwazi ukulawula imoto okanye ukuyibuyisela le nxalenye ukuba yonakele. Zikwasetyenziselwa iirobhothi, abacwangcisi, iiprinta eziqhelekileyo, izikena, izithuthi zombane, kunye nexesha elide njl.
Yiya
Kukho iimodeli ezininzi zabaqhubi kwimarike. Umzekelo, yena I-DRV8825 luhlobo oluphuculweyo lwe-A4988. Lo mqhubi ufuna kuphela iziphumo ezimbini zedijithali ezivela kwi-microcontroller ukuze akwazi ukuphatha imoto ngokufanelekileyo. Kuphela unokuthi ulawule indlela kunye nenqanaba leemoto ngala masiginali mabini. Oko kukuthi, oku kuvumela ukunyathela, okanye ukuba imoto ijikeleza inyathelo ngenyathelo endaweni yokujikeleza ngokukhawuleza njengezinye iimoto ezilula.
I-DRV8825 ivumela ukusebenza ngee-voltages eziphezulu kunezo zisetyenziswa yi-A4988, ukusukela ingafikelela kuma-45v endaweni ye-35v ye-A4988. Ingaphatha imisinga ephezulu, ngakumbi i-2.5A, sisiqingatha se-amp ngaphezulu kwe-A4988. Ukongeza kuyo yonke loo nto, lo mqhubi mtsha wongeza i-1/32 ye-microstepping mode (1/16 ye-A4988) ukuze ikwazi ukuhambisa istrip se-motor shaft ngokuchanekileyo.
Ngaphandle koko ziyafana. Umzekelo, omabini anokufikelela kumaqondo obushushu aphezulu ngaphandle kwengxaki. Ke ngoko, ukuba ubakhapha ngeheatsink encinci, kungcono ngakumbi (iimodeli ezininzi sele ziyifakile), ngakumbi ukuba uza kuyisebenzisa ngaphezulu kwe-1A.
Ukuba ukufakwa kwe-encapsulation kufikelela kumaqondo obushushu aphezulu, njengolumkiso kufuneka uyicime. Kuya kuba kuhle ukudibana ne- iidatha yemodeli oyithengileyo kwaye ubone elonaqondo lobushushu liphezulu elinokuthi lisebenze kulo. Ukongeza isivamvo sobushushu ecaleni komqhubi ukubeka esweni iqondo lobushushu kunye nokusebenzisa isekethe ephazamisa ukusebenza ukuba ifikelela kulomda wobushushu unokucetyiswa kakhulu ...
I-DRV8825 inayo ukhuseleko kwiingxaki Ukujikeleza ngokugqithileyo, isekethe emfutshane, i-overvoltage kunye nobushushu obungaphezulu. Ke ngoko, zithembekile kwaye ziyamelana nezixhobo. Kwaye zonke ngexabiso eliphantsi kwiivenkile ezizodwa apho unokufumana eli candelo.
Ukukhupha iMicrostepping
Ngobuchule be Amanyathelo okuhambisa microstepping asezantsi kunenyathelo lesiqhelo anokufikelelwa Isantya sokuhamba kwemoto oza kuyisebenzisa. Oko kukuthi, hlula ujiko lube ngamacandelo amaninzi ukuze ukwazi ukuqhubela phambili ngokuthe chu okanye ngokuchanekileyo. Ukwenza oku, okwangoku kusetyenziswa kwikhoyili nganye kwahluka ngokulinganisa ixabiso leanalog kunye neempawu zedijithali ezikhoyo. Ukuba imiqondiso ye-analog sinusoidal egqibeleleyo ifezekisiwe kwaye i-90º iphume kwisigaba kunye, ujikelezo olufunwayo luya kufezekiswa.
Kodwa ke, awunakufumana loo mqondiso we-analog, kuba sisebenza ngeempawu zedijithali. Kungenxa yoko le nto ezi kufuneka ziphathwe ukuzama ukulingisa isiginali ye-analog ngokutsiba okuncinci kumqondiso wombane. Isisombululo semoto siya kuxhomekeka koku: 1/4, 1/8, 1/16, 1/32, ...
Ukukhetha isisombululo osifunayo kufuneka ulawule i-M0, M1 kunye ne-M2 izikhonkwane zemodyuli. Izikhonkwane zidityaniswe emhlabeni okanye kwi-GND zizinto zokutsala ezokutsala, ke ukuba akukho nto idityanisiweyo ziya kuhlala ZIBEKUPHantsi okanye 0. Ukutshintsha eli xabiso, kuya kufuneka unyanzele ixabiso eli-1 okanye ELIPHAKAMILEYO. Inkqubo ye- Ixabiso leM0, M1, M2 ngokulandelanayo ezo kufuneka zihambelane nesisombululo, zezi:
- Inyathelo elipheleleyo: Phantsi, Phantsi, Phantsi
- I-1/2: Ephakamileyo, ephantsi, ephantsi
- 1/4: Ephantsi, ePhakamileyo, ephantsi
- 1/8: Ephakamileyo, ePhakamileyo, ePhantsi
- 1/16: Ephantsi, Ephantsi, ePhakamileyo
- 1/32: onke amanye amaxabiso anokubakho
Phina
El Umqhubi we-DRV8825 uneskimu soqhagamshelo olulula, nangona izikhonkwane ezaneleyo kunokuba nzima ngakumbi ingcali ngaphantsi. Ungayibona kumfanekiso ongentla, kodwa qiniseka ukubeka imodyuli ngokufanelekileyo xa ujonga izikhonkwane, kuba kuyinto eqhelekileyo ukwenza iimpazamo kwaye uzithathe inverted, ekhokelela kunxibelelwano olubi kunye nokonakala.
Como Ingcebiso yokuqhagamshela umqhubiKucetyiswa ukuba uhlengahlengise ngokufanelekileyo kwaye ulungelelanise isixhobo ngokulandela la manyathelo angezantsi ukuze usebenze ngokukuko kwaye ungonakalisi:
- Xhuma umqhubi kumbane ngaphandle kwemoto edityanisiweyo okanye i-microstepping.
- Linganisa nge-multimeter uxinzelelo ekhoyo phakathi kwe-GND kunye ne-potentiometer.
- Lungisa potentiometer ide ibe lixabiso elifanelekileyo.
- Ngoku unako ucime umbane.
- Okwangoku ewe unako qhagamshela imoto. Kwaye uphinde uqhagamshele amandla kwi-diver.
- Ngomlinganiselo wemultimeter Ubunzulu phakathi komqhubi kunye nemoto inyathelo ngenyathelo kwaye ungenza uhlengahlengiso olungephi lwe potentiometer.
- Cima umbane kwakhona kwaye ngoku ungayiqhagamshela kwiArduino.
Ukuba awuzukusebenzisa microstepping unokuhlengahlengisa amandla olawulo ukuya kuthi ga kwi-100% yeemoto ezikhoyo. Kodwa ukuba uza kuyisebenzisa, kuya kufuneka uwunciphise lo mda, kuba ixabiso eliya kuthi emva koko lijikeleze ngaphezulu kunelo lilinganisiweyo ...
Umdibaniso neArduino
Sebenzisa umqhubi weDRV8825 ngeArduino, uqhagamshelo lulula njengoko ubona phezulu kwesi sikimu se-elektroniki sisuka kuFritzing:
- I-VMOT: iqhagamshelwe kumandla ukuya kuthi ga kwi-45v ubuninzi.
- I-GND: umhlaba (iimoto)
- I-SLP: kwi-5v
- RST: kwi-5v
- I-GND: emhlabeni (logic)
- I-STP: ukuya kwi-Arduino pin 3
- I-DIR: kwi-Arduino pin 2
- I-A1, A2, B1, B2: ukuya kwi-stepper (iimoto)
Nje ukuba uqhagamshelwe kwaye uhlengahlengiswe ngokufanelekileyo, ikhowudi yolawulo lwayo ikwacacile. Umzekelo, ukulawula i-motor stepper ungasebenzisa oku kulandelayo ikhowudi kwiArduino IDE:
const int dirPin = 2; const int stepPin = 3; const int steps = 200; int stepDelay; void setup() { // Configura los pines como salida pinMode(dirPin, OUTPUT); pinMode(stepPin, OUTPUT); } void loop() { //Se pone una dirección y velocidad digitalWrite(dirPin, HIGH); stepDelay = 250; // Se gira 200 pulsos para hacer vuelta completa del eje for (int x = 0; x < 200; x++) { digitalWrite(stepPin, HIGH); delayMicroseconds(stepDelay); digitalWrite(stepPin, LOW); delayMicroseconds(stepDelay); } delay(1000); //Ahora se cambia la dirección de giro y se aumenta la velocidad digitalWrite(dirPin, LOW); stepDelay = 150; //Se hacen dos vueltas completas for (int x = 0; x < 400; x++) { digitalWrite(stepPin, HIGH); delayMicroseconds(stepDelay); digitalWrite(stepPin, LOW); delayMicroseconds(stepDelay); } delay(1000); }
Ndikucebisa ukuba uzame eminye imizekelo yekhowudi oya kuyifumana phakathi kwemizekelo ezayo ne-Arduino IDE kwaye uzame ukuguqula ixabiso ukuze ufunde indlela echaphazela ngayo imoto.
ukuba olunye ulwazi malunga nee-motor stepper, ulawulo lwazo kunye neenkqubo zeArduino, ndincoma Khuphela ikhosi yethu yenkqubo yasimahla.
Molo, ndakha i-CNC eyenziwe nge-drv8825, umbuzo wam ngowokuba ndingabeka ii-motor 23 2.8a kuba zitshiphu kune-2.5a, ndingaba nengxaki? Enkosi
Molo Yesu,
Enkosi ngokusifunda. Ngokumalunga nombuzo wakho, gcina iliso kumqhubi oza kumsebenzisa ukuze uhambelane nezo injini. Ityala leDRV8825 liphezulu ukuya kuthi ga kwi-2.5A. Jonga ukubona i-TB6600, enokunyuka iye kwi-3.5A ukuba ndikhumbula ngokuchanekileyo ...
Nibuliso!
Salaudos. Lithini ixabiso le-capacitor electrolytic ekumbane wombane. Enkosi.