# Steeper X moves with stepper z

**URL:** <https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533>\
**Category:** General Discussion\
**Created:** [January 26, 2024, 10:32pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533 "2024-01-26T22:32:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![KimHJ](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KimHJ](https://klipper.discourse.group/u/KimHJ)\
**Post date:** [January 26, 2024, 10:32pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/1 "2024-01-26T22:32:17Z")

</div>

Raptor 2  
BIQU Manta M8P with CB1 and EBB36

I keep having layer shift on the Y axis. I was planning to add an extra stepper to the Y since I increased the bed from 400 to 800.

I set everything up in Klipper and connect a stepper to motor 5 without mounting it, but then the Y didn’t move. Then I switched the cable on motor 4 and motor 5 and Y is working, but the motor I have not mounted only turns when there is movement on the Z axis.  
Right now I have motor 5 connected to stepper Y and motor 4 connected to the unmounted stepper that turns when Y is moving.

Here is my settings in Printer.cfg

# Motor1

[stepper\_x]  
step\_pin: PE6  
dir\_pin: PE5  
enable\_pin: !PC14  
microsteps: 16  
rotation\_distance: 40  
endstop\_pin: ^!PF4  
position\_endstop: 0  
position\_max: 400  
homing\_speed: 50

# Motor2

[stepper\_z]  
step\_pin: PE2  
dir\_pin: !PE1  
enable\_pin: !PE4  
microsteps: 16  
rotation\_distance: 4  
endstop\_pin: probe:z\_virtual\_endstop  
position\_max: 675  
homing\_speed: 50  
position\_min: -5.0  
second\_homing\_speed: 3  
homing\_retract\_dist: 5

# Motor3

[stepper\_z1]  
step\_pin: PB8  
dir\_pin: !PB7  
enable\_pin: !PE0  
microsteps: 16  
rotation\_distance: 4

# Motor4

[stepper\_y]  
step\_pin: PB4  
dir\_pin: !PB3  
enable\_pin: !PB6  
microsteps: 16  
rotation\_distance: 40  
endstop\_pin: ^!PF3  
position\_endstop: 0  
position\_max: 800  
homing\_speed: 50

# Motor5

[stepper\_y1]  
step\_pin: PG13  
dir\_pin: !PG12  
enable\_pin: !PG15  
microsteps: 16  
rotation\_distance: 40

#motor1  
[tmc5160 stepper\_x]  
cs\_pin: PC13  
interpolate: False  
run\_current: 1.5  
hold\_current: 1.0  
sense\_resistor: 0.033  
spi\_software\_mosi\_pin: PG6  
spi\_software\_miso\_pin: PG7  
spi\_software\_sclk\_pin: PG8  
stealthchop\_threshold: 0

#motor2  
[tmc5160 stepper\_z]  
cs\_pin: PE3  
interpolate: False  
run\_current: 1.5  
hold\_current: 1.0  
sense\_resistor: 0.033  
spi\_software\_mosi\_pin: PG6  
spi\_software\_miso\_pin: PG7  
spi\_software\_sclk\_pin: PG8  
stealthchop\_threshold: 0

#motor3  
[tmc5160 stepper\_z1]  
cs\_pin: PB9  
interpolate: False  
run\_current: 1.5  
hold\_current: 1.0  
sense\_resistor: 0.033  
#driver\_SGT: 0  
spi\_software\_mosi\_pin: PG6  
spi\_software\_miso\_pin: PG7  
spi\_software\_sclk\_pin: PG8  
stealthchop\_threshold: 0

#motor4  
[tmc5160 stepper\_y]  
cs\_pin: PB5  
interpolate: False  
run\_current: 1.9  
hold\_current: 1.0  
sense\_resistor: 0.033  
spi\_software\_mosi\_pin: PG6  
spi\_software\_miso\_pin: PG7  
spi\_software\_sclk\_pin: PG8  
stealthchop\_threshold: 0

#motor5  
[tmc5160 stepper\_y1]  
cs\_pin: PG14  
interpolate: False  
run\_current: 1.9  
hold\_current: 1.0  
sense\_resistor: 0.033  
spi\_software\_mosi\_pin: PG6  
spi\_software\_miso\_pin: PG7  
spi\_software\_sclk\_pin: PG8  
stealthchop\_threshold: 0

[klippy.log](https://klipper.discourse.group/uploads/short-url/vm6mxVYiJeKPQhHJvFGGMxJqaMM.log) (64.7 KB)

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 27, 2024, 12:48am UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/2 "2024-01-27T00:48:55Z")

</div>

I don’t know about the pinout of the manta, but my octopus for example has two connectors for motor2 for double driven Z-axis. Are you sure not to have mixed up your wiring with such a “copied” connector?

---

<div class="post-metadata">

**Author:** ![KimHJ](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KimHJ](https://klipper.discourse.group/u/KimHJ)\
**Post date:** [January 27, 2024, 2:24am UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/3 "2024-01-27T02:24:02Z")

</div>

As you can see i already have two motors for the z axis and they works fine. I need a second for the x.

---

<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 27, 2024, 7:33am UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/4 "2024-01-27T07:33:47Z")

</div>

When you upload the klippy.log, there is no need to copy&paste code snippets from the printer.cfg. If you want to do so, please use preformatted text to do so.

![Format](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/6/643ab9def96b03089cfb0c194628129fcc96b3f8.png)

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 27, 2024, 11:33am UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/5 "2024-01-27T11:33:01Z")

