步進電機程序

步進電機程序

ID:47688304

大?。?2.82 KB

頁數(shù):16頁

時間:2019-10-23

步進電機程序_第1頁
步進電機程序_第2頁
步進電機程序_第3頁
步進電機程序_第4頁
步進電機程序_第5頁
資源描述:

《步進電機程序》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。

1、步進電機程序Thestepmotor,28byj-48,andthedriverandprogramming(2010-02-2813:28)reprintthelabel:thestepmotorcategory:McS-51singlechip28byj-48steppingintothemachine:Steppingmotorisanactuatorthatconvertselectricalimpulsesintoangulardisplacement.Popularpoint:whenthestepperdriverreceive

2、sapulsesignal,itisdrivingasteppermotoraccordingtosetthedirectionofafixedAngle(andthestepAngle).Youcancontroltheamountofangulardisplacementbycontrollingthepulse,soastoachieveaccuratepositioning.Atthesametime,youcancontrolthespeedandaccelerationofthemotorbycontrollingthepulse

3、frequency.Thestepmotoris28BYJ48andthevoltageisDC5V-DC12V.Whenaseriesofcontinuouscontrolpulsesareappliedtothestepmotor,itcancontinuouslyrotate?Eachpulsesignalcorrespondingtothesteppermotorofaphaseortwophasewindingcurrentstatuschangeonce,alsocorrespondstotherotorturnedacertai

4、nAngle(Angle)whereastep?Whenthechangeinthecurrentstateiscompletedacycle,therotorturnsatoothspace?Thefour-phasestepmotorcanberunindifferentmodesofcommunication,andthecommonelectricmodehasAsingle(singlephasewinding)fourbeats(a-b-c-d-a???)?Double(doublephasewinding)fourbeats(A

5、B-be-cd-da-AB一???)Eightbeats(a-b-b-b-c-cd-d-d-da-a???)Theredlineiscormectedtothepower5V,theorangewiretothePl.3,theyellowwiretothePl.2,thepinkwiretothePl.1,bluetothePl.0.Sincethesingle-chipinterfacesignalisnotsufficientlylargeenoughtobeamplifiedbytheULN2003andconnectedtothec

6、orrespondingmotorinterface,hereisthefollowing:Orangepowderblue16(Pl)10000x08One,one,zero,zero,zero,zero,c0,1,0,0,0x040,1,1,0,0x060,0,1,0,0x020,0,1,1,1,0x030,0,0,1,0x011,o,0,1,0x09InreverseorderSoyoucandefinetherotationphasesequenceUcharcodeCCW[8]二{0x08,0x0c,0x04,0x06,0x02,0

7、x03,0x09};//reverseclockrotationphasesequenceUcharcodeCW[8]二{0x09,0x01,0x03,0x02,0x06,0x0c,0x08}//theclockisrotatingthephasesequencetableClanguagecode:#include#include#defineucharunsignedchar#defineuintunsignedintUcharcodeCCW[8]二{0x08,0x0c,0x04,0x06,0x

8、02,0x03,0x09};//reverseclockrotationphasesequenceUcharcodeCW[8]二{0x09,0x01,0x03,0x

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文

此文檔下載收益歸作者所有

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文
溫馨提示:
1. 部分包含數(shù)學(xué)公式或PPT動畫的文件,查看預(yù)覽時可能會顯示錯亂或異常,文件下載后無此問題,請放心下載。
2. 本文檔由用戶上傳,版權(quán)歸屬用戶,天天文庫負責(zé)整理代發(fā)布。如果您對本文檔版權(quán)有爭議請及時聯(lián)系客服。
3. 下載前請仔細閱讀文檔內(nèi)容,確認文檔內(nèi)容符合您的需求后進行下載,若出現(xiàn)內(nèi)容與標題不符可向本站投訴處理。
4. 下載文檔時可能由于網(wǎng)絡(luò)波動等原因無法下載或下載錯誤,付費完成后未能成功下載的用戶請聯(lián)系客服處理。