laser cutter guide

Laser icon

A laser cutter uses CNC motion, but its laser power supply and safety interlocks require separate attention. Identify the exact board, firmware, and laser power supply before following a wiring example.

This is a step-by-step guide to connecting your board to the various components of the laser cutter, configuring everything, from the beginning to actually cutting material.

For a K40 or blue box laser, read the K40 controller upgrade overview and the blue box installation guide. Identify your machine’s controller and power supply before following any wiring instructions.

See the Smoothieboard hardware documentation for board identification and the laser module documentation for firmware configuration.

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.

Smoothieboard Fritzing

On a typical laser cutter setup, installing a Smoothieboard will mean you do the following things:

  • Read all of the guide before you start, best way to avoid mistakes
  • Install some Software to talk to your board
  • Install the Windows drivers if using that OS
  • Connect your board via USB and practice talking to it
  • Take a look at the configuration
  • Review the firmware flashing instructions for your board before changing firmware
  • With power isolated, have a qualified installer verify and connect a compatible motor power supply to the board
  • Connect motors to the stepper motor driver outputs
  • Edit your configuration to match your motors
  • Test the motors with laser power disabled
  • Connect Endstops to the endstop inputs
  • Edit your configuration to match your endstops
  • Verify endstop behavior before any supervised homing test with laser power disabled
  • Have a qualified installer connect and verify the laser power supply control interface and hardware interlocks
  • Configure laser control for the exact firmware and test it only after the interlocks have been verified
  • Connect, configure and test any probes you may have
  • Setup leveling if relevant
  • Configure your CAM software and generate a G-code file
  • Use your host software to send your new G-code file to the Smoothieboard
  • Conduct supervised cutting tests after the complete installation has been checked

This guide will walk through everything you need to accomplish to successfully perform these steps.

This guide is an installation outline, not a safety approval. Check the finished machine and its protective controls before operation.

Machine-specific guides

Some guides have been written (or are being written) for converting specific machines to Smoothie. If you are converting a machine to Smoothie, check whether there is a guide for your model. If there isn’t, start with the Laser Cutter Guide. You can find additional information using these resources:

Blue Box Lasers

K40 Laser Cutters

Other Laser Machines

  • Full Spectrum laser guide, a Google+ post: https://plus.google.com/u/0/109415938778659747209/posts/8jW5od2A96A?cfem=1 (Google+ has been shut down, so the original link no longer works; try the web.archive.org copy, which may not have been saved)

Have a guide for another machine, including the Full Spectrum laser? Send us a link.

Unboxing

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.

Own a non-Smoothieboard board?

If you don't have a Smoothieboard but have or consider purchasing an MKS board, please make sure you read What's wrong with MKS

Connecting via USB

SD card - Files on your Smoothieboard's SD card

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.

You can read more about configuring your Smoothieboard at Configuring Smoothie The SD card can also be used to flash a more recent version of the firmware to your board. The pre-flashed firmware should work, but this is not always the case: see where to get the binary file and how to flash it via the SD card.

It can also be used to store and play G-Code files, see Player.

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.

Connecting via the network

Network - Hope you have fewer cables than this

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.

Updating your firmware

Updating the firmware

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.

  1. Download the latest firmware.bin file.
  2. Copy it onto the SD card.
  3. Reset the Smoothieboard (Reset button, or unplug and replug the power).

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.

  1. Download the latest firmware file (flashme.bin).
  2. Copy it onto the SD card.
  3. Reset the Smoothieboard V2.

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.

Appendix: older wiki notes

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.

Migrating to Smoothie

Migration

Migration guides

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.

Safety

Lasers will make you blind

Lasers are extremely dangerous

In an instant. In the blink of an eye, quite literally.

CRITICAL SAFETY WARNINGS:

Never look into the beam or at any surface the beam might reflect off of.

Never have the machine powered while the door is open.

You are responsible for your own safety.

Eyes cannot be replaced.

Work on lasers should be done by informed and well trained professionals, in safe environments. There are no second chances here, if you are not trained, get help from a professional.

Use laser safety eyewear marked for your laser’s wavelength and with optical density appropriate to its output. Have a qualified laser safety professional help select and inspect it. Never test eyewear by firing a laser at it. See OSHA’s laser eye protection guidance.

