# Z-Axis Motor Wiring

**URL:** <https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017>\
**Category:** Hardware\
**Created:** [January 22, 2018, 6:18pm UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017 "2018-01-22T18:18:53Z")\
**Posts on this page:** 15\
**Page:** 5

<div class="post-metadata">

**Author:** ![Jon](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jon/32/13090_2.png) [@Jon](https://forums.maslowcnc.com/u/Jon)\
**Post date:** [August 13, 2018, 12:58am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/82 "2018-08-13T00:58:21Z")

</div>

I cut the wires to give myself some extra, I wonder if you have accidentally bridged something?

---

<div class="post-metadata">

**Author:** ![ChrisB](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@ChrisB](https://forums.maslowcnc.com/u/ChrisB)\
**Post date:** [August 13, 2018, 1:09am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/83 "2018-08-13T01:09:03Z")

</div>

Potentially, but I even went back and took all the solder off the top and cleaned it and then resoldered everything on because I was worried about that. Do you by chance know how to take the PCB off so that I could get to the back side? I wonder if solder got in there somehow.

---

<div class="post-metadata">

**Author:** ![Jon](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jon/32/13090_2.png) [@Jon](https://forums.maslowcnc.com/u/Jon)\
**Post date:** [August 13, 2018, 1:21am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/84 "2018-08-13T01:21:24Z")

</div>

No idea to be honest. I was lazy and didn’t really want to mess with the new motor so I just spliced. Sorry that’s less than helpful =(

---

<div class="post-metadata">

**Author:** ![ChrisB](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@ChrisB](https://forums.maslowcnc.com/u/ChrisB)\
**Post date:** [August 13, 2018, 1:40am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/85 "2018-08-13T01:40:22Z")

</div>

No problem, I was hoping it would be as easy as everyone else but typical my luck is just not there haha.

---

<div class="post-metadata">

**Author:** ![aluminumwelder](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/aluminumwelder/32/9362_2.png) [@aluminumwelder](https://forums.maslowcnc.com/u/aluminumwelder)\
**Post date:** [August 13, 2018, 1:54am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/86 "2018-08-13T01:54:10Z")

</div>

anyone know what the connector is so we dont’ have to take apart the motor and solder it? looks like a mini Jst 6 pin?

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [August 13, 2018, 2:14am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/87 "2018-08-13T02:14:02Z")

</div>

I’m pretty sure the mating connector (on the cable) is [this](https://www.digikey.com/product-detail/en/jst-sales-america-inc/PHR-6/455-1162-ND/608604), and [these](https://www.digikey.com/product-detail/en/jst-sales-america-inc/ASPHSPH24K305/455-3083-ND/6009459) are 12" wires with the appropriate pins on the ends. Order 3 12" wires to get the needed 6 pins with wires attached. The female connector (on the motor) are similar to [these](https://www.digikey.com/product-detail/en/jst-sales-america-inc/ASPHSPH24K305/455-3083-ND/6009459).

---

<div class="post-metadata">

**Author:** ![aluminumwelder](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/aluminumwelder/32/9362_2.png) [@aluminumwelder](https://forums.maslowcnc.com/u/aluminumwelder)\
**Post date:** [August 22, 2018, 1:35pm UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/88 "2018-08-22T13:35:57Z")

</div>

what is the ideal RPM for the z axis motor? Seems like the stock 12.6rpm is too slow. People have reported good things about the 45rpm and 122rpm ones, which is a big difference. Thinking of getting some directly from china. Thinking either the 55rpm one or 77rpm or 100rpm one?  
Also the PPR can be set to 3, 7 or 12. What is best. I am assuming from above comments 7 correct?

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/d/d0014b571aef0fb7362e1172ecd90dc6ba358f99.png)

---

<div class="post-metadata">

**Author:** ![ChrisB](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@ChrisB](https://forums.maslowcnc.com/u/ChrisB)\
**Post date:** [September 15, 2018, 2:26am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/89 "2018-09-15T02:26:19Z")

</div>

I finally have the new motor and Z axis moving… Just needs some dust collection now!

Edit: I thought I knew how to embed, I did not. [Here](https://youtu.be/I-M8haBprcg) is the link again.

---

<div class="post-metadata">

**Author:** ![elmer1p19](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@elmer1p19](https://forums.maslowcnc.com/u/elmer1p19)\
**Post date:** [September 30, 2018, 12:37am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/90 "2018-09-30T00:37:05Z")

</div>

I have this same motor and when I connect it up based on the pin out of the Maslow board the motor starts rotating before anytest are run. Of course when I run a test it fails.

Since there are no cables to buy I am having to build my own. My two chain motors control and pass the testing only the Z motor. Also if I connect one of my other motors to the Zaxis control it test and passes so I know its not the maslow board.

Does anyone have a wiring diagram they used based on the maslow controller pin out for M2 motor?

[Amazon.com: CQRobot 6V, 41rpm, 22kg.cm/12V, 83rpm, 45kg.cm, Metal DC Geared Motor w/Encoder. for Projects Such as Robot, Custom Servo, Arduino and 3D Printers.: Computers & Accessories](https://www.amazon.com/6-8kg-cm-13kg-cm-Encoder-Projects-Printers/dp/B01N755EJ8/ref=sr_1_1?ie=UTF8&qid=1524099749&sr=8-1&keywords=12v%2Bdc%2Bgeared%2Bmotor%2Bw%2Fencoder&th=1&pldnSite=1)

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [September 30, 2018, 1:38am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/91 "2018-09-30T01:38:45Z")

</div>

> [@elmer1p19](#):
>
> Does anyone have a wiring diagram they used based on the maslow controller pin out for M2 motor?

Here’s the wiring I used:  
The stock motor and the PowerControl board use this order:  
M+ (black), M- (red), 5V (orange or blue), ground (green), encoderA (white), encoderB (yellow).  
 ![z-motor-signals](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/e/e871a7b941809841f77c41b188e6f1cfe7fb1a25.jpeg)  
With the non-stock motors I’ve bought, the wire colors on the motors match the signal names above, it’s the motor connector that sorts them into a different order. These pairs need to be flipped from the connector on the motor: M+ and M- ; 5V and Gnd; EncA and EncB. Match the motor wire colors with the same colors in the stock z cable or with the picture above and the motor should turn in the same direction as the stock motor.

---

<div class="post-metadata">

**Author:** ![elmer1p19](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@elmer1p19](https://forums.maslowcnc.com/u/elmer1p19)\
**Post date:** [September 30, 2018, 5:11am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/92 "2018-09-30T05:11:46Z")

</div>

So I get this error the z axis moves once and then it all stops.

and If I wire the motor just like the x and y motors it just sits and runs non stop

 ![motor](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/6/6f81bc1d2de4642e6ebb2624b15755d8d5717f42.png) ![error](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/e/edff1e1b3a788d079734bf4bcc94e53a2440b6b4.png)

---

<div class="post-metadata">

**Author:** ![elmer1p19](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@elmer1p19](https://forums.maslowcnc.com/u/elmer1p19)\
**Post date:** [September 30, 2018, 5:16am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/93 "2018-09-30T05:16:49Z")

</div>

If I wire it based on the image you provided the Ardiuno pwr light on the maslow board shuts off and I lose com3 connection.

If I swap the green and black wires I get the error I posted.

Its weird.

---

<div class="post-metadata">

**Author:** ![ChrisB](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@ChrisB](https://forums.maslowcnc.com/u/ChrisB)\
**Post date:** [September 30, 2018, 6:59am UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/94 "2018-09-30T06:59:50Z")

</div>

The way that @blurfl has shown is correct.

Just out of curiosity are you soldering directly to the back of the motor or are you soldering the 2 wires together? I am not sure if it was my user error, the motor error or an encoder error with my first unit but it did some strange things to me. I would suggest that you talk with the seller on amazon, I asked for another to be sent to me and it was and I soldered the wires together the second time instead of trying to solder to the back of the motor and it has worked perfectly for me ever since.

---

<div class="post-metadata">

**Author:** ![elmer1p19](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@elmer1p19](https://forums.maslowcnc.com/u/elmer1p19)\
**Post date:** [September 30, 2018, 3:06pm UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/95 "2018-09-30T15:06:05Z")

</div>

No I am soldering to the wires of the motor. LOL getting shorter. I know if I plug one of my other motors into the Zaxis they work based on the harnesses I made for them. so I wired this one exactly the same and motor just runs no stopping. rrg

Appreciate all the input completely determined to figure it out

---

<div class="post-metadata">

**Author:** ![ChrisB](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@ChrisB](https://forums.maslowcnc.com/u/ChrisB)\
**Post date:** [September 30, 2018, 3:57pm UTC](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017/96 "2018-09-30T15:57:09Z")

</div>

I would say if another motor works with the harness it is not that. My guess would be the encoder/motor itself. I would suggest a new one (if you ordered from amazon, talk to the seller and ask for a new one they should send it to you). I was driving myself insane when mine wasn’t working and a new motor fixed everything and was totally plug and play the second time. There was so much frustration.

[Previous page](https://forums.maslowcnc.com/t/z-axis-motor-wiring/2017.md?page=4)
