“(SKU:RB-01C047)Easy Driver Stepper Motor Driver”的版本間的差異

來自ALSROBOT WiKi
跳轉(zhuǎn)至: 導(dǎo)航、 搜索
?相關(guān)學(xué)習(xí)資料
?相關(guān)學(xué)習(xí)資料
 
(未顯示1個用戶的4個中間版本)
第9行: 第9行:
 
# 電源輸入范圍7-30V,電壓越高,高速時扭矩越高
 
# 電源輸入范圍7-30V,電壓越高,高速時扭矩越高
 
==使用方法==
 
==使用方法==
?
 
?
==應(yīng)用例程==
 
?
控制步進電機
 
 
===連接示意圖===
 
===連接示意圖===
?
[[文件:RB-01C0471.jpg|700px|縮略圖|居中]]
+
使用Easy Driver Stepper Motor Driver 來控制四線兩向步進電機接線圖
 +
[[文件:RB-01C047101.png|700px|縮略圖|居中]]
 +
 
 
===示例代碼===
 
===示例代碼===
 
<pre style='color:blue'>int dirpin = 2;
 
<pre style='color:blue'>int dirpin = 2;
第25行: 第24行:
 
void loop()
 
void loop()
 
{
 
{
?
 
 
   int i;
 
   int i;
?
 
 
   digitalWrite(dirpin, LOW);    // Set the direction.
 
   digitalWrite(dirpin, LOW);    // Set the direction.
 
   delay(100);
 
   delay(100);
?
 
?
 
 
   for (i = 0; i<4000; i++)      // Iterate for 4000 microsteps.
 
   for (i = 0; i<4000; i++)      // Iterate for 4000 microsteps.
 
   {
 
   {
第38行: 第33行:
 
     delayMicroseconds(500);      // This delay time is close to top speed for this
 
     delayMicroseconds(500);      // This delay time is close to top speed for this
 
   }                              // particular motor. Any faster the motor stalls.
 
   }                              // particular motor. Any faster the motor stalls.
?
 
 
   digitalWrite(dirpin, HIGH);    // Change direction.
 
   digitalWrite(dirpin, HIGH);    // Change direction.
 
   delay(100);
 
   delay(100);
?
 
?
 
 
   for (i = 0; i<4000; i++)      // Iterate for 4000 microsteps
 
   for (i = 0; i<4000; i++)      // Iterate for 4000 microsteps
 
   {
 
   {
第49行: 第41行:
 
     delayMicroseconds(500);      // This delay time is close to top speed for this
 
     delayMicroseconds(500);      // This delay time is close to top speed for this
 
   }                              // particular motor. Any faster the motor stalls.
 
   }                              // particular motor. Any faster the motor stalls.
?
 
 
}</pre>
 
}</pre>
 
===程序效果===
 
===程序效果===
?
此代碼控制的步進電機easydriver板,使它向前和向后旋轉(zhuǎn)。
+
將此代碼下載到Arduino控制器中,通電之后步進電機先順時針旋轉(zhuǎn)然后再逆時針旋轉(zhuǎn)。
 
==產(chǎn)品相關(guān)推薦==
 
==產(chǎn)品相關(guān)推薦==
 
[[文件:erweima.png|230px|無框|右]]
 
[[文件:erweima.png|230px|無框|右]]
第60行: 第51行:
 
[https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-3667083713.18.KUCqwi&id=521084511532 42BYGHW609步進電機]<br/>
 
[https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-3667083713.18.KUCqwi&id=521084511532 42BYGHW609步進電機]<br/>
 
===相關(guān)問題解答===
 
===相關(guān)問題解答===
 +
[http://www.makerspace.cn/forum.php?mod=viewthread&tid=5468&fromuid=10780 【翻譯】EasyDriver V4.4 步進電機驅(qū)動板中文說明書]<br />
 
[http://www.geek-workshop.com/thread-8746-1-1.html Easy Driver Stepper Motor Driver如何使用]<br />
 
[http://www.geek-workshop.com/thread-8746-1-1.html Easy Driver Stepper Motor Driver如何使用]<br />
 
[http://www.schmalzhaus.com/EasyDriver/Examples/EasyDriverExamples.html Easy Driver Stepper Motor Driver使用例子程序]<br />
 
[http://www.schmalzhaus.com/EasyDriver/Examples/EasyDriverExamples.html Easy Driver Stepper Motor Driver使用例子程序]<br />
 +
 
===相關(guān)學(xué)習(xí)資料===
 
===相關(guān)學(xué)習(xí)資料===
 
[http://www.geek-workshop.com/thread-9234-1-1.html Easy Driver Stepper Motor Driver中文翻譯資料]<br />
 
[http://www.geek-workshop.com/thread-9234-1-1.html Easy Driver Stepper Motor Driver中文翻譯資料]<br />
?
[http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Robotics/EasyDriver_v44.pdf 示意圖]<br />
+
[http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Robotics/EasyDriver_v44.pdf Easy Stepper Motor Driver 原理圖]<br />
 
[http://www.sparkfun.com/datasheets/Robotics/A3967.pdf 步進電動機的數(shù)據(jù)表]<br />
 
[http://www.sparkfun.com/datasheets/Robotics/A3967.pdf 步進電動機的數(shù)據(jù)表]<br />
?
[http://schmalzhaus.com/EasyDriver/ easydriver網(wǎng)站]<br />
+
[http://schmalzhaus.com/EasyDriver/ EasyDriver網(wǎng)站]<br />
 
[http://bildr.org/2011/06/easydriver/ bildr教程]<br />
 
[http://bildr.org/2011/06/easydriver/ bildr教程]<br />
 
[https://www.sparkfun.com/tutorials/400 快速入門指南]<br/>
 
[https://www.sparkfun.com/tutorials/400 快速入門指南]<br/>
 
[http://www.makerspace.cn/portal.php 奧松機器人技術(shù)論壇]<br/>
 
[http://www.makerspace.cn/portal.php 奧松機器人技術(shù)論壇]<br/>

2015年10月8日 (四) 17:17的最后版本

RB-01C047.jpg

目錄

產(chǎn)品概述

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

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

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

使用方法

連接示意圖

使用Easy Driver Stepper Motor Driver 來控制四線兩向步進電機接線圖

RB-01C047101.png

示例代碼

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.
}

程序效果

將此代碼下載到Arduino控制器中,通電之后步進電機先順時針旋轉(zhuǎn)然后再逆時針旋轉(zhuǎn)。

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

Erweima.png

產(chǎn)品購買地址

Easy Driver Stepper Motor Driver

周邊產(chǎn)品推薦

42BYGHW609步進電機

相關(guān)問題解答

【翻譯】EasyDriver V4.4 步進電機驅(qū)動板中文說明書
Easy Driver Stepper Motor Driver如何使用
Easy Driver Stepper Motor Driver使用例子程序

相關(guān)學(xué)習(xí)資料

Easy Driver Stepper Motor Driver中文翻譯資料
Easy Stepper Motor Driver 原理圖
步進電動機的數(shù)據(jù)表
EasyDriver網(wǎng)站
bildr教程
快速入門指南
奧松機器人技術(shù)論壇