Eye protection alone isn’t enough, laser safety is an ensemble of procedures, knowledge and attention that must be paid. Improvisation has no place here.

Always make sure fire extinguishers of the adequate type are present on site.

Follow the machine manufacturer’s fire-response instructions and keep suitable firefighting equipment accessible. Do not delay an appropriate emergency response to avoid using an extinguisher or damaging the machine. See LightBurn’s fire-safety guidance.

Door Safety Switch

If the machine does not come with a switch on the door that turns the laser off when the door is open, this is stupid and dangerous.

Please install that switch, and make sure it operates properly on a regular basis.

Fire Hazard

If you leave your machine alone even for a few minutes, fire can start.

Lasers are dangerous

They can burn your house, and they can burn your eyes. Be careful and never leave your laser unattended.

For more information on laser safety, please refer to laser safety resources.

Safety warnings

Make sure you read this. Seriously. Not kidding. Do it. It's important.
  • Check the polarity of every power input, and check it again. Reversed polarity can damage or destroy all or part of your board. The 3.5mm and 5mm power connectors are inverted, so rely on the diagrams.
  • Never connect or disconnect stepper motors while the board is powered.
  • Keep anything metallic away from the board, a short will destroy it.
  • Never put 12V or 24V into a 5V, endstop or thermistor input.
  • If your machine has heaters, set up the heater safety measures. Fires will kill you if you don't.
Before you wire anything, read all the wiring safety warnings.

Logic Power Inputs

Logic Power Inputs

There are different ways of providing logic power to your board.

Your board needs two sorts of power to work:

  • 12-24V power to turn motors, heat hotends, etc.
  • 5V (or “logic”) power to power the microcontroller (the brain)

Three Ways to Provide 5V Power

Use the options for your board below. See main power input for the supply that powers your motors and loads.

1. Via USB cable

USB cables provide 5V directly to the board.

This is the simplest method and works well for testing and setup.

2. Via voltage regulator

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.

3. Direct 5V input

By providing 5V directly to the 5V power input (next to the VBB power input).

This requires a separate 5V power supply.

Simplest Solution

If you want to keep it simple, the easiest solution is just to connect your Smoothieboard to your computer via USB.

Multiple Power Supplies

You can connect several different power supplies at the same time, with no issue at all.

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.

Understanding Voltage and Current

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.

Power Consumption

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:

  • 12-24V power to turn motors, heat hotends, etc.
  • 5V (or “logic”) power to power the microcontroller (the brain)

Three 5V Power Sources

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:

  • The board itself (~300-500mA)
  • A Raspberry Pi (~500-1500mA)
  • A small touchscreen (~400-700mA)
Single Power Supply Setup
Using the onboard regulator means you only need one power supply (12-24V) for your entire system - no separate 5V supply required!

2. USB 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:

  • Testing and initial setup
  • Low-power configurations
  • When Vmot is not connected
USB Power Limitation
If you're connecting a Raspberry Pi to the board via USB, you may want to cut the JP15 jumper to prevent the Pi from attempting to power the board through USB (which could cause issues).

3. External 5V Input

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:

  • Have a dedicated 5V power supply
  • Need more than 3A for peripherals
  • Want to keep 5V power independent from motor power

Automatic Power Source Selection

Ideal Diode Protection
You can connect multiple 5V sources simultaneously! The board automatically selects the best source.

Smoothieboard v2 uses ideal diode ORing for automatic power source selection:

  • Automatic switching: The board selects the source with the highest voltage
  • Backflow prevention: Power cannot flow backward between sources
  • Minimal voltage drop: Only ~tens of mV loss (vs ~600mV with standard diodes on v1)
  • No manual switching: Connect everything, and it just works

Typical priority order:

  1. Onboard regulator (if Vmot present)
  2. External 5V input
  3. USB power (if jumpers intact)

This means you can turn off one power source and the board will seamlessly switch to another without resetting!

Power Status LEDs

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

Disabling Power Sources with Jumpers

You can physically disable individual power sources by cutting jumpers:

  • JP15: Cut to disable USB 5V input (useful when connecting Raspberry Pi via USB)
  • JP16: Cut to disable onboard 5V regulator (if using external 5V supply exclusively)
