IOT Virtual Lab
Home
Simulation Window
Go Back
Interfacing of Arduino with Stepper Motor :
ARDUINO CODE
#include
const int stepsPerRevolution = 200; Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11); void setup() { } void loop() { myStepper.setSpeed(90); // step 1/100 of a revolution: myStepper.step(stepsPerRevolution); }
Start Simulation