

ControllerBoard
A faust-to-fpga compiler toolchain
- Size
- 129 × 83.8 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 60
- Nets
- 19
- Pads
- 190
- Tracks, vias
- 361, 0
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 18 Feb 2022
- Updated
- 3 Jun 2026
Overview
ControllerBoard is an open-source printed circuit board by inria-emeraude, from the inria-emeraude/syfala repository on GitHub. It is a 2-layer board of 129 × 83.8 mm with 60 parts on 19 nets, routed with 361 tracks and 0 vias.
It is built around the MCP3008-I/P. Its parts include 8 resistors, 8 switches, 2 connectors, 1 capacitor and 1 IC.
Main components
1README
PCB/TheLine/README.md
The LINE
This directory contains the KiCad source files for The LINE, a modular 8-channel loudspeaker PCB module, along with autogenerate.py, a parametric generation script that can adapt the board layout to different loudspeaker dimensions and spacings without any manual PCB editing.
Background
The LINE is an open-source, modular loudspeaker array platform designed for spatial audio research and artistic deployment. Each PCB module integrates eight MAX98357A digital audio amplifiers (DAC + Class-D power stage in one chip) and eight PCB-mounted loudspeakers. Modules are daisy-chained via identical 2×20 connectors and driven by an FPGA system-on-module (ALINX AC7020C, Xilinx Zynq-7000). A single FPGA can control up to three independent arrays of 32 modules each, for a theoretical maximum of 768 channels.
The PCB design is intentionally built around a repeated, identical functional block (one per loudspeaker) which makes the layout amenable to parametric generation. By specifying the loudspeaker width, height, and inter-speaker gap, autogenerate.py regenerates the full board layout automatically, repositioning all components, routing, zones, and silkscreen elements accordingly.
This approach was used, for instance, to adapt the board to the Tang Band W2-2136S loudspeakers used at the EMPAC/CCRMA installation at Stanford University, without modifying any schematic or routing logic by hand.
The full system is described in:
Maxime Popoff, Romain Michon, Pierre Cochard, and Tanguy Risset.
Embedded, Modular, and Affordable High-Density Loudspeaker Arrays.
NIME '26, London, UK.
Repository Structure
.
├── TheLine.kicad_pcb # Template PCB (8-channel, default loudspeaker)
├── TheLine.kicad_sch # KiCad schematic
├── TheLine.kicad_pro # KiCad project file
├── autogenerate.py # Parametric PCB generation script
├── gerbers/ # Pre-generated Gerber files for the default design
└── README.mdThe autogenerate.py script reads TheLine.kicad_pcb as its template and writes a new .kicad_pcb file with the updated geometry. It does not modify the schematic or the netlist.
Dependencies
The script uses the KiCad Python scripting API (pcbnew), which is bundled with KiCad 7 and later. It does not require any additional Python packages.
Requirements:
- KiCad 7.x or 8.x installed
- Python 3.8+ (the one bundled with KiCad, or a system install where
pcbnewis importable)
Tested on Linux only
Usage
Basic usage: change loudspeaker dimensions
python autogenerate.py \
--input TheLine.kicad_pcb \
--output TheLine_custom.kicad_pcb \
--speaker-width 30.0 \
--speaker-spacing 2.5 \
--speaker-height 95.0This generates a new board where each loudspeaker slot is 30 mm wide, separated by 2.5 mm gaps, with a board height of 95 mm. All component placements, tracks, copper zones, and silkscreen elements are repositioned accordingly.
Preview without writing (dry run)
python autogenerate.py \
--input TheLine.kicad_pcb \
--output TheLine_custom.kicad_pcb \
--speaker-width 30.0 \
--dry-runThe script prints a summary of the computed geometry without writing any file. Useful for checking dimensions before committing.
Replace the loudspeaker footprint
If your loudspeakers have a different pad layout than the default ASB05708CO-LW100-R, you can supply a custom footprint from a separate .kicad_pcb file. The script will extract the first LS*-referenced footprint from that file and substitute it for every speaker position on the generated board.
python autogenerate.py \
--input TheLine.kicad_pcb \
--output TheLine_custom.kicad_pcb \
--speaker-width 38.0 \
--speaker-spacing 3.0 \
--custom-footprint my_speaker_footprint.kicad_pcbThe custom footprint board should contain exactly one footprint with a reference matching LS\d+ (e.g. LS1). Pad net assignments are inferred automatically by pad number from the original design.
Command-line Reference
| Argument | Type | Default | Description |
|---|---|---|---|
--input | path | ../TheLine.kicad_pcb | Input template PCB file |
--output | path | TheLine_parametric.kicad_pcb | Output PCB file |
--speaker-width | float (mm) | 23.0 | Width of one loudspeaker/amplifier block |
--speaker-spacing | float (mm) | 2.0 | Gap between two adjacent blocks |
--speaker-height | float (mm) | 90.0 | Board height (minimum 90 mm) |
--custom-footprint | path | (none) | Path to a .kicad_pcb file whose first LS* footprint replaces every speaker footprint |
--dry-run | flag | False | Print geometry summary without writing output |
How the Script Works
The script operates entirely through the pcbnew API and does not touch the KiCad file as raw text (except for the footprint substitution step, which uses S-expression parsing for UUID deduplication).
At a high level, it:
- Loads the template board and locates all
LS*speaker footprints. - Computes the desired X positions of each speaker based on the requested width and spacing, starting from the leftmost speaker's current position.
- For each component, track, copper zone, and silkscreen element in the parametric channel band, it determines which loudspeaker "column" it belongs to and applies the corresponding X offset.
- Long horizontal bus tracks (the shared I²S/TDM signal bus) are stretched or compressed at both ends independently to span the full new board width.
- The fixed solder-jumper strip (JP1–JP32, used for module addressing) is moved as a rigid group to stay flush with the right edge.
- Connectors J1/J2 (left side) and J3/J4 (right side) are repositioned to maintain their distance from the board edges.
- Power plane zones are redrawn to fill the new board outline.
- Copper zones are refilled.
- Speaker outlines are redrawn on
Dwgs.UserandF.Silkscreen.
The script preserves clock buffering connections and all net assignments. It does not regenerate routing for the signal fanout; those sections are moved rigidly.
PCB Manufacturing Notes
The design targets standard 2-layer PCB manufacturing (1.6 mm FR4). The default board is approximately 190 × 90 mm. Most prototype PCB services (JLCPCB, PCBWay, etc.) can manufacture this size at low cost.
The maximum board size supported by this parametric approach, given typical manufacturer panel limits, is around 600 × 700 mm (which would accommodate a minimum loudspeaker spacing of approximately 75 mm in the most constrained configuration).
Pre-generated Gerber files for the default 8-speaker, 24 mm pitch configuration are in the gerbers/ directory.
Parts
60| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | 10k | Potentiometer_THT:Potentiometer_Bourns_PTA6043_Single_Slide | RV11, RV12, RV13, RV14, RV15, RV16, RV17, RV18 |
| 8 | 10k | Potentiometer_THT:Potentiometer_Omeg_PC16BU_Vertical | RV1, RV2, RV3, RV4, RV5, RV6, RV7, RV8 |
| 8 | SW_Push | Button_Switch_THT:SW_PUSH_6mm | SW1, SW2, SW3, SW4, SW5, SW6, SW7, SW8 |
| 4 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R2, R4, R6, R8 |
| 4 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1, R3, R5, R7 |
| 1 | 10p | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mm | C1 |
| 1 | Conn_02x06_Odd_Even | Connector_PinHeader_2.54mm:PinHeader_2x06_P2.54mm_Horizontal | J1 |
| 1 | Conn_02x06_Odd_Even | Connector_PinHeader_2.54mm:PinHeader_2x06_P2.54mm_Vertical | J2 |
| 1 | G*** | inria | svg2mod |
| 1 | G*** | grame | svg2mod |
| 1 | G*** | controllerBoard:templateHCB | svg2mod |
| 1 | G*** | INSA | svg2mod |
| 1 | MCP3008 | Package_DIP:DIP-16_W7.62mm_Socket_LongPads | U1 |
The 40 most common of 60 parts.
More from inria-emeraude/syfala
3- 4 layers959.7 × 110 mm

