Printer inverted Y-axis I made a custom printer with RAMPS. I used Y-MIN endstop at beginning. After few prints I discovered that Y-axis was inverted (mirrored).

I fixed Marlin firmware and now I have:

#define Y_MAX_ENDSTOP_INVERTING true
#define INVERT_Y_DIR false
#define Y_HOME_DIR 1
#define USE_YMAX_PLUG


I also connected the Y-endstop to Y-max pin on RAMPS.

Now the printer homing in the same direction than before (in front) and the y-endstop works as expected.

If I try to start printing or if I try to press the "center" button in Pronterface, the Y-axis moves in the wrong direction.

Can someone help me?
This blog post shows 3 main solutions:


Flipping the motor cables (As suggested in the other answer)
Switching the x and y-axis:
This may switch the direction of your y-axis depending on the way your printer is setup)
Change the direction of the axis in firmware which you can see below how to do:



  "When the solution opens up, you will see many different files open. You need to navigate to the Configuration.h file. Within this file scroll down to the following lines of code:"


// Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way. 
define INVERT_X_DIR true 

define INVERT_Y_DIR true 

define INVERT_Z_DIR true



  "This is where you need to switch the values around. If they are currently true, change them to false and if they are false, change them to true. Due to the fact I was having issues with my x-Axis, I have changed the above to the following:"


// Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.

define INVERT_X_DIR false

define INVERT_Y_DIR true 

define INVERT_Z_DIR true