Don't Cut Jumpers Unless Necessary
Most users should leave all jumpers intact. Only cut them if you have a specific reason (like preventing USB backfeeding from a Raspberry Pi).

Understanding Voltage and Current

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.

Power Budget Example

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!

Main Power Input

Be careful, mains voltage is dangerous

Be careful, mains voltage is dangerous

Main Power Input

Safety first: This page involves working with mains power (110V/220V). Always exercise extreme caution and never work on live circuits. Disconnect mains power before opening the supply enclosure or touching the terminals. Have someone qualified do the mains wiring if you are unsure.

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.

How to choose a power supply unit (PSU)

Two power supplies are required, 5.0V and ‘bulk’ power (VBB).

5.0V supply
  • Voltage (V): The 5.0V supply should be regulated to 5% tolerance (4.75V to 5.25V). This supply provides power for the control logic circuitry, and should be a good quality regulated power supply (which is inexpensive). Using a cheap buck regulator from a higher voltage is not recommended, as ever exceeding 5.5V on this supply may instantly and permanently damage the control logic on your Smoothieboard.
  • Current (A): The 5.0V supply should be rated to supply at least 1A continuous current (or more). Typical load is roughly 0.5A.
VBB supply
  • Voltage (V): VBB can be from 12 to 24V. While most of the components on the Smoothieboard are rated up to 32V, it is not recommended or supported to use that high of a voltage. 12V PSUs are more common, and generally cheaper. However, the higher the voltage, the higher performance you can get from your stepper motors. This is the reason some designers use 24V PSUs. However, be careful that with a 24V PSU, you will need 24V fans, and will need to reduce the PWM setting for your heating elements or (preferred, and safer) use 24V heating elements. If you choose a 24 V supply, check that the fans and heaters connected to it are rated for 24 V.
  • Current (A): The total current required is the current for each stepper motor, plus the current for every peripheral on your machine Smoothieboard will control. This depends on your machine type. On a typical 3D printer, you can safely consider 10A to be sufficient for the heated bed, and 10A or a bit less for the rest of the loads. Go for a 17 to 20A PSU if you have a heated bed. 7A to 10 is probably enough if you do not have a heated bed (or if you are setting up a CNC mill or a laser cutter). If you bought your machine as a kit, a PSU with appropriate current is most probably provided (or one is recommended). If building your machine yourself by self-sourcing, the documentation for the machine model will also most probably recommend a current rating. A power supply that is able to supply more current than is needed is not a problem. Having not enough current to drive your hot-end, heater bed, or motors is a problem.

Power Architecture Overview

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)
Simplified power supply: unlike v1, Smoothieboard v2 has a built-in 3A, 5V switching regulator. You typically only need a single 12-24V power supply for everything! The onboard 5 V regulator can supply up to 3 A. You can use one 12–24 V supply for Vmot and VFET if its voltage and current are right for all the loads.

How to Choose a Power Supply Unit (PSU)

Vmot (Motor Power)
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
  • 24V is recommended for better stepper motor performance (higher top speed, less heating). 24 V can help stepper motors reach a higher speed. Check the ratings of the motors, drivers, and anything else on the same supply.
  • Components are rated to 32V, but 24V maximum is supported
  • The onboard 5V regulator draws from Vmot, so ensure your PSU can handle motor current + ~1A overhead
VFET (MOSFET Power)
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?

  • Lower vertical profile (fits in enclosures better)
  • 12V heated beds draw high current and need both connectors
  • 24V systems often only need one connector
12V vs 24V Systems
12V heated bed (200W): 16.7A → Requires BOTH XT30 connectors
24V heated bed (200W): 8.3A → Single XT30 sufficient
Power Budget Examples

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)

24V saves current: notice how 24V systems draw roughly half the current for the same power. This means smaller wires, less heat, and often cheaper power supplies! A load of the same wattage draws about half as much current at 24 V as at 12 V. Size the wiring and fuses for the actual load.
5V Logic Power

The onboard 3A switching regulator provides 5V logic power automatically when Vmot is connected. See Logic Power for details on alternative 5V sources.

General Notes

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.

EMI Filtering

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.

