<p>This <a href="https://www.everybitelectronics.co.uk/blog/3d-printer-error-prints-reversed/" rel="nofollow noreferrer">blog post</a> shows 3 main solutions:</p>

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

<blockquote>
  <p>"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:"</p>
</blockquote>

<pre><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
</code></pre>

<blockquote>
  <p>"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:"</p>
</blockquote>

<pre><code>// 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
</code></pre>

CC BY-SA 4.0
2020-05-25T18:44:12.243Z
2020-05-26T06:55:06.040Z
2020-05-26T06:55:06.040Z
Ryan Gaudion
<p>Usually I just flip the connector around on the board. This causes the stepper to reverse without fiddling around with firmware.</p>

CC BY-SA 4.0
2020-02-29T23:48:41.907Z
2020-02-29T23:48:41.907Z
henradrie
<p>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).</p>

<p>I fixed Marlin firmware and now I have:</p>

<pre><code>#define Y_MAX_ENDSTOP_INVERTING true
#define INVERT_Y_DIR false
#define Y_HOME_DIR 1
#define USE_YMAX_PLUG
</code></pre>

<p>I also connected the Y-endstop to Y-max pin on RAMPS.</p>

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

<p>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.</p>

<p>Can someone help me?</p>

CC BY-SA 4.0
2020-02-28T23:00:33.343Z
When facing your printers Y-axis (so from the front), where is the Y-endstop located? In the back or in the front? Adding a sketch may help.
0scar
CC BY-SA 4.0
2020-02-29T11:41:08.020Z
the Y-endstop is in front and the motor is in the back.
danyolgiax
<marlin><diy-3d-printer><pronterface>
Printer inverted Y-axis
danyolgiax
# Printer inverted Y-axis

(Asked by: username_0 on 2020-02-28)

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?

**Tags:** marlin, diy-3d-printer, pronterface
> **Comments:**
> **username_1**: When facing your printers Y-axis (so from the front), where is the Y-endstop located? In the back or in the front? Adding a sketch may help.  
> **username_0**: the Y-endstop is in front and the motor is in the back.  

---

## 2 answers

### Answer by username_2 on 2020-05-25. Score: 3

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


---

### Answer by username_3 on 2020-02-29. Score: 1

Usually I just flip the connector around on the board. This causes the stepper to reverse without fiddling around with firmware.


---

