“(SKU:RB-01C049)A4988步進(jìn)電機(jī)驅(qū)動(dòng)板”的版本間的差異
(未顯示1個(gè)用戶的1個(gè)中間版本) | |||
第11行: | 第11行: | ||
6.細(xì)分等級(jí):整步、1/2細(xì)分,1/4細(xì)分,1/8細(xì)分和1/16細(xì)分<br/> | 6.細(xì)分等級(jí):整步、1/2細(xì)分,1/4細(xì)分,1/8細(xì)分和1/16細(xì)分<br/> | ||
==使用方法== | ==使用方法== | ||
+ | ===電路原理圖=== | ||
+ | [[文件:RB01C04903.jpg|700px|縮略圖|居中]] | ||
===硬件連接=== | ===硬件連接=== | ||
驅(qū)動(dòng)板需要3 - 5.5 V的邏輯供電電壓,邏輯電源需要連接在VDD和GND引腳,可以直接從Arduino控制板進(jìn)行取電,同時(shí)需要注意電機(jī)供電電壓范圍為8 - 35 V連接VMOT和GND引腳。如圖所示連接為整步的鏈接方式<br/> | 驅(qū)動(dòng)板需要3 - 5.5 V的邏輯供電電壓,邏輯電源需要連接在VDD和GND引腳,可以直接從Arduino控制板進(jìn)行取電,同時(shí)需要注意電機(jī)供電電壓范圍為8 - 35 V連接VMOT和GND引腳。如圖所示連接為整步的鏈接方式<br/> | ||
第16行: | 第18行: | ||
===示例程序=== | ===示例程序=== | ||
<pre style='color:blue'> | <pre style='color:blue'> | ||
? | int | + | /* Simple Stepper Motor Control Exaple Code |
? | int | + | * |
? | void setup() | + | * by Dejan Nedelkovski, www.HowToMechatronics.com |
? | { | + | * |
? | pinMode( | + | */ |
? | pinMode( | + | // defines pins numbers |
? | + | const int stepPin = 3; | |
? | + | const int dirPin = 4; | |
? | + | ||
? | + | void setup() { | |
? | + | // Sets the two pins as Outputs | |
? | + | pinMode(stepPin,OUTPUT); | |
? | { | + | pinMode(dirPin,OUTPUT); |
? | + | } | |
? | + | void loop() { | |
? | + | digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction | |
? | + | // Makes 200 pulses for making one full cycle rotation | |
? | } | + | for(int x = 0; x < 200; x++) { |
? | + | digitalWrite(stepPin,HIGH); | |
? | + | delayMicroseconds(500); | |
? | + | digitalWrite(stepPin,LOW); | |
? | + | delayMicroseconds(500); | |
? | + | } | |
? | delay( | + | delay(1000); // One second delay |
+ | |||
+ | digitalWrite(dirPin,LOW); //Changes the rotations direction | ||
+ | // Makes 400 pulses for making two full cycle rotation | ||
+ | for(int x = 0; x < 400; x++) { | ||
+ | digitalWrite(stepPin,HIGH); | ||
+ | delayMicroseconds(500); | ||
+ | digitalWrite(stepPin,LOW); | ||
+ | delayMicroseconds(500); | ||
+ | } | ||
+ | delay(1000); | ||
} | } | ||
</pre> | </pre> |
2016年4月27日 (三) 17:08的最后版本
目錄 |
產(chǎn)品概述
2013年哈爾濱奧松機(jī)器人科技有限公司正式成為美國(guó)第一大機(jī)器人零件巨頭公司Pololu中國(guó)區(qū)域總代理。此款產(chǎn)品為Allegros公司出品的A4988雙路微步進(jìn)電機(jī)驅(qū)動(dòng)板。該驅(qū)動(dòng)板具有可調(diào)節(jié)限制電流,提供過(guò)流和過(guò)熱保護(hù)以及五種不同的細(xì)分(最低為1/16細(xì)分)。此款步進(jìn)電機(jī)驅(qū)動(dòng)板工作電壓為8-35V,在沒(méi)有散熱片或是空氣流動(dòng)的時(shí)侯,每相最高可提供約1A的電流(在有足夠的冷卻的情況下,每相可最高提供約2A的電流)。
規(guī)格參數(shù)
1.產(chǎn)品名稱:A4988步進(jìn)電機(jī)驅(qū)動(dòng)板
2.產(chǎn)品貨號(hào):RB-01C049
3.工作電壓:8V-35V
4.每相連續(xù)電流:1A(沒(méi)有散熱片或空氣流動(dòng))
每相最大電流:2A(有足夠的額外的冷卻)
5.邏輯電壓:3V-5.5V
6.細(xì)分等級(jí):整步、1/2細(xì)分,1/4細(xì)分,1/8細(xì)分和1/16細(xì)分
使用方法
電路原理圖
硬件連接
驅(qū)動(dòng)板需要3 - 5.5 V的邏輯供電電壓,邏輯電源需要連接在VDD和GND引腳,可以直接從Arduino控制板進(jìn)行取電,同時(shí)需要注意電機(jī)供電電壓范圍為8 - 35 V連接VMOT和GND引腳。如圖所示連接為整步的鏈接方式
示例程序
/* Simple Stepper Motor Control Exaple Code * * by Dejan Nedelkovski, www.HowToMechatronics.com * */ // defines pins numbers const int stepPin = 3; const int dirPin = 4; void setup() { // Sets the two pins as Outputs pinMode(stepPin,OUTPUT); pinMode(dirPin,OUTPUT); } void loop() { digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction // Makes 200 pulses for making one full cycle rotation for(int x = 0; x < 200; x++) { digitalWrite(stepPin,HIGH); delayMicroseconds(500); digitalWrite(stepPin,LOW); delayMicroseconds(500); } delay(1000); // One second delay digitalWrite(dirPin,LOW); //Changes the rotations direction // Makes 400 pulses for making two full cycle rotation for(int x = 0; x < 400; x++) { digitalWrite(stepPin,HIGH); delayMicroseconds(500); digitalWrite(stepPin,LOW); delayMicroseconds(500); } delay(1000); }
程序效果
將程序下載到Arduino控制器中,然后進(jìn)行步進(jìn)電機(jī)及邏輯部分的供電,供電后可以發(fā)現(xiàn)步進(jìn)電機(jī)先順時(shí)針旋轉(zhuǎn)再逆時(shí)針旋轉(zhuǎn)。
產(chǎn)品相關(guān)推薦
產(chǎn)品購(gòu)買地址
Arduino兼容 A4988微步電機(jī)驅(qū)動(dòng)器 雙路驅(qū)動(dòng)板 POLOLU原裝進(jìn)口
周邊產(chǎn)品推薦
42BYGHW609步進(jìn)電機(jī) 42HYGHW 步進(jìn)電機(jī)