L298n And Stepper
#include <Stepper.h>
//create an instance of the stepper class.
//First specifying the number of steps of the motor,
//then specifying the pins number whish de stepper is connected
Stepper myStepper1(200, 8, 9, 10, 11);
void setup() {
}
void loop() {
myStepper1.setSpeed(150); // Sets the motor speed
myStepper1.step(200); // Turns the motor a specific number of steps,
delay(100);
myStepper1.step(-200); // Turns the motor a specific number of steps
//reverse direccion,
delay(100);
}