Controlling Stepper Motor With Buttons Using Arduino

Have you changed this?

If not then edit your proteus circuit to have a switch connected between each input and 5V, AND a 10k resistor connected between each input and gnd.

Until you do this interpretation of your code is useless.
Please post in a NEW post your edited circuit.

Thanks.. Tom... :smiley: :+1: :coffee: :australia:
PS. When will you bite the bullet and make a real world project.

Thank you everyone i think i got it and made it work thanks to your help.

#include <Stepper.h>

#define STEPS 360
#define sag 4
#define sol 5

//int right;
//int left;
  Stepper stepper(STEPS,9,10,11,12);
void setup() {

void loop() {
    if (LOW == digitalRead(sag))

    if (LOW == digitalRead(sol))

Yeah i've changed them as you suggested. I had no clue about pullup pulldown resistors so ive changed the circuit after i learned abt them. Thank you