Matoorka DSpower servo waxaa caadi ahaan lagu maamulaa iyada oo loo marayo Modulation Width Modulation (PWM). Habkan xakamaynta ayaa kuu ogolaanaya inaad si sax ah u dhigto shafka wax soo saarka ee servo adigoo kala duwanaya ballaca garaaca korantada ee loo diro servo. Waa kan sida ay u shaqeyso:
Modulation Width Pulse (PWM): PWM waa farsamo ku lug leh soo dirida garaaca korantada ee taxane ah oo joogto ah. Halbeegga muhiimka ah waa ballaca ama muddada garaaca garaaca wadnaha kasta, kaas oo sida caadiga ah lagu cabbiro microse seconds (µs).
Booska Xarunta: Goobaha caadiga ah, garaaca garaaca 1.5 millise seconds (ms) ayaa tilmaamaya booska dhexe. Tani waxay ka dhigan tahay in shafka wax soo saarka ee servo uu ahaan doono barta dhexe.
Xakamaynta jihada: Si loo xakameeyo jihada uu servo-gu u leexdo, waxaad hagaajin kartaa ballaca garaaca wadnaha. Tusaale ahaan:
garaaca garaaca in ka yar 1.5 ms (tusaale, 1.0 ms) waxa ay keeni doontaa in servo-gu u leexdo hal dhinac.
Wadnaha garaaca ka weyn 1.5 ms (tusaale, 2.0 ms) waxay keeni kartaa in servo-ga uu u leexdo dhanka ka soo horjeeda.
Xakamaynta booska: Baaxadda garaaca wadnaha ee gaarka ah waxay si toos ah ula xiriirtaa booska servo. Tusaale ahaan:
garaaca garaaca 1.0 ms waxa laga yaabaa inuu u dhigmo -90 darajo (ama xagal kale oo gaar ah, iyadoo ku xidhan sifooyinka servo).
garaaca garaaca 2.0 ms wuxuu u dhigmi karaa +90 digrii.
Xakamaynta Joogtada ah: Adigoo si joogto ah u diraya calaamadaha PWM ee ballacyada garaaca wadnaha ee kala duwan, waxaad ka dhigi kartaa servo inuu u wareego xagal kasta oo la rabo oo ku dhex jira xadka la cayimay.
Heerka Cusbooneysiinta ee DSpower Servo: Xawaaraha aad ku dirto calaamadahan PWM waxay saamayn kartaa sida ugu dhakhsaha badan ee servo uu uga jawaabo iyo sida habsamida leh ee uu u socdo. Servos waxay caadi ahaan si fiican uga jawaabaan calaamadaha PWM iyagoo wata inta u dhaxaysa 50 ilaa 60 Hertz (Hz).
Microcontroller ama Servo Driver: Si aad u soo saarto oo aad u dirto calaamadaha PWM ee servo, waxaad isticmaali kartaa microcontroller (sida Arduino) ama moduleka darawalka servo ee gaarka ah. Qalabyadani waxay dhaliyaan calaamadaha PWM ee lagama maarmaanka ah ee ku salaysan gelinta aad bixiso (tusaale, xagasha la rabo) iyo qeexida servo.
Waa kuwan tusaale ku jira koodka Arduino si aad u muujiso sida aad u xakameyn karto servo adoo isticmaalaya PWM:
Tusaalahan, shay servo ayaa la sameeyay, oo lagu dhejiyay biin gaar ah, ka dibna shaqada qorista ayaa loo isticmaalaa in lagu dejiyo xagasha servo. Adeeggu wuxuu u guuraa xagashaas isagoo ka jawaabaya calaamada PWM ee uu sameeyay Arduino.
Waqtiga boostada: Oct-18-2023