</div>

I just want to point out, that the connectors aren’t in strict sequential order (here Motor3 is doubled):

 ![](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/6/637caff7e73b8fab0ef0f7dafab93db1ab6d373f.jpeg)  
And this sometimes lead to strange results …

---

<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 27, 2024, 11:41am UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/6 "2024-01-27T11:41:18Z")

</div>

How have you connected the steppers to that board? So, what stepper to what connector?

---

<div class="post-metadata">

**Author:** ![KimHJ](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KimHJ](https://klipper.discourse.group/u/KimHJ)\
**Post date:** [January 27, 2024, 4:08pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/7 "2024-01-27T16:08:39Z")

</div>

ok, thanks

---

<div class="post-metadata">

**Author:** ![KimHJ](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KimHJ](https://klipper.discourse.group/u/KimHJ)\
**Post date:** [January 27, 2024, 4:10pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/8 "2024-01-27T16:10:42Z")

</div>

Motor1 X, Motor2 Z, Motor3 Z1, Motor4 Y and Motor5 Y1

Just as it is in the printer.cfg

---

<div class="post-metadata">

**Author:** ![KimHJ](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KimHJ](https://klipper.discourse.group/u/KimHJ)\
**Post date:** [January 27, 2024, 4:18pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/9 "2024-01-27T16:18:08Z")

</div>

In the Manta M8P V2.0 documentation the motors are called 1 to 8 no a and b as you can see on the generic printer.cfg.

[Printer.cfg](https://github.com/bigtreetech/Manta-M8P/blob/master/V2.0/Firmware/generic-bigtreetech-manta-m8p-V2_0.cfg)

The board picture has no reference to the motors.

 ![BIGTREETECH MANTA M8P V2.0 PinOut](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/0/052378f8631a509dde913e51271ee1344f217958.jpeg)

Here are the settings when naming the motors 3A and 3B.

Before I had Motor1 on X, Motor2 on Y and Motor3A on Z and Motor3B on Z1.

Then I added the second X to Motor5 and it moved only when Z moved, I thought it was because it was after Z1.

Then I changed it to the order I have now, Motor1 X, Motor2 Z, Motor3A Z1, Motor3B Y and Motor4 Y1.

When I started the printer to do a Home All theY just moved for a second, but the Steeper I had on the table connected to Motor5 was running.

Then I switched the cables on Motor 4 and Motor 5 and I could Home All, then I noticed that the stepper on the table was moving when Z was moving.

I also tried to move the stepper to motor 6 and it still turned like it was Z.

---

<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 27, 2024, 5:05pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/10 "2024-01-27T17:05:47Z")

</div>

It is common on main controller boards to put in to “Z” axis stepper motor connectors that are wired in parallel.

This is done for printers that use two steppers for the Z axis and are expected to operate together, like this Ender 3 modification:

 ![image](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/8/8934a48c8853893fa02ccf73d765d484adc079a0.jpeg)

You should have asked yourself, if there are NINE stepper motor connectors on the Manta M8P main controller board and each one is separate, why aren’t there NINE stepper motor drivers.

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [January 27, 2024, 5:26pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/11 "2024-01-27T17:26:48Z")

</div>

> [@KimHJ](#):
>
> In the Manta M8P V2.0 documentation the motors are called 1 to 8 no a and b as you can see on the generic printer.cfg.

Be careful. As @EddyMI3D and @mykepredko are trying to point out:

- Your board has 9 stepper connectors but only 8 stepper driver
- Two connectors are sharing the same driver, most likely 3A and 3B as pointed out above
- Typically they can be used (I would not do it) to synchronously drive two Z stepper in a dual Z stepper setup

---

<div class="post-metadata">

**Author:** ![KimHJ](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KimHJ](https://klipper.discourse.group/u/KimHJ)\
**Post date:** [January 27, 2024, 7:49pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/12 "2024-01-27T19:49:14Z")

</div>

You are saying that the 4th connection is the same as the 3 and they use same driver?  
I should wire it like this?  
Connecter 1 to X in printer.cfg it is motor1  
Connecter 2 to Z in printer.cfg it is motor2  
Connecter 3 to Z1 in printer.cfg it is motor3  
Don’t use Connecter 4  
Connecter 5 to Y in printer.cfg it is motor4  
Connecter 6 to Y1 in printer.cfg it is motor 5

---

<div class="post-metadata">

**Author:** ![KimHJ](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KimHJ](https://klipper.discourse.group/u/KimHJ)\
**Post date:** [January 27, 2024, 7:51pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/13 "2024-01-27T19:51:41Z")

</div>

To be honest I didn’t count them.

---

<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 27, 2024, 8:12pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/14 "2024-01-27T20:12:06Z")

</div>

> [@KimHJ](#):
>
> You are saying that the 4th connection is the same as the 3 and they use same driver?  
> I should wire it like this?  
> Connecter 1 to X in printer.cfg it is motor1  
> Connecter 2 to Z in printer.cfg it is motor2  
> Connecter 3 to Z1 in printer.cfg it is motor3  
> Don’t use Connecter 4  
> Connecter 5 to Y in printer.cfg it is motor4  
> Connecter 6 to Y1 in printer.cfg it is motor 5

Yup. That’s what I’m saying.

---

<div class="post-metadata">

**Author:** ![KimHJ](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KimHJ](https://klipper.discourse.group/u/KimHJ)\
**Post date:** [January 27, 2024, 9:28pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/15 "2024-01-27T21:28:30Z")

</div>

Ok i will try tomorrow let you know.

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 28, 2024, 11:46pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/16 "2024-01-28T23:46:52Z")

</div>

I’m curious, if my first consideration is the correct one.

---

<div class="post-metadata">

**Author:** ![KimHJ](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KimHJ](https://klipper.discourse.group/u/KimHJ)\
**Post date:** [January 28, 2024, 11:58pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/17 "2024-01-28T23:58:15Z")

</div>

I will let you know tomorrow. If you are right then I’m mad a biqu for not pointing it out in the manual.

I had the original motherboard running with marlin and had no problems with shifting layers ( it shift like 10 mm) and I’m printing at the same speed.  
The only reason i upgraded to a new motherboard and Klipper was to speed it up. I have now spend over 100 hours and I have a printer that i can’t use.

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 29, 2024, 12:26am UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/18 "2024-01-29T00:26:21Z")

</div>

… hopefully this becomes to be an easy fix now.

---

<div class="post-metadata">

**Author:** ![KimHJ](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@KimHJ](https://klipper.discourse.group/u/KimHJ)\
**Post date:** [January 29, 2024, 6:05pm UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/19 "2024-01-29T18:05:54Z")

</div>

You are correct it works after i moved 4 and 5 one one Connecter up and nothing in the 4th Connecter.  
Hopefully when i add the second stepper it will stop skipping.

---

<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:** [February 29, 2024, 4:06am UTC](https://klipper.discourse.group/t/steeper-x-moves-with-stepper-z/13533/20 "2024-02-29T04:06:18Z")

</div>

Closed on February 29, 2024, 4:06am UTC

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