# Wrong direction while homing

**URL:** <https://klipper.discourse.group/t/wrong-direction-while-homing/25506>\
**Category:** General Discussion\
**Created:** [January 10, 2026, 11:49am UTC](https://klipper.discourse.group/t/wrong-direction-while-homing/25506 "2026-01-10T11:49:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![holginator](https://avatars.discourse-cdn.com/v4/letter/h/e9bcb4/32.png) [@holginator](https://klipper.discourse.group/u/holginator)\
**Post date:** [January 10, 2026, 11:49am UTC](https://klipper.discourse.group/t/wrong-direction-while-homing/25506/1 "2026-01-10T11:49:56Z")

</div>

### Basic Information:

Printer Model: Custom CoreXY  
 MCU / Printerboard: SKR Mini V3  
 Host / SBC Raspberri Pi 4  
 klippy.log

Hello Folks! I’m having an issue with homing on my printer.

The homing sequence does not work correctly. When I start homing, the printer first moves Z down by 5 mm. X then homes normally and in the correct direction. However, when it starts homing Y, the gantry moves in the wrong direction.

Instead of moving towards +Y, it moves towards -Y. The Y endstop is located at the back of the printer at Y+220, but during homing Y always travels in the negative direction, away from the endstop.

The CoreXY kinematics seem to be correct, because X moves straight and homes correctly. If the kinematics were wrong, X movement would not be linear.

I tried inverting the Y stepper direction pin, but that causes another problem: after inverting the Y direction, the X endstop no longer triggers correctly. The endstops themselves work properly, as I have testet.

At this point I’m not sure whether this is a configuration issue related to stepper directions, endstop assignments, or CoreXY motor mapping.

Any help or pointers would be greatly appreciated.

[[include mainsail.cfg].txt](https://klipper.discourse.group/uploads/short-url/fnneb8hJ72wsqQ5Mtr6UDDouRqy.txt) (1.4 KB)

[klippy.log](https://klipper.discourse.group/uploads/short-url/z1R98HmaQEXRzfhyFATFTzUYgWh.log) (7.0 MB)

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [January 10, 2026, 1:20pm UTC](https://klipper.discourse.group/t/wrong-direction-while-homing/25506/2 "2026-01-10T13:20:44Z")

</div>

Hello @holginator !

Have you tried to set the `#homing_positive_dir:` flag?

```auto
[stepper]¶

Stepper motor definitions. Different printer types (as specified by the "kinematics" option in the [printer] config section) require different names for the stepper (eg, stepper_x vs stepper_a). Below are common stepper definitions.

...

#homing_positive_dir:
# If true, homing will cause the stepper to move in a positive
# direction (away from zero); if false, home towards zero. It is
# better to use the default than to specify this parameter. The
# default is true if position_endstop is near position_max and false
# if near position_min.

```

---

<div class="post-metadata">

**Author:** ![3dcoded](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/3dcoded/32/20297_2.png) [@3dcoded](https://klipper.discourse.group/u/3dcoded)\
**Post date:** [January 10, 2026, 2:30pm UTC](https://klipper.discourse.group/t/wrong-direction-while-homing/25506/3 "2026-01-10T14:30:28Z")

</div>

Hi @holginator ,

> [@holginator](#):
>
> The CoreXY kinematics seem to be correct, because X moves straight and homes correctly. If the kinematics were wrong, X movement would not be linear.

Your X can be moving in the correct direction (+ to the right), but your Y can be reversed if your A/B steppers are swapped (see the lower left axis diagram).

 ![V2-motor-configuration-guide](https://global.discourse-cdn.com/free1/uploads/klipper/original/3X/7/3/7324b2bfde7d1853f12e0dd7972dbb961748295a.png)

---

<div class="post-metadata">

**Author:** ![mykepredko](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/mykepredko/32/2085_2.png) [@mykepredko](https://klipper.discourse.group/u/mykepredko)\
**Post date:** [January 10, 2026, 5:01pm UTC](https://klipper.discourse.group/t/wrong-direction-while-homing/25506/4 "2026-01-10T17:01:28Z")

</div>

Setting up CoreXY printers can confusing with X/Y Axis movement.

That’s why I suggest getting a piece of paper and trying to invert the DIR pins as laid out in this post:

> [@Can i tell klipper to x=y and y=x?](https://klipper.discourse.group/t/can-i-tell-klipper-to-x-y-and-y-x/25382/3):
>
> The best way I’ve found to set how X & Y works on a CoreXY is to set up a table listing whether or not the DIR pin operates normally or negated (ie with a “!”) before it: X | Y | Result --+---+-------------------------------------------- | | Movement with X & Y both Normal --+---+-------------------------------------------- ! | | Movement with just X negated --+---+-------------------------------------------- ! | ! | Movement with both negated --+---+--------------------------------------…

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [March 11, 2026, 5:02pm UTC](https://klipper.discourse.group/t/wrong-direction-while-homing/25506/5 "2026-03-11T17:02:17Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
