步进电机程序

步进电机程序

ID:47688304

大小:92.82 KB

页数:16页

时间:2019-10-23

步进电机程序_第1页
步进电机程序_第2页
步进电机程序_第3页
步进电机程序_第4页
步进电机程序_第5页
资源描述:

《步进电机程序》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

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

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。