# OLM2 - Adding Z-Axis Stepper Driver to Mainbaord

**URL:** <https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869>\
**Category:** Ortur Lasers\
**Created:** [January 1, 2022, 3:45am UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869 "2022-01-01T03:45:45Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![DanielS](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/daniels/32/36160_2.png) [@DanielS](https://forum.lightburnsoftware.com/u/DanielS)\
**Post date:** [January 23, 2022, 7:55am UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/21 "2022-01-23T07:55:58Z")

</div>

> [@berainlb](#):
>
> Hmm… You’d think it could support at least 1 additional stepper since that’s normal, especially without a laser drawing current. Curious if there’s something else potentially going on. Or maybe just your new stepper draws more current than the original ones.

So far I didn’t run into any problems but I will upgrade to a 4A PSU just to be on the safe side. Without the Z-stepper and with the laser at 100% the PSU draws roughly 32W. It seems that in normal operation the Z-stepper adds another 2-3 Watts to that. So that gets awfully close to the 36W rating of the PSU.

---

<div class="post-metadata">

**Author:** ![jkwilborn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/jkwilborn/32/63089_2.png) [@jkwilborn](https://forum.lightburnsoftware.com/u/jkwilborn)\
**Post date:** [January 23, 2022, 12:42pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/22 "2022-01-23T12:42:40Z")

</div>

Seems like the motor itself would turn easier than the Z axes?

How do you keep it stationary? Air hook?

Thanks for the clarification of the Z limit. No point if it’s useless to the operation.

😺

---

<div class="post-metadata">

**Author:** ![DanielS](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/daniels/32/36160_2.png) [@DanielS](https://forum.lightburnsoftware.com/u/DanielS)\
**Post date:** [January 23, 2022, 1:29pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/23 "2022-01-23T13:29:31Z")

</div>

I have yet to print the bracket for the motor. I’ll do it next week 🙃

---

<div class="post-metadata">

**Author:** ![jkwilborn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/jkwilborn/32/63089_2.png) [@jkwilborn](https://forum.lightburnsoftware.com/u/jkwilborn)\
**Post date:** [January 23, 2022, 1:50pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/24 "2022-01-23T13:50:04Z")

</div>

Actually it’s encouragement. It’s great that you are building this yourself. I wish more people could/would do this.

Take care, keep us updated…

😺

---

<div class="post-metadata">

**Author:** ![DanielS](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/daniels/32/36160_2.png) [@DanielS](https://forum.lightburnsoftware.com/u/DanielS)\
**Post date:** [January 23, 2022, 4:35pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/25 "2022-01-23T16:35:50Z")

</div>

I thought I’d make another post with a list of all the other components that I used, just in case someone wants to replicate what I did. So here goes:

\*Sloppy Micro Soldering Trigger Warning\*

 ![image](https://forum.lightburnsoftware.com/uploads/default/original/3X/a/e/ae14ee5550f71066ae55769539ccc9a6b8485db2.jpeg)

1) 0402 100nF 20VDC Capacitor  
2) 1206 270mOhm Resistor (I used 1210 resistors because I didn’t have 1206 on hand. Other values are also possible, e.g. 200mOhm or 100mOhm)  
3 & 4) 0402 Resistors in a Potential Divider arrangement. Eventually I settled on 3.6kOhm for 3 and 4.7kOhm for 4. That results in a Vref of 1.52V which, in combination with my sense resistors, results in 0.7A drive current. Formula: I = Vref / (8 \* Rsense)  
5) 0402 10kOhm Resistors  
6) 0402 0.25uF 20VDC Capacitor  
7) HR4988 Stepper Motor Driver (A4988 should work just as fine)

---

<div class="post-metadata">

**Author:** ![DanielS](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/daniels/32/36160_2.png) [@DanielS](https://forum.lightburnsoftware.com/u/DanielS)\
**Post date:** [January 26, 2022, 10:48am UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/26 "2022-01-26T10:48:19Z")

</div>

I designed and printed a bracket and here is the result:

 ![image](https://forum.lightburnsoftware.com/uploads/default/original/3X/2/5/2502e6df17ab538a03556543954bb15535d7b25b.jpeg)

That’s the bracket:

 ![image](https://forum.lightburnsoftware.com/uploads/default/original/3X/d/5/d5375efe727cd6e8d352ea8deea9ff0b416be01e.jpeg)

Here is the STL in case somebody want’s to print it. The file extension needs to be changed from ‘txt’ to ‘stl’:  
[bracket.txt](https://forum.lightburnsoftware.com/uploads/short-url/aA04vIWkoKKHTFOk33vPvG4bZ9L.txt) (262.4 KB)

And here’s another video of everything in action:

[![](https://img.youtube.com/vi/9gyDgsE6Fi8/maxresdefault.jpg "Ortur Laser Master 2 - Z-Axis Control Part 3") ](https://www.youtube.com/watch?v=9gyDgsE6Fi8)

---

<div class="post-metadata">

**Author:** ![berainlb](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@berainlb](https://forum.lightburnsoftware.com/u/berainlb)\
**Post date:** [January 26, 2022, 11:16am UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/27 "2022-01-26T11:16:09Z")

</div>

Video looks like it’s set to private.

Curious. Are positive Z moves going up or down?

---

<div class="post-metadata">

**Author:** ![DanielS](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/daniels/32/36160_2.png) [@DanielS](https://forum.lightburnsoftware.com/u/DanielS)\
**Post date:** [January 26, 2022, 11:20am UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/28 "2022-01-26T11:20:05Z")

</div>

> [@berainlb](#):
>
> Video looks like it’s set to private.

Oops, fixed it.

> [@berainlb](#):
>
> Curious. Are positive Z moves going up or down?

Up goes up and down goes down.

I’ll be starting to look into the Firmware now and see if I can compile my own version with full Z-support.

---

<div class="post-metadata">

**Author:** ![berainlb](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@berainlb](https://forum.lightburnsoftware.com/u/berainlb)\
**Post date:** [January 26, 2022, 11:24am UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/29 "2022-01-26T11:24:08Z")

</div>

> [@DanielS](#):
>
> Up goes up and down goes down

How about for the Z-offset?

> [@DanielS](#):
>
> starting to look into the Firmware now

What source are you using as the base? I think there are a couple of different projects that have STM32 implementations.

---

<div class="post-metadata">

**Author:** ![DanielS](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/daniels/32/36160_2.png) [@DanielS](https://forum.lightburnsoftware.com/u/DanielS)\
**Post date:** [January 26, 2022, 1:26pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/30 "2022-01-26T13:26:07Z")

</div>

> [@berainlb](#):
>
> How about for the Z-offset?

Not sure what you are referring to. When I power on the machine the software-reported Z-position is always 0.00. That also means that it is necessary to disable “Soft limits ($20)”, as otherwise it wouldn’t be possible to lower the laser. Proper homing would definitely help here.

> [@berainlb](#):
>
> What source are you using as the base? I think there are a couple of different projects that have STM32 implementations.

I found a couple of repos but it seems that most (all?) of them are based on GRBL 1.1f and not 1.1h. I’ll have to spend a bit more time looking into it.

---

<div class="post-metadata">

**Author:** ![berainlb](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@berainlb](https://forum.lightburnsoftware.com/u/berainlb)\
**Post date:** [January 26, 2022, 2:52pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/31 "2022-01-26T14:52:33Z")

</div>

> [@DanielS](#):
>
> Not sure what you are referring to

I meant in terms of position. Either in cut settings:

 ![image](https://forum.lightburnsoftware.com/uploads/default/original/3X/f/3/f361c63402d9611e7dbdb097c283b65ad9690f88.png)

Or if you push Z-up with the move button, does “get position” Z increase or decrease in value?

---

<div class="post-metadata">

**Author:** ![jkwilborn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/jkwilborn/32/63089_2.png) [@jkwilborn](https://forum.lightburnsoftware.com/u/jkwilborn)\
**Post date:** [January 26, 2022, 3:06pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/32 "2022-01-26T15:06:27Z")

</div>

Until you get it fixed, you will have to move Z to where ever you want Z to be 0, just like any other machine with no limit switches… At least you can use it…

I had one of those flexible shaft collars on my little CNC, it had terrible backlash. Ended up pitching it for a solid one.

If everything is lined up, it shouldn’t be an issue…

Good luck, keep us informed about the firmware modifications.

😸

---

<div class="post-metadata">

**Author:** ![DanielS](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/daniels/32/36160_2.png) [@DanielS](https://forum.lightburnsoftware.com/u/DanielS)\
**Post date:** [January 26, 2022, 3:32pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/33 "2022-01-26T15:32:07Z")

</div>

> [@berainlb](#):
>
> I meant in terms of position. Either in cut settings:

Oh yea, that works flawlessly. 5 passes with some extreme offset per pass:

[![](https://img.youtube.com/vi/zZO3sUkOoAM/maxresdefault.jpg "Ortur Laser Master 2 - Z-Axis Control Part 4") ](https://www.youtube.com/watch?v=zZO3sUkOoAM)

> [@jkwilborn](#):
>
> I had one of those flexible shaft collars on my little CNC, it had terrible backlash. Ended up pitching it for a solid one.

I can imagine. Fortunately there’s nothing it has to push against here. I have tightened everything down nicely and it doesn’t budge. I didn’t get to actually cutting anything yet but I will test everything soon.

---

<div class="post-metadata">

**Author:** ![chazmills](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@chazmills](https://forum.lightburnsoftware.com/u/chazmills)\
**Post date:** [March 29, 2022, 2:05pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/34 "2022-03-29T14:05:17Z")

</div>

This is mine on a similar laser module (Scupfun S9). I’ve still to get Lightburn to move it yet, that’s why I’m here!

 ![image](https://forum.lightburnsoftware.com/uploads/default/original/3X/7/d/7d09ef5f19f5c71c8236c164c396064754141569.jpeg)

---

<div class="post-metadata">

**Author:** ![chazmills](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@chazmills](https://forum.lightburnsoftware.com/u/chazmills)\
**Post date:** [March 29, 2022, 2:13pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/35 "2022-03-29T14:13:11Z")

</div>

I managed to get the Z axis to move using the X or Y axis cables so not a problem with the motor or mount. I also checked my home made cable to control X motor and it worked so I went on to activate the Z axis in Lightburn and pressed the up/down icons but just get a click from the X and Y motors and no movement of Z :(.  
Anyone have Sculpfun code I can have IF that’s the problem?

---

<div class="post-metadata">

**Author:** ![berainlb](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@berainlb](https://forum.lightburnsoftware.com/u/berainlb)\
**Post date:** [March 29, 2022, 2:26pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/36 "2022-03-29T14:26:05Z")

</div>

Does the Sculpfun S9 controller come with a port for Z-axis? Or this is something you hacked?

---

<div class="post-metadata">

**Author:** ![DanielS](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/daniels/32/36160_2.png) [@DanielS](https://forum.lightburnsoftware.com/u/DanielS)\
**Post date:** [March 29, 2022, 2:27pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/37 "2022-03-29T14:27:07Z")

</div>

I don’t know anything about the Sculpfun S9 but after looking at a few pictures of the mainboard, it looks to me as if there are only two stepper drivers on it (for X and Y). There is, however, space for a additional stepper driver module, such as this one here: [https://www.aliexpress.com/item/4000287103822.html](https://www.aliexpress.com/item/4000287103822.html)  
With this module installed you might be able to control the Z-axis.

 ![U2d42b5f696af42eca94960c1b9368ad4A](https://forum.lightburnsoftware.com/uploads/default/original/3X/4/f/4f1569248174857ee90de61ae3de0972ae6d77c7.jpeg)

---

<div class="post-metadata">

**Author:** ![berainlb](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@berainlb](https://forum.lightburnsoftware.com/u/berainlb)\
**Post date:** [March 29, 2022, 2:42pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/38 "2022-03-29T14:42:46Z")

</div>

Nice find.

I didn’t realize that the Sculpfun S9 is using a generic board. Or a lightly modified board. This looks like a slightly optimized MKS DLC with integrated stepper drivers.

Lots of interesting things on the board including ports meant for CNC operation and a probe. The serial headers are a nice touch and could be used to convert this to wireless.

---

<div class="post-metadata">

**Author:** ![DanielS](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/daniels/32/36160_2.png) [@DanielS](https://forum.lightburnsoftware.com/u/DanielS)\
**Post date:** [March 29, 2022, 2:50pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/39 "2022-03-29T14:50:56Z")

</div>

I’m actually not sure if that’s really the board that’s being used, but it’s the one that comes up when I search for “Sculpfun S9 mainboard”.

---

<div class="post-metadata">

**Author:** ![berainlb](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@berainlb](https://forum.lightburnsoftware.com/u/berainlb)\
**Post date:** [March 29, 2022, 2:57pm UTC](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869/40 "2022-03-29T14:57:09Z")

</div>

I did some additional searching and that does seem to be the one provided by Sculpfun. Other note is that this use an Atmega328p which would make this compatible with Arduino based firmware in case people were dissatisfied with the factory firmware.

[Previous page](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869.md?page=1)

[Next page](https://forum.lightburnsoftware.com/t/olm2-adding-z-axis-stepper-driver-to-mainbaord/55869.md?page=3)
