Ks0281 Keyestudio Reprap Stepper Motor Driver: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Keyestudio Reprap Stepper Motor Driver==
 
<br>[[File:Ks0281.png|500px|frameless|thumb]]<br> [[File:KS0281 (3).jpg|thumb]]
<br>
==Keyestudio Reprap A4988 Stepper Motor Driver==
<br>[[File:Ks0281.png|500px|frameless|thumb]]<br>  
 
<br>
 
==Introduction==
==Introduction==
This stepper motor driver is powered by A4988, a DMOS microstep driver with converter and overcurrent protection. It is available in full, half, 1/4, 1/8 and 1/16 stepping modes to operate bipolar stepper motors with output drive performance up to 35 V and ± 2A. The A4988 includes a fixed turn-off time current regulator that operates in slow or mixed decay mode.
This stepper motor driver is powered by A4988, a DMOS microstep driver with converter and overcurrent protection. It is available in full, half, 1/4, 1/8 and 1/16 stepping modes to operate bipolar stepper motors with output drive performance up to 35 V and ± 2A. <br>
The converter is the key to easy implementation of the A4988. As long as the "step" input carries in a pulse, you can drive the motor to produce micro-step. There is no need for phase sequence tables, high frequency control lines or complex interface programming. The A4988 interface is ideal for complex microprocessors that are not available or overloaded.
The A4988 includes a fixed turn-off time current regulator that operates in slow or mixed decay mode.<br>
The converter is the key to easy implementation of the A4988. As long as the "step" input carries in a pulse, you can drive the motor to produce micro-step.<br>
There is no need for phase sequence tables, high frequency control lines or complex interface programming. The A4988 interface is ideal for complex microprocessors that are not available or overloaded.<br>
<br>[[File:Ks0281-3.png|500px|frameless|thumb]]<br>


<br>
==Specification==
==Specification==
* 1.With only a simple step and direction control interface;
* 1.With only a simple step and direction control interface;
Line 14: Line 23:
<br>[[File:KS0281 (8).jpg|500px|frameless|thumb]]<br>  
<br>[[File:KS0281 (8).jpg|500px|frameless|thumb]]<br>  


<br>
==Setting method of working mode ==
==Setting method of working mode ==
<br>[[File:Ks0281-.png|500px|frameless|thumb]]<br>
<br>[[File:Ks0281-.png|600px|frameless|thumb]]<br>
 
<br>
== Adjusting Drive current ==
* 1. When use the A4988 to drive the stepper motor, we can turn the potentiometer on the A4988 module to adjust the upper limit of the output current. <br>
[[File:281图片1.png|500px|frameless|thumb]] The voltage between the marked potentiometer and GND is '''VREF'''.  <br>
* 2. The calculation formula of the current upper limit is '''I=VREF/(8*Rs)'''  <br>
* 3. '''Rs''' is the reference resistor; the reference resistor for this module is 0.05Ω. '''VREF=I*8*0.05=0.4I'''  <br>
* 4. The current limit of the module is 2A, so '''VREF=2*0.4''', that is, 0.8V.  <br>
 
<br>


==Connection Diagram==
==Connection Diagram==
It needs to connect DC 8-15V between motor power VMOT and GND.
It needs to connect DC 8-15V between motor power VMOT and GND.<br>
<br>[[File:Ks0281-2.png|500px|frameless|thumb]]<br>
<br>[[File:Ks0281-2.png|800px|frameless|thumb]]<br>
 
<br>
 
== PINOUTS ==
<br>[[File:KS0281-5.png|600px|frameless|thumb]]<br>


<br>
==Sample Code ==
==Sample Code ==
<pre>
<pre>
int dirPin = 7;
int dirPin = 7;
Line 48: Line 73:
</pre>
</pre>


<br>
== Result ==
== Result ==
The selection end MS1, MS2, MS3 of three modes are all connected to GND, that is, full-step mode, and the motor needs 200 stepping values or a stepping 1.8° to turn a round. In the experiment, we first let the stepper motor reverse 8 circles and delay 0.5 seconds; then turn 40 circles and delay 0.5 seconds. If it is an half-step mode, then the number of both positive and reverse circle should be halved.
The selection end MS1, MS2, MS3 of three modes are all connected to GND, that is, full-step mode, and the motor needs 200 stepping values or a stepping 1.8° to turn a round. <br>
In the experiment, we first let the stepper motor reverse 8 circles and delay 0.5 seconds; then turn 40 circles and delay 0.5 seconds. If it is an half-step mode, then the number of both positive and reverse circle should be halved.
<br>[[File:Ks0281-1.png|800px|frameless|thumb]]<br>
 
