Extension board · Controls and displays
Sixteen push buttons marked like a telephone keypad plus A to D, read through two I2C wires. Each key has its own diode, so several keys can be told apart when held together. Reading it needs your own driver.
| Purpose | A numeric or macro keypad on a machine. Never an emergency stop or safety control; not sealed against coolant or chips |
| Keys | 16 through-hole 12 mm switches at 17 × 19 mm spacing, legends on the board |
| Interface | TI PCF8574 I2C expander, 100 kHz maximum, address 0x20 plus links |
| Interrupt | Low when a column changes, with a 10 kΩ pull-up |
| Supply | 3.3 V |
| Connectors | Two Gadgeteer type I sockets (Samtec SHF-105, 1.27 mm) and one Qwiic |
| Size | 90 × 120 mm, four M3 holes on an 80 × 110 mm pattern |
| Works with | Smoothieboard V2 Prime header GG 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 I IN (J1) — SDA on contact 8, SCL on 9, interrupt on 3.
2Chain socket CHAIN (J2) — Continues the bus.
3Qwiic connector (J3) — The same bus on a four-way cable.
4I/O expander (U1) — PCF8574: four lines drive rows, four read columns.
5Keys (SW1 to SW16) — Read by row and column.
6Key diodes (D1 to D16) — One per key, preventing false readings with several keys held.
7Address links (JP10 to JP12) — Add 1, 2 and 4 to the base address when closed.
8Pull-up links (JP1, JP2) — Closed as delivered.
9Chain links (JP3, JP8, JP9) — Interrupt open; bus closed.
10Mounting hole — One of four M3 holes.
Check contact numbering with the power removed before wiring by hand.
| Contact | Signal | Use | Prime header GG |
|---|---|---|---|
| 1 | 3.3 V | Board supply | 3.3 V |
| 2 | 5 V | Passed to the chain only | 5 V |
| 3 | INT | Key change interrupt | PH2 |
| 4 to 7 | Passed through | Not used | PH4, PC0, PF15, PH3 |
| 8 | SDA | I2C data | PF0 (I2C2_SDA) |
| 9 | SCL | I2C clock | PF1 (I2C2_SCL) |
| 10 | GND | Ground | GND |
A pressed key connects its row to its column.
| Row line | P4 | P5 | P6 | P7 |
|---|---|---|---|---|
| P0 | 1 | 2 | 3 | A |
| P1 | 4 | 5 | 6 | B |
| P2 | 7 | 8 | 9 | C |
| P3 | * | 0 | # | D |
Use all four holes: pressing keys loads the board.
Use J1 or Qwiic.
Write ones to P4 to P7, drive one row low at a time (write 0xFE, 0xFD, 0xFB, 0xF7) and read the byte.
A pressed key in the driven row reads as a zero in its column bit.
| You want | Module | Example |
|---|---|---|
| Read key presses | None | No SmoothieV2 driver for this expander |
There is nothing to add to config.ini.
The columns are held high by weak current sources inside the expander. The driver pulls one row low; a pressed key in that row pulls its column down through its diode to about 0.63 V, which reads as zero. To use the interrupt, hold all rows low while idle so that any key changes a column, then scan row by row.
With all address links open the address is 0x20. Open JP1 and JP2 when the bus already has pull-ups.
| Link | What it does | As delivered |
|---|---|---|
| JP1 | Connects the SDA pull-up | Closed |
| JP2 | Connects the SCL pull-up | Closed |
| JP3 | Joins the interrupt to the chain | Open |
| JP8 | Continues SDA | Closed |
| JP9 | Continues SCL | Closed |
| JP10 | Adds 1 to the address | Open |
| JP11 | Adds 2 to the address | Open |
| JP12 | Adds 4 to the address | Open |
Further I2C devices can follow, each with its own address.
| Contact | Signal | On CHAIN |
|---|---|---|
| 1, 2, 10 | Power and ground | Passed on |
| 3 | Interrupt | Stopped by open JP3 |
| 4 to 7 | Free | Passed on |
| 8, 9 | I2C | Passed on through closed links |
| Symptom | Likely cause | What to check |
|---|---|---|
| No answer on the bus | Wiring, address or clock above 100 kHz | Check links JP10 to JP12 and use 100 kHz |
| All keys read high | No row driven low | Drive one row low before reading |
| A whole column reads low | Column bit written as zero | Write ones to P4 to P7 |
| One key dead | Soldering of its switch or diode | Inspect that key |
| No interrupt | Rows not low while idle | Hold rows low while waiting |
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; the switch bodies are approximate models |
| 3D view, angled (PNG) | Rendered from the design files; the switch bodies are approximate models |
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 | 85.00 | 5.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 3 | 5.00 | 115.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 4 | 85.00 | 115.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 | J1 contact 1 | — | 3.3 V | — | Design |
| I2C clock | U1 | — | — | 100 kHz | TI data sheet |
| Column pull-up current | P4 to P7 | 30 µA | — | 310 µA | TI data sheet |
| Pressed-key column level | P4 to P7 | — | 0.63 V | 0.99 V | Simulated; limit is the input low level |
| Bus rise time, 100 pF | SDA, SCL | — | 280 ns | 1000 ns | Simulated |
| Pull-up current, both lines low | 3.3 V | — | 2.0 mA | — | Calculated |
| Part | Limit | Use on this board |
|---|---|---|
| Any signal | 3.3 V design | Do not connect 5 V logic |
| Capacitors | 10 V and 16 V | 3.3 V |
A pressed key with its diode, and the I2C bus loading, were simulated with ngspice.
| Result | Simulated value | Limit | Outcome |
|---|---|---|---|
| Pressed-key column level (input low limit 0.99 V) | 631 mV | at most 990 mV | Within |
| I2C rise time 30 to 70 % | 280 ns | at most 1 µs | Within |
Not simulated: key bounce and mechanical life, because no switch part number is fixed.
The first page of the expander data sheet. Click the page to open the PDF.
See all boards on the extension boards page.