<h2>RAMPS capabilities</h2>
<p>To be more speficic: RAMPS board (versions 1.3 - 1.6) offer possibility to connect <strong>5 stepper motor drivers</strong> (on the board marked X, Y, Z, E0, E1) and <strong>6 stepper motors</strong>, because the Z axis motor's connector is doubled (this is classic design of reprap printer). I could also see other RAMPS versions/clones (1.6+, 1.7 prototype) which have doubled connectors for X and Y axis motors - so allowing 8 motors in total.</p>
<h2>Firmware configuration</h2>
<p>Marlin firmware allows to setup in <em>Configuration.h</em> the motherboard with RAMPS configuration (extruder, fan, bed, etc.) and number of extruders. Look for lines:</p>
<pre><code>#define MOTHERBOARD BOARD_RAMPS_14_EFB

#define EXTRUDERS 1
</code></pre>
<h2>Firmware behavior</h2>
<p>RAMPS wiring (as in diagram at Tom van der Zanden's response) is reflected in Marlin's file <em>pins_RAMPS.h</em>. When <code>EXTRUDERS</code> is set to <code>1</code>, Marlin will use <code>E0_..._PIN</code> setings from this file to communicate with proper stepper driver board (and the driver will communicate with the motor).</p>
<p>Marlin will enable steppers only when required (for example it will not refer to E1 in the basic configuration). Even when they got idle, they will remain powered for some longer period, defined in <em>Configuration_adv.h</em>:</p>
<pre><code>#define DEFAULT_STEPPER_DEACTIVE_TIME 120
</code></pre>
<h2>Important remarks</h2>
<p>Be careful installing drivers and cables. Double-check the driver board's orientation in slot of RAMPS. Solder cables properly, mount them tightly, fix to the frame, etc. Use ceramic or plastic screwdrivers for motor power regulation (I bought one which doesn't fit well, and sculpted my own from 2.85mm filament). It is important to remember to never unplug powered motors and drivers. (There is LCD menu option &quot;Motion &gt; Disable steppers&quot;, but I always power off the machine to do something. Also, I had non-intentional accidents of broken wires causing unreliable work of extruder, and fortunately the board survived.)</p>

CC BY-SA 4.0
2021-01-09T15:17:35.313Z
2021-01-09T15:17:35.313Z
octopus8
<p>There is no problem with using 4 motors instead of 5. The 5th slot is provided to enable use of a second extruders, but many people only have a single extruder printer and leave the 5th slot unused.</p>
<blockquote>
<p>how will Marlin figure out which slot the extruder is connected</p>
</blockquote>
<p>Which stepper motor is in which slot is something you can configure in the firmware. There is no way for the firmware to &quot;figure it out&quot; without help.</p>
<p>It is quite involved to change it in the firmware, so it is best to follow the default placement. You can easily find <a href="https://reprap.org/wiki/File:Rampswire14.svg" rel="nofollow noreferrer">wiring diagrams for RAMPS</a> (showing the default assignment of motors to slots) on various resources such as the RepRap wiki.</p>

CC BY-SA 4.0
2021-01-09T09:57:56.987Z
2021-01-09T09:57:56.987Z
Tom van der Zanden
<p>I am making a DIY 3D printer based on the Prusa mini. So, I doubt whether RAMPS can control only 4 stepper motors as it has slots for 5 stepper motor slots and one will not be used in my case. If I can, in what order should I connect the drivers and also how will Marlin figure out which slot the extruder is connected? Sorry for the lack of knowledge if it is really obvious  :|</p>

<diy-3d-printer><stepper-driver><ramps><prusa-mini>
Will RAMPS able to control 4 stepper motors
Leo Red
# Will RAMPS able to control 4 stepper motors

(Asked by: username_0 on 2021-01-09)

I am making a DIY 3D printer based on the Prusa mini. So, I doubt whether RAMPS can control only 4 stepper motors as it has slots for 5 stepper motor slots and one will not be used in my case. If I can, in what order should I connect the drivers and also how will Marlin figure out which slot the extruder is connected? Sorry for the lack of knowledge if it is really obvious :|

**Tags:** diy-3d-printer, stepper-driver, ramps, prusa-mini


---

## 2 answers

### Answer by username_1 on 2021-01-09. Score: 4

## RAMPS capabilities

To be more speficic: RAMPS board (versions 1.3 - 1.6) offer possibility to connect **5 stepper motor drivers** (on the board marked X, Y, Z, E0, E1) and **6 stepper motors**, because the Z axis motor's connector is doubled (this is classic design of reprap printer). I could also see other RAMPS versions/clones (1.6+, 1.7 prototype) which have doubled connectors for X and Y axis motors - so allowing 8 motors in total.

## Firmware configuration

Marlin firmware allows to setup in *Configuration.h* the motherboard with RAMPS configuration (extruder, fan, bed, etc.) and number of extruders. Look for lines:

```
#define MOTHERBOARD BOARD_RAMPS_14_EFB

#define EXTRUDERS 1

```

## Firmware behavior

RAMPS wiring (as in diagram at Tom van der username_2's response) is reflected in Marlin's file *pins\_RAMPS.h*. When `EXTRUDERS` is set to `1`, Marlin will use `E0_..._PIN` setings from this file to communicate with proper stepper driver board (and the driver will communicate with the motor).

Marlin will enable steppers only when required (for example it will not refer to E1 in the basic configuration). Even when they got idle, they will remain powered for some longer period, defined in *Configuration\_adv.h*:

```
#define DEFAULT_STEPPER_DEACTIVE_TIME 120

```

## Important remarks

Be careful installing drivers and cables. Double-check the driver board's orientation in slot of RAMPS. Solder cables properly, mount them tightly, fix to the frame, etc. Use ceramic or plastic screwdrivers for motor power regulation (I bought one which doesn't fit well, and sculpted my own from 2.85mm filament). It is important to remember to never unplug powered motors and drivers. (There is LCD menu option "Motion > Disable steppers", but I always power off the machine to do something. Also, I had non-intentional accidents of broken wires causing unreliable work of extruder, and fortunately the board survived.)


---

### Answer by username_2 on 2021-01-09. Score: 3

There is no problem with using 4 motors instead of 5. The 5th slot is provided to enable use of a second extruders, but many people only have a single extruder printer and leave the 5th slot unused.

> how will Marlin figure out which slot the extruder is connected

Which stepper motor is in which slot is something you can configure in the firmware. There is no way for the firmware to "figure it out" without help.

It is quite involved to change it in the firmware, so it is best to follow the default placement. You can easily find [wiring diagrams for RAMPS](https://reprap.org/wiki/File:Rampswire14.svg) (showing the default assignment of motors to slots) on various resources such as the RepRap wiki.


---