Fuses / Circuit Breakers

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.

Setup

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.

NEVER Manipulate Live Wires

NEVER manipulate mains (220/110V) power wires while they are plugged into the wall plug. (The old wiki linked the word NEVER to a joke picture, archived copy.) Never touch mains wiring while the supply is plugged into the wall.

Unpleasantness and/or death are common consequences of not respecting this rule.
Ground Your Machine

Ground your printer's frame by connecting it to the Earth terminal on your power supply.

In the (unlikely) event that a power supply wire comes undone and touches the printer's frame, this will prevent you from getting an unpleasant and/or deadly shock.

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.

LED Not Lighting Up

If the VBB LED does not light up, immediately turn the PSU off.

Check polarity, and check all the connections are strong and properly done.

When you turn the PSU on, make sure you are ready to immediately turn it back off.

Now that the board has power, you can use that power to move things!

Emergency stop

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.

Stepper Motors

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.

Choosing the Right Stepper Motor

There is a very wide variety of stepper motors around. Bigger motors are generally more powerful.

For a given size, motors will have different torques, max speeds, and different capacities to maintain torque as speed increases. It is important you choose the right motor for your application.

The most common mistake is to choose a high inductance motor.

There are two main "families" of motors out there: high inductance motors are mostly designed for maintaining position and moving rarely (like on a telescope mount), and low inductance motors are designed for moving often, and at high speeds (like on a CNC mill or 3D printer).

If you use a high inductance stepper motor with a Smoothieboard (or any "CNC" stepper motor driver), not only will you get bad speed/torque performance, but when moving the stepper motor (or axis) by hand, very high voltage will be generated, which can destroy your stepper motor driver.

You can recognize a "high inductance" stepper motor by the fact that it's rated inductance is high, in general higher than 10mH is bad.

If your motor doesn't tell you its inductance, rated voltage is also an indication: high inductance stepper motors usually have high rated voltages, a typical value being 12V, where "CNC" steppers have voltage below 5V.

This is not what you want, you want a low inductance stepper motor, with an inductance ideally below 10mH, and a rated voltage ideally below 5V.

The reprap community defines a good stepper motor like this: Ideal stepper is (for reprap printers and similar small CNC using microstepping drivers on 12-24v supply) NEMA17 size, rated 1.5A to 1.8A or less, 1-4ohm winding resistance, 3 to 8 mH, 62oz.in (0.44Nm, 4.5kg.cm) or more of torque, 1.8 or 0.9 degrees per step (200/400 steps/rev respectively), for example the kysan 1124090/42BYGH4803 or the rattm 17HS8401 or Wantai

See: Stepper motor wiring - Be careful you get the coils right.

Wiring

Direct wiring

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:

  • Documentation: Look at your motor, find its part number. Then google it. If you are lucky, you will find a schematic or a data-sheet that will indicate which wire goes to which pole. Note the colours that correspond to each coil.
  • Fingers: When the two wires for a given pole touch together, a closed circuit for that pole is created. This makes the stepper motor more difficult to turn. You can use that effect to discover the poles. Turn the stepper motor shaft, it should turn freely. Now take two wires, and make them touch. Turn the shaft again. If it shows resistance, is harder to turn, you found a pole. If it doesn’t, keep one wire, and try another one for the second one. Do this until you find a combination that shows resistance. Once you find the two wires for a given coil, the other two wires are simply the other coil. Note the colours that correspond to each coil.
  • Multimeter: Configure your multimeter to read resistance. Then the method is the same as the previous one, take two wires at random, test them, except you know you find a coil when you measure electrical resistance between two wires. If you measure no contact, try another wire combination. Note the colours that correspond to each coil.

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.

How to properly connect stepper motors

If you don't get it right, it won't work properly

Once your stepper motor is properly connected to your Smoothieboard, it is ready to be controlled.

Wiring a stepper motor to a stepper motor driver

In this example, a stepper motor is connected to the M1 driver, and power is provided to VBB (the main power input).

External Stepper driver

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.

Configuring

Example configurations are available on GitHub.

You can also refer to the Configuration documentation.

Current

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.)

Steps per millimeter

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 configuration option that you have to set for each stepper motor.