- 4 layers191.8 × 90 mm

- 2 layers

Similar boards
- 2 layers380 × 148.5 mm

- 2 layers100 × 100 mm

RecurBOY
cyberboy666/recurBOY
a rpi0 video-instrument – created in collaboration with Guergana Tzatchkova
35 parts122GPL-3.0 - 4 layers43.2 × 43.2 mm

Pogobot head
nekonaute/pogobot
Pogobot is an open-source open-hardware robotic platform for swarm robotics
140 parts21 - 2 layers100 × 100 mm

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 mm

- 2 layers111.4 × 40.9 mm

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 mm

Programming jig r1.0
butterstick-fpga/programming-jig
A FT232H based production programming jig for the ButterStick
50 parts6 - 2 layers56 × 65 mm

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 ControllerBoard PCB?
It measures 129 × 83.8 mm and has 2 copper layers, 1.6 mm thick.
What parts does the ControllerBoard use?
60 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 ControllerBoard KiCad files?
From the inria-emeraude/syfala repository on GitHub, at the commit this page was made from: the board is PCB/ControllerBoard/controllerBoard.kicad_pcb and its schematic PCB/TheLine/TheLine.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the ControllerBoard design in my own project?
Its repository states no licence, so its author keeps all rights: ask inria-emeraude before reusing the design.