Skip to the content
2 layers90 × 60.3 mmFsr connect, the printed circuit board in 3D

Parametric generator for FSR (Force-Sensitive Resistor) shunt-mode matrix sensor boards, output as complete KiCad 10 projects.

Size
90 × 60.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
22
Nets
62
Pads
152
Tracks, vias
209, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
23 Jul 2026
Updated
30 Jul 2026

Overview

Fsr connect is an open-source printed circuit board by yao-stuy, from the yao-stuy/fsr-creater repository on GitHub. It is a 2-layer board of 90 × 60.3 mm with 22 parts on 62 nets, routed with 209 tracks and 0 vias.

It is built around the MCP3008-I/P. Its parts include 6 capacitors, 5 ICs and 5 connectors.

Main components

1

README

README.md

fsr-creator

Parametric generator for FSR (Force-Sensitive Resistor) shunt-mode matrix sensor boards, output as complete KiCad 10 projects.

Give it a row/column count and a few dimensions and it produces an interdigitated-comb sensing array — the row and column copper stay exposed on the top layer under a single solder-mask opening, so you can lay a sheet of Velostat (or similar piezoresistive film) directly on top and have a working pressure-sensing matrix. All fan-out routing lives on the back layer, so the front stays a single clean sensing surface.

Each run produces a self-contained project folder: the .kicad_pcb / .kicad_pro, a full DRC report, front/back SVG previews, an ORDER_INFO.txt with connector part numbers and assembly notes, and a zipped gerber set ready to send to a fab.

Connectors and mounting holes are placed as real KiCad library footprints whenever the library provides a match (pin headers, JST XH/PH, mounting holes, or any connector you pick from the library); a generated equivalent is used as fallback.

Front: exposed comb array Back: routing and silkscreen

Requirements

  • Python 3.9+
  • KiCad 10, installed as a normal application. The scripts locate kicad-cli and KiCad's bundled Python (with pcbnew) automatically — no pip install needed, no extra PATH setup.
    • macOS: /Applications/KiCad/KiCad.app
    • the tool searches standard install locations; if yours is elsewhere, make sure kicad-cli is on your PATH.

Nothing else to install — both scripts are stdlib-only.

Quick start (UI)

bash
python3 fsr_ui.py

