Probably the machine for which Smoothie is most used, due to Smoothie’s roots in the RepRap project, 3D printers are fairly simple to Smoothiefy.
This is a step-by-step guide to connecting your board to the various components of the 3D printer, configuring everything, from the beginning to actual printing.
This guide is a community effort, and this page is a Wiki. Please don’t hesitate to edit it to fix mistakes and add information, any help is very welcome.
On a typical 3D printer setup, installing a Smoothieboard will mean you do the following things:
This guide will walk through everything you need to accomplish to successfully perform these steps.
At the end of this guide, you should have a fully working machine.
Some users have hand-translated this page. Note that this translated version is by definition never going to be up-to-date. Use it to help you understand in general, but any specific information should be taken from the original version, especially before asking the community for help.
Your Smoothieboard comes with a micro SD card in the microSD slot. The boards come pre-flashed with the latest firmware. With a basic configuration file installed on the SD card, no preparation is needed before you can connect Smoothieboard to your computer and start interacting with it.
Your Smoothieboard V2 Prime comes with an SD card (2-8 GB) in the SDIO slot, pre-loaded with firmware and a default configuration. The boards come pre-flashed with the latest firmware. With a default configuration file already installed on the SD card, you can connect your board immediately. The V2 also includes an onboard Ethernet port for network connectivity, which is the recommended communication method.
Leave the SD card in the board. The first thing you might want to do before you start connecting your board is to look at our list of Software, and install a “host” program to talk to the board.
A good first step is to connect your board to your computer to familiarize yourself with it.
Connect a USB-B cable to the USB connector on the board, and to your computer. A moment after connection, your computer will recognize the Smoothieboard as a USB Mass Storage Device (like a USB disk-drive or an SD card reader), showing you the files present on the SD card. The SD card should show up as a removable drive.
Drivers are needed for Windows 7/8, while Linux and macOS directly support the device. See Windows drivers if you can’t open the serial port.
Connect a USB-C cable that carries data to the USB connector on the board, and to your computer. A moment after connection, your computer will recognize the Smoothieboard V2 as a USB Mass Storage Device (like a USB disk-drive or an SD card reader), showing you the files present on the SD card.
USB drivers are typically not needed on Linux, macOS, or modern Windows systems. The SDIO SD card interface provides much faster transfer rates (10-25 MB/s) than USB Mass Storage. If the SD card doesn’t show up as a removable drive, check how to enable USB mass storage for your firmware.
This allows you to add, copy, edit, or delete any file you’d like.
Already present on the SD card is a configuration file.
This file is named “config” and contains all of the configuration options for your board in a flat text format. The file is read when you start or reset your board.
This file uses INI-style sections (for example [actuator], [motion control]) with hierarchical settings. The file is read when you start or reset your board. V2 configuration is structured differently from V1, so refer to the configuration guide for proper formatting.
When the drive appears, open the configuration file in a plain text editor (a Text Editor is enough). See Configuring Smoothie for the filename and format for your board. Save the file, eject the drive, then reset the board to read the new settings. There is no need to recompile or flash the board.
USB Mass Storage is not the only thing you get when you connect the board. The board also exposes a USB CDC serial interface, allowing you to send G-code and receive answers. (There is also a DFU interface for flashing firmware, but that is mostly for developers.)
The CDC (serial) interface is the one host programs like Pronterface use to let you interact with your machine. If you are already familiar with it, you can try connecting right now and get an answer from the board. If not, it is all explained later in this guide.
The 4X and 5X can use Ethernet. If you have an early board, check whether you need to fit a magnetic RJ45 jack. The 3X has no Ethernet port.
Network connectivity is optional and disabled by default, but is easy to enable and configure if you have the appropriate hardware.
On Prime, plug a network cable into the onboard Ethernet port (RJ45, with integrated PHY) on the board and into your router or switch, to connect directly to your local Ethernet network.
Network is disabled by default but is very easy to enable and configure. It is the recommended primary method of communicating with your V2 Smoothieboard.
Once you’ve enabled and configured the network interface, you can access a web interface the board serves and control the machine from your browser. You can also connect software that supports network connections (like Pronterface and Visicut) to your Smoothieboard over the network.
You can find all the information you need about using the network interface here: Network interface.
Before starting, a very good idea is to ensure you have the latest firmware version. This is particularly useful if you ever need to ask for help, as people helping you will be assuming you have the latest version.
Before updating, save a copy of the configuration on your SD card.
firmware.bin file.The new firmware will “flash” (you will see the LEDs on the board do a little “dance”), and you will then have the latest version.
flashme.bin).The new firmware will “flash” (you will see the LEDs on the board do a little “dance”), and you will then have the latest version.
You can find the file, and information on how to flash it, at Flashing Smoothie Firmware. Use that guide to choose the right file and method for your board; it also shows how to check the running version after the update.
This comes from the older wiki and has not been checked against the current firmware. Where the current firmware differs, the difference is stated.
The older wiki said of the Smoothieboard V1: “The Smoothieboard V1 can optionally be connected to an Ethernet network via USB-to-Ethernet adapter or external network expansion. This allows you to access a web interface the board can serve, and control the machine via your browser. It also allows you to connect software that supports it (like Pronterface and Visicut) via the network.” Which V1 boards have an Ethernet port is covered in the network section above; a USB-to-Ethernet adapter is not a supported way to get Ethernet on V1.
The older wiki described three V2 firmware update methods. Method 1 was the SD card (recommended for the first update): download the latest firmware.bin, copy it onto the SD card, reset the Smoothieboard V2. The current V2 firmware file is flashme.bin, as in the V2 steps above. Method 2 was a network update, once the network was configured, with a command:
update http://example.com/firmware.bin
The current V2 firmware has no such update network command (V2 is updated from the SD card as above), so do not rely on it.
If you are migrating from another firmware, these guides help you understand how some values from your old firmware match the values in your new Smoothie system. Smoothie uses different configuration parameters and approaches than other common CNC and 3D printer firmwares. Keep a copy of your old settings. You will need them when you set up the motors, endstops, and other parts of the machine.
Choose the guide that matches your current firmware:
If you are also changing boards, read the wiring warnings before reconnecting anything.
There are different ways of providing logic power to your board.
Your board needs two sorts of power to work:
Use the options for your board below. See main power input for the supply that powers your motors and loads.
USB cables provide 5V directly to the board.
This is the simplest method and works well for testing and setup.
By soldering a voltage regulator to the board (and providing 12+24V, which the voltage regulator then turns into 5V).
This allows the board to be powered from your main power supply.
By providing 5V directly to the 5V power input (next to the VBB power input).
This requires a separate 5V power supply.
If you want to keep it simple, the easiest solution is just to connect your Smoothieboard to your computer via USB.
Smoothieboard has diodes on-board that will simply get the power from the one with the highest voltage.
This means you can even turn one off and the other will be used without a reset.
If voltage and current are strange concepts to you, it’s probably a good idea before you continue setting up your board, that you read this introduction.
The board’s logic circuits (5V line) typically consume up to 500mA current (what is standard for a USB port).
Your board needs two sorts of power to work:
Smoothieboard v2 supports three different 5V power sources, with automatic switching between them:
The board has a built-in 3A switching regulator that converts your motor power (Vmot, 12-24V) to 5V.
| Specification | Value |
|---|---|
| Output Current | 3A continuous |
| Input Source | Vmot (12-24V) |
| Efficiency | 85-90% (switching regulator) |
| Disable Jumper | JP16 (near OSHW logo, top side) |
This is the preferred power source for most setups. It provides enough current to power:
USB provides 5V directly to the board, limited to ~500mA (USB specification).
| Specification | Value |
|---|---|
| Output Current | ~500mA (USB spec limit) |
| Disable Jumper | JP15 (bottom side, near 5V input) |
This is useful for:
You can provide 5V directly via the dedicated 5V input header.
| Specification | Value |
|---|---|
| Connector | 5Vin header |
| Current Capacity | Depends on your external supply (2-5A recommended) |
This is useful when you:
Smoothieboard v2 uses ideal diode ORing for automatic power source selection:
Typical priority order:
This means you can turn off one power source and the board will seamlessly switch to another without resetting!
Smoothieboard v2 has several LEDs to help you monitor power status:
| LED | Indicates |
|---|---|
| Vmot LED | Motor power present (12-24V) |
| Vfet LED | MOSFET power present (12-24V) |
| 3.3V LED | Logic power present (board is on) |
| MSD LED | Mass Storage Device mode active |
| Debug LEDs | 4× programmable status LEDs |
You can physically disable individual power sources by cutting jumpers:
If voltage and current are strange concepts to you, it’s probably a good idea before you continue setting up your board, that you read this introduction.
Here’s a typical power budget for a 3D printer with Raspberry Pi:
| Component | Current @ 5V |
|---|---|
| Board logic | ~300-500mA |
| Raspberry Pi 3 | ~500-1500mA |
| 7” touchscreen | ~400-700mA |
| Total | ~1.2-2.7A |
The onboard 3A regulator handles this comfortably with headroom to spare!
Without power, your board cannot do much. The board uses power to operate the control logic, move stepper motors, power heating elements, fans, and other peripherals.
Before you connect the supply, check fuse protection for the wiring between the supply and the board.
The motors and heaters take most of the current. For the controller and other 5 V loads, see Logic Power.
Two power supplies are required, 5.0V and ‘bulk’ power (VBB).
On V2 Prime, Vmot powers the motors and the 5 V regulator. VFET powers the MOSFET outputs for loads such as heaters and fans. Smoothieboard v2 uses a dual power architecture that separates motor power from MOSFET (heater/fan) power. This provides better current handling and more flexibility. See the power schematic for the connectors.
| Power Domain | Connector | Voltage | Purpose |
|---|---|---|---|
| Vmot | 1× XT30 | 12-24V DC | Stepper motors + 5V logic regulator |
| VFET | 2× XT30 | 12-24V DC | All MOSFET outputs (heaters, fans) |
| 5V | Built-in | 5V DC | Logic power (from Vmot regulator) |
| Specification | Value |
|---|---|
| Connector | XT30 |
| Voltage Range | 12-24V DC (24V recommended) |
| Powers | Stepper motor drivers + onboard 5V regulator |
| Typical Current | 5-15A depending on motors |
| Specification | Value |
|---|---|
| Connectors | 2× XT30 |
| Voltage Range | 12-24V DC |
| Current per Connector | 15A continuous |
| Total Current | 30A combined |
| Powers | All heaters, fans, SSR outputs |
Why 2× XT30 instead of 1× XT60?
Typical 24V 3D Printer:
| Component | Current @ 24V |
|---|---|
| 4× Stepper motors (1.5A each) | 6A |
| Heated bed (250W) | 10.4A |
| 2× Hotends (80W total) | 3.3A |
| 2× Fans (10W total) | 0.4A |
| Board logic + peripherals | ~2A equivalent |
| Total | ~22A |
Recommended PSU: 24V, 25-30A (600-720W)
Typical 12V 3D Printer:
| Component | Current @ 12V |
|---|---|
| 4× Stepper motors (1.5A each) | 6A |
| Heated bed (250W) | 20.8A |
| 2× Hotends (80W total) | 6.7A |
| 2× Fans (10W total) | 0.8A |
| Board logic + peripherals | ~4A equivalent |
| Total | ~38A |
Recommended PSU: 12V, 40-50A (480-600W)
The onboard 3A switching regulator provides 5V logic power automatically when Vmot is connected. See Logic Power for details on alternative 5V sources.
Multiple-output power supplies are available. In some cases, a minimum load must be applied to the primary output before the secondary output will be regulated to within tolerances. For example, a dual 5.0V and 12V supply might regulate the 5.0V well at no-load conditions, but the 12V output may be low until power is drawn from the 5.0V supply.
Electromagnetic Interference (EMI): Digital logic and power circuitry (such as stepper motor drivers) switches currents and voltages on and off very rapidly. This produces EMI proportional to the voltage, current and rate of switching. EMI can be radiated (as radio waves) and/or conducted through the power line cord or other connections. EMI can interfere with (produce noise in or prevent proper operation of) other equipment, including sensors and motion encoder modules. To reduce these effects, an EMI filter module may be added to help reduce the conducted emissions. An EMI filter module may not strictly be needed, however it is often simpler to take protective measures from the start rather than e.g. searching for the cause of strange, intermittent behavior or coming back to failed 3D prints for months – and then put in an EMI filter module.
A typical US AC wall outlet provides 110V to 120V and is protected by a fuse or circuit breaker with a 15A or 20A rating. As (for example) a motor load such as a refrigerator or saw briefly draws a much higher starting current, in order to avoid ‘nuisance trips’ a 20A rating does not instantly remove power when that load is exceeded.
A wall breaker protects the building wiring. It can allow much more current than the machine wiring or the power supply can handle.
On the DC side, a 12 V supply rated for 10 A can deliver up to 120 W. A VBB power supply rated (for example) 12V at 10A can provide up to 12V x 10A = 120W (Watts) of DC power. Power supplies are not 100% efficient, thus it will require 5% to 30% more than 120W of input power to produce 120W of output power. It is usually safe to assume at least 70% efficiency at full load (higher for more modern supplies), so the power supply will only need perhaps 1.5A at 120VAC input. A 1A, 5V supply will require much less than 1A at 120VAC input.
While the equipment can only use perhaps 2.5A, the AC wall outlet will provide at least 15A to 20A continuously without tripping the circuit breaker or blowing the fuse. It would be possible (though rare) for a fault condition that drew for example 10A at 120V = 1200W to occur, which would be a fire hazard, without tripping the breaker. If you wish to address this possibility, adding an additional fuse and/or circuit breaker with (for example) a 3A rating in line with the AC ‘hot’ wire will ensure that if there is a lot of excess power being drawn due to a circuit failure, then this fuse will blow or circuit breaker trip, and power will be removed. Too low a fuse or circuit breaker rating will result in ‘nuisance’ trips.
Use the supply’s input rating when sizing AC protection. For each DC branch, choose protection for the wire and the load it feeds. See fuse protection.
Make sure you use a Regulated Power Supply, make sure you connect the ground wire for the mains to the power supply, and if it has a fan, make sure it has sufficient space around it to let air flow and cool it appropriately.
To wire the power supply unit to mains (wall AC power), make sure you connect the right colored wires to the right connectors on the PSU. The 3 connectors are “live”, “neutral” and “ground”. Color changes from cable to cable. You can find charts for your specific country/cable on the internet, but the following colors are the most common:
| Standard | Load/live color | Neutral color | Earth color |
|---|---|---|---|
| US | Black | White | Green |
| Europe | Brown | Light blue | Yellow/Green |
Use the supply manufacturer’s terminal diagram. Keep the mains terminals enclosed and have the wiring and protective earth checked before powering the supply. Once the wires are connected to the PSU, make sure none of your computers is doing something important (like a system upgrade). In case something goes wrong, plug the PSU into a power strip with an on/off button. Then turn that button ON. If your house loses power, you did something wrong. If an LED illuminates on the PSU, the supply has turned on: unplug the PSU and continue. This only tells you the supply turned on, so keep the check of the wiring and protective earth above.
If you are new to wiring, please check our how to wire guide.
Now that the PSU is getting mains power, your PSU is converting it into 12V or 24V DC (Direct Current) power. You need to connect wires from it to the Smoothieboard to provide power.
The most important thing for DC is to respect polarity: + goes to +, - goes to -. On the PSU, + terminals are indicated as +, V+, 12V+ or 24V+. Ground (-) terminals are indicated as -, V-, COM or GND.
On the Smoothieboard they are indicated simply as + and -.
Wiring Diagram: Refer to the Smoothieboard power connection diagram for visual reference on connecting power supplies.
By convention, black (sometimes brown) wires are used for ground, and red (sometimes orange, white or yellow) wires are used for power connections.
You may want to turn on the power supplies and test the output voltages before connecting them to the Smoothieboard (and turn them back off before connecting).
Once the wires are correctly connected, you can turn the PSU ON. If everything was done correctly, the red LED (marked VBB) on the Smoothieboard will light up brightly.
Now that the board has power, you can use that power to move things!
It is recommended you setup an emergency stop button on your machine, so that in case of a problem, you can easily and quickly turn the machine off. For information on how to do this, please read EmergencyStop.
A bit of theory:
« A stepper motor (or step motor) is a brushless DC electric motor that divides a full rotation of the motor into a number of equal steps. The motor’s position can then be commanded to move and hold at one of these steps without any feedback sensor (an open-loop controller). » (Wikipedia)
Because they work by steps, and you can accurately control how many steps you move in each direction, stepper motors are a very practical way of moving things to a desired position. This makes them great for most CNC applications.
Smoothieboards have drivers for bipolar stepper motors. Check the driver current range for your board in the v1 specifications or v2 Prime driver guide.
10mH is bad.
12V, where "CNC" steppers have voltage below 5V.
Bipolar stepper motors have two poles (bi-polar). Each pole is connected to two wires. That’s 4 wires coming out of your stepper motor. These have to be connected to your Smoothieboard.
Each stepper motor driver on the Smoothieboard has 4 connections to that effect. (Stepper motor drivers are labeled M1, M2 etc…)
The tricky thing is often to find out which wires connect to which poles. If you just wire things at random, you have a chance it will work, but let’s be scientific about it. Several methods:
Now to connect the wires to the Smoothieboard. Let’s call one coil A, and the other coil B. It doesn’t matter which is which. Polarity also doesn’t matter, all it changes is the direction the motor turns, and you can change that in the configuration file. Now simply connect your two wires to the Smoothieboard’s 4 pins for that stepper motor driver as such: AABB or BBAA. Other combinations like ABBA or ABAB will not work.
Once your stepper motor is properly connected to your Smoothieboard, it is ready to be controlled.
In this example, a stepper motor is connected to the M1 driver, and power is provided to VBB (the main power input).
Use an external driver if the motor is outside your on-board driver’s range or if you need another motor channel.
Use the external driver appendix for step, direction, and enable wiring. If you have a Prime with a free Gadgeteer header and need one more channel, the Allegro stepper driver breakout takes those signals and a separate 12–24 V motor supply. Check the breakout’s current range against the motor before using it.
Example configurations are available on GitHub.
You can also refer to the Configuration documentation.
The first thing you have to do is tell the stepper motor drivers what is the current rating for your stepper motors is. To drive the stepper motor correctly, the driver has to know the motor’s current rating.
Each stepper motor model has a precise current rating. You can drive your stepper motor at a lower current, which will make it more silent, but also less powerful. But you cannot drive the motor at a higher current than it is rated at. This would cause overheating, and possibly skipped steps.
The rating is often written on your stepper motor’s label (see picture on the right). If it is not, you can get it by googling the stepper motor model number, or by contacting your seller or manufacturer.
Once you have the correct rating, you can set the corresponding parameter in the configuration file.
Smoothie has a funny way of naming stepper motor drivers. Instead of naming them X, Y or Z, because this makes no sense in non-cartesian robots like delta robots, we name the drivers using Greek letters so they are arm application agnostic:
| Label on the Smoothieboard | Axis in a Cartesian machine | Greek letter | Current setting configuration option |
|---|---|---|---|
| M1 | X (left-right) | α (alpha) | |
| M2 | Y (front-back) | β (beta) | |
| M3 | Z (up-down) | γ (gamma) | |
| M4 | E0: First extruder | δ (delta) | |
| M5 | E1: Second extruder | ε (epsilon) |
Now, as described in the “Unboxing” paragraph, connect the board to your computer, open the “config” file with a text editor, and change the configuration value for each stepper motor driver to the correct value.
For example, if your alpha stepper motor has a current rating of 1.68A, edit the corresponding line to read:
alpha_current 1.68 # X stepper motor current
[current control]
alpha.current = 1.68 # X stepper motor current
Do this for each stepper motor you have to connect to the board. (If you have a Cartesian robot, see which motor connects to which stepper driver in the array above. If you use another type of arm solution, see the specific documentation.)
A stepper motor driver operates in steps. It moves a certain number of steps in one direction, then a certain number of steps in another. You think in millimeters. You want your machine to go to a certain position in millimeters, then another position in millimeters.
You need Smoothieboard to convert the millimeters you ask of it, into steps the stepper motor driver understands.
That conversion depends on your exact arm solution. The most common, and the simplest, is the Cartesian arm solution, and it is the one we will focus on here. Documentation for other arm solutions can be found separately.
In the case of a Cartesian arm solution, you simply convert a certain number of millimeters to a certain number of steps. That is the
To compute it, you must multiply a certain number of factors.
The formula is as follows:
steps per millimeter = ((full steps per rotation) x (microsteps per step)) / (millimeters per rotation)
To help you, there is an awesome calculator by the awesome Josef Prusa: http://calculator.josefprusa.cz/
Once you know the correct value for a given stepper motor driver, set it in the config file.:
alpha_steps_per_mm 80 # Steps per mm for alpha stepper
[actuator]
alpha.steps_per_mm = 80 # Steps per mm for alpha stepper
Do this for each stepper motor driver.
In the case of your extruder stepper motor, the principle is the same, but the value is
Here is a good video on steps per millimeters:
It is now time to test your stepper motors. For this, you will need to use host software like Pronterface or the web interface.
Now connect to your Smoothieboard over the serial interface. Power your machine on by plugging the PSU into the wall.
Now you need to move an axis to make sure the stepper motor is turning in the right direction. In Pronterface, click near the yellow arrow marked “+X”.
Your X axis will move. If it moved to the right, great! Everything is fine, and you have nothing to change. If it moved to the left, you need to invert the direction of that axis.
You do this by editing the configuration file, and inverting the direction pin for that stepper motor driver:
alpha_dir_pin 0.5 # Pin for alpha stepper direction
Becomes:
alpha_dir_pin 0.5! # Pin for alpha stepper direction
[actuator]
alpha.dir_pin = 0.5 # Pin for alpha stepper direction
Becomes:
[actuator]
alpha.dir_pin = 0.5! # Pin for alpha stepper direction (inverted)
This is for your axes. In the case of your extruder, the config value is
Save the config file, reset the Smoothieboard, connect again using Pronterface. Now the axis will move in the right direction.
Do this for each axis.
On a typical “Cartesian” machine, each actuator (a motor and a linear rail, named alpha, beta, gamma) corresponds to an axis (like X, Y, and Z).
However, on other machines, the position in Cartesian space (X, Y, Z) must be converted, using math, into a more complex position for the actuators.
This is the case, for example, of linear delta (often just called “delta”) machines.
Smoothieware supports multiple arm/motion solutions to accommodate different machine architectures. The table below shows which solutions are available in each firmware version. Find the way your machine moves in it. Follow its link for the wiring and settings that go with it.
| Setting | v1 | v2 | Description | Documentation |
|---|---|---|---|---|
| Yes | Yes | Standard X/Y/Z configuration where each motor directly controls one axis | Cartesian | |
| Yes | Yes | Three vertical linear rails in triangular configuration (Rostock, Kossel) | Delta | |
| Yes | Yes | Crossed-belt system where both motors contribute to X and Y movement | HBot/CoreXY | |
| Yes | Yes | Crossed-belt variant where both motors contribute to X and Z movement | CoreXZ | |
| Yes | Yes | SCARA-style robotic arm with two parallel rotary joints | Morgan SCARA | |
| Yes | Yes | Delta variant using rotating joints instead of linear slides (experimental) | Rotary Delta | |
| Yes | No | Cartesian system rotated by a specified angle (v1 only) | Rotatable Cartesian |
linear_delta, delta, rostock, or kossel all select Linear Deltahbot or corexy both select HBot (they use the same implementation)morgan selects Morgan SCARASet
arm_solution cartesian
For example, to configure a linear delta printer:
arm_solution linear_delta
[motion control]
arm_solution = cartesian
For example, to configure a linear delta printer:
[motion control]
arm_solution = linear_delta
If no arm solution is specified, cartesian is used by default.
Extruders are used to push plastic filament through a hotend, to achieve the awesome feat of 3D Printing.
This module controls the motor that pushes the filament, it does not take care of the hotend itself, which is the job of TemperatureControl.
Steps Per Millimeter Configuration:
The most important parameter to get your extruder module to work properly is the steps per millimeter setting:
extruder.hotend.steps_per_mm 140
[extruder]
hotend.steps_per_mm = 140
You can create as many Extruder modules as you want (although you may run out of memory and Smoothie will no longer boot), as long as you give them different module names.
You can name those modules whatever you want (as long as you stick to only alphanumerical characters).
make AXIS=6.
We need to find the number of steps the stepper motor drivers have to generate in order to move the filament 1 millimeter.
This value depends on your stepper motor, the microstepping on your stepper motor drivers, the gear reduction ratio on the extruder assembly if any, and the diameter of your hobbed pulley/bolt.
A very good guide on how to find this value can be found here: Triffid Hunter’s Calibration Guide.
extruder.hotend.steps_per_mm 140
[extruder]
hotend.steps_per_mm = 140
This is an optional parameter for those who want to use volumetric extrusion, but are too lazy to do their own math. ;)
Simply enter the machine’s filament diameter here and set your slicer’s filament diameter to 1.128379mm (2*sqrt(1/pi)) and enjoy portable gcode!
Further explanation can be found in Triffid Hunter’s guide, linked above.
extruder.hotend.filament_diameter 3.0
[extruder]
hotend.filament_diameter = 3.0
The filament diameter can also be saved at runtime with this M code:
| Set E units for volumetric extrusion - D |
and saved with
Note this is optional, you are not obligated to set this up, but it is a nice feature if you want to use it.
The amounts of extrusion and speed can be set with the following M codes:
| set retract length S[positive|mm] F[feedrate|mm/min] Z[additional|zlift/hop] Q[zlift|feedrate mm/min] | ||
| set retract recover length S[positive|mm surplus to the M207 S*] F[feedrate|mm/min] |
or can be set in config with the following settings:
extruder.hotend.retract_length 3 # retract length in mm
extruder.hotend.retract_feedrate 45 # retract feedrate in mm/sec
extruder.hotend.retract_recover_length 0 # additional length for recover
extruder.hotend.retract_recover_feedrate 8 # recover feedrate in mm/sec (should be less than retract feedrate)
extruder.hotend.retract_zlift_length 0 # zlift on retract in mm, 0 disables
extruder.hotend.retract_zlift_feedrate 6000 # zlift feedrate in mm/min (Note mm/min NOT mm/sec)
[extruder]
hotend.retract_length = 3 # retract length in mm
hotend.retract_feedrate = 45 # retract feedrate in mm/sec
hotend.retract_recover_length = 0 # additional length for recover
hotend.retract_recover_feedrate = 8 # recover feedrate in mm/sec (should be less than retract feedrate)
hotend.retract_zlift_length = 0 # zlift on retract in mm, 0 disables
hotend.retract_zlift_feedrate = 6000 # zlift feedrate in mm/min (Note mm/min NOT mm/sec)
These can be set differently for each extruder defined.
As all stepper motors, the extruder stepper motor needs 3 pins to be controlled: step, direction, and enable (See Pin Reference and Pinout):
1st Extruder (delta, or M4)
extruder.hotend.step_pin 2.3
extruder.hotend.dir_pin 0.22
extruder.hotend.en_pin 0.21
[extruder]
hotend.step_pin = PD3
hotend.dir_pin = PD4
hotend.en_pin = PD5
2nd Extruder (epsilon, or M5)
extruder.hotend2.step_pin 2.8
extruder.hotend2.dir_pin 2.13
extruder.hotend2.en_pin 4.29
On boards which feature current control of the stepper motor drivers (Smoothieboard or 4pi), you have to set that value for the extruder too.
This is handled by the Currentcontrol module, but usually, the line for the configuration of a given stepper motor is written along with its pins, for clarity.
delta_current 1.5
[tmc2660]
delta.current = 1500 # Current in milliamps (mA), not Amps
[tmc2660] or [tmc2590] section depending on your driver type.
Set the value to the exact value your stepper motor is rated for (or less, for less noise, but less torque).
Setting the current to a value higher than the recommended one causes overheating, and skipped steps.
Here is an example of a common configuration and wiring of an extruder with a Smoothieboard.
This example setup is of an extruder (stepper motor) connected to the M4 stepper motor driver.
If your machine has multiple extruders, you also want to look at multiple-extruders.
The default Smoothie configuration example contains an example extruder section, this means you do not need to create a new one, but you can just re-use the sample one.
The configuration looks like this:
### Extruder module configuration
# See /extruder
extruder.hotend.enable true # Whether to activate the extruder module at all. All configuration is ignored if false
extruder.hotend.steps_per_mm 140 # Steps per mm for extruder stepper
extruder.hotend.acceleration 500 # Acceleration for the stepper motor mm/sec²
extruder.hotend.max_speed 50 # Maximum speed in mm/s
extruder.hotend.step_pin 2.3 # Pin for extruder step signal
extruder.hotend.dir_pin 0.22 # Pin for extruder dir signal (add '!' to reverse direction)
extruder.hotend.en_pin 0.21 # Pin for extruder enable signal
delta_current 1.5 # Current setting in Amperes for this motor driver
### Extruder module configuration
# See /extruder
[extruder]
hotend.enable = true # Whether to activate the extruder module at all
hotend.steps_per_mm = 140 # Steps per mm for extruder stepper
hotend.step_pin = PD3 # Pin for extruder step signal
hotend.dir_pin = PD4 # Pin for extruder dir signal (add '!' to reverse direction)
hotend.en_pin = PD5 # Pin for extruder enable signal
[actuator delta]
acceleration = 500 # Acceleration for the stepper motor mm/sec²
[motion control]
max_speed = 50 # Maximum speed in mm/s
[tmc2660]
delta.current = 1500 # Current setting in milliamps for this motor driver
Now that your extruder is configured, you can wire it:
Wiring your extruder stepper motor is very similar to how you wire your X, Y, and Z stepper motors (see adequate documentation):
you just wire the 4 wires of the stepper motor, to the output connector of the M4 stepper motor driver.
The extruder module controls the motor that pushes the filament. Temperature control takes care of the thermistor and heater in the hotend.
If you use a Smoothieboard V2 Prime and want to catch a jam or a break while printing, see the filament encoder board. You will need a wheel that turns with the filament and a magnet for the encoder to read. The filament detector counts the pulses while the extruder runs.
In a 3D printer, you heat thermoplastics.
There are two different parts in which you want to do that:
First, the hot-end heats the plastic to the point where it is liquid enough to go through the nozzle.
Second, the heated bed (in only some printers), on which the first layer is deposited, is heated to allow for better sticking of the plastic to the bed, and more uniform temperature in the part while printing.
For detailed information about temperature control in Smoothie, you can look at this part of the documentation: TemperatureControl
The process is essentially the same to wire and control a hot-end, or a heated bed, and is as follows:
A thermistor’s resistance changes with temperature.
By reading that resistance, we can determine the temperature of a hot-end or a heated bed.
This allows Smoothie to turn the heater on or off depending on the temperature it reads, to achieve the desired temperature.
There are 4 thermistor inputs, close to the SD card slot.
To wire the thermistor, take the two wires from the thermistor on your hot-end or heated bed, and connect them to one of the pairs of thermistor inputs on the Smoothieboard. Each input is two pins, one for each thermistor wire. There is no polarity to respect.
Smoothieboard has 4 thermistor inputs total, meaning a line of 8 pins on the edge of the board. Polarity is not important for thermistors.
By convention (meaning that if you wire things according to the way it is specified in the default configuration file, you do not need to edit the configuration file as it will already be correct),
In the default configuration file, the thermistor pins are set up using that convention:
temperature_control.hotend.thermistor_pin 0.23 # Pin for the thermistor to read (here T0)
temperature_control.bed.thermistor_pin 0.24 # Pin for the heated bed to read (here T1)
You can, however, use any thermistor pin you want for any temperature control module you want.
Thermistors come in all shapes and sizes.
Different models of thermistors are used in hotends and heated beds, and each type translates temperature into resistance differently. It is essential to tell Smoothie the specific thermistor model you have, to get accurate temperature readings. First find out which thermistor is in your hotend or bed. Two thermistors can both measure 100 kΩ at room temperature and give quite different readings when hot. If yours is in the table below, use its name in the thermistor option of the config file and Smoothie handles the math accordingly, like this:
temperature_control.hotend.thermistor EPCOS100K
[temperature control]
hotend.thermistor = EPCOS100K
Smoothie knows the thermistors in this table. The name in the first column is what goes in your config.
| Name | Beta for 0-80°C | Beta for 185-230°C | I for Steinhart Hart | J for Steinhart Hart | K for Steinhart Hart | Part number |
|---|---|---|---|---|---|---|
EPCOS100K |
4066 | 4193 | 0.000722378300319346F | 0.000216301852054578F | 9.2641025635702e-08F | B57540G0104F000 |
Honeywell100K |
3974 | 4385 | 0.000596153185928425F | 0.000231333192738335F | 6.19534004306738e-08F | 135-104LAG-J01 |
Semitec |
4267 | 4375 | 0.000811290160145459F | 0.000211355789144265F | 7.17614730463848e-08F | 104GT-2 |
Honeywell-QAD |
0.000827339299500986F | 0.000208786427208899F | 8.05595282332277e-08F | 135-104QAD-J01 | ||
Semitec-104NT4 |
0.000797110609710217F | 0.000213433144381270F | 6.5338987554e-08F | 104NT-4R025H42G | ||
RRRF100K |
3960 | |||||
RRRF10K |
3964 | |||||
HT100K |
3990 |
If your thermistor is missing from the table, get its datasheet or ask the hotend or bed maker for its specs. You can give Smoothie a beta value, a set of Steinhart–Hart coefficients, or three points from the resistance curve.
Use the beta from your datasheet. Here is where it goes:
temperature_control.hotend.beta 4066 # set beta for thermistor
[temperature control]
hotend.beta = 4066 # set beta for thermistor
Check which temperatures were used to measure the beta. Use the curve or coefficients below if you have them.
If the thermistor is 100K ohms at 25°C, this setting is usually sufficient: additional settings like r0, t0, r1 and r2 are not typically needed, as the defaults work well. If your thermistor or input circuit differs from the defaults, check them in the temperature control options.
If you’re unsure about your thermistor model, contact the designer or seller of your 3D printer, hotend or heated bed to obtain the specifications and beta value.
This is the preferred method. If you have the three Steinhart Hart coefficients for your thermistor, put them in the config in order:
temperature_control.hotend.coefficients 0.000722376862540841,0.000216302098124288,0.000000092640163984
[temperature control]
hotend.coefficients = 0.000722376862540841,0.000216302098124288,0.000000092640163984
See Steinhart–Hart for how to find the coefficients.
If you have a resistance curve, pick three points across the range you will use. For each point, give the temperature in °C and the resistance in ohms. Smoothie works out the coefficients for you:
temperature_control.hotend.rt_curve 20.0,126800,150,1360,240,206.5
[temperature control]
hotend.rt_curve = 20.0,126800,150,1360,240,206.5
Now that Smoothie can read the temperature, it needs a way to heat things and maintain a desired temperature.
This is the heating element.
On a hot-end, that is usually a resistor or a cartridge heater, on a heated bed, that is usually a PCB plate designed to have the right resistance, or a kapton heated bed.
Because of its resistance, when power is applied to a heater, the heater consumes energy to generate heat.
These heating elements need to be connected to Smoothieboard on a port that allows Smoothie to turn them ON or OFF as needed. This is done by the use of MOSFET that takes a digital input signal, and, depending on its value, lets current pass or not.
MOSFET outputs let Smoothie switch heaters, fans and other DC loads. Check the wiring warning and the output ratings before connecting a load.
Smoothie has up to 6 MOSFET controls (6 on 5X, 4 on 4X, and 2 on 3X).
The MOSFETs act as switches to ground: loads must be connected between the power source and the MOSFET switched terminal. Check the output ratings first.
When the MOSFET is switched on, power will be applied to the load.
When the MOSFET is switched off, power will be removed, because one load terminal will be essentially disconnected and current cannot flow.
The exception is inductive load ‘flyback’ switching transients: motors and other inductive loads can produce a voltage spike when switched off. See the DC spindle wiring notes for an example.
Connect your PSU to the power input connector for those FETs (providing power to the load), and connect your power-consuming element (be it heating element, spindle, etc.) between the power output terminal and the MOSFET terminal.
Smoothie connects/disconnects the element’s ground as needed to maintain temperature or as requested by G-codes.
There are three main pairs of MOSFETs on the board:
On Smoothieboard V2 Prime, the heaters and fans share the VFET supply. Here is what you can connect:
| Output Type | Count | Current | Purpose |
|---|---|---|---|
| Low-Current FETs | 4 | ~5A each | Hotend1, Hotend2, Fan1, Fan2 |
| Bed FET | 1 (2× parallel) | ~10-12A | Heated bed |
| SSR Outputs | 2 | Milliamps | Solid-state relay control |
All MOSFET outputs are powered from the VFET power input (2× XT30 connectors, 30A total).
How it works:
Bed FET Independence:
| Specification | Value |
|---|---|
| Outputs | 4 (hotend1, hotend2, fan1, fan2) |
| Current Rating | ~5A per output |
| Voltage | Up to 24V |
| Power Source | Shared +VFET rail |
| Safety | High-side PFET watchdog |
| Control | PWM capable (firmware-controlled frequency) |
| LED Indicators | Yes (per output) |
| Specification | Value |
|---|---|
| Configuration | 2× MOSFETs in parallel |
| Combined Current | ~10-12A |
| Voltage | Up to 24V |
| Power Source | Direct from VFET (not through PFET watchdog) |
| Control | PWM capable |
| LED Indicator | Yes |
| Specification | Value |
|---|---|
| Outputs | SSR1, SSR2 |
| Type | Logic-level (3.3V or 5V signal) |
| Current | Milliamps (for SSR coil drive) |
| Use Cases | Solid-state relay control, auxiliary outputs |
Use SSR outputs to control external solid-state relays for:
If a load needs its own power switch, check that the relay’s control input works with the board output and that its load terminals are rated for the supply and load. See the solid-state relay appendix.
Each MOSFET output has its own LED indicator showing when it’s active:
Big MOSFET pair: Their outputs are labeled P
Small MOSFET pair: Their outputs are labeled P
Mixed MOSFET pair: Their outputs are labeled P
MOSFETs list:
| MOSFET group | MOSFET name | Controlling pin | Output connector | Input method | Voltage | Current |
|---|---|---|---|---|---|---|
| Big MOSFETs | First big MOSFET | X15 | Big MOSFETs power input X13 | 12-24V | 12.5A max | |
| Big MOSFETs | Second big MOSFET | X10 | Big MOSFETs power input X13 | 12-24V | 12.5A max | |
| Small MOSFETs | First small MOSFET | X7 | Small MOSFETs power input X6 | 12-24V | 3A max | |
| Small MOSFETs | Second small MOSFET | X8 | Small MOSFETs power input X6 | 12-24V | 3A max | |
| Mixed MOSFETs | Third big MOSFET | X16 | VBB (motor) input | 12-24V | 12.5A max | |
| Mixed MOSFETs | Third small MOSFET | X9 | VBB (motor) input | 12-24V | 3A max |
+ on that connector to + on your PSU, and - to - on the PSU.
Never use the big MOSFETS for more than 12.5A (and monitor connector and MOSFET temperatures at that current use, too much heating can be a sign of a bad wire connection), and the small MOSFETS should never be used for more than 3A.
Trying to power a 40W (or more) hotend cartridge heater at 12V with the small FETs will destroy them, usually locking (melting) them to the “ON” state (shorted) and possibly destroying the circuitry driving the MOSFET gate.
If you need to control more than 12 Amps, you cannot do it with one of the MOSFETS on board, however, you can use a Solid State Relay.
For information see the Solid State Relay Appendix on this page.
All MOSFET outputs on Smoothieboard v2 are powered from the VFET power input:
Wiring steps:
| Output | Type | Current | Typical Use |
|---|---|---|---|
| Hotend1 | Low-current FET | ~5A | First hotend heater |
| Hotend2 | Low-current FET | ~5A | Second hotend heater |
| Fan1 | Low-current FET | ~5A | Part cooling fan |
| Fan2 | Low-current FET | ~5A | Auxiliary fan |
| Bed | Dual parallel FETs | ~10-12A | Heated bed |
| SSR1 | Logic output | mA | External SSR control |
| SSR2 | Logic output | mA | External SSR control |
+ on your PSU to the + terminal on the XT30 connectors.
If you need to control more than 10-12A (the bed FET limit), use the SSR outputs to control an external Solid State Relay:
If the load exceeds the board output rating, use a separate switching device rated for your load and supply. SSR1 and SSR2 are control outputs. Check the schematic and the relay input specifications before connecting them. See the solid-state relay appendix.
Heated beds are often made out of a rigid, or flexible (kapton) PCB.
Let’s say you want to connect a heated bed to your Smoothieboard.
First, wire the thermistor to the thermistor input.
Then, find out (from the Internet, or your seller/manufacturer) the current rating for that heated bed.
In this example it will be the classical RepRap PCB plate Heatbed.
Ours has an 11A current rating, this means we cannot use it with a small MOSFET, and we need to wire it to a big MOSFET.
We connect our PSU to the power input for the big MOSFETS pair (don’t forget to check the labels on the board for polarity).
Then we connect the two wires from the PCB bed to one of the big MOSFETS out. Polarity is not important here.
Because this is the heated bed, we connect it to the P2_7 (pin
For the hot-end, the default output is P2_4 (pin
To set a different MOSFET output for the bed or the hot-end, you have to edit the configuration file to the digital output pin corresponding to your chosen MOSFET. These are the lines you would have to edit:
temperature_control.hotend.heater_pin 2.7 # Pin that controls the heater cartridge for the hot-end
temperature_control.bed.heater_pin 2.5 # Pin that controls the heated bed
To help you figure out what is what, here is a recapitulating table:
The big MOSFETs and the small MOSFETs don’t have the same current limits. Check the ratings of your board before you connect a load, exceeding them can damage it.
Once your thermistor is connected, and both the power input and the heater elements are plugged in, you are ready to test your temperature controller.
To do this, reset your Smoothieboard, then connect to it using host software like Pronterface, or using the web interface.
Now connect to your Smoothieboard over the serial interface.
Power your machine on by plugging the PSU into the wall.
If anything burns or smells funny, turn everything off immediately and investigate.
The heaters are off by default when Smoothie starts. Check that they are not heating (one indication of the heater being ON is if the LED near the MOSFET is lit up, the other being checking the heater itself), if they are heating, something is wrong, turn everything off immediately and investigate.
Now, in Pronterface, set the temperature for either your bed or your hot-end, depending on what you are testing (wire and test only one at a time for easier problem investigation) at a low temperature (20°C above room temperature is a good idea), and monitor temperature to see if the temperature rises. If it does rise, everything is fine. If not, turn everything off immediately and investigate.
Once you know the heater works correctly, there is still some tuning to do: tuning your PID settings.
PID is how Smoothie keeps a heater at a steady temperature, using three values : P, I and D. You usually don’t need to work them out by hand, PID autotuning below finds them for you.
Smoothie can automatically tune (find) your P, I, and D factors using a process described here. It heats and cools the assembly several times and measures how it responds. Run this from a serial terminal, with the heater and its sensor installed as you will use them. Stay with the machine while it runs.
Send M301 by itself to list the controllers and find the one you want to tune. If your hotend is controller 0 and you normally print at 190 °C, send:
M303 E0 S190
E0 selects controller 0 (the number of the heater or bed temperature control module, determined by the order they appear in the config file: 0 for the hotend and 1 for the bed here) and S190 is the target temperature. Use the temperature you will be using your heater at in real life. To stop the tune, send M304. Use a serial terminal or Telnet for this command. On V1 the web interface can run out of memory while it collects the output.
Send M303 by itself to see the tool IDs, then select the heater with P. For tool 0 at 190 °C, send:
M303 P0 S190
Wait for the tune before sending more commands. To stop it, send Control-X from the terminal.
When you run the command, tuning begins. The exact lines depend on the version, but the V1 output looks like this:
Target: 190.0
Start PID tune, command is M303 E0 S190
T: Starting PID Autotune, M304 aborts
ok
T: 21.3/190.0 @80 1 0/8
T: 22.0/190.0 @80 1 0/8
T: 22.3/190.0 @80 1 0/8
T: 22.1/190.0 @80 1 0/8
Etc...
It continues for 3 to 8 cycles, heating up, cooling down. Then:
Cycle 4: max: 246.189, min: 227.627, avg separation: 0.418274
Ku: 34.9838, Pu: 39.85
Trying:
Kp: 21.0
Ki: 1.053
Kd: 105
PID Autotune Complete! The settings above have been loaded into memory, but not written to your config file.
Use a temperature you actually run at, within the limits of your heater assembly. When the tune finishes, Smoothie prints Kp, Ki and Kd and starts using them. Put those numbers in p_factor, i_factor and d_factor in your configuration, respectively. Alternatively, M500. M500 saves the settings to the configuration override file automatically.
Heat it up again and watch how it settles. If it still goes too far past the target, see fine-tuning temperature control.
There are features you can configure to make sure that your temperature control module will detect when something is wrong, and stop the machine when that happens.
It is a good thing to read about these, and configure them as best as you can, because your house burning down is a very bad thing.
It is also a good thing to configure it well, because if you do not, it is possible Smoothie will think there is a problem when there is none, which can be annoying.
You can read more about temperature control safety here.
This information is all very abstract.
Here is an example setup for a simple 3D printer with one hotend and one heated bed:
In this setup:
We are going to use the first big mosfet to control the bed, it has a current limit of 12.5A so we are within limits.
We also need to provide power to the first big mosfet via the big mosfet power input.
We cannot however use the second big mosfet for anything, because if we did, we would go over the 12.5A limit of the big mosfet power input’s connector.
This is because the input must provide power to both outputs, so if we were for example to connect a 12.5A load to the first big mosfet, and a 2.5A load to the second big mosfet, the total passing through the big mosfet input would be 15A, which is over the 12.5A limit.
Therefore, we will use the first small mosfet to control the hotend. 3A is well within its limit.
Here again, we need to provide power to the small mosfet, via the small mosfet power input.
This means we will make 4 connections:
It’s essentially just a switch
End-stops are small interrupters that you put at the end of each of your axes.
When you boot your machine up, Smoothie has no way of knowing the position of each axis.
When it starts a print, Smoothie moves the axis until it touches that interrupter, and when it is hit, it declares that that is position 0 for that axis. And does so for all axes.
This allows Smoothie to then precisely know where everything is relative to that initial position.
It is quite convenient as it saves you the hassle of actually moving the machine into that position when you want to start a print. Automation is great.
However, end-stops are not necessary, you could do without them. They are just so convenient that most machines use them.
End-stops can also be used as limit switches which prevent the machine from attempting to move beyond the physical limits of the axis (by pausing/stopping movement when triggered), see the Endstops page for details about configuring Smoothie to use End Stops as limit switches.
This will concentrate on the most common type of end-stops: the mechanical ones.
Other types exist like optical or hall-o sensors.
Mechanical end-stops are simple interrupters: when not pressed, they do not let the current pass, when pressed, they let the current pass. By connecting a digital input pin on the Smoothieboard to the interrupter, and connecting the other side of the interrupter to Ground, the Smoothieboard can read whether or not it is connected to Ground, and therefore whether or not the end-stop is pressed.
Most mechanical end-stops have 3 connection points, to which you have to attach your wires:
You want to connect the Signal (green in the schematic) and Ground (blue in the schematic) pins for the end-stop on the Smoothieboard, to the C and NC connection points on the end-stop.
You want to connect your X end-stop to the X min pins, Y end-stop to the Y min pins, and Z end-stop to the Z min pins.
Mechanical endstops are simple switches, they simply let a signal pass through, or not, allowing us to detect their status with an endstop input. It has no intelligence of its own.
There are more sophisticated endstops. Those are “powered endstops”, for example: Hall-O (magnetic) or optical endstops.
The only difference between a mechanical endstop and those powered endstops is that they require being provided with 5V power.
This means that where for a mechanical endstop you connect the Signal and GND pins, for a powered endstop, you connect the Signal, GND and 5V pins.
Other than this, it works exactly the same as a mechanical endstop: The Signal pin receives something different depending on whether the endstop is triggered or not.
Different powered endstops have different behaviors:
Some connect Signal to Ground when triggered, and Signal to 5V when not triggered.
Others connect Signal to 5V when triggered, and Signal to Ground when not triggered.
To know exactly what your endstop does, see its documentation.
If once wired, your endstop reports the opposite of what it should via the 1 when triggered/pushed, and 0 when not triggered), see the “Testing” section.
Some endstops might require removing their “pull-up” configuration, in this case, change:
alpha_min_endstop 1.28^
To:
alpha_min_endstop 1.28
And if you need it to be a pull-down, change it to:
alpha_min_endstop 1.28v
In some very rare cases, the endstop reading circuit on the Smoothieboard will not be adequate for your endstop type. In this case, you should use a “free” GPIO pin on the Smoothieboard that nothing else uses to connect your endstop to.
See Pinout to find adequate pins.
The default configuration most probably already has everything you need: the pins are already correct and the default speeds are reasonable.
Once they are wired, you can test your end-stops.
To do this, reset your Smoothieboard, then connect to it using host software like Pronterface or the web interface.
Now connect to your Smoothieboard over the serial interface. Power your machine on by plugging the PSU into the wall.
Now in Pronterface, home one axis by clicking the small “home” icon for that axis. Begin with X, then Y, then Z.
If your axis moves until it hits the end-stop, then stops when it hits it, moves a small distance back, then goes a bit slower back to the end-stop and stops, that end-stop is working fine.
On the other hand, if the axis moves a small distance in the wrong direction, then stops, you have a problem: your Smoothieboard always reads the end-stop as being pressed. So when you ask it to move until the end-stop is hit, it reads it immediately as pressed and stops there.
Another problem can be that the axis moves and never stops, even after the end-stop is physically hit. This means your Smoothieboard actually never reads the end-stop as being pressed.
There is a command that allows you to debug this kind of situation: in Pronterface, enter the “
Smoothie will answer with the status of each endstop like this:
X min:1 Y min:0 Z min:0
This means: X endstop is pressed, Y and Z endstops are not pressed.
Use a combination of this command, and manually pressing end-stop, to determine what is going on.
If an end-stop is read as always pressed, or never pressed, even when you press or release it, then you probably have a wiring problem, check everything.
If an endstop is read as pressed when it is not, and not pressed when it is, then your end-stop is inverted.
You can fix that situation by inverting the digital input pin in your configuration file. For example if your X min endstop pin is inverted, change:
alpha_min_endstop 1.28^
To:
alpha_min_endstop 1.28^!
Here is the exact mapping of pin names to inputs on the board:
| Endstop | X MIN | X MAX | Y MIN | Y MAX | Z MIN | Z MAX |
|---|---|---|---|---|---|---|
| Config value | alpha_min | alpha_max | beta_min | beta_max | gamma_min | gamma_max |
| Pin name |
| Endstop | X MIN | X MAX | Y MIN | Y MAX | Z MIN | Z MAX |
|---|---|---|---|---|---|---|
| Config value | minx | maxx | miny | maxy | minz | maxz |
| Pin name |
For complete pinout information, see the Smoothieboard Pinout documentation.
For complete pinout information, see your board’s pinout documentation:
More information can be found here.
Fans are important: they help you cool things down.
On a 3D printer there are two main things you need to cool:
First, most often your hot-end’s “cool” part (the top of it) needs to be cooled so heat does not accumulate there and transfer to the rest of the machine and damage it.
Secondly, you often (in the case of printing PLA) need to cool down the top layer currently being printed by your machine so that heat does not accumulate in the printed part and cause mayhem.
While the first one is usually safest being always powered on, the second one you want digital control via MOSFETs, as most modern slicing software allows for smart control of that fan.
For the fan that is always ON, all you need is to find power somewhere to power it.
You can wire it directly to your PSU (+ goes to +, - goes to -), but there is also a little trick if you want to wire it to your Smoothieboard.
If you add the jumper to JP28 like described in the MOSFETs section of the Temperature Control section of this tutorial, then the connector usually used for providing power to the small MOSFETs, will actually output whatever power is provided to the VBB (stepper motors) connector.
This means you can simply add this jumper, then connect your fan to the small MOSFETs power input (X6).
You do not need a big MOSFET to control a fan. One of the small MOSFETs is more than enough. See the Temperature Control section to identify which you want to use and which GPIO pin corresponds to that MOSFET.
Then, you need to edit your configuration file to add (or alter) this section:
# Switch module for fan control
switch.fan.enable true #
switch.fan.input_on_command M106 #
switch.fan.input_off_command M107 #
switch.fan.output_pin 2.4 # The pin matching the MOSFET we chose
switch.fan.output_type pwm # PWM output settable with S parameter in the input_on_comand
#switch.fan.max_pwm 255 # set max PWM for the pin default is 255
Now wire the fan to the output for that MOSFET (here it is the first small MOSFET, using pin
The fan is wired to the output for the first small mosfet (watch the polarity, and make sure you always add a diode when wiring a fan), and the small mosfets are getting power via their power input. (NB Note - newer revisions of the Smoothieboard now come with the Diodes installed on the Small Mosfets - do a visual check to confirm)
You can now control your fan digitally: issue the
Note starting with Smoothieboard version 1.1, you do not need to do this anymore on the first two small mosfets, as the diodes are there by default.
The diode should be installed with the white band (negative side of the diode) soldered to the + (positive side) of the power output, and the other side to the - (negative side) of the power output.
Good diodes to use are: 1N5819 or SS14.
Smoothie allows you to use a probe to do a variety of tasks that improve precision and automation in your CNC operations.
A Z-probe is a sensor that detects when the tool (or nozzle) makes contact with a surface. This allows the machine to automatically determine positions and heights without manual measurement. A probe is a switch, much like an endstop. Smoothie moves until the probe triggers and uses that position to find where a surface is. Some probes trigger just before they touch.
If you have a delta printer, you can measure the bed at several points and use the readings to calibrate the machine geometry. This is particularly important for delta machines, where precise geometry is critical for accurate printing.
On a Cartesian printer, use three points to measure the tilt of the bed, or use a grid to probe multiple points across the surface and create a height map. Either way, the machine can level uneven or non-level surfaces automatically.
On a mill, you can find where the tool meets the workpiece. On a printer, use the probe to find the bed and check the nozzle height for the first layer. This is essential for setting Z-zero accurately, compensating for different tool lengths, and ensuring a proper first layer height in 3D printing.
If you change cutters, probe a fixed reference to find the new tool’s length before you run the next cut. The same applies when you use multiple tools: Smoothie can detect each tool’s length when the tools are changed.
Common probe types:
Start with the Z-probe configuration and wiring. Test the input with the tool clear of the bed before you run the first probing move. The ZProbe documentation covers the hardware connection and wiring, configuration options, calibration procedures, the G-code commands for probing, and troubleshooting tips.
If you have a V2 Prime and a probe that drives a positive signal between 3 and 45 V, the advanced endstop and probe board has a dedicated input for that signal. Check the probe’s output and the board’s pull-up link before you connect it.
If you want to jog the printer or start a file from its SD card without a computer, you can fit a panel. See the panel guide for the supported panels and wiring and settings.
Get the printer working before you have it run any commands on its own.
If you want the printer to home when you turn it on, test homing by hand first. With this setup the printer will move as soon as it starts, so make sure the axes are clear before you turn it on or reset it.
On Smoothieware V1, put a file called on_boot.gcode at the top level of the SD card. Here is an example. Check that the moves after homing are inside your printer’s travel.
G28 ; Home all axes
G0 Z10 ; Raise Z to safe height
G0 X10 Y10 ; Move to safe position
Then enable the file in your config.
on_boot_gcode_enable true
on_boot_gcode /sd/on_boot.gcode
See on_boot.gcode for more examples.
The appendixes cover the practical wiring work you may need along the way :
If the printer doesn’t move, or if you can’t connect to it, start with the checks on the troubleshooting page. It also covers power, configuration and the web interface.