CNC shield v3 engraving machine expansion board 3D printer A4988 driver board

Availability:

100 in stock

Sales 0

$11.98

100 in stock

Product description:

The expansion board can be used as a drive expansion board for engraving machines, 3D printers, etc. There are a total of 4 steps of the stepper motor drive module slot (note that the board does not include the A4988 stepper motor drive module), which can drive 4 channels. The motor, and each stepping motor only needs 2 IO ports, that is to say, 6 IO ports can manage 3 stepping motors very well, which is very convenient to use, and it is cumbersome to say goodbye to the traditional stepping motor.

Introduction of the correspondence between UNO and module IO port:

The basic control of the stepper motor requires the pins. The other pins are used in the engraving machine or the 3D printer. We will not explain them here. The IO corresponds to the above figure.

Arduino UNO———————- expansion board

8 ———————— EN (stepper motor drive enable, active low)

7 ———————– Z.DIR (direction control of Z axis)

6 ———————– Y.DIR (direction control of the Y axis)

5 ———————– X.DIR (X-axis direction control)

4 ———————- Z.STEP (Z-axis step control)

3 ———————- Y.STEP (stepping control of Y axis)

2 ———————- X.STEP (X-axis step control)

//The following is a simple stepper motor control program.

#define EN 8 //Stepper motor enable, active low

#define X_DIR 5 //X-axis Stepper motor direction control

#define Y_DIR 6 //y ​​axis stepper motor direction control

#define Z_DIR 7 //z axis Stepper motor direction control

#define X_STP 2 //x-axis step control

#define Y_STP 3 //y axis step control

#define Z_STP 4 //z axis step control

/*

/ / Function: step Function: control the direction of the stepper motor, the number of steps.

//Parameter: dir direction control, dirPin corresponds to the DIR pin of the stepper motor, stepperPin corresponds to the step pin of the stepper motor, steps step number of 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(){//Set the IO pin used by the stepper motor 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); //X-axis motor reverses 1 turn, 200 steps for a circle

Step(false, Y_DIR, Y_STP, 200); //y-axis motor reverses 1 turn, 200 steps for one turn

Step(false, Z_DIR, Z_STP, 200); //z-axis motor reverses 1 turn, 200 steps for one turn

Delay(1000);

Step(true, X_DIR, X_STP, 200); //X-axis motor is rotating 1 turn, 200 steps is a circle

Step(true, Y_DIR, Y_STP, 200); //y-axis motor rotates one turn, 200 steps for one turn

Step(true, Z_DIR, Z_STP, 200); //z-axis motor rotates one turn, 200 steps for one turn

Delay(1000);

}

Experimental phenomena:

The stepper motor reverses one revolution, pauses for 1 second, and then passes a circle, and so on.

It is worth noting that when plugging in the A4988 module, be careful not to insert it.

The stepper motor wiring method is:

2A, 2B are a group (red, green), 1A, 1B is a group (blue, yellow) want to change direction, change the position of one group, such as 2A, exchange with 2B.

CNC shield v3 engraving machine expansion board 3D printer A4988 driver boardCNC shield v3 engraving machine expansion board 3D printer A4988 driver boardCNC shield v3 engraving machine expansion board 3D printer A4988 driver boardCNC shield v3 engraving machine expansion board 3D printer A4988 driver board

SKU: 33000476401 Category:

Based on 0 reviews

0.0 overall
0
0
0
0
0

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

There are no reviews yet.

Questions and answers of the customers

There are no questions yet. Be the first to ask a question about this product.

Send me a notification for each new answer.