Skip to the content
2 layers129 × 83.8 mmControllerBoard, the printed circuit board in 3D

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

1

README

PCB/TheLine/README.md

TheLine banner

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

text
.
├── 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.md

The 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 pcbnew is importable)

Tested on Linux only


Usage

Basic usage: change loudspeaker dimensions

bash
python autogenerate.py \
  --input TheLine.kicad_pcb \
  --output TheLine_custom.kicad_pcb \
  --speaker-width 30.0 \
  --speaker-spacing 2.5 \
  --speaker-height 95.0

This 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)

bash
python autogenerate.py \
  --input TheLine.kicad_pcb \
  --output TheLine_custom.kicad_pcb \
  --speaker-width 30.0 \
  --dry-run

The 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.

bash
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_pcb

The 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

ArgumentTypeDefaultDescription
--inputpath../TheLine.kicad_pcbInput template PCB file
--outputpathTheLine_parametric.kicad_pcbOutput PCB file
--speaker-widthfloat (mm)23.0Width of one loudspeaker/amplifier block
--speaker-spacingfloat (mm)2.0Gap between two adjacent blocks
--speaker-heightfloat (mm)90.0Board height (minimum 90 mm)
--custom-footprintpath(none)Path to a .kicad_pcb file whose first LS* footprint replaces every speaker footprint
--dry-runflagFalsePrint 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:

  1. Loads the template board and locates all LS* speaker footprints.
  2. Computes the desired X positions of each speaker based on the requested width and spacing, starting from the leftmost speaker's current position.
  3. 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.
  4. 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.
  5. The fixed solder-jumper strip (JP1–JP32, used for module addressing) is moved as a rigid group to stay flush with the right edge.
  6. Connectors J1/J2 (left side) and J3/J4 (right side) are repositioned to maintain their distance from the board edges.
  7. Power plane zones are redrawn to fill the new board outline.
  8. Copper zones are refilled.
  9. Speaker outlines are redrawn on Dwgs.User and F.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
QtyValueFootprintReferences
810kPotentiometer_THT:Potentiometer_Bourns_PTA6043_Single_SlideRV11, RV12, RV13, RV14, RV15, RV16, RV17, RV18
810kPotentiometer_THT:Potentiometer_Omeg_PC16BU_VerticalRV1, RV2, RV3, RV4, RV5, RV6, RV7, RV8
8SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW2, SW3, SW4, SW5, SW6, SW7, SW8
410kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R4, R6, R8
410kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R3, R5, R7
110pCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC1
1Conn_02x06_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x06_P2.54mm_HorizontalJ1
1Conn_02x06_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x06_P2.54mm_VerticalJ2
1G***inriasvg2mod
1G***gramesvg2mod
1G***controllerBoard:templateHCBsvg2mod
1G***INSAsvg2mod
1MCP3008Package_DIP:DIP-16_W7.62mm_Socket_LongPadsU1

The 40 most common of 60 parts.

More from inria-emeraude/syfala

3
  • 4 layers959.7 × 110 mmTheLine parametric, the printed circuit board in 3D

    TheLine parametric

    inria-emeraude/syfala

    A faust-to-fpga compiler toolchain

    175 parts137
  • 4 layers191.8 × 90 mmTheLine, the printed circuit board in 3D

    TheLine

    inria-emeraude/syfala

    A faust-to-fpga compiler toolchain

    135 parts137
  • 2 layersSpeaker custom, the printed circuit board in 3D

    Speaker custom

    inria-emeraude/syfala

    A faust-to-fpga compiler toolchain

    6 parts137

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 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.