1
$\begingroup$

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?

$\endgroup$
  • $\begingroup$ 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. $\endgroup$ – 0scar Feb 28 at 23:00
  • $\begingroup$ the Y-endstop is in front and the motor is in the back. $\endgroup$ – danyolgiax Feb 29 at 11:41
2
$\begingroup$

This blog post shows 3 main solutions:

  1. Flipping the motor cables (As suggested in the other answer)
  2. Switching the x and y-axis: This may switch the direction of your y-axis depending on the way your printer is setup)
  3. 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
| improve this answer | |
$\endgroup$
1
$\begingroup$

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

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.