Extension board · Inputs
Connect seven limit or homing switches to your controller through one ten-way cable. Each input has a three-pin connector, a red light that shows its state and a simple filter. The circuit uses only resistors, capacitors, diodes and lights.
- (no pull resistor), and read before connecting an electronic sensor. Keep the supply jumper on 3V3 with a Smoothieboard V2.
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 | Seven, INP0 to INP6, each with signal, ground and supply pins |
| Meant for | Mechanical switches and dry contacts to ground |
| Sensor supply | 3.3 V or 5 V from the controller, one jumper for all seven. No fuse or current limit. |
| Pull-up | 1 kΩ to the selected supply, in each channel |
| Filter | 5.6 kΩ and 100 nF between each channel and its controller pin |
| Delay | 1.2 ms to read closed and 0.6 ms to read open (simulated, 3V3) |
| Signal levels at the controller | Open: 3.3 V. Closed: about 0.68 V. Not inverted. (Simulated, 3V3.) |
| Indicators | One red light per input, lit while the input is pulled low |
| Controller connectors | INPUT Y and CHAIN Y, 2×5 at 1.27 mm (Gadgeteer type Y) |
| Sensor connectors | Seven 3-pin 2.54 mm keyed headers (Molex KK 254, 22-23-2031) |
| Isolation | None. Controller ground and sensor ground are the same. |
| Size | 77 × 27 mm, two copper layers, four M3 holes on 70 × 20 mm |
| Works with | Smoothieboard V2 Prime and Smoothieware V2, through the endstops and probe modules |
| Licence | Open hardware, CERN OHL v1.2 |
Every figure with its basis is in the electrical specifications appendix; hole positions are in the mounting dimensions appendix.
The numbers on the drawing match the list below it. The board is shown from the component side, with the sensor connectors at the top.
1Controller connector (INPUT Y) — a 2×5, 1.27 mm Gadgeteer Y shrouded header for the ribbon cable from the controller. Pin 1 is the lower contact of its right-hand column.
2Chain connector (CHAIN Y) — a second header wired contact for contact to INPUT Y, for another board.
3Sensor connectors INP0 to INP6 — seven 3-pin 2.54 mm keyed headers, one per switch. Printed pin order from left to right: + , − , S.
4Input lights — one red light per input, lit while that input is pulled low, for example while a switch to ground is closed.
5Input diodes — one diode per input between the sensor’s S pin and the rest of the channel.
6Filter capacitors — one 100 nF capacitor per input, which smooths contact bounce and short noise pulses.
7Signal links JP2 to JP8 — one cuttable solder link per input, between the channel and its controller pin. All are closed as delivered.
8Supply selector JP1 — a three-pin header whose jumper cap picks 3.3 V (left) or 5 V (right) for the + pins and for the high level of every input. Use the 3V3 position with a Smoothieboard V2.
9Mounting holes — four 3.2 mm holes for M3 screws on a 70 × 20 mm rectangle, not connected to anything.
Connect INPUT Y to the header labelled G_F on the Smoothieboard V2 Prime with a straight ten-way cable. The last column is the name you use in the configuration file.
| Pin | Signal | What it does | Prime pin (header G_F) |
|---|---|---|---|
| 1 | 3.3 V | Feeds the lights, and the + pins in the 3V3 position | 3.3 V |
| 2 | 5 V | Feeds the + pins in the 5V position | 5 V |
| 3 | INP0 | State of input INP0: high when open, low when closed | PB1 |
| 4 | INP1 | State of input INP1: high when open, low when closed | PJ4 |
| 5 | INP2 | State of input INP2: high when open, low when closed | PA4 |
| 6 | INP3 | State of input INP3: high when open, low when closed | PG0 |
| 7 | INP4 | State of input INP4: high when open, low when closed | PJ3 |
| 8 | INP5 | State of input INP5: high when open, low when closed | PG1 |
| 9 | INP6 | State of input INP6: high when open, low when closed | PJ2 |
| 10 | GND | Ground | GND |
| Pin | Printed | Function |
|---|---|---|
| 3 (left) | + | 3.3 V or 5 V, set by JP1 |
| 2 (middle) | − | GND |
| 1 (right) | S | Signal |
Check the order of any ready-made switch cable against the printed + − S before plugging it in: a different order can short the supply.
| Pin | On CHAIN Y | Used by this board | As delivered |
|---|---|---|---|
| 1 | 3.3 V from INPUT Y | Yes: lights and the 3V3 position | Passed through |
| 2 | 5 V from INPUT Y | Only in the 5V position | Passed through |
| 3 | Controller pin of INP0 | Yes, through link JP2 | Passed through; JP2 closed |
| 4 | Controller pin of INP1 | Yes, through link JP3 | Passed through; JP3 closed |
| 5 | Controller pin of INP2 | Yes, through link JP4 | Passed through; JP4 closed |
| 6 | Controller pin of INP3 | Yes, through link JP5 | Passed through; JP5 closed |
| 7 | Controller pin of INP4 | Yes, through link JP6 | Passed through; JP6 closed |
| 8 | Controller pin of INP5 | Yes, through link JP7 | Passed through; JP7 closed |
| 9 | Controller pin of INP6 | Yes, through link JP8 | Passed through; JP8 closed |
| 10 | Ground | Yes | Passed through |
With all power off, put the jumper cap on JP1 across the middle pin and the pin marked 3V3 (the left one). Never fit a cap or solder across all three pins.
Plug the ribbon cable into the header labelled G_F and into INPUT Y, pin 1 to pin 1.
Wire the normally closed contact between S and − of INP0.
No machine motion is needed for this test.
The red light under INP0 is lit, and goes out while you press the switch.
Add example 1 for the axis, restart, and send M119 with the switch released and then pressed.
The reply shows 0 when released and 1 when pressed.
The board needs no module of its own: each input is an ordinary controller pin, given to the firmware module that should read it.
| You want | Module | Example |
|---|---|---|
| Stop the machine when an axis runs into its end | Endstops, as limit switches | 1. Limit switches |
| Find the zero position | Endstops, as homing switches | 2. Homing switch |
| Touch off with a contact probe or touch plate | Probe | 3. Probe |
| Run a command when a door opens | Switch, with an input pin | 4. Door switch |
| Halt with a button | Kill button | 5. Kill button |
End each pin name with -, which switches the controller’s pull resistor off. Without it the firmware turns a pull-up on, even when the name has no ^. That pull-up would raise the level of a closed switch to about 1 V, at the limit of what reads as low; the board already has a pull-up on every input. Each pin can be claimed by one entry only. Merge the lines into your configuration file, adding to a section that already exists.
Normally closed switches on INP0 to INP2:
[endstops]
maxx.enable = true
maxx.pin = PB1- # INP0 (G_F pin 3)
maxx.axis = X
maxx.limit_enable = true # halt when hit during a move
maxy.enable = true
maxy.pin = PJ4- # INP1 (G_F pin 4)
maxy.axis = Y
maxy.limit_enable = true
maxz.enable = true
maxz.pin = PA4- # INP2 (G_F pin 5)
maxz.axis = Z
maxz.limit_enable = true
A normally closed switch at the low end of X on INP3, used by G28:
[endstops]
minx.enable = true
minx.pin = PG0- # INP3 (G_F pin 6)
minx.axis = X
minx.homing_direction = home_to_min
minx.homing_position = 0
minx.max_travel = 500 # a little more than the axis length, mm
minx.fast_rate = 20 # mm/s for the first approach
minx.slow_rate = 5 # mm/s for the accurate approach
minx.retract = 5 # mm to back off between the two
minx.limit_enable = false
Choose rates at which your axis can stop within the switch’s spare travel. The input takes about 1 ms to respond.
A normally open contact on INP6, such as a touch plate that the tool connects to ground:
[zprobe]
enable = true
probe_pin = PJ2!- # INP6 (G_F pin 9), contact that closes to ground
slow_feedrate = 2 # mm/s while probing
fast_feedrate = 20 # mm/s between probe points
probe_height = 5 # mm above the surface to start from
Check with M119 that the probe reads 0 at rest and 1 when you close the contact by hand, before any probing move.
A contact on INP4 that is closed while the door is shut:
[switch]
door.enable = true
door.input_pin = PJ3- # INP4 (G_F pin 7)
door.input_pin_behavior = momentary
door.output_on_command = M600 # contact open: suspend the job
door.output_off_command = M601 # contact closed again: resume
A button on INP5 that closes its contact to ground when pressed:
[kill button]
enable = true
pin = PG1- # INP5 (G_F pin 8)
toggle_enable = false # true for a latching button
unkill_enable = true # holding the button about 2 s clears the halt
This button acts through the firmware. It does not replace an emergency stop that cuts the power.
| Command | What it does |
|---|---|
M119 | Lists every configured endstop pin and the probe: 1 is triggered, 0 is not. |
$X or M999 | Leaves the halted state after a limit switch was hit. |
! for normally closed switches. A closed switch reads 0 and an open one reads 1, which the endstops module treats as triggered.M119 and press each switch after any rewiring.common.debounce_ms under [endstops] adds a debounce time in the firmware.Use the normally closed contact for limits and homing: a broken switch wire then reads as triggered.
Electronic sensors need care. The signal passes through a diode before it reaches the controller, so the sensor must pull S very close to ground: below about 0.26 V in the 3V3 position for the controller to read low down to −10 °C, and below 0.32 V at 25 °C (simulated, about 4 mA to sink). Many open-collector and NPN sensors do not guarantee that. The sensor must also work from the voltage JP1 selects, which is 3.3 V with a Smoothieboard V2. For sensors that need 5 V or more, use the Endstop and probe inputs (advanced) board within its stated range.
Each channel has a node pulled up by 1 kΩ to the supply selected by JP1. A switch to ground pulls that node low through a diode, which also lights the channel’s light from the 3.3 V supply.
The diode lets the sensor pull the node down but stops a higher outside voltage on S from reaching the node. Its own voltage drop is why a closed input rests well above 0 V.
A 5.6 kΩ resistor and a 100 nF capacitor then smooth the signal before it goes to the controller pin.
| INP0 to INP6 | |
|---|---|
| Where | One below each sensor connector |
| Lit means | The input is pulled low: its switch to ground is closed |
| Dark means | The input is open, or the board has no 3.3 V |
| Jumper cap | + pins | Open input at the controller | Use |
|---|---|---|---|
| Middle and 3V3 (left) | 3.3 V | 3.3 V | Smoothieboard V2 and other 3.3 V controllers |
| Middle and 5V (right) | 5 V | 5.0 V | Only a controller whose pins are rated to accept 5 V, with no pull resistor enabled |
| No cap | Not powered | Not defined | Do not use |
| All three joined | Never: this joins the 3.3 V and 5 V supplies | — | Never |
Each link joins one channel to its controller pin: JP2 for INP0 up to JP8 for INP6, left to right. Cutting a link frees that controller pin for something plugged into CHAIN Y. The input then no longer reaches the controller; its light still works. Solder the pads together to restore it.
CHAIN Y is wired contact for contact to INPUT Y: power, ground and all seven signal pins pass through, whatever the links are set to. To give a second board a pin, first cut that pin’s link here, so that only one board drives it. A pin used by a switch on this board is not free for the next one.
| When you see | It means | Do this |
|---|---|---|
| A light stays dark when its switch is closed | No 3.3 V, or the switch is not between S and −. | Check the cable is in INPUT Y and pin 1 goes to pin 1; join S and − with a wire: the light must come on. |
| Every input reads wrong | JP1 has no cap, or the cable is not on G_F. | Fit the cap on 3V3 and check both cable ends. |
The light is on but M119 shows 1 | The low level does not reach the controller threshold, or the pin is not the one configured. | End the pin name with - and no ^, check the link JP2 to JP8 is closed, and check the sensor limits. |
M119 does not list the pin | The input is not configured. | Check enable = true and the pin name, then restart. |
The machine halts with ALARM: Hard limit as soon as an axis moves | An enabled limit input reads triggered. | Send M119; disable unused entries and check the switch wiring. |
| The controller resets or loses power when a switch is plugged in | The + pin is shorted to ground. | Unplug it and check the cable order against + − S. |
| An input triggers by itself during motion | Electrical noise on the switch cable. | Route it away from motor cables and set common.debounce_ms. |
Still stuck? Read how to ask for help or see the general troubleshooting guide. Include the text printed on your board, the JP1 position, 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, footprint and part number |
| Top view (PNG) | The drawing used on this page |
Positions are hole centres in millimetres from the corner marked 0, 0, seen from the component side. The four holes take M3 screws; the small locating holes of the two ten-pin connectors are not shown.
| Hole | X (mm) | Y (mm) | Diameter | Use |
|---|---|---|---|---|
| 1 | 3.50 | 3.50 | 3.2 mm, not plated | Mounting, M3 screw |
| 2 | 73.50 | 3.50 | 3.2 mm, not plated | Mounting, M3 screw |
| 3 | 3.50 | 23.50 | 3.2 mm, not plated | Mounting, M3 screw |
| 4 | 73.50 | 23.50 | 3.2 mm, not plated | Mounting, M3 screw |
One channel; the seven channels are identical.
| Parameter | Applies to | Lower | Nominal | Upper | Basis and conditions |
|---|---|---|---|---|---|
| Sensor supply | + pins, 3V3 position | — | 3.3 V | — | From the controller |
| Sensor supply | + pins, 5V position | — | 5 V | — | From the controller |
| Sensor supply current | + pins | — | — | Open | No fuse on the board; set by the controller supply |
| Closed input voltage | Controller pin, 3V3 | 0.62 V | 0.68 V | 0.74 V | Simulated, 60, 25 and −10 °C, S at 0 V, no controller pull resistor |
| Closed input voltage | Controller pin, 5V | 0.64 V | 0.70 V | 0.76 V | Simulated, same conditions |
| Open input voltage | Controller pin | — | 3.3 / 5.0 V | — | Simulated, 3V3 / 5V position |
| Contact current | S pin, closed | — | 4.1 / 5.7 mA | — | Simulated, 3V3 / 5V |
| Light current | Closed input | — | 1.5 mA | — | Simulated, assumed red light model |
| Total current, all seven closed | Controller supplies | — | 29 / 40 mA | — | Calculated from the simulated channel, 3V3 / 5V, no sensor power |
| Sensor low voltage still read low | S pin, 3V3 | — | — | 0.26 V | Simulated, −10 °C, 0.99 V controller threshold |
| Switch and cable resistance | S to − loop | — | — | 95 / 58 Ω | Simulated, 25 °C, 3V3 / 5V; keep well below |
| Delay, closing | To 0.99 V | — | 1.2 ms | — | Simulated, 3V3 |
| Delay, opening | To 2.31 V | — | 0.6 ms | — | Simulated, 3V3 |
| Operating temperature | Board | Open | — | Open | Not established |
These are limits of parts and not operating conditions.
| Circuit | Pin or device stress | Absolute limit |
|---|---|---|
| Filter capacitors | Voltage | 50 V (part value) |
| Input diodes | Reverse voltage on S above the channel node | Open |
| Sensor pins | Electrostatic discharge and surge | Open: no protection parts |
| Resistors and lights | Power and current | Open |
One input channel was simulated in ngspice with generic diode and light models, a 100 MΩ controller input unless stated, and low and high thresholds of 0.99 V and 2.31 V. These are not measurements.
| Controller pin setting (3V3 position) | Closed level, −10 to 60 °C | Reads low reliably |
|---|---|---|
No pull resistor (-) | 0.62 to 0.74 V | Yes |
Pull-up (default or ^), 50 kΩ | 0.89 to 1.00 V | Marginal |
Pull-up (default or ^), 40 kΩ | 0.95 to 1.06 V | Marginal |
Pull-up (default or ^), 30 kΩ | 1.05 to 1.14 V | No |
Not simulated: noise and surge on long cables, electrostatic discharge, the behaviour of particular sensors, and heating.
The historical page for ExtraEndstops describes the original design files.
See all boards on the extension boards page.