標(biāo)題: 關(guān)于步進(jìn)電機(jī)加快轉(zhuǎn)速就抖動(dòng)的問(wèn)題 [打印本頁(yè)]

作者: 藍(lán)琪    時(shí)間: 2018-12-6 10:34
標(biāo)題: 關(guān)于步進(jìn)電機(jī)加快轉(zhuǎn)速就抖動(dòng)的問(wèn)題
步進(jìn)電機(jī)加快電機(jī)轉(zhuǎn)速就會(huì)發(fā)生只抖動(dòng)現(xiàn)象,有什么解決辦法嗎
  1. #include<reg52.h>
  2. #define uchar unsigned char
  3. #define uint  unsigned int
  4. #define MotorData P1                  //步進(jìn)電機(jī)控制接口定義
  5. //uchar phasecw[4] ={0x08,0x04,0x02,0x01};//正轉(zhuǎn) 電機(jī)導(dǎo)通相序 D-C-B-A
  6. //uchar phaseccw[4]={0x01,0x02,0x04,0x08};//反轉(zhuǎn) 電機(jī)導(dǎo)通相序 A-B-C-D
  7. uchar phasecw[8] ={0x06,0x07,0x03,0x0b,0x09,0x0d,0x0c,0x0e};//正轉(zhuǎn) 電機(jī)導(dǎo)通相序 D-C-B-A
  8. uchar phaseccw[8]={0x0e,0x0c,0x0d,0x09,0x0b,0x03,0x07,0x06};//反轉(zhuǎn) 電機(jī)導(dǎo)通相序 A-B-C-D
  9. //ms延時(shí)函數(shù)
  10. void Delay_xms(uint x)
  11. {
  12. uint i,j;
  13. for(i=0;i<x;i++)
  14.   for(j=0;j<112;j++);
  15. }
  16. //順時(shí)針轉(zhuǎn)動(dòng)
  17. void MotorCW(void)
  18. {
  19. uchar i;
  20. for(i=0;i<8;i++)
  21.   {
  22.    MotorData=phasecw[i];
  23.    Delay_xms(1);//轉(zhuǎn)速調(diào)節(jié)
  24.   }
  25. }
  26. //逆時(shí)針轉(zhuǎn)動(dòng)
  27. void MotorCCW(void)
  28. {
  29. uchar i;
  30. for(i=0;i<8;i++)
  31.   {
  32.    MotorData=phaseccw[i];
  33.    Delay_xms(1);//轉(zhuǎn)速調(diào)節(jié)
  34.   }
  35. }
  36. //停止轉(zhuǎn)動(dòng)
  37. void MotorStop(void)
  38. {
  39. MotorData=0x00;
  40. }
  41. //主函數(shù)
  42. void main(void)
  43. {
  44. uint i;
  45. Delay_xms(50);//等待系統(tǒng)穩(wěn)定
  46. while(1)
  47. {
  48.   for(i=0;i<500;i++)
  49.   {
  50.    MotorCW();   //順時(shí)針轉(zhuǎn)動(dòng)
  51.   }
  52.   MotorStop();  //停止轉(zhuǎn)動(dòng)
  53.   Delay_xms(500);
  54.   for(i=0;i<500;i++)
  55.   {
  56.    MotorCCW();  //逆時(shí)針轉(zhuǎn)動(dòng)
  57.   }
  58.   MotorStop();  //停止轉(zhuǎn)動(dòng)
  59.   Delay_xms(500);  
  60. }
  61. }
復(fù)制代碼


作者: 黑五類    時(shí)間: 2018-12-6 11:44
幫你找了個(gè)回答:
肯定是轉(zhuǎn)速過(guò)高的問(wèn)題,重新看一下步進(jìn)電機(jī)和驅(qū)動(dòng)器的矩頻特性,和你的負(fù)載力矩,重新計(jì)算一下,是否滿足負(fù)載力矩的要求,負(fù)載力矩包含本身的力矩和加減速力矩,啟動(dòng)力矩小了也能解決一部分問(wèn)題,如果最終不行的話,只能換步進(jìn)電機(jī)或驅(qū)動(dòng)器了(在額定范圍內(nèi)提高驅(qū)動(dòng)器的電源電壓也能適當(dāng)提高點(diǎn)轉(zhuǎn)矩)
作者: sxhwdz    時(shí)間: 2018-12-6 15:18
做成變頻啟動(dòng),頻率逐漸升高
作者: qwrjnb    時(shí)間: 2018-12-6 16:24
跟頻率有一定關(guān)系,也有可能頻率過(guò)低。
作者: bucker    時(shí)間: 2018-12-6 21:22
轉(zhuǎn)速高了發(fā)生抖動(dòng)說(shuō)明扭矩不足了,只能降低最高的驅(qū)動(dòng)頻率、換大功率電機(jī)或加大驅(qū)動(dòng)器的功率。




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1