Opens a local web page (http://127.0.0.1:8765) where you can set every option — matrix size, trace/gap, sensel and pitch, auto-fit dimensions, board style, connector type, mounting holes — and press Create KiCad project. It shows the exact command that ran, the full DRC report, and inline front/back previews, and gives you a link to download the gerber zip. Generated projects are written next to the scripts, in <project-name>/.

fsr_ui.py web interface

Run with --port N to use a different port, or --no-browser to skip auto-opening a tab.

Quick start (CLI)

bash
python3 fsr_array_gen.py                       # default: 8x8, PCB, THT header
bash
# custom matrix size and comb geometry
python3 fsr_array_gen.py -r 12 -c 16 --trace 0.3 --gap 0.3

# specify the sensing area directly — pitch and sensel size are derived
python3 fsr_array_gen.py --sensor-w 100 --sensor-h 60

# specify the board outline — the sensing area auto-fills it
python3 fsr_array_gen.py --board-w 80 --board-h 90 --no-mounting-holes

# flexible sensor with a ZIF/FFC tail instead of a through-hole header
python3 fsr_array_gen.py --style fpc --connector zif --tail-len 12

# JST-XH connector and M2 mounting holes, both from the KiCad library
python3 fsr_array_gen.py --connector jst-xh --hole-size m2

# find a real connector footprint in KiCad's library, then use it
python3 fsr_array_gen.py --list-connectors "FFC 1x16 P1.0"
python3 fsr_array_gen.py --connector lib \
  --connector-footprint "Connector_FFC-FPC:Molex_200528-0160_1x16-1MP_P1.00mm_Horizontal"

Run python3 fsr_array_gen.py --help for the full option reference.

Sample boards

Two boards produced straight from the generator, with the exact command used for each (front / sensing side shown).

Flexible sensor with a right-angle ZIF tail

An 8×8 flex (FPC) sensor whose ZIF/FFC tail makes a 90° right-angle turn. The long tail runs as a narrow two-sided neck — rows on the front, columns on the back, stacked at shared lane positions to keep it slim — bends through a mitered corner, then tapers back out to a full-width 16-pin 1.25 mm ZIF tail. --tail-turn {left,right} sets the bend, --tail-len is the run before it, and --tail-len2 the run after.

UI configuration (left) and the resulting board — front / sensing side (exposed combs), then back / routing side (column buses + mirrored silk):

UI settings for the FPC turned-tail sample   FPC sensor front: exposed comb array and turned tail

FPC sensor back: routing and silkscreen

Equivalent CLI command:

bash
python3 fsr_array_gen.py --connector zif --connector-pitch 1.25 \
  --board-w 45 --board-h 47 \
  --tail-len 45 --tail-turn right --tail-len2 190 \
  --name FPCsensor2

Rigid board with a right-angle 2×8 header

An 8×8 rigid FR-4 board using a real KiCad-library 2×8 1.27 mm right-angle pin header (--connector lib), mounted on the back edge so the connector body overhangs the outline and leaves the entire front for sensing. --contacts bottom puts it on the back, --connector-angle horizontal makes it side-entry, and --connector-rows 2 splits the 16 pins into two rows with straight numbering.

UI configuration (left) and the resulting board — front / sensing side, then back / routing side (the 2×8 header pads sit on the back):

UI settings for the rigid right-angle-header sample   Rigid board front: exposed comb array and header   Rigid board back: routing and 2x8 header pads

Equivalent CLI command:

bash
python3 fsr_array_gen.py --connector lib \
  --connector-footprint "Connector_PinHeader_1.27mm:PinHeader_2x08_P1.27mm_Horizontal" \
  --board-w 45 --board-h 50 \
  --connector-angle horizontal --connector-rows 2 --connector-numbering straight \
  --contacts bottom --mounting-holes off \
  --name RigidMatrix

Options reference

GroupFlagMeaning
Matrix-r/--rows, -c/--colssensel grid size
--trace, --gapcomb finger width / spacing, mm
Sensels--sensel-w, --sensel-hactive comb size per sensel, mm
--pitch (or --pitch-x/--pitch-y)sensel center-to-center spacing
--sensel-gapspacing left between sensels in auto-fit modes
Auto-fit dims--sensor-w, --sensor-htotal sensing area (cols × rows direction); derives pitch and sensel size
--board-w, --board-hedge-cut outline; if given without sensor dims, the sensing area stretches to fill the board
Style--style {pcb,fpc}rigid PCB (1.6 mm) or flex FPC (0.13 mm)
Connector--connector {tht,jst-xh,jst-ph,zif,lib}connector type; resolved to a real KiCad library footprint when available
--fixed-pinsalways 16 pins: 1–8 = columns, 9–16 = rows, unused = NC — one cable/readout board fits any array up to 8×8 (ZIF pitch defaults to 1.25 mm)
--connector-pitchoverride the connector's default pitch, mm
--connector-mount {tht,smd}through-hole or surface-mount connector variant (default tht)
--connector-angle {vertical,horizontal}vertical (top entry) or right-angle (side entry) connector (default vertical)
--connector-rows {1,2}split the pins into two equal rows (e.g. 2×8 header for 16 pins); pin count must divide evenly (default 1)
--connector-numbering {zigzag,straight}dual-row numbering: zigzag = pins 1+2 share a column (IDC convention); straight = pins 1..n/2 across one row, rest across the other
--contacts {top,bottom,both}ZIF: which tail face(s) carry fingers. Other connectors: which side of the board the connector mounts on. Default top
--connector-footprint LIB:NAMErequired with --connector lib
--tail-lenZIF/FFC tail length, mm (default 6, min 5); with --tail-turn, the run before the bend
--tail-turn {left,right}bend a long ZIF tail (>30 mm) 90° via a mitered corner; needs --tail-len2
--tail-len2length of the tail run after the --tail-turn bend, mm
--tail-wZIF/FFC tail width, mm (default: standard FFC width (n+1)×pitch, so it fits a standard ZIF slot)
--list-connectors PATTERNsearch KiCad's footprint library (space-separated terms, all must match)
Mounting--mounting-holes {auto,on,off}4 NPTH corner holes (default off; auto = on for rigid PCB, off for FPC)
--hole-size {m2,m2.5,m3,m4}screw size for the mounting holes (default M3)
Output--nameproject name (default fsr_RxC)
--outdirparent directory for the project folder

If both --sensor-* and --board-* are given, sensor dimensions win and board size is derived from them plus margins. If neither is given, sensels are laid out from --sensel-w/h and --pitch directly and the board is sized to fit. Anything you don't specify is chosen automatically: trace/gap default to 15/15 mil (the finest geometry standard fabs run cheaply), the comb is centered and filled with as many fingers as fit, and the board outline hugs the routing — a ZIF board's body ends right after the fan-out, with no empty strip before the tail.

Design details

  • Rows run one continuous spine per row on the front layer, with fingers hanging down into each sensel.
  • Columns get a per-sensel spine on the front layer, with a via down to a vertical bus on the back layer.
  • Row escapes split left and right of the matrix (top half exits left, bottom half exits right) so the routing stays compact and symmetric, entirely on the back layer.
  • The solder mask opening covers the whole sensing area as a single aperture — this is intentional (see below), not a mistake.
  • Silkscreen (title, connector labels, row/column index numbers) is on the back layer to keep the front clear for the Velostat contact area.
  • Order ENIG finish: the sensing copper is permanently exposed, and bare copper or HASL will oxidize and degrade contact resistance over time.

About the DRC report

Every run performs a full KiCad DRC pass and prints every violation category found — nothing is silenced via .kicad_pro severity overrides. For this design, two categories are structurally expected and will always appear:

  • solder_mask_bridge — the single mask opening intentionally exposes copper from every row and column net; the Velostat film is what turns that into a controlled, pressure-dependent contact.
  • track_dangling — every comb finger is an intentionally open-ended stub; it only becomes "connected" once Velostat is pressed onto it.

The generator labels these as expected in its console summary and full report. Any other category is flagged as needing review — if you see one, check the coordinates in <project>/drc.rpt before ordering boards.

Output layout

text
<project-name>/
  <project-name>.kicad_pcb   # open directly in KiCad 10
  <project-name>.kicad_pro
  ORDER_INFO.txt             # connector MPN/pitch, mating parts, hole sizes,
                             # fab notes — everything needed to order
  FSR.pretty/                # project footprint library for any generated
  fp-lib-table               # footprints (ZIF tail, fallbacks) — only
                             # present when one was needed
  drc.rpt                    # full, unfiltered DRC report
  preview_front.svg
  preview_back.svg
  gerbers/                   # gerber + drill files
  <project-name>_gerbers.zip # zipped, ready to upload to a fab

Generated project folders are not tracked in this repository (see .gitignore) — this repo holds the generator tool itself, plus three checked-in boards kept as references: the two sample projects above (FPCsensor2/, RigidMatrix/) and fsr-connect/.

Companion readout board (fsr-connect/)

fsr-connect/ is a hand-drawn KiCad project (schematic + PCB) for the readout board the sensor plugs into — it carries the mating ZIF/FFC socket for the sensor's tail and breaks the 16 row/column lines out for your microcontroller. It isn't produced by the generator; it's included here so the sensor boards have a matching connector board to reference.

Parts

22
QtyValueFootprintReferences
50.1ufCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC1, C2, C3, C4, C5
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
2R_PotentiometerPotentiometer_THT:Potentiometer_Bourns_3296W_VerticalRV1, RV2
10.1ufCapacitor_THT:CP_Radial_D4.0mm_P2.00mmC6
1MCP3008Package_DIP:DIP-16_W7.62mm_SocketU1
1fsr0Connector_PinHeader_1.27mm:PinHeader_2x08_P1.27mm_HorizontalJ1
1fsr0gpioConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ3
1fsr0muxPackage_DIP:DIP-16_W7.62mm_SocketU3
1fsr0shiftregPackage_DIP:DIP-16_W7.62mm_SocketU2
1fsr1Connector:a3Molex_0039532164_16pos_1.25mm_ZIF_THT (3)J2
1fsr1gpioConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ4
1fsr1muxPackage_DIP:DIP-16_W7.62mm_SocketU4
1fsr1shiftregPackage_DIP:DIP-16_W7.62mm_SocketU5
1power&SPIConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ5

Similar boards

  • 2 layers380 × 148.5 mmKeyboard, the printed circuit board in 3D

    Keyboard

    InkboxSoftware/all-screen-keyboard

    The first open source all-screen keyboard

    500 parts241MIT
  • 2 layers100 × 100 mmRecurBOY, the printed circuit board in 3D

    RecurBOY

    cyberboy666/recurBOY

    a rpi0 video-instrument – created in collaboration with Guergana Tzatchkova

    35 parts122GPL-3.0
  • 4 layers43.2 × 43.2 mmPogobot head, the printed circuit board in 3D

    Pogobot head

    nekonaute/pogobot

    Pogobot is an open-source open-hardware robotic platform for swarm robotics

    140 parts21
  • 2 layers100 × 100 mmI n c u r, the printed circuit board in 3D

    I n c u r

    cyberboy666/i_n_c_u_r

    a r_e_c_u_r video sampler extension circuit - adding knobs, cv and serial midi control

    38 parts16GPL-3.0
  • 4 layers101.6 × 141.7 mmPiPtr, the printed circuit board in 3D

    PiPtr

    jmlzone/PiPtr

    Repeater controller

    388 parts8
  • 2 layers111.4 × 40.9 mmRainworks Electrical, the printed circuit board in 3D

    Rainworks Electrical

    IceyPlazza/EWB-EPA-Rainworks

    26-27 EWB EPA Rainworks project; We're putting a sensor box in the ground!

    29 parts7
  • 2 layers150 × 69 mmProgramming jig r1.0, the printed circuit board in 3D

    Programming jig r1.0

    butterstick-fpga/programming-jig

    A FT232H based production programming jig for the ButterStick

    50 parts6
  • 2 layers56 × 65 mmDataHat, the printed circuit board in 3D

    DataHat

    challengerjdb/RaspberryPiHat-datalogger

    My name is Jacob Bendell, and I’m a student at the University of Pennsylvania studying Electrical Engineering. I took this past year off from school to avoid online classes and intern at Amped Innovation, a start-up in…

    22 parts6

Questions

How big is the Fsr connect PCB?

It measures 90 × 60.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Fsr connect use?

22 parts, built around the MCP3008-I/P. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Fsr connect KiCad files?

From the yao-stuy/fsr-creater repository on GitHub, at the commit this page was made from: the board is fsr-connect/fsr-connect.kicad_pcb and its schematic fsr-connect/fsr-connect.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Fsr connect design in my own project?

Its repository states no licence, so its author keeps all rights: ask yao-stuy before reusing the design.