Extension board · Sensors and inputs
A small board that measures acceleration along three axes, for tilt, taps and machine vibration. It connects to an I2C socket or a Qwiic cable. Reading it needs your own driver.
| Purpose | Detecting tilt, taps or knocks, or measuring machine vibration at low rates. Not a safety sensor |
| Sensor | ST LIS3DH, ranges ±2, 4, 8 or 16 g, 1 to 12 mg per digit in high resolution |
| Interface | I2C, address 0x18, or 0x19 with JP4 closed; two interrupt outputs |
| Supply | 3.3 V only on power and every signal, about 2 mA including pull-up current |
| Pull-ups | 3.3 kΩ on SDA and SCL, removable |
| Connectors | Two Gadgeteer type I sockets (Samtec SHF-105, 1.27 mm) and one Qwiic |
| Size | 40 × 40 mm, four M3 holes on a 30 mm square |
| 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, interrupts on 3 and 6.
2Chain socket CHAIN (J2) — Continues the bus.
3Qwiic connector (J3) — The same I2C bus on a four-way cable, 3.3 V.
4Accelerometer (U1) — Mount the board rigidly: the sensor measures what the board does.
5Bus pull-ups (R1, R2) — 3.3 kΩ resistors.
6Pull-up links (JP1, JP2) — Closed as delivered; open both if another board already provides pull-ups.
7Address link (JP4) — Close it to change the address from 0x18 to 0x19.
8Interrupt chain links (JP3, JP6) — Open as delivered.
9Bus chain links (JP8, JP9) — Closed as delivered.
10Supply capacitors (C1 to C3) — Decoupling for the sensor.
11Mounting hole — One of four M3 holes. Use all four.
Everything on this board is 3.3 V. Check contact numbering with the power removed.
| 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 | INT1 | Interrupt 1 | PH2 |
| 4, 5, 7 | Passed through | Not used | PH4, PC0, PH3 |
| 6 | INT2 | Interrupt 2 | PF15 |
| 8 | SDA | I2C data | PF0 (I2C2_SDA) |
| 9 | SCL | I2C clock | PF1 (I2C2_SCL) |
| 10 | GND | Ground | GND |
| Pin | Signal |
|---|---|
| 1 | GND |
| 2 | 3.3 V |
| 3 | SDA |
| 4 | SCL |
Fix it rigidly to the part to be measured and note which way it faces.
Use J1 or the Qwiic connector, not both to different hosts.
With your driver or a host I2C scan tool, read the WHO_AM_I register (0x0F).
By the data sheet the device answers at 0x18 and the register reads 0x33.
| You want | Module | Example |
|---|---|---|
| Read acceleration | None | No SmoothieV2 driver for this sensor |
There is nothing to add to config.ini.
The LIS3DH contains the sensing element, converter and registers. Tying its chip-select pin high selects I2C. Its two interrupt outputs can signal events such as a tap or new data. The axis directions are drawn in the data sheet; confirm them by tilting the board.
Keep only one set of pull-ups on a bus when you can: open JP1 and JP2 on additional boards.
| Link | What it does | As delivered |
|---|---|---|
| JP1 | Connects the SDA pull-up | Closed |
| JP2 | Connects the SCL pull-up | Closed |
| JP3 | Joins interrupt 1 to the chain | Open |
| JP4 | Selects address 0x19 | Open |
| JP6 | Joins interrupt 2 to the chain | Open |
| JP8 | Continues SDA to the chain | Closed |
| JP9 | Continues SCL to the chain | Closed |
Further I2C devices can follow on J2 or Qwiic, each with its own address.
| Contact | Signal | On CHAIN |
|---|---|---|
| 1, 2, 10 | Power and ground | Passed on |
| 3, 6 | Interrupts | Stopped by open links |
| 4, 5, 7 | Free | Passed on |
| 8, 9 | I2C | Passed on through closed links |
| Symptom | Likely cause | What to check |
|---|---|---|
| No answer on the bus | Wrong socket, swapped SDA and SCL, or no pull-ups | Test points 3.3 V, SDA, SCL; JP1 and JP2 |
| Answers at the other address | JP4 state | Closed gives 0x19 |
| Bus unreliable with several boards | Too many pull-ups or long wires | Leave one set of pull-ups; shorten cables, lower the clock |
| Noisy readings | Loose mounting | Use all four screws |
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 | 35.00 | 5.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 3 | 5.00 | 35.00 | 3.2 mm, not plated | Mounting, M3 screw |
| 4 | 35.00 | 35.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 | 1.71 V | 3.3 V | 3.6 V | ST data sheet |
| Sensor current at 50 Hz | U1 | — | 11 µA | — | ST data sheet |
| Pull-up current, both lines low | 3.3 V | — | 2.0 mA | — | Calculated |
| Rise time, one pull-up set, 100 pF | SDA, SCL | — | 280 ns | 300 ns | Simulated; limit for 400 kHz |
| Low level, two pull-up sets | SDA, SCL | — | 0.12 V | 0.4 V | Simulated |
| Part | Limit | Use on this board |
|---|---|---|
| Any signal | 3.6 V maximum | Do not connect 5 V logic |
| Capacitors | 10 V and 16 V | 3.3 V |
The I2C bus loading was simulated with ngspice with 100 pF of bus capacitance.
| Result | Simulated value | Limit | Outcome |
|---|---|---|---|
| Rise time 30 to 70 %, one pull-up set, 100 pF (400 kHz limit 300 ns) | 280 ns | at most 300 ns | Within |
| Rise time with two pull-up sets | 140 ns | at most 300 ns | Within |
| Low level with two pull-up sets | 116 mV | at most 400 mV | Within |
Not simulated: the sensor itself and the effect of mounting.
The first page of the sensor data sheet, a distributor copy of the ST document. Click the page to open the PDF.
See all boards on the extension boards page.