(SKU:RB-01C047)Easy Driver Stepper Motor Driver

來自ALSROBOT WiKi
2015年7月1日 (三) 22:15Arduino77討論 | 貢獻(xiàn)的版本

跳轉(zhuǎn)至: 導(dǎo)航、 搜索
RB-01C047.jpg

目錄

產(chǎn)品概述

2013年哈爾濱奧松機(jī)器人科技有限公司正式成為美國第一大電子開源硬件巨頭公司Sparkfun中國區(qū)域代理商。此款EasyDriver Stepper Motor Driver為全新Sparkfun原裝進(jìn)口步進(jìn)電機(jī)驅(qū)動(dòng)器,其易于使用,能夠與任何可以輸出0-5V(3V 請短路SJ2 )脈沖信號的設(shè)備配合使用。EasyDriver通過接入7-30V電壓來給電機(jī)供電,并且可以驅(qū)動(dòng)幾乎任何一款步進(jìn)電機(jī)。EasyDriver的板載穩(wěn)壓芯片可以設(shè)置為3.3V或者5V,可以直接接入4線步進(jìn)電機(jī),通過微控制器精確的控制步進(jìn)電機(jī)的動(dòng)作。注意:驅(qū)動(dòng)器通電時(shí),請勿連接或斷開電機(jī)。這將導(dǎo)致永久性損壞A3967芯片。

規(guī)格參數(shù)

  1. 驅(qū)動(dòng)芯片:A3967
  2. MS1 and MS2 腳用于控制電機(jī)的細(xì)分(2、4、8),默認(rèn)為8細(xì)分
  3. 兼容任何電壓的4、6、8線步進(jìn)電機(jī)
  4. 可調(diào)電流控制
  5. 電源輸入范圍7-30V,電壓越高,高速時(shí)扭矩越高

使用方法

應(yīng)用例程

控制步進(jìn)電機(jī)

連接示意圖

RB-01C0471.jpg

示例代碼

int dirpin = 2;
int steppin = 3;

void setup() 
{
pinMode(dirpin, OUTPUT);
pinMode(steppin, OUTPUT);
}
void loop()
{

  int i;

  digitalWrite(dirpin, LOW);     // Set the direction.
  delay(100);


  for (i = 0; i<4000; i++)       // Iterate for 4000 microsteps.
  {
    digitalWrite(steppin, LOW);  // This LOW to HIGH change is what creates the
    digitalWrite(steppin, HIGH); // "Rising Edge" so the easydriver knows to when to step.
    delayMicroseconds(500);      // This delay time is close to top speed for this
  }                              // particular motor. Any faster the motor stalls.

  digitalWrite(dirpin, HIGH);    // Change direction.
  delay(100);


  for (i = 0; i<4000; i++)       // Iterate for 4000 microsteps
  {
    digitalWrite(steppin, LOW);  // This LOW to HIGH change is what creates the
    digitalWrite(steppin, HIGH); // "Rising Edge" so the easydriver knows to when to step.
    delayMicroseconds(500);      // This delay time is close to top speed for this
  }                              // particular motor. Any faster the motor stalls.

}

程序效果

此代碼控制的步進(jìn)電機(jī)easydriver板,使它向前和向后旋轉(zhuǎn)。

產(chǎn)品相關(guān)推薦

購買地址:Easy Driver Stepper Motor Driver
論壇地址:奧松機(jī)器人技術(shù)論壇
相關(guān)資料1:示意圖
相關(guān)資料2:步進(jìn)電動(dòng)機(jī)的數(shù)據(jù)表
相關(guān)資料3:easydriver網(wǎng)站
相關(guān)資料4:Arduino教程葡萄牙語
相關(guān)資料5:bildr教程
相關(guān)資料6:快速入門指南