(SKU:RB-01C047)Easy Driver Stepper Motor Driver
来自ALSROBOT WiKi
目录 |
产品概述
2013年哈尔滨奥松机器人科技有限公司正式成为美国第一大电子开源硬件巨头公司Sparkfun中国区域代理商。此款EasyDriver Stepper Motor Driver为全新Sparkfun原装进口步进电机驱动器,其易于使用,能够与任何可以输出0-5V(3V 请短路SJ2 )脉冲信号的设备配合使用。EasyDriver通过接入7-30V电压来给电机供电,并且可以驱动几乎任何一款步进电机。EasyDriver的板载稳压芯片可以设置为3.3V或者5V,可以直接接入4线步进电机,通过微控制器精确的控制步进电机的动作。注意:驱动器通电时,请勿连接或断开电机。这将导致永久性损坏A3967芯片。
规格参数
- 驱动芯片:A3967
- MS1 and MS2 脚用于控制电机的细分(2、4、8),默认为8细分
- 兼容任何电压的4、6、8线步进电机
- 可调电流控制
- 电源输入范围7-30V,电压越高,高速时扭矩越高
使用方法
应用例程
控制步进电机
连接示意图
示例代码
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. }
程序效果
此代码控制的步进电机easydriver板,使它向前和向后旋转。
产品相关推荐
购买地址:Easy Driver Stepper Motor Driver
论坛地址:奥松机器人技术论坛
相关资料1:示意图
相关资料2:步进电动机的数据表
相关资料3:easydriver网站
相关资料4:Arduino教程葡萄牙语
相关资料5:bildr教程
相关资料6:快速入门指南