You are reading a single comment by @fobus and its replies. Click here to read the full conversation.
  • Hi @Gordon,

    I don't know why, but when I remove the while(i!=3)i++; line stepper stops working. Change interval to 2-3-4 doesn't help. I have tried to change interval from 1 to 100 but no effect.

    Also change polarity didn't do any effect; Leds and motion is the same

    digitalWrite(stepperPins[0],!(stepval&1)­);
    digitalWrite(stepperPins[1],!(stepval&2)­);
    digitalWrite(stepperPins[2],!(stepval&4)­);
    digitalWrite(stepperPins[3],!(stepval&8)­);
    
About

Avatar for fobus @fobus started