• tsamba_banner

Nkhani

Kodi servo imayendetsedwa bwanji kudzera pa PWM?

DSpower servo mota nthawi zambiri imayendetsedwa kudzera mu Pulse Width Modulation (PWM). Njira yowongolera iyi imakuthandizani kuti muyike bwino shaft ya servo posintha makulidwe amagetsi otumizidwa ku servo. Umu ndi momwe zimagwirira ntchito:

Pulse Width Modulation (PWM): PWM ndi njira yomwe imaphatikizapo kutumiza ma pulse amagetsi pafupipafupi pafupipafupi. Chofunikira chachikulu ndi m'lifupi kapena kutalika kwa kugunda kulikonse, komwe kumayezedwa mu ma microseconds (µs).

Udindo Wapakati: Mu servo wamba, kugunda kwa 1.5 milliseconds (ms) kumawonetsa malo apakati. Izi zikutanthauza kuti shaft ya servo idzakhala pakatikati pake.

Direction Control: Kuti muwongolere komwe servo imatembenukira, mutha kusintha makulidwe ake. Mwachitsanzo:

Kugunda kosakwana 1.5 ms (mwachitsanzo, 1.0 ms) kungapangitse servo kutembenukira mbali imodzi.
Kugunda kwakukulu kuposa 1.5 ms (mwachitsanzo, 2.0 ms) kungapangitse servo kutembenukira kwina.
Position Control: Kuthamanga kwapadera kumagwirizana mwachindunji ndi malo a servo. Mwachitsanzo:

Kugunda kwa 1.0 ms kungafanane ndi madigiri -90 (kapena ngodya ina, kutengera zomwe servo ikunena).
Kugunda kwa 2.0 ms kungafanane ndi madigiri +90.
Kuwongolera Kopitilira: Potumiza mosalekeza ma siginecha a PWM mosiyanasiyana mosiyanasiyana, mutha kupangitsa kuti servo itembenuke ku ngodya iliyonse yomwe mukufuna mkati mwamitundu yake.

DSpower Servo Update Rate: Kuthamanga komwe mumatumiza ma sign a PWM kungakhudze momwe servo imayankhira komanso momwe imayendera bwino. Ma Servo nthawi zambiri amayankha bwino ma sign a PWM okhala ndi ma frequency a 50 mpaka 60 Hertz (Hz).

Microcontroller kapena Servo Driver: Kuti mupange ndi kutumiza zizindikiro za PWM ku servo, mungagwiritse ntchito microcontroller (monga Arduino) kapena gawo lodzipereka la servo driver. Zida izi zimapanga ma sigino a PWM ofunikira kutengera zomwe mumapereka (mwachitsanzo, mbali yomwe mukufuna) komanso zomwe servo ikufuna.

Nachi chitsanzo mu code ya Arduino kuti muwonetse momwe mungayang'anire servo pogwiritsa ntchito PWM:

DSpower PWM servo

Mu chitsanzo ichi, chinthu cha servo chimapangidwa, chophatikizidwa ndi pini inayake, ndiyeno ntchito yolemba imagwiritsidwa ntchito kukhazikitsa ngodya ya servo. Servo imasunthira ku ngodya imeneyo poyankha chizindikiro cha PWM chopangidwa ndi Arduino.


Nthawi yotumiza: Oct-18-2023