<br>
 
==Resources==


<br>[[File:KS0281 (5).jpg|500px|frameless|thumb]]<br>
* '''Test Code:''' <br>
https://fs.keyestudio.com/KS0281


==Resource==
* '''VIDEO:'''<br>
'''PDF File:''' <br>
http://video.keyestudio.com/ks0281/
http://www.keyestudio.com/files/index/download/id/1505357933/
 
 
<br>


==Buy from ==
==Buy from ==
*[https://www.keyestudio.com/free-shipping-5pcs-lot-a4988-stepper-m-otor-driver-heatsink-for-3-d-printerreprapramps14-for-arduino-p0347.html  Official website ]
*[https://www.aliexpress.com/store/product/Free-shipping-Reprap-Stepper-Driver-Stepper-Motor-Driver-A4988-with-fins/1452162_2048992205.html?spm=2114.12010612.8148356.43.72b9753bGzejHT    Get one now on aliexpress ]


http://www.keyestudio.com/keyestudio-reprap-stepper-motor-driver.html
[[Category: Module]]
[[Category: Module]]

Latest revision as of 11:17, 8 January 2021


Keyestudio Reprap A4988 Stepper Motor Driver


thumb


Introduction

This stepper motor driver is powered by A4988, a DMOS microstep driver with converter and overcurrent protection. It is available in full, half, 1/4, 1/8 and 1/16 stepping modes to operate bipolar stepper motors with output drive performance up to 35 V and ± 2A.
The A4988 includes a fixed turn-off time current regulator that operates in slow or mixed decay mode.
The converter is the key to easy implementation of the A4988. As long as the "step" input carries in a pulse, you can drive the motor to produce micro-step.
There is no need for phase sequence tables, high frequency control lines or complex interface programming. The A4988 interface is ideal for complex microprocessors that are not available or overloaded.

thumb


Specification

  • 1.With only a simple step and direction control interface;
  • 2.Five different step modes: full, half, 1/4, 1/8 and 1/16;
  • 3.Adjustable potentiometer can adjust the maximum current output, resulting in a higher step rate;
  • 4.Automatic current decay mode detection / selection;
  • 5.Overheat shutdown circuit, undervoltage lockout, cross current protection;
  • 6.Ground short circuit protection and load short circuit protection.


thumb


Setting method of working mode


thumb


Adjusting Drive current

  • 1. When use the A4988 to drive the stepper motor, we can turn the potentiometer on the A4988 module to adjust the upper limit of the output current.

thumb The voltage between the marked potentiometer and GND is VREF.

  • 2. The calculation formula of the current upper limit is I=VREF/(8*Rs)
  • 3. Rs is the reference resistor; the reference resistor for this module is 0.05Ω. VREF=I*8*0.05=0.4I
  • 4. The current limit of the module is 2A, so VREF=2*0.4, that is, 0.8V.


Connection Diagram

It needs to connect DC 8-15V between motor power VMOT and GND.

thumb


PINOUTS


thumb


Sample Code

int dirPin = 7;
int stepperPin = 8;
void setup() {
pinMode(dirPin, OUTPUT);
pinMode(stepperPin, OUTPUT);
}
void step(boolean dir,int steps){
digitalWrite(dirPin,dir);
delay(50);
for(int i=0;i<steps;i++){
digitalWrite(stepperPin, HIGH);
delayMicroseconds(800);
digitalWrite(stepperPin, LOW);
delayMicroseconds(800);
}
}
void loop(){
step(true,1600);
delay(500);
step(false,1600*5);
delay(500);
}


Result

The selection end MS1, MS2, MS3 of three modes are all connected to GND, that is, full-step mode, and the motor needs 200 stepping values or a stepping 1.8° to turn a round.
In the experiment, we first let the stepper motor reverse 8 circles and delay 0.5 seconds; then turn 40 circles and delay 0.5 seconds. If it is an half-step mode, then the number of both positive and reverse circle should be halved.
thumb


Resources

  • Test Code:

https://fs.keyestudio.com/KS0281

  • VIDEO:

http://video.keyestudio.com/ks0281/



Buy from