+

cnc shield v3 engraving machine / 3D Printer / + 4pcs A4988 driver expansion board for Arduino

USD 4.61USD 9.22

cnc shield v3 engraving machine / 3D Printer / + 4pcs A4988 driver expansion board for Arduino

Description

product description:The expansion board is used as a drive expansion board, which can be used for engraving machines and 3D printers.It has four slots, which can drive four A4988 stepper motors. Each road stepper motor only needs two IO ports. In other words, six IO ports can manage three stepper motors well. It is very convenient to use. Introduction of UNO for module IO port communication:IO corresponds to the picture above:UNO ---------------------Expansion Committee8 ------------------------ EN (stepping motor driver enable, active low)7 ----------------------- Z.DIR (Z-axis direction control)6 ----------------------- Y.DIR (Y-axis direction control)5 ----------------------- X.DIR (X-axis direction control)4 ---------------------- Z.STEP (Z-axis stepping control)3 ---------------------- Y.STEP (Y-axis stepping control)2 ---------------------- X.STEP (X-axis stepping control) //The following is a simple stepper motor control program, #define EN 8 //Stepper motor is enabled, 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: steps. Function: Control the direction and number of steps of the stepper motor.//Parameter: dir direction control, dirPin corresponds to the DIR pin of the stepper motor, stepperPin corresponds to the "step" pin of the stepper motor, the number of steps has no return value. * /void step (boolean dir, byte dirPin, byte stepperPin, int steps){digitalWrite(dirPin, dir);Delay (50);for(int i = 0; idigitalWrite(stepperPin, HIGH);delayMicroseconds(800);digitalWrite(stepperPin, LOW);delayMicroseconds(800);}}void setup(){/ / The stepper motor used in the IO pin is set to outputpinMode (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 cycle, 200 steps are a circle.step(false, Y_DIR, Y_STP, 200); // The y-axis motor reverses 1 cycle, and 200 steps are a circle.step (false, Z_DIR, Z_STP, 200); // The z-axis motor reverses 1 cycle, and 200 steps are a circle.Delay (1000);step(true, X_DIR, X_STP, 200); // X axis motor advances 1 circle, 200 steps is one circle.step(true, Y_DIR, Y_STP, 200); // The y-axis motor advances 1 circle, 200 steps are one circle.step(true, Z_DIR, Z_STP, 200); // The z-axis motor advances 1 circle, 200 steps are one circle.Delay (1000);}

 

Shipping list:

1 X cnc shield v3
4 X A4988
4 X Heatsink

 

 

Specification

Condition : New

Dissipation Power : International standard

Type : standard

Application : standard

is_customized : Yes

Package : DIP

Brand Name : Si Tai&SH

Supply Voltage : International standard

Model Number : cnc shield v3

Origin : Mainland China

Operating Temperature : International standard

SN8P2501BSG SOP14 10pcs
USD 2.78USD 3.20
m0516lbn 32 m0516
USD 15.40
+