Pick and Place machines are specialized CNC machines that automate the placement of electronic components onto printed circuit boards (PCBs).
A Pick and Place machine is essentially a very fast and precise CNC machine without a spindle, but with vacuum nozzles to pick up and place components.
This is a step-by-step guide to connecting your board to the various components of the Pick and Place machine, configuring everything, from the beginning to actually placing components.
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 Pick and Place machine 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
Upgrade your firmware to the latest version if you feel like it
Wire your power supply and provide it with power
Wire the power supply to Smoothieboard’s motor input
Connect motors to the stepper motor driver outputs (X, Y, Z, and rotation axes)
Edit your configuration to match your motors
Test the motors, and admire your accomplishment for hours
Connect Endstops to the endstop inputs
Edit your configuration to match your endstops
Test your endstops by homing the machine
Connect your vacuum system (pump, solenoids, sensors)
Configure and test vacuum sensing for component detection
Configure and test vacuum control solenoids
Connect and configure nozzle servos or Z-axis steppers
Test pick and place operations with sample components
Connect, configure and test any probes or cameras you may have
Configure your OpenPNP software and calibrate the machine
Run test pick and place jobs with low-value components
Watch as the machine places components using your new Smoothieboard system
Be happy
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.
Smoothieboard V1:
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.
Smoothieboard V2 Prime:
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.
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.
Drivers are needed for Windows 7/8, while Linux and Mac OS X directly support the device, you can find those drivers here.
Connect a USB-C cable 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, Mac OS X, or modern Windows systems. The SDIO SD card interface provides much faster transfer rates (10-25 MB/s) compared to USB Mass Storage.
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.
You edit the configuration simply by editing this file in a Text Editor, saving it, and resetting the board.
This file uses INI-style sections (e.g., [actuator], [motion control]) with hierarchical settings.
The file is read when you start or reset your board.
You edit the configuration by editing this file in a Text Editor, saving it, and resetting the board. V2 configuration is structured differently from V1, so refer to the configuration guide for proper formatting.
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 firmwares but that’s mostly for developers).
The CDC (Serial) interface is the interface host programs like Pronterface use to allow you to 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, we explain it all later in this guide.
V1 Network (Optional):
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.
Network connectivity is optional and disabled by default, but is easy to enable and configure if you have the appropriate hardware.
V2 Network (Built-in):
The Smoothieboard V2 Prime includes an onboard Ethernet port (RJ45) with integrated PHY, allowing direct connection to your local Ethernet network via standard network cable.
This allows you to access a web interface the board serves, and control the machine via your browser.
It also allows you to connect software that supports it (like Pronterface and Visicut) to your Smoothieboard via the 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.
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.
V1 Firmware Update (SD Card Method):
firmware.bin fileThe new firmware will “flash” (you will see the LEDs on the board do a little “dance”), and you will then have the latest 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.
You can find the file, and information on how to flash it, at Flashing Smoothie Firmware.
V2 Firmware Update (Multiple Methods):
Method 1: SD Card (Recommended for first update):
firmware.bin fileThe new firmware will “flash” (you will see the LEDs on the board do a little “dance”), and you will then have the latest version.
Method 2: Network Update (requires Ethernet): Once you have network configured, you can update directly via the command:
update http://example.com/firmware.bin
This is particularly useful if you ever need to ask for help, as people helping you will be assuming you have the latest version.
You can find the file, and information on how to flash it, at Flashing Smoothie Firmware.
If you are migrating from another firmware, here are guides to 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/3D printer firmwares. These guides will help you translate your existing settings.
Choose the guide that matches your current firmware:
For detailed information about configuration format differences between V1 and V2, choosing the right version, and common migration pitfalls to avoid, see the Migration Details page.
Smoothie firmware tries to create a single firmware for all types of machines (you then adapt the firmware to your machine type by changing the configuration).
However, for Pick and Place machines, we recommend using the special “CNC” build of the firmware.
The CNC build includes:
GRBL Mode Configuration:
grbl_mode true
This setting is enabled by default in the CNC firmware build, which means Smoothie interprets G-code as CNC G-code rather than 3D-printing G-code.
[general]
grbl_mode = true
This setting is enabled by default in the CNC firmware build, which means Smoothie interprets G-code as CNC G-code rather than 3D-printing G-code.
You will find information on flashing the firmware at getting-smoothie
You will find more information on GRBL mode on the grbl_mode page.
If you are using vacuum sensors to detect component pickup, those sensors require you to use the Temperature Control module, which is not enabled by default in the CNC build.
Therefore, you will need to build your own firmware, which is very easy if you follow this simple guide.
Make sure you compile the “CNC build” (make CNC=1), not the normal/default build, this is explained in the simple guide.
Once you have used this guide to compile your own CNC build, you need to make one small modification so the next time you compile, it will include the Temperature Control module, which the CNC build does not include by default (it’s more typical of 3D printer builds, so the flash space for it is wasted if it’s included typically).
There are two ways to make it so compilation will include this module, both methods are valid, the first one (user file creation) is preferred:
Just create a file named src/default_excludes.mk (that is, it is in the src/ folder in your copy of Smoothie’s source).
Inside of it, add these lines:
export CNC=1
export EXCLUDE_MODULES = tools/laser tools/filamentdetector tools/scaracal tools/extruder
By default, the version of the second line that is present in the CNC build makefile contains tools/temperaturecontrol, so here we are removing that item so it’s no longer excluded when compiling.
Now every time you compile your firmware, it will use the CNC build, and include the temperature-control module!
Simply do:
make clean
make
Use the resulting .bin file, and you’re good to go!
This method does not require creating a file, but it also means you have to remember to add this option to your command line every time you compile the firmware, so this is probably not the best method if you are a forgetful person.
In itself, it’s very easy though. Instead of compiling your CNC build of the firmware with:
make clean
make CNC=1
You instead use:
make clean
make CNC=1 INCLUDE_MODULES=tools/temperaturecontrol
That’s it! Now your firmware will compile with the temperature-control module included, and the resulting .bin file can be flashed to give you a CNC build with temperature-control support so you can read vacuum sensors through your ADCs.
Just remember to use the right command instead of the default one next time you update your firmware!
There are different ways of providing logic power to your board.
Your board needs two sorts of power to work:
There are three ways to provide 5V power to the board:
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.
Two power supplies are required, 5.0V and ‘bulk’ power (VBB).
Smoothieboard v2 uses a dual power architecture that separates motor power from MOSFET (heater/fan) power. This provides better current handling and more flexibility.
| 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 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.
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 |
Once the wires 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, everything is fine: unplug the PSU and continue.
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.
Smoothie comes with stepper motor drivers designed for bipolar stepper motors, with a maximum current rating of 2 Amps.
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).
If you want to use larger stepper motors than the Smoothieboard’s drivers can handle (2A max), you need to use external stepper drivers.
You can find detailed information on how to wire an external stepper motor driver to a Smoothieboard in the External driver appendix.
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.
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.
Pick and Place machines use vacuum nozzles instead of spindles or lasers to manipulate components.
This section covers how to configure and control the vacuum system, sensors, and nozzles.
The Pick and Place machine’s main effectors are the vacuum nozzles that pick up components and place them on PCBs.
Unlike a CNC mill with a spindle, a Pick and Place machine uses:
This section covers how to configure and control these systems with Smoothieboard.
Pick and Place machines use vacuum to pick up and hold components during placement.
The vacuum system typically consists of:
Many Pick and Place machines use vacuum sensors to detect whether a component has been successfully picked up.
These sensors read vacuum pressure through ADCs (Analog to Digital Converters) on the Smoothieboard.
To read vacuum sensors, you can use the Temperature Control module configured to read ADC values directly, bypassing the thermistor math for linear reading.
Here is an example vacuum sensor configuration for a dual-nozzle setup:
# VACUUM SENSING
# LEFT Nozzle Vacuum configuration
temperature_control.vac_n1.enable true # Whether to activate this ( "hotend" ) module at all.
temperature_control.vac_n1.sensor ad8495 #
temperature_control.vac_n1.ad8495_pin 0.23 # Pin for the thermistor to read
temperature_control.vac_n1.ad8495_offset 0 #
temperature_control.vac_n1.heater_pin nc # Pin to controls the heater, nc if a read only thermistor.
temperature_control.vac_n1.readings_per_second 500 # How many times per second to read temperature from the sensor.
temperature_control.vac_n1.get_m_code 104 # Calling this M-code will return the current temperature.
temperature_control.vac_n1.designator VAC # Designator letter for this module
temperature_control.vac_n1.rt_curve 20.0,220,120,6000,220,120000
# RIGHT Nozzle Vacuum configuration
temperature_control.vac_n2.enable true # Whether to activate this ( "hotend" ) module at all.
temperature_control.vac_n2.sensor ad8495 #
temperature_control.vac_n2.ad8495_pin 0.24 # Pin for the thermistor to read
temperature_control.vac_n2.ad8495_offset 0 #
temperature_control.vac_n2.heater_pin nc # Pin to controls the heater, nc if a read only thermistor.
temperature_control.vac_n2.readings_per_second 500 # How many times per second to read temperature from the sensor.
temperature_control.vac_n2.get_m_code 105 # Calling this M-code will return the current temperature.
temperature_control.vac_n2.designator VAC # Designator letter for this module
temperature_control.vac_n2.rt_curve 20.0,220,120,6000,220,120000
Connect your vacuum sensor to one of the thermistor inputs on the Smoothieboard (T0-T3).
In the example above:
You can then read the vacuum level using the configured M-codes (
To control vacuum solenoids that turn vacuum on and off to each nozzle, you can use the Switch module.
Here’s an example configuration for controlling vacuum solenoids:
# Left nozzle vacuum solenoid
switch.vacuum_left.enable true #
switch.vacuum_left.input_on_command M42 # M42 with S parameter to control
switch.vacuum_left.input_off_command M43 # Or use M42 S0
switch.vacuum_left.output_pin 2.4 # Small mosfet output pin
switch.vacuum_left.output_type digital # Digital on/off control
# Right nozzle vacuum solenoid
switch.vacuum_right.enable true #
switch.vacuum_right.input_on_command M44 #
switch.vacuum_right.input_off_command M45 #
switch.vacuum_right.output_pin 2.5 # Small mosfet output pin
switch.vacuum_right.output_type digital #
Wire your solenoid valve to one of the small mosfet outputs on the Smoothieboard. Make sure to respect polarity and add a protection diode if not already present on newer boards.
On some Pick and Place machines, the nozzle head (Z axis) is controlled by a hobby servo motor rather than a stepper motor.
By default in Smoothie, hobby servos are controlled via the Switch module using M-codes such as M280.
This works, but that’s not how you usually address a Z axis.
If you want extra convenience by being able to talk to your hobby servo as if it was a Z axis (which means you will also be able to use it in places like homing or probing the way you typically use a Z axis), then you can use this special branch of Smoothie that implements this feature:
Once you compile this branch, you will be able to use your hobby servo as a Z axis (and other such switch <-> axis associations).
For standard servo control using M-codes, configure as follows:
# Servo control for nozzle Z axis
switch.servo_z.enable true #
switch.servo_z.input_on_command M280 # Standard servo control command
switch.servo_z.output_pin 2.5 # Servo signal pin
switch.servo_z.output_type hwpwm # Hardware PWM for servo
switch.servo_z.pwm_period_ms 20 # 20ms period for standard servos
Use M280 S90 to set the servo to 90 degrees, for example.
If your Pick and Place machine has multiple nozzles, you’ll need to configure:
Use the Switch module’s ability to create multiple named instances to control each nozzle independently.
Once configured, test your vacuum system:
Always test carefully with low-value components first before running production jobs.
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.
Calibrate machine geometry, particularly important for delta machines where precise geometry is critical for accurate printing.
Automatically level un-even or non-level surfaces using either:
Automatically find the distance between the tool and either the workpiece or the build surface.
This is essential for:
Automatically detect tool lengths when using multiple tools or when tools are changed.
Common probe types include:
The ZProbe documentation covers:
A panel is the combination of a screen and some kind of input method (buttons, encoder, touchscreen) attached to the machine.
This allows you to control your machine without a computer connection.
With a panel connected to your Smoothieboard, you can:
Smoothieboard supports several types of panels:
The most common panel used with Smoothieboard.
Features a graphical LCD display with a rotary encoder for input.
Advanced panel with a larger screen and SD card slot.
Popular panel with full graphical display capabilities.
Allows connection of various panel types using a standard interface.
To use a panel with your Smoothieboard:
For detailed information on wiring and configuring your specific panel type, please read the Panel page.
That page contains:
If you prefer a touchscreen interface, consider Smoopi, which provides color touchscreen control using a Raspberry Pi.
Smoopi offers a modern, graphical interface with touch controls instead of traditional LCD panels.
The appendixes cover the practical wiring work you may need along the way :
Pick and Place machines typically require:
OpenPNP (Open Source Pick and Place) is the most common software used to control Pick and Place machines with Smoothieboard.
For detailed OpenPNP configuration, see the OpenPNP documentation.
Key integration points:
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.
Components not picking up:
Placement accuracy issues:
Speed issues:
See the comprehensive Software Compatibility List for all software that works with Smoothieware.