To compute it, you must multiply a certain number of factors.

  • The object you move moves a certain number of millimeters for each rotation of the stepper motor. (This depends on the characteristics of the belt/pulley, or lead-screw system you are using.)
  • The stepper motor moves a certain number of full steps per rotation. That is usually 200. (But it can be 400.)
  • Each step is divided by the stepper motor driver into a certain number of microsteps. It is that number, and not the number of full steps, that we want. Smoothieboard V1.1 always divides steps into 32 microsteps. (16 for older smoothieboards).

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:

Direction

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.

Moving Bed Machines:

If you have a moving bed in the Y axis for example, as opposed to a moving tool, be careful: what matters is the direction of the head relative to the bed, not the direction of the bed relative to the machine.

It's very common to get confused and invert your Y axis on moving bed machines (or not invert it when it should be).

Basically, if an asymmetrical object looks like the model when it is printed, then your Y axis is correct, otherwise you need to change your configuration.

Endstops

Guide-End Stops
Place the endstop at the homing end: home_to_min uses the minimum endstop. home_to_max uses the maximum endstop.
Place the endstop at the homing end #

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.

To make things as simple as possible: In Smoothie, endstops do three things:

• Homing (move til endstop is hit)
• Hard endstops (stop when endstop is hit, which is optional)
• Soft endstop (once homed, do not go further than a set position, which is also optional)
Smoothie does not allow you to use a zprobe as an endstop. An endstop must be dedicated to being an endstop and cannot be used as a zprobe and vice versa.

This does not mean ANY kind of feature is missing, you can still do everything you expect, this is just a subtility in vocabulary and in how configuration is organized, that new users are generally fine with, except if they come from another system which has a different paradigm.
Six endstops

There are 6 of them, two for each axis

Mechanical endstop wiring

This will concentrate on the most common type of end-stops: the mechanical ones.

Other types exist like optical or hall-o sensors.

About Fancy Endstop Types

There are plenty of fun and futuristic endstop types around: optical, laser, magnetic, force-sensitive, infrared, inductive, etc...

However, please note that the general feedback from the community, is that most of those are either less precise, less repeatable, or much more difficult to get to "work right", compared to the classical "mechanical" endstop.

The mechanical endstop is actually likely the most precise, repeatable and easy to get to work option you have at your disposal. Just because these other options exist and have been explored by the community, does not mean they are better.

You might happen have a good reason to use a fancy endstop, but if you don't, it's likely a good idea to stick with a mechanical one.

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:

  • C: Common
  • NO: Normally Open, meaning it is not connected to C when the interrupter is not pressed, and connected to C when the interrupter is pressed.
  • NC: Normally Closed, meaning it is connected to C when the interrupter is not pressed, and not connected to C when the interrupter is pressed.
Endstop wiring diagram

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.

Why C to Signal and NC to Ground?

For each endstop, we connect C to Signal and NC to Ground because this means the digital input pin (endstop connector) will be connected to Ground in its normal state and cut from Ground when the button is pressed. This approach is less prone to noise than the reverse. See here for more information.

Another positive effect of this approach is, that if a wire breaks for some reason you get the same signal as if the endstop is pressed. That makes sure that even with a damaged wire you are not able to overrun the endstop.
Do NOT Connect VCC and GND!

Make absolutely sure that you do not connect VCC (red) and GND (blue) to a mechanical (microswitch) endstop! Depending on your wiring this may fry your smoothieboard instantly or when the switch gets pressed. There is certain wiring where this won't happen when you switch the signal between VCC and GND, but if you're not careful enough you will damage your board.

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.

Powered endstops wiring

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 M119 command (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.

Testing

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 “M119” G-code.

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 1.24 1.25 1.26 1.27 1.28 1.29
Endstop X MIN X MAX Y MIN Y MAX Z MIN Z MAX
Config value minx maxx miny maxy minz maxz
Pin name PG10 PG9 PG11 PG12 PG13 PG14
Note: The actual pin names shown above may vary depending on your board variant (Prime vs Mini). Always refer to your specific board's pinout documentation for accurate pin assignments.

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.

A laser tube

They look nice but they are dangerous

Laser control

The steps below are for setting up the laser module. Read them before you connect the laser power supply.

Laser power follows the active G1 move: Smoothie coordinates the PWM power signal with the tool path.
Laser power follows the active G1 move #
High Voltage Warning

The Laser module is the part of Smoothie that allows you to control laser cutters.

In general, laser cutters use a CO2 tube to generate the laser beam used for cutting and engraving.

Those tubes contain CO2 gas, and a high-voltage Power Supply Unit is used to pass electricity through the gas, generating the beam.

Using G-code, you tell Smoothie where to move and when to cut.

Smoothie moves the motors, and the Laser module talks to the laser power supply to tell it when to turn off and on, and using how much power.

Be very careful with the laser tube side of your Power Supply: voltages there are commonly around 40,000 volts, making it very dangerous. If you are not qualified to handle this kind of voltage, please contact a professional. Always make sure everything is powered down before manipulating anything. For laser cutters, you will get some extra features (in particular nice laser-specific screen information on panels) if you use the "cnc" version of the firmware. Though the normal (edge) version will work fine. See flashing the firmware and choose the file called firmware-cnc.bin.

Wiring

In order to control the power of the laser tube, the laser PSU reads a PWM signal as its input.

Please look at the datasheet for your PSU to know which connection that signal is wired to.

From the Smoothieboard, you need to connect:

  • One GND pin to the Ground connection on the PSU
  • One of Smoothie’s PWM pins to the PWM input on the PSU

Both Ground pins are easy to find, and the PSU input you find in the manual/datasheet, now all you need is to find a PWM pin on the Smoothieboard.

There are 6 of them, but 4 of them are used for the step pins for stepper motor drivers.

Those for alpha and beta you won’t be able to use as you use those drivers to control the X and Y axes.

Depending on whether you have a Z axis, your gamma axis step pin could be used.

It is labelled ST3, on the JP12 header, near the M3 stepper motor driver.

You probably do not use your delta (M4) stepper motor driver on a laser cutter, so that pin can also be used, it is labelled ST4 on the JP15 header near the M4 stepper motor driver.

The other two are found near the microcontroller and the MOSFETS, on the JP33 header, and are labelled PWM0 and PWM1.

Choose which you will use, all have a GND header close-by (all are unlabelled) to make it convenient for wiring.

Now you need to find which GPIO pin/port number corresponds to the PWM pin you chose, so you can tell Smoothie which you’ll be using in the configuration file.

Pin number for configuration Label on the board Comment
2.2 STP3 Only if you are not using a Z axis/the gamma driver. Make sure you set gamma_step_pin to the “nc” value. The unlabelled pin in JP12 is GND.
2.3 STP4 Only if you are not using the delta driver. Make sure you set delta_step_pin to the “nc” value. The unlabelled pin in JP15 is GND.
2.4 PWM0 Only if you are not using the first small MOSFET (X8). All pins of JP10 are GND.
2.5 PWM1 Only if you are not using the second big MOSFET (X15). All pins of JP10 are GND.

Smoothieboard v2 has dedicated PWM outputs available on the Gadgeteer headers. These are high-resolution PWM outputs suitable for laser control.

Pin name for configuration STM32 Pin Location Comment
PWM1_1 PE9 Gadgeteer GD Timer 1, Channel 1 - High-resolution PWM
PWM1_2 PE11 Gadgeteer GD Timer 1, Channel 2 - High-resolution PWM
PWM1_3 PE13 Gadgeteer GD Timer 1, Channel 3 - High-resolution PWM
PWM1_4 PE14 Gadgeteer GD Timer 1, Channel 4 - High-resolution PWM
PWM2_1 PI5 Gadgeteer GC Timer 8, Channel 1

The Gadgeteer headers provide convenient 3-pin connections with signal, power, and ground for easy wiring.

Now that the PSU is wired to the Smoothieboard and that you know which pin you are using for control, you can change the configuration file to setup laser control.

Configuration

You now need to edit the “config” file on the SD card (the default configuration file already contains example laser lines so you may only need to edit/enable those) to add or setup the laser part as follows:

# Laser module configuration

laser_module_enable                          false            # Whether to activate the laser module at all. All configuration is
                                                              # ignored if false.
laser_module_pwm_pin                         2.5              # this pin will be PWMed to control the laser. Only P2.0 - P2.5
                                                              # can be used since laser requires hardware PWM
#laser_module_maximum_power                  1.0              # this is the maximum duty cycle that will be applied to the laser
#laser_module_minimum_power                  0.0              # this duty cycle will be used for travel moves to keep the laser
                                                              # active without actually burning
#laser_module_pwm_period                     20               # this sets the pwm frequency as the period in microseconds
[laser]
enable = true                # Whether to activate the laser module at all
pwm_pin = 2.5                # This pin will be PWMed to control the laser
                             # Only P2.0-P2.5 can be used (hardware PWM required)
#maximum_power = 1.0         # Maximum duty cycle applied to the laser
#minimum_power = 0.0         # Duty cycle for travel moves (keeps laser active
                             # without burning)
#pwm_period = 20             # PWM period in microseconds

If needed, replace the 2.5 value for with the pin you chose in the wiring section.

Save the file, reset the board, you are now ready for laser testing.

All options

See Laser options for the settings and their defaults.

Example setup

Exactly how to wire your Smoothieboard to control your laser power supply is going to depend on the PSU itself, so we highly recommend you read the documentation for yours.

This is an example that should be the most common case, which you are most likely to encounter: the Chinese power supply with “H L P G IN 5V” connections.

In this example a RECI power supply but this should apply to most Chinese power supplies.

The basic idea is this: pin 1.23 (hardware PWM-capable) is configured as open-drain and inverted (1.23o!), then connected to the L (Low) TTL input on the power supply.

Ground from the Smoothieboard is connected to ground on the Power Supply.

The rest is specific to the supply: P is connected to G through the door switch and water protect circuits, this ensures that if the door is opened or the water chiller turns off, the laser is turned off.

Finally, IN is connected to 5V, setting the laser power at full (but it can still be modulated by Smoothie’s PWM).

Here you could in theory replace the jumper by a potentiometer, allowing you to manually adjust the maximum laser power.

The wiring looks like this:

Laser Power Supply Wiring

You then also need to configure the laser module accordingly:

# Laser module configuration
laser_module_enable                          false            # Whether to activate the laser module at all. All configuration is
                                                              # ignored if false.
laser_module_pwm_pin                         1.23o!           # this pin will be PWMed to control the laser. Only P2.0 - P2.5
                                                              # can be used since laser requires hardware PWM
[laser]
enable = true                # Whether to activate the laser module at all
pwm_pin = 1.23o!             # This pin will be PWMed to control the laser
                             # Only P2.0-P2.5 can be used (hardware PWM required)
                             # 'o!' means open-drain and inverted

Note on K40

The wiring above probably won’t work on a K40, which are fairly weird machines (cheap comes at a cost).

For K40, see the several build logs linked to at the top of this page.

In particular, you’ll likely need to increase the pwm frequency, and wiring might need to be different depending on your model.

Testing

Make sure your laser cutter enclosure is closed and that everything is safe. Wear laser protection googles, even if the machine is properly closed. Make sure your machine has a proper enclosure, and a switch on the door that turns it off when the door is opened. Do not do anything until this is properly setup. Lasers can make you blind. And bionic eyes are not there just yet.

Here is how Smoothie laser control works: G0 and G1 are exactly the same command, they take positional parameters (X10 Y5 Z3 for example) and move the tool to that position.

The only difference is that when using G0 the laser stays off, and when using G1 the laser is on, only during movement.

To test, try moving your laser with G0 and try moving it with G1:

G0 X10 F300
G1 X20 F300

You can set the power for the laser by using the S parameter. Values go from 0 (0%) to 1 (100%).

For example:

G1 X10 F300 S0.2

Supported G-codes

The following G-codes are supported by the Laser module:

  • G0: Move without activating the laser
  • G1/G2/G3: Move with the laser activated
  • S: The S parameter sets the current power of the laser, when it is activated, from 0 (0%) to 1 (100%).
  • M221 Snnn globally scales the laser power provided by G1 by nnn percent. So M221 S75 will scale the laser power to 75%.
  • M221 Rxxx: Set the PWM frequency to xxx Hz (Hertz). This specifies frequency, and not period, be aware and careful.
  • M221 P1: Temporarily disable proportional laser power (as per the laser_module_proportional_power configuration option, see its description for more details). This is not saved by the M500 command.

Supported commands

The following commands are available for testing (prepend @ in pronterface or M1000 in other hosts)

  • fire nnn where nnn is 0-100 percentage of power (example fire 10 will turn on laser at 10%)
  • fire off turn off the test fire and return to automatic mode.
If you want to learn more about this module, or are curious how it works, Smoothie is Open-Source and you can simply go look at the code, here.

Z-Probe Guide

The probe and nozzle touch different points: The configured offset tells Smoothie where the nozzle is when the probe triggers.
The probe and nozzle touch different points #

Smoothie allows you to use a probe to do a variety of tasks that improve precision and automation in your CNC operations.

What the probe does

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.

Common uses

Machine calibration

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.

Bed leveling

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.

Tool height detection

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.

Tool length detection

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.

Types of probes

Common probe types:

  • Touch probes: physical contact sensors, triggering on contact.
  • Inductive probes: detect metal surfaces without contact.
  • Capacitive probes: can detect various materials.
  • BLTouch/servo probes: deployable mechanical probes, which also need a control signal to extend and retract the pin.

Getting started

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.

Panel guide

If you want to jog the cutter without a computer, you can fit a panel. See the panel guide for the supported panels and wiring and settings.

Startup behavior and interlocks

Do not use a startup G-code file as the laser’s safety system. The laser power supply and door interlock must prevent unintended firing independently of firmware commands. Verify the inactive laser output and every interlock on your specific machine before enabling laser power.

Avoid automatic laser arming, homing, or travel moves at boot. These depend on the machine’s wiring and can be hazardous before its state has been checked. If you use startup G-code for non-motion settings, review the on_boot.gcode documentation for your firmware version and test with laser power disabled.

Appendixes

The appendixes cover the practical wiring work you may need along the way :

Laser engraving

Smoothie does not ( yet, it’s being worked on ) support native laser raster engraving.

However, as Smoothie interprets G-code unusually fast, a method to do raster engraving is to convert bitmap images into G-code files.

Here are some tools that allow to do this:

The main issue here is sending the gcode fast enough, and there is a tool on the github called fast-stream.py that will send it as fast as possible.

I have managed over 100mm/sec feedrate using this script to send the gcode.

Troubleshooting

If you run into trouble, something doesn’t work as it should, head over to the Troubleshooting page for a list of common problems and means of diagnosis.

You can also contact the Community for help if you can’t find an answer in the documentation.

bCNC configuration

Coding

bCNC is a program that makes it convenient to use Smoothie as a CNC mill or laser cutter, and better yet, it is free!

It also comes with several features useful for CNC and laser work, such as a work coordinate system, basic CAM, and a remote pendant web app (you can use the pendant from a browser).

Be Careful: Failure to properly configure bCNC for use with Smoothie can result in your machine crashing, parts breaking, and being sad. Be careful and check your work.

Getting Started

BCNC Screenshot

The first step is to update your Smoothieboard to the latest edge version of the CNC firmware build, as support for bCNC is relatively new.

Before you change firmware, save a copy of your config, config-override and old firmware.

See flashing firmware for more help.

The second step is to get bCNC, which is available at bCNC’s GitHub repository.

Extract the archive and install the dependencies listed in its README. On Windows, run bCNC.bat.

Once installed, select Smoothieboard from the drop-down menu on the communication panel under the File tab and edit the machine configuration under the Tools tab.

Once all of these things are done, you are ready to use bCNC with Smoothie. Check that bCNC can send commands to Smoothie before you run a job.

Compatibility Note

Unfortunately bCNC is not 100% compatible with Smoothie. It mostly works, but feed hold does not work as expected, and after an abort or stop bCNC may need to be exited and restarted, as it currently does not handle the way Smoothie does abort properly. Try feed hold before relying on it in a job. bCNC and Smoothie do not always agree on how to pause. If bCNC stops responding after an abort, close it and start it again. See Stopping Smoothie for the controls on the board.

Software

See the comprehensive Software Compatibility List for all software that works with Smoothieware.

This is a wiki! If you'd like to improve this page, you can edit it on GitHub.