# Marlin code for cnc

**URL:** <https://rootcnc.discourse.group/t/marlin-code-for-cnc/59>\
**Category:** Root Controller\
**Tags:** root-3-lite\
**Created:** [7 April 2021 17:41 UTC](https://rootcnc.discourse.group/t/marlin-code-for-cnc/59 "2021-04-07T17:41:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebash1992](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@sebash1992](https://rootcnc.discourse.group/u/sebash1992)\
**Post date:** [7 April 2021 17:41 UTC](https://rootcnc.discourse.group/t/marlin-code-for-cnc/59/1 "2021-04-07T17:41:13Z")

</div>

Hi all, anyone has a link with a marling configuration for root cnc?

Regards

---

<div class="post-metadata">

**Author:** ![sailorpete](https://yyz2.discourse-cdn.com/free1/user_avatar/rootcnc.discourse.group/sailorpete/32/7_2.png) [@sailorpete](https://rootcnc.discourse.group/u/sailorpete)\
**Post date:** [9 April 2021 08:55 UTC](https://rootcnc.discourse.group/t/marlin-code-for-cnc/59/2 "2021-04-09T08:55:37Z")

</div>

Hi,

So I no longer have a Root 3 Lite CNC machine now, I sold it to make way for the big Root 4 CNC machine.

It would seem I managed to delete that variant from my Github page. So what I’ve done is take a new Fork of the current marlin configurations and make the changes I think are necessary for the Root 3 Lite CNC.

You can find that here:

> **[GitHub - RootCNC/Marlin: Marlin is an optimized firmware for RepRap 3D...](https://github.com/RootCNC/Marlin)**
>
> Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. | Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for yo...

You can see my changes for searching the term

> “// Root CNC”

In

> Configuration.h  
> Confiurgation\_adv.h

I’ve not compiled the code so please take it as a start point.

---

<div class="post-metadata">

**Author:** ![sebash1992](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@sebash1992](https://rootcnc.discourse.group/u/sebash1992)\
**Post date:** [11 April 2021 01:41 UTC](https://rootcnc.discourse.group/t/marlin-code-for-cnc/59/3 "2021-04-11T01:41:33Z")

</div>

HI, Thanks. i am not able to find the configurations. Do you create a new branch?

Regards

---

<div class="post-metadata">

**Author:** ![sailorpete](https://yyz2.discourse-cdn.com/free1/user_avatar/rootcnc.discourse.group/sailorpete/32/7_2.png) [@sailorpete](https://rootcnc.discourse.group/u/sailorpete)\
**Post date:** [11 April 2021 08:51 UTC](https://rootcnc.discourse.group/t/marlin-code-for-cnc/59/4 "2021-04-11T08:51:58Z")

</div>

Ah try now!

someone didnt upload the commit to the github!

whoopsy.

---

<div class="post-metadata">

**Author:** ![sebash1992](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@sebash1992](https://rootcnc.discourse.group/u/sebash1992)\
**Post date:** [17 April 2021 20:48 UTC](https://rootcnc.discourse.group/t/marlin-code-for-cnc/59/5 "2021-04-17T20:48:43Z")

</div>

Yeap i am able to see now. Something missing is the number of extruders. I chaged that and was able to upload. What software do you use to send gcode to the router, since mach 3 is not working with my cnc.

Last question, what program do you use/recomend to convert your vectors to gcode?

Regards for all your help

---

<div class="post-metadata">

**Author:** ![joedankoz](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@joedankoz](https://rootcnc.discourse.group/u/joedankoz)\
**Post date:** [26 April 2021 00:06 UTC](https://rootcnc.discourse.group/t/marlin-code-for-cnc/59/6 "2021-04-26T00:06:33Z")

</div>

Just had some questions on the Marlin code as well. I had the same result that if I set the extruders to 0, I did not get the following error (when it was set to 1):  
“TEMP\_SENSOR\_0 is required if there are any extruders.”

#error “TEMP\_SENSOR\_0 is required if there are any extruders.”

Other updates I’m wondering about from referencing the BOM was changing the motherboard type from:  
BOARD\_RAMPS\_13\_SF  
to:  
BOARD\_RAMPS\_14\_SF  
and am not sure if we need to change the stepper driver option in config.h  
from:  
//define X\_DRIVER\_TYPE A4988  
//define Y\_DRIVER\_TYPE A4988  
//define Z\_DRIVER\_TYPE A4988  
to:  
define X\_DRIVER\_TYPE DRV8825  
define Y\_DRIVER\_TYPE DRV8825  
define Z\_DRIVER\_TYPE DRV8825

---

<div class="post-metadata">

**Author:** ![Pete](https://yyz2.discourse-cdn.com/free1/user_avatar/rootcnc.discourse.group/pete/32/7_2.png) [@Pete](https://rootcnc.discourse.group/u/Pete)\
**Post date:** [27 April 2021 21:46 UTC](https://rootcnc.discourse.group/t/marlin-code-for-cnc/59/7 "2021-04-27T21:46:29Z")

</div>

Ah I see - well that Temp sensor will need to be updated then.

I don’t think the BOARD\_RAMPS\_13\_SF or BOARD\_RAMPS\_14\_SF makes any difference to Marlin but would be wise to select the latest.

Additionally, the two different motor types for the A4988 and the DRV8825 are identical I believe - so changing between the two should make no difference. these two drivers use the interface and the step/ control signals are the same. This section is only value added with you use the TMC kind of stepper motor drivers which require SPI or serial.

But I’ll get those updates done.

---

<div class="post-metadata">

**Author:** ![Pete](https://yyz2.discourse-cdn.com/free1/user_avatar/rootcnc.discourse.group/pete/32/7_2.png) [@Pete](https://rootcnc.discourse.group/u/Pete)\
**Post date:** [27 April 2021 21:49 UTC](https://rootcnc.discourse.group/t/marlin-code-for-cnc/59/8 "2021-04-27T21:49:04Z")

</div>

Updates are done and commit to GitHub
