Extension board · Controls and displays
Sixty-four extra 3.3 V input or output lines on four headers, controlled over SPI with one chip select. Each line has a series resistor against wiring faults. Using it needs your own driver.
| Purpose | Many switches, indicator drivers or logic signals from one SPI port |
| Expanders | Four Microchip MCP23S17 at hardware addresses 0 to 3, software-enabled input pull-ups |
| Lines | 64 at 3.3 V, 220 Ω in series; about 7 mA into a short |
| Interrupt | One shared line on contact 3, 10 kΩ pull-up |
| Supply | 3.3 V from the socket; stay under 100 mA of external load |
| Connectors | Four 2 × 10 pin headers; two Gadgeteer type S sockets (Samtec SHF-105, 1.27 mm) |
| Size | 110 × 80 mm, four M3 holes on a 100 × 70 mm pattern |
| Works with | Smoothieboard V2 Prime header GE electrically; no firmware driver |
| Licence | Open hardware, CERN-OHL-S-2.0 |
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.
1Input socket S IN (J1) — Chip select 6, MOSI 7, MISO 8, clock 9, interrupt 3, reset 4.
2Chain socket CHAIN (J2) — SPI data and clock continue.
3Port 1 header (J3) — Lines of expander U1.
4Port 2 header (J4) — Lines of U2.
5Port 3 header (J5) — Lines of U3.
6Port 4 header (J6) — Lines of U4.
7Expanders (U1 to U4) — Hardware addresses 0 to 3.
8Series resistor arrays (RN1 to RN16) — 220 Ω on every line.
9Interrupt resistors (R1 to R4) — Join the four interrupt outputs safely.
10Chain links — Data and clock closed; interrupt, reset and chip select open.
11Mounting hole — One of four M3 holes.
Check pin 1 of each header against the board printing before wiring.
| Pins | Signal |
|---|---|
| 1 to 8 | Port B, bit 7 down to bit 0 |
| 9 to 16 | Port A, bit 7 down to bit 0 |
| 17, 18 | 3.3 V |
| 19, 20 | Ground |
| Contact | Signal | Use | Prime header GE |
|---|---|---|---|
| 1 | 3.3 V | Board supply | 3.3 V |
| 2 | 5 V | Passed to the chain only | 5 V |
| 3 | INT | Interrupt | PE8 |
| 4 | RESET | Low resets all expanders | PJ7 |
| 5 | Passed through | Not used | PJ8 |
| 6 | CS | Chip select | PD15 |
| 7 | MOSI | Data to board | PB5 (SPI1_MOSI) |
| 8 | MISO | Data from board | PA6 (SPI1_MISO) |
| 9 | SCK | Clock | PA5 (SPI1_SCK) |
| 10 | GND | Ground | GND |
Keep I/O wires short and away from motor wiring.
Plug J1 into header GE.
Before any read, write the IOCON register with HAEN (together with MIRROR and ODR) to address 0 and also address 4.
Then devices 0 to 3 answer individually.
Set one line as output and toggle it while measuring the header pin.
About 0 and 3.3 V.
| You want | Module | Example |
|---|---|---|
| Use the extra lines | None | No SmoothieV2 module drives this expander; its pins cannot be named in config.ini |
There is nothing to add to config.ini.
Each SPI transfer starts with a byte containing the device address, so four chips share the chip select once hardware addressing is on. Port B and port A of each chip appear on one header. The interrupt outputs default to push-pull, so each has a 1 kΩ resistor that makes that harmless until software selects open drain.
A further SPI device on the chain needs its own chip select; leave JP6 open unless you know why it should share.
| Link | What it does | As delivered |
|---|---|---|
| JP3 | Joins the interrupt to the chain | Open |
| JP4 | Joins reset to the chain | Open |
| JP6 | Joins chip select to the chain | Open |
| JP7 | Continues MOSI | Closed |
| JP8 | Continues MISO | Closed |
| JP9 | Continues clock | Closed |
SPI data and clock continue to another board with a separate chip select.
| Contact | Signal | On CHAIN |
|---|---|---|
| 1, 2, 10 | Power and ground | Passed on |
| 3, 4, 6 | Interrupt, reset, select | Stopped by open links |
| 5 | Free | Passed on |
| 7 to 9 | SPI | Passed on through closed links |
| Symptom | Likely cause | What to check |
|---|---|---|
| All reads are 0 or 255 | Wiring, chip select or reset held low | Test points CS and SCK |
| All four chips answer together | HAEN not enabled | Write IOCON first |
| One chip unreachable | Address bits | Check the Microchip errata for address handling |
| LED dim on an output | Series resistor drops voltage | Use less current or a driver |
| Interrupt never clears | A port not read | Read the captured port registers |
The board has no indicator lights; use the test points.
Still stuck? Read how to ask for help or see the general troubleshooting guide.
| File | What it is |
|---|---|
| Schematic (PDF) | The circuit diagram |
| Parts list (CSV) | Every component with its value, footprint and part number where one is chosen |
| Board drawing (PNG) | The top view used on this page |
| 3D view, top (PNG) | Rendered from the design files |
| 3D view, angled (PNG) | Rendered from the design files |
For drilling a mounting plate or designing an enclosure. Positions are hole centres, in millimetres, measured from the top-left corner with the board seen from the component side.
| Hole | X (mm) | Y (mm) | Diameter | Use |
|---|---|---|---|---|
| 1 | 5.00 | 5.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 2 | 105.00 | 5.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 3 | 5.00 | 75.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 4 | 105.00 | 75.00 | 3.2 mm, not plated | Mounting, M3 screw |
Every figure is a design value, a calculated or simulated value, or a manufacturer’s data sheet value, as the last column says. A dash means no figure is given.
| Parameter | Applies to | Lower | Nominal | Upper | Basis |
|---|---|---|---|---|---|
| Supply and signals | All lines | — | 3.3 V | — | Design |
| SPI clock | J1 | — | — | 10 MHz | Microchip data sheet |
| Current per line | Any line | — | — | 25 mA | Absolute maximum |
| Current into a shorted output | One line | — | 7.3 mA | 25 mA | Simulated |
| Current with 5 V applied to a line | One line | — | 4.6 mA | 25 mA | Simulated, generic clamp diode |
| Shared interrupt low level | Contact 3 | — | 0.40 V | 0.66 V | Simulated |
| Total external load | 3.3 V | — | — | 100 mA | Design budget |
| Part | Limit | Use on this board |
|---|---|---|
| Line voltage | 3.3 V | Resistors are not overvoltage protection |
| Per expander | 125 mA in, 150 mA out | Add up all loads |
| 3.3 V rail | 100 mA budget | External loads |
Fault and interrupt cases were simulated with ngspice.
| Result | Simulated value | Limit | Outcome |
|---|---|---|---|
| Shared interrupt low level | 399 mV | at most 660 mV | Within |
| Current into the low INT output during misconfiguration | 1.86 mA | at most 25 mA | Within |
| Output shorted to ground | 7.28 mA | at most 25 mA | Within |
| External 5 V on one line (generic clamp diode) | 4.59 mA | at most 25 mA | Within |
Not simulated: the expanders themselves, SPI signal quality and electrostatic discharge.
The first page of the expander data sheet. Click the page to open the PDF.
See all boards on the extension boards page.