Step motor Arduino Due Right rotation ? Help!!!!

Nema23 tb6600 driver

digitalWrite(2, HIGH) ;
digitalWrite(3, LOW);
digitalWrite(2, LOW) ;
digitalWrite(3, HIGH);
Arduino Uno Left rotation
Arduino Due Left rotation

digitalWrite(2, LOW) ;
digitalWrite(3, HIGH);
digitalWrite(2, HIGH) ;
digitalWrite(3, LOW);
Arduino Uno Rıght rotation
Arduino Due Left rotation <<<<

Arduino Due Right rotation ? Help!!!

Those are the same sequence, the Uno is getting it wrong, not the Due. The opposite sequence would be

digitalWrite(3, LOW) ;
digitalWrite(2, HIGH);
digitalWrite(3, HIGH) ;
digitalWrite(2, LOW);

fiko-man:
Nema23 tb6600 driver

digitalWrite(2, LOW) ;
digitalWrite(3, HIGH);
digitalWrite(2, HIGH) ;
digitalWrite(3, LOW);

That doesn't make any sense to me.

For motion in one direction you need to set the direction pin HIGH, and for the other direction LOW.

The sequence of HIGHs and LOWs for the step pin is quite separate. There is no need to update the direction pin for every step - only when the direction needs to change.

Have a look at this Simple Stepper Code

Programming will be much easier if you use meaningful names such as

digitalWrite(directionPin, fwd);

digitalWrite(stepPin, HIGH);

...R
Stepper Motor Basics

Why did you post a quadrature stepping sequence for a step & direction interface?
If you don't understand the difference you should do a little reading :slight_smile: