Difference between revisions of "Microduino-Shield Stepper"
(→Specification) |
(→Specification) |
||
Line 53: | Line 53: | ||
|} | |} | ||
*Stepping motor has a fixed step length generally, such as 1.8°(200 step/turn). A4988 driver can support higher microstep driving way, for example, under the 1/4 mode, the motor will lift the driving resolution of the motor to 800 microsteps per turn through using four different currents, to get a higher control precision. You can get 5 different microstep resolution rates(the default is 1/8 stepping mode) through setting MS1,MS2 and MS3, as shown in the following picture: | *Stepping motor has a fixed step length generally, such as 1.8°(200 step/turn). A4988 driver can support higher microstep driving way, for example, under the 1/4 mode, the motor will lift the driving resolution of the motor to 800 microsteps per turn through using four different currents, to get a higher control precision. You can get 5 different microstep resolution rates(the default is 1/8 stepping mode) through setting MS1,MS2 and MS3, as shown in the following picture: | ||
− | [[File: | + | [[File:Stepper_Shield_MSx_Select.png||600px|center]] |
*You can adjust the maximum output current of the stepping motor through adjusting the potentiometer on the driver. And you can make the stepping motor work on above-fixed voltage to achieve a higher stepping rate. When the stepping motor uses A4988 to drive, the current actually measured of the stepping motor is 70% approximately of the upper limit of the A4988 output current generally, so the current output upper limit needed to be set is the rated current of motor calibration divided by 0.7. You can use the following method to calculate. Work out the corresponding limited current (the current sensing resistor here is 0.05Ω)through measuring the voltage REF pin . | *You can adjust the maximum output current of the stepping motor through adjusting the potentiometer on the driver. And you can make the stepping motor work on above-fixed voltage to achieve a higher stepping rate. When the stepping motor uses A4988 to drive, the current actually measured of the stepping motor is 70% approximately of the upper limit of the A4988 output current generally, so the current output upper limit needed to be set is the rated current of motor calibration divided by 0.7. You can use the following method to calculate. Work out the corresponding limited current (the current sensing resistor here is 0.05Ω)through measuring the voltage REF pin . | ||
'''Current limitation = VREG X 2.5''' | '''Current limitation = VREG X 2.5''' |
Latest revision as of 20:54, 3 May 2017
Language: | English • 中文 |
---|
Microduino-Shield Stepper is a DMOS microstep driving plate with a transverter and overcurrent protection, which can drive a two phase stepping motor under the full, half, 1/4, 1/8 and 1/16 stepping mode, and can operate four motors at most at the same time.
ContentsFeaturesStepping motor is a kind of electromagnetic device which can transform the pulse signal into corresponding angular displacement(or line displacement), and it is a special motor. Motors operate continuously generally, while the stepping motor has positioning and operating two basic states. When there is a pulse inputted, the stepping motor rotates step by step, and it can turn a fixed angle each time to give it a pulse signal.
Specification
Current limitation = VREG X 2.5 Therefor, if you want the motor coil to get 1A current, the current limitation should be 1A/0.7 = 1.4A, which is equivalent to VREF = 1.4A/2.5 = 0.56V. You should adjust the VREF voltage to 0.56V through adjusting the potentiometer.
Note: When the driver board has worked under a large current for a long time, the chip will be hot. If possible, you should add heat sink on it, to help the chip cool.
Document
【Shield Stepper schematic diagram】
DevelopmentIt is mainly used in the balanced car. Upin27 interface can be stacked with Microduino extension module to implement the second development.
Connect the stepping motor to the MotorA interface with 2.54 4pin connecting cable. The effect of the program is to make the stepping motor turn a angle, then stop for 500ms and then continue rotating toward. If you want to make it rotate reversely, you can cancel the comment part, and only keep the above two lines. //Claim the driving pin D5 , A0 and enable D4 of pin Motor1.
#define MOTOR_EN 4 //PORTB,0
#define MOTOR1_DIR A0 //PORTA,7
#define MOTOR1_STEP 5 //PORTB,1
void setup() {
// put your setup code here, to run once:
pinMode(MOTOR_EN, OUTPUT);
pinMode(MOTOR1_DIR, OUTPUT);
pinMode(MOTOR1_STEP, OUTPUT);
digitalWrite(MOTOR_EN, LOW); //Enable
}
void step(boolean dir, int steps) //Stepping function, the first variable is direction and the second is the number of the step, namely the angle that it turns.
{
digitalWrite(MOTOR1_DIR, dir);
delay(5);
for (int i = 0; i < steps; i++) {
digitalWrite(MOTOR1_STEP, HIGH);
delayMicroseconds(200);
digitalWrite(MOTOR1_STEP, LOW);
delayMicroseconds(200);
}
}
void loop() {
step(1, 1000); //Rotate forward
delay(500);
// step(0,1000); //Turn over
// delay(500);
} ApplicationOpen Source Self-balance Robot System PurchaseHistoryGalleryVideo |