I'm looking for a way to swap servo 1 with a stepper motor to achieve a single direction circular motion with stops and delay. Instead, now I have the servo going back and forth to repeat the action.
This is the code I'm currently using to drive the servo:
void loop() {
topServo.write(115);
delay(500);
for(int i = 115; i > 65; i--) {
topServo.write(i);
delay(2);
}
This is a schematic of my project:
simulate this circuit – Schematic created using CircuitLab
Can anyone help me to configure this? or point me into the right direction.
Any help would be greatly appreciated!