https://www.youtube.com/watch?v=WYATLSZKoUk Cod pt miscare motor cu arduino uno https://www.arduino-board.com/arduino/stepper-motor? Cum clonezi o axa si limitatoarele de cursa # 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 stepper control # define Y_STP 3 // y -axis stepper control # define Z_STP 4 // z -axis stepper control / * // Function : step . function: to control the direction of the stepper motor , the number of steps . // Parameters : dir direction control , dirPin corresponding stepper motor DIR pin // stepperPin corresponding stepper motor " step " pin , Step number of step of no return value. * / void step (boolean dir, byte dirPin, byte stepperPin, int steps) { digitalWrite (dirPin, dir); delay (50); for (int i = 0; i digitalWrite (stepperPin, HIGH); delayMicroseconds (800); digitalWrite (stepperPin, LOW); delayMicroseconds (800); } } void setup () {// The stepper motor 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); // X axis motor reverse 1 ring, the 200 step is a circle. step (false, Y_DIR, Y_STP, 200); // y axis motor reverse 1 ring, the 200 step is a circle. step (false, Z_DIR, Z_STP, 200); // z axis motor reverse 1 ring, the 200 step is a circle. delay (1000); step (true, X_DIR, X_STP, 200); // X axis motor forward 1 laps, the 200 step is a circle. step (true, Y_DIR, Y_STP, 200); // y axis motor forward 1 laps, the 200 step is a circle. step (true, Z_DIR, Z_STP, 200); // z axis motor forward 1 laps, the 200 step is a circle. delay (1000); } first test run : https://www.youtube.com/watch?v=4ODI--EHaY0 . StepStick Stepper motor driver Reprap Prus A4988 A4983 3D Printer driver module . . A4988 Driver CNC Shield Expansion Board for Arduino V3 Engraver 3D Printer NEW laser marlin grbl . Protoneer vs . Pololu A4988 Stepper Driver configuration: MS0 MS1 MS2 Microstep Resolution Low Low Low Full step High Low Low Half step Low High Low Quarter step High High Low Eighth step High High High Sixteenth step