Arduino CNC shield V3 3D A4988 engraving machine expansion board printer driver board

$3.10

sold: 3

Category:

Description

Product Name: Arduino CNC shield V3 3D A4988 engraving machine expansion board printer driver board

product introduction

The expansion board can be used for engraving machine, 3D printer driver expansion board, a total of 4 slots stepper motor drive module, (note that Moto Sako does not contain the A4988 stepper motor drive module, need to be in the shop to buy), can drive 4 into the motor, and each way of stepping motor are only 2 IO port, that is to say, the 6 IO port can be a very good management of the 3 step motor, very easy to use, bid farewell to the traditional stepping motor complex operation.

 

Arduino UNO and IO port module relationship

The basic control of the stepper motor to the pin, the other pin is in the engraving machine, or 3D printer is used, here we do not explain, the corresponding IO pictured above.
Arduino UNO — — — – – extended board
8 — — — — —EN (stepper motor drive enable, active low)
7 — — — — — Z.DIR (Z axis direction)
6 — — — — — Y.DIR (Y axis direction)
5 – – ——– X.DIR (X axis direction)
4 – – – ——-Z.STEP (Z axis stepping control)
3 – – – ——-Y.STEP (Y axis stepping control)
2 — — — — X.STEP (X axis stepping control)
“Here is a simple stepper motor control program,
#define EN / / 8 stepping motor enable, active low
#define X_DIR //X 5 axis stepper motor control direction
#define Y_DIR //y 6 axis stepper motor control direction
#define Z_DIR //z 7 axis stepper motor control direction
#define X_STP 2 //x axis stepping control
#define Y_STP 3 //y axis stepping control
#define Z_STP 4 //z axis stepping control
*
/ / function: step function: stepper motor control direction, the number of steps.
Parameters: dir / / dirPin corresponding direction control, stepper motor DIR pins, stepperPin corresponding stepper motor step pins, steps step steps
/ / no return value
* /
Void step (Boolean dir, byte dirPin, byte stepperPin, 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 (setup) {// stepper motor will be used in the IO pin is set to output
PinMode (X_DIR, OUTPUT); pinMode (X_STP, OUTPUT);
PinMode (Y_DIR, OUTPUT); pinMode (Y_STP, OUTPUT);
PinMode (Z_DIR, OUTPUT); pinMode (Z_STP, OUTPUT);
PinMode (EN, OUTPUT);
DigitalWrite (EN, LOW);
}
Void (loop) {
Step (false, X_DIR, X_STP, 200); the //X axis motor reversal 1 laps, the 200 step is a circle
Step (false, Y_DIR, Y_STP, 200); the //y axis motor reversal 1 laps, the 200 step is a circle
Step (false, Z_DIR, Z_STP, 200); the //z axis motor reversal 1 laps, the 200 step is a circle
Delay (1000);
Step (true, X_DIR, X_STP, 200); the //X axis motor is 1 turn, 200 step into a circle
Step (true, Y_DIR, Y_STP, 200); the //y axis motor is 1 turn, 200 step into a circle
Step (true, Z_DIR, Z_STP, 200); the //z axis motor is 1 turn, 200 step into a circle
Delay (1000);
}
The experimental phenomena: stepper motor reversal in a circle, and then pause a second, being a circle, so the cycle.
It is worth noting that not inserted opposite when inserting A4988 module, stepper motor wiring is:
2A 2B is a group of (red, green), 1A, 1B as a group (blue and yellow) to change the direction of change, the position of a group such as 2A, 2B and exchange.

Reviews

There are no reviews yet.

Be the first to review “Arduino CNC shield V3 3D A4988 engraving machine expansion board printer driver board”