Extension board · Inputs
Give your Smoothieboard seven more inputs: six for limit switches or 5 V sensors, and one for a probe whose signal can be as high as 45 V. One ribbon cable connects it, and the board powers your sensors itself.
Both boards bring several switches to one ten-way controller cable.
| Endstop inputs (basic) | Endstop and probe inputs (advanced) | |
|---|---|---|
| Specifications | ||
| Inputs | 7 | 6, plus 1 probe input |
| Sensor supply | 3.3 or 5 V | 5 V |
| Input connectors | 3-pin 2.54 mm header | 3-pin header, JST PH or jack, and a screw terminal |
| Size | 77 × 27 mm | 96 × 70.5 mm |
| Features | ||
| Light on every input | ||
| Buffered controller signals | ||
| Limited sensor supply | ||
| Probe input for a positive-voltage signal | ||
| Cuttable link on every input | ||
| Second connector for another board | ||
| M3 mounting holes | ||
| Cable-tie holes | ||
| Inputs 1 to 6 | For switch contacts to ground and for sensors with a 0 to 5 V output. Each has three pins: signal, ground and 5 V. |
| Pull-up, inputs 1 to 6 | 10 kΩ to the board's 5 V sensor supply: about 0.5 mA through a closed switch (calculated) |
| Filtering, inputs 1 to 6 | A filter of about 1 ms (calculated) followed by a Schmitt-trigger buffer, which turns a slow or noisy edge into one clean transition |
| Input 7 (probe) | For a signal between 3 and 45 V, positive only (as printed on the board). Reads high above about 2.2 V and low below (calculated). |
| Signals to the controller | Seven 3.3 V logic outputs, each through 330 Ω (inputs 1 to 6) or a 10 kΩ pull-up (input 7). Not inverted: an open switch reads high. |
| Sensor power | 5 V on every input connector, taken from the controller and limited to about 0.2 A for all seven together (as printed on the board) |
| Indicators | Green POWER 3V3 LED. Red FIELD FAULT LED, lit when the sensor power limiter reports a fault. |
| Control connector | 2×5-pin, 1.27 mm pitch Gadgeteer socket, type Y |
| Chain connector | A second 2×5-pin socket that can pass unused controller pins on to another board |
| Input connectors 1 to 6 | One of three types, chosen when the board is assembled: 3-pin 2.54 mm header (Molex KK 254), 3-pin JST PH, or 2.5 mm three-contact jack |
| Input connector 7 | 3-way screw terminal, 3.5 mm pitch |
| Isolation | None. Controller ground and sensor ground are the same net. |
| Size | 96 × 70.5 mm, four M3 mounting holes, two cable-tie holes |
| Works with | Smoothieboard V2 Prime and Smoothieware V2 firmware, using its standard endstops and probe modules |
| Licence | Open hardware, CERN-OHL-S-2.0 |
The electrical figures are in the electrical specifications appendix; the hole positions are in the mounting dimensions appendix.
The numbers on the picture match the list below it. The board is shown from the component side, with the input connectors at the bottom. The picture shows the version with 2.54 mm headers on inputs 1 to 6.
1Controller connector (J8) — the ribbon cable to your Smoothieboard goes here. Pin 1 is at the left, marked 1. See the pinout.
2Chain connector (J9) — passes power, and any controller pins you free up, to a second board. Its signal pins are not connected as delivered.
3Chain links JP11 to JP20 — one solder link per pin of the chain connector. JP11, JP12 and JP20 (power and ground) are closed as delivered; JP13 to JP19 (signals) are open.
4POWER 3V3 light — green, lit while the board gets 3.3 V from the controller.
5FIELD FAULT light — red, lit when the sensor power limiter reports a fault, for example a short circuit on a sensor cable.
6Input links JP1 to JP7 — one per input, in a row across the board, closed as delivered. Cutting one disconnects that input from the controller.
7Sensor power limiter — feeds the 5 V pin of all seven input connectors and limits the total to about 0.2 A.
8Test pads — four labelled pads. TP1 IN5V is the 5 V arriving from the controller, TP2 FIELD5V the 5 V going to the sensors, TP3 GND is ground.
9Input buffers — two chips that clean up the signals of inputs 1 to 6 and convert them to 3.3 V.
10Inputs 1 to 6 — six three-pin connectors, numbered on the board. On the header version, the pins are signal, ground, 5 V from left to right.
11Probe pull-up link JP21 — closed as delivered. Cut it for a probe that drives its own signal voltage. See options.
12Input 7, the probe input — screw terminal marked 7 S G 5V: signal, ground, 5 V from left to right.
13Cable-tie holes — marked TIE, for strain relief of the sensor cables.
Connect J8 to the header labelled G_F on the Smoothieboard V2 Prime. All seven signal pins of that header are free general-purpose pins, which is what this board needs. The last column is the name you use for each pin in the configuration file.
| J8 pin | Function | What it does | Smoothieboard V2 Prime pin (header G_F) |
|---|---|---|---|
| 1 | 3.3 V | Powers the input buffers and the green LED | — |
| 2 | 5 V | Source of the sensor power, through the limiter | — |
| 3 | INPUT 1 | State of input 1: high while its switch is open | PB1 |
| 4 | INPUT 2 | State of input 2 | PJ4 |
| 5 | INPUT 3 | State of input 3 | PA4 |
| 6 | INPUT 4 | State of input 4 | PG0 |
| 7 | INPUT 5 | State of input 5 | PJ3 |
| 8 | INPUT 6 | State of input 6 | PG1 |
| 9 | INPUT 7 | State of the probe input: high while its signal is above about 2.2 V | PJ2 |
| 10 | GND | Ground, shared with all sensors | — |
Every input has the same three contacts. Their order depends on which connector type your board was assembled with. Only one type is fitted.
| Connector type | Contact order | Printed on the underside |
|---|---|---|
| 3-pin 2.54 mm header (Molex KK 254) | Left to right: S G 5V | S, G, 5V under each connector |
| 3-pin JST PH | Pin 1 G, pin 2 5V, pin 3 S | PH: G 5V S |
| 2.5 mm three-contact jack | Tip S, ring 5V, sleeve G | 2.5 TRS: TIP=S RING=5V SLEEVE=G |
| Contact | Function |
|---|---|
| S | Signal. Pulled up to 5 V by the board. Connect it to ground to make the input read low. |
| G | Ground |
| 5V | Sensor power from the limiter. Leave it unconnected for a plain switch. |
| Between S and G | Signal to the controller | In the firmware (pin not inverted) |
|---|---|---|
| Switch closed | Low | 0, not triggered |
| Switch open, wire broken, or nothing connected | High | 1, triggered |
| Screw, left to right | Marking | Function |
|---|---|---|
| 1st | S | Signal, 0 to 45 V, positive only. Pulled up to 5 V through 10 kΩ while link JP21 is closed. |
| 2nd | G | Ground |
| 3rd | 5V | Sensor power from the limiter, 5 V only |
| J9 pin | Connected to | Through link | As delivered |
|---|---|---|---|
| 1 | 3.3 V from J8 pin 1 | JP11 | Connected |
| 2 | 5 V from J8 pin 2, before the limiter | JP12 | Connected |
| 3 to 9 | The J8 pin with the same number | JP13 to JP19, in order | Not connected |
| 10 | GND | JP20 | Connected |
These steps connect one limit switch to input 1 and show its state on the console. Nothing moves during the test.
Disconnect its power before plugging anything in.
Plug one end into the header labelled G_F on the Smoothieboard V2 Prime and the other into J8, the left one of the two ribbon connectors. Pin 1 must go to pin 1: follow the red edge of the cable.
Use the normally closed contact of the switch, the one that is connected while the switch is not pressed. Connect its two wires to S and G of input 1. Leave 5V unconnected.
You should see: the green POWER 3V3 LED lit and the red FIELD FAULT LED dark.
Add the four maxx lines of the configuration below to the [endstops] section of the configuration file on the SD card, then restart the board.
Send this from the console:
M119
You should see: the reply contains PB1^:0. Hold the switch pressed and send M119 again: it now contains PB1^:1.
If it reads 1 all the time, go to troubleshooting.
Wire them one at a time as described under Wiring switches and sensors, add each to the configuration, and check each with M119 before you rely on it.
The board needs no module of its own: each input is an ordinary pin of the controller, and you give that pin to whichever part of the firmware, called a module, should read it. The five most common uses:
| You want | Module | Example |
|---|---|---|
| Stop the machine when an axis runs into its end | Endstops, as limit switches | 1. Limit switches |
| Find the machine's zero position | Endstops, as homing switches | 2. Homing switch |
| Measure a surface or a tool with a probe | Probe | 3. Probe |
| Run a command when a contact opens or closes: a door, a button | Switch, with an input pin | 4. Door switch |
| Stop everything with an emergency button | Kill button | 5. Kill button |
Each input can go to one module only: the firmware lets each pin be claimed once. The lines go into the configuration file on the controller’s SD card; if the file already has a section with the same name in square brackets, add the lines to it instead of creating a second one.
Three limit switches on inputs 1 to 3:
[endstops]
maxx.enable = true
maxx.pin = PB1^ # input 1 (G_F pin 3)
maxx.axis = X
maxx.limit_enable = true # halt when hit during a move
maxy.enable = true
maxy.pin = PJ4^ # input 2 (G_F pin 4)
maxy.axis = Y
maxy.limit_enable = true
maxz.enable = true
maxz.pin = PA4^ # input 3 (G_F pin 5)
maxz.axis = Z
maxz.limit_enable = true
A limit acts only while its axis is moving. Then the firmware halts and prints ALARM: Hard limit +X was hit (with the direction and axis concerned).
A switch at the low end of the X axis on input 4, used by G28 to find the zero position:
[endstops]
minx.enable = true
minx.pin = PG0^ # input 4 (G_F pin 6)
minx.axis = X
minx.homing_direction = home_to_min # the switch is at the low end of the axis
minx.homing_position = 0 # the position the axis has when the switch triggers
minx.max_travel = 500 # give up after this many millimetres
minx.fast_rate = 100 # mm/s for the first approach
minx.slow_rate = 10 # mm/s for the second, accurate approach
minx.retract = 5 # mm to back off between the two
minx.limit_enable = false # true makes it a limit switch as well
Set max_travel to a little more than the length of your axis and the rates to what your machine can do. The full list of settings is on the endstops page.
A probe on input 7, the screw terminal:
[zprobe]
enable = true
probe_pin = PJ2!^ # input 7 (G_F pin 9), probe that pulls its signal low
slow_feedrate = 5 # mm/s while probing
fast_feedrate = 100 # mm/s between probe points
probe_height = 5 # mm above the surface to start from
The ! is for a probe that pulls its signal low when it triggers. Leave it out for a probe whose signal goes high when it triggers.
The Switch module can watch a pin and send a command when it changes. Here a door contact on input 5 pauses the job while the door is open:
[switch]
door.enable = true
door.input_pin = PJ3^ # input 5 (G_F pin 7)
door.input_pin_behavior = momentary # follow the contact
door.output_on_command = M600 # contact open: suspend the job
door.output_off_command = M601 # contact closed again: resume
The contact is closed while the door is shut. When it opens, the input reads 1 and the firmware runs M600; an unplugged cable also reads 1, so a missing switch pauses the job. The pin is checked fifty times a second, so a very short press of a push-button can be missed. Any command can stand in place of M600 and M601; write _ where the command has a space.
An emergency button on input 6. The module halts the machine when the pin reads 0, so use a button that closes its contact to ground when pressed:
[kill button]
enable = true
pin = PG1^ # input 6 (G_F pin 8)
toggle_enable = false # true for a latching button that stays pressed
unkill_enable = true # holding the button about 2 s clears the halt
The firmware has one kill button only. It is polled five times a second and acts through the firmware: it is not a substitute for an emergency stop that cuts the power.
| Command | What it does |
|---|---|
M119 | Lists every configured endstop pin and the probe with its state: 1 is triggered, 0 is not. |
$X or M999 | Leaves the halted state after a limit switch was hit. |
! for normally closed switches. The board does not invert: an open switch reads 1, which the endstops module treats as triggered. Add ! only for a sensor that pulls its signal low when it triggers, as in the probe example.^. It turns on the controller’s own pull-up, so an unplugged ribbon cable reads as triggered and not as a random value.common.debounce_ms under [endstops] adds a debounce time on top of the board’s own filter.Limit switches. Use the normally closed contact, between S and G. A broken wire or a plug that fell out then reads the same as a pressed switch, and the machine stops instead of running past the switch.
5 V sensors on inputs 1 to 6. Power the sensor from the 5V contact and connect its output to S. Sensors that pull their output to ground (often called NPN or open-collector) and sensors that drive it between 0 and 5 V both work. All seven 5V contacts together are limited to about 0.2 A, so add up the supply currents of your sensors first.
Never put more than 5 V on S of inputs 1 to 6. They are built for switches and 5 V sensors. A sensor powered from 12 or 24 V whose output rises to its supply voltage belongs on input 7.
A probe on input 7. This input accepts a signal up to 45 V and reads high above about 2.2 V. Power a 12 to 24 V probe from its own supply, connect that supply’s negative terminal to G and the probe’s output to S. Then:
!.!.The signal on input 7 must never be negative, and never above 45 V.
Cables. Keep sensor cables away from motor and spindle cables. The two holes marked TIE take a cable tie.
Inputs 1 to 6. A 10 kΩ resistor pulls each signal up to the 5 V sensor supply, and a small capacitor filters out spikes shorter than about a millisecond. A Schmitt-trigger buffer then decides high or low with a margin between the two thresholds, so a slowly changing or noisy signal produces one clean edge. Its 3.3 V output goes to the controller through a 330 Ω resistor and the input’s link. Each signal contact also has a protection part against static discharge.
Input 7. A resistor divider scales the signal down by about 21, so 45 V at the screw becomes about 2.1 V inside. A comparator compares the result with a fixed reference and outputs high when the signal at the screw is above about 2.2 V. A protection diode clamps voltages above the rated range and any negative voltage.
Sensor power. The controller’s 5 V passes through a limiter chip before reaching the 5V contacts. If the sensors draw more than about 0.2 A in total, or a sensor cable is shorted, the limiter restricts the current and the red FIELD FAULT LED lights. The switch inputs keep their pull-ups from the same limited supply, so a fault there can disturb all inputs until it is removed.
| Light | POWER 3V3 | FIELD FAULT |
|---|---|---|
| Where | Left edge, upper light | Left edge, lower light |
| Lit means | The board gets 3.3 V from the controller. Lit in normal use. | The sensor power limiter reports a fault, for example a short circuit on a sensor cable or sensors drawing more than about 0.2 A together. |
There is no light per input: use M119 to see the state of each input. A dark light can also be a cut link (JP23 for the green light, JP22 for the red one).
All options are solder links on the top side, with their names printed beside them. A closed link has a thin bridge between its two pads: cut it with a sharp knife to open it. An open link is closed with a drop of solder. Change links with the board unpowered.
| Link | As delivered | What it does | Change it when |
|---|---|---|---|
| JP1 to JP7 | Closed | Connects input 1 to 7 to its controller pin | You want that controller pin for another board |
| JP21 | Closed | Pull-up of the probe input to 5 V | Your probe drives its own signal voltage (PNP): cut it |
| JP11, JP12, JP20 | Closed | Pass 3.3 V, 5 V and ground to the chain connector | The chained board must not be powered from here: cut JP11 or JP12 |
| JP13 to JP19 | Open | Pass controller pins 3 to 9 to the chain connector | See sharing the header |
| JP23 | Closed | Green POWER 3V3 LED | You want the LED dark: cut it |
| JP22 | Closed | Red FIELD FAULT LED | You want the LED dark: cut it |
If you use fewer than seven inputs, the controller pins of the unused inputs can go on to a second board plugged into the chain connector J9. For each pin you want to pass on:
That controller pin then appears on the same pin number of J9. Power and ground are passed on as delivered. The 5 V on the chain connector comes straight from the controller and does not go through this board’s limiter.
| When you see | It means | Do this |
|---|---|---|
| The green LED is dark | The board gets no 3.3 V. | Check the ribbon cable at both ends, that it is in J8 and not J9, that it is on header G_F, and that pin 1 goes to pin 1. |
| An input always reads 1 | The board sees an open circuit. | Check the switch is on its normally closed contact, the wires are on S and G, and the contact order matches your connector type. Join S and G with a piece of wire: if it now reads 0, the board is fine and the fault is in the switch or cable. |
| An input always reads 0 | S is connected to ground all the time. | Unplug the sensor. If the input now reads 1, the sensor or its cable holds the signal low. Check whether the sensor needs the 5V contact. |
M119 does not list the pin | The input is not configured. | Check enable = true and the pin name in the configuration, then restart the board. |
The machine halts with ALARM: Hard limit as soon as an axis moves | A limit input reads triggered. | Send M119. An enabled input with nothing connected reads 1: disable it or connect its switch. |
| The red FIELD FAULT LED is lit | The sensors draw too much current, or a 5V contact is shorted. | Unplug the sensors one by one until the LED goes out. Add up their supply currents: the total is limited to about 0.2 A. |
| The probe reads the wrong way round | The polarity does not match the probe type. | Add or remove ! on probe_pin. |
| The probe input never changes | The pull-up setting does not suit the probe, or the grounds are not joined. | For a probe that drives its own voltage, cut JP21. Check the probe supply's negative terminal is connected to G. |
| An input triggers by itself during motion | Electrical noise on the sensor cable. | Route the cable away from motor cables, and set common.debounce_ms under [endstops]. |
Still stuck? Read how to ask for help or see the general troubleshooting guide. Include the text printed on your board, which connector type it has, what is connected to each input, and what M119 replies.
| File | What it is |
|---|---|
| Schematic (PDF) | The complete circuit diagram |
| Parts list (CSV) | Every component with its value and footprint. Inputs 1 to 6 are listed with the shared footprint that accepts all three connector types. |
| Top view (SVG) | The drawing used on this page, to scale: one unit is one millimetre |
For drilling a mounting plate or designing an enclosure. Positions are hole centres, in millimetres, measured from the corner marked 0, 0 with the board seen from the component side.
| Hole | X (mm) | Y (mm) | Diameter | Use |
|---|---|---|---|---|
| 1 | 8.00 | 10.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 2 | 88.00 | 10.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 3 | 8.00 | 50.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 4 | 88.00 | 50.00 | 3.2 mm, not plated | Mounting, M3 screw |
| – | 93.00 | 35.00 | 3.2 mm, not plated | Cable tie |
| – | 93.00 | 42.00 | 3.2 mm, not plated | Cable tie |
A dash means that no value is given or the figure does not apply.
| Parameter | Applies to | Lower | Nominal | Upper | Conditions |
|---|---|---|---|---|---|
| Logic supply | J8 pin 1 | — | 3.3 V | — | From the controller |
| Sensor supply input | J8 pin 2 | — | 5 V | — | From the controller |
| Sensor power, all seven inputs together | 5V contacts | — | — | ≈ 0.2 A | Printed on the board |
| Sensor signal voltage | Inputs 1 to 6 | 0 V | — | 5 V | Signal range |
| Pull-up | Inputs 1 to 6 | — | 10 kΩ | — | Fitted part value, to the 5 V sensor supply |
| Current through a closed switch | Inputs 1 to 6 | — | ≈ 0.5 mA | — | Calculated |
| Input filter time | Inputs 1 to 6 | — | ≈ 1 ms | — | Calculated |
| Signal voltage | Input 7 (probe) | 3 V | — | 45 V | Printed on the board. Positive only. |
| Switching threshold | Input 7 (probe) | — | ≈ 2.2 V | — | Calculated |
| Output level to the controller | J8 pins 3 to 9 | 0 V | — | 3.3 V | Logic outputs; through 330 Ω (inputs 1 to 6) or a 10 kΩ pull-up (input 7) |
These are limits of individual parts, beyond which the part can be damaged. They are not operating conditions; stay inside the table above.
| Circuit | Pin or device stress | Absolute limit |
|---|---|---|
| Probe input | Voltage on the S screw of input 7 | 45 V, positive only |
| Inputs 1 to 6 | Voltage on a signal pin | Stay within 0 to 5 V |
| Sensor power | Short circuit on a 5V contact | Limited to about 0.2 A |
See all boards on the extension boards page.