Difference between revisions of "Microduino-Shield Stepper"
(→Application) |
(→Application) |
||
Line 113: | Line 113: | ||
==Application== | ==Application== | ||
− | <big>'''[[Open Source Balanced Robot | + | <big>'''[[Open Source Balanced Robot]]'''</big> |
==Purchase== | ==Purchase== |
Revision as of 03:10, 25 July 2016
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);
} ApplicationPurchaseHistoryGalleryVideo |