Some steppers only rotate one way on RAMPS 1.4 I have a RAMPS 1.4 tester code for Arduino MEGA, only need stepper motors and drivers connected. The code in a working setup moves steppers in both directions but in my setup does something wrong:


Extruder 0 , Axis X/Y only moves in 1 direction all time.
Extruder 1 , Axis Z works fine in both direction


I changed stepper drivers but always Extruder 0, Axis X/Y were moving in same direction all time.Tried 2 differents RAMPS 1.4 shields with same results in tester code, Sprinter or Marlin. 

I have the code if someone wants, it works fine in other setups.

What could be the problem?
As towe said, it could be a dir pin ( can be checked by metering the dir connection), but in my experience this behavior has usually been a limit switch issue (as 0scar pointed out).  Try seeing if you have a limit switch setting somewhere that expects normally closed (assuming no limit switches are connected).

There is also another possibility that has to do with microstepping on some drivers, but i'm guessing you are going for a rudimentary no microstepping test right now (and have configured jumpers appropriately).