#include #include SoftwareSerial serial_sw(10, 9); //rx, tx const int stepsPerRevolution = 200; // datasheet Nema 8 = 360/steep angle // stepper library on pins 0, 1, 3 and 4 (motor driver pins) Stepper myStepper(stepsPerRevolution, 0, 1, 3, 4); int stepCount = 0; void setup() { // initialize the serial port serial_sw.begin(9600); } void loop() { // 1 step at a time myStepper.step(1); serial_sw.print("steps:" ); serial_sw.println(stepCount); stepCount++; delay(500); // 1/2 seconds delay }