Skip to the content
4 layers97.5 × 70.6 mmBasic Connector Board, the printed circuit board in 3D

Basic Connector Board

jspark311/ViamSonus-2.03

An audio router board with integrated volume control and buffered output.

Size
97.5 × 70.6 mm
Copper layers
4
Thickness
1.6 mm
Parts
88
Nets
68
Pads
259
Tracks, vias
119, 12
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
16 Nov 2019
Updated
22 Feb 2020

Overview

Basic Connector Board is an open-source printed circuit board by jspark311, from the jspark311/ViamSonus-2.0 repository on GitHub. It is a 4-layer board of 97.5 × 70.6 mm with 88 parts on 68 nets, routed with 119 tracks and 12 vias.

It is built around the LM1085R-3.3. Its parts include 44 resistors, 24 capacitors, 19 connectors and 1 IC. It belongs with the audio and music boards of this library.

Main components

1

README

README.md

Viam Sonus 2.0

An audio router board with integrated volume control and buffered output.

FEATURES:

  • 12 input channels that are arbitrarily routable to any of 8 output channels.
  • Onboard digital potentiometers on the input side with non-volatile storage. Pots are logarithmic with zero-cross detection, and are paired in order with their input numbers on the board's silkscreen.
  • Onboard op-amps on the output side with 300mA drive capability to provide buffering for direct-drive of line-level signals.
  • Onboard buffered voltage divider with exposed output and 300mA drive capability to aid design and implementation of input buffers.
  • Resistors added to the input-side of the switch, but after the potentiometers to allow for simple resistance mixing of signals simply by routing two inputs to a given output without risking damage. Some caveats apply (discussed below).
  • Input-side is left free-form to allow use with single-ended (unbalanced) or differential (balanced) signals, and/or DC-biased sources.
  • Safe for 5v audio signals.
  • Isolated analog and digital power planes.
  • Silkscreen reflects the envisioned usage (stereo signals), but the driver allows for easy grouping of any number of channels.
  • Breadboard-friendly
Hackaday.io Page
Order from Tindie

What is in this repository:

./doc: Location for documentation

./KiCAD: Hardware design files

./Arduino: Arduino driver

./linux: Linux wrappers and utility program


Encountering real world audio signals

Mixing, ducking, and cross-fade

To avoid damaging the board, input-side circuits should be designed to limit peak channel currents if mixing is going to be used. Discourse on that topic can be found in a separate document.

Tips on channel layout

The driver sees the board as 12 mono inputs with discrete volume control routed to 8 mono outputs. The driver presents a channel-grouping layer to the user application that largely abstracts the underlying mono channels. But since the DS1881 was intended as a stereo device, it has properties that support that use...

  • Resistances are matched on its two halves.
  • Both halves can be set with a single bus operation (and thus happen concurrently)

So if you intend on using Viam Sonus to handle stereo inputs, you can use whatever two channels for left and right that you like, and the driver will make it work. But it will cost an extra bus operation to set the volume for the pair, and the channel resistance match might be as loose as +/-20%. So if you can, you will get better results by keeping stereo pairs on matched channels.

The output channels are also paired into the output buffers, but the choice of keeping those matched (or not) will have less-tangible consequences.


Notes on driver features:

Channel grouping

By default, there are no channel groups, and the API operates on the level of discrete mono channels. But many application will want to manage groups of channels.

Channel groups come in two flavors: Input and Output. Each type has a unique API.

Preserve-on-destroy

When the driver instance for the switch is destroyed, the default behavior is to put the hardware into a known state (reset). This opens all routes. Use-cases that want the hardware state to outlive the driver's life cycle are possible by setting preserveOnDestroy(true) ahead of init(), like so...

text
// Class initializes with the existing state of the hardware.
vs.preserveOnDestroy(true);
vs.init(&Wire);

Since init() will also call reset() by default, preserveOnDestroy must be enabled prior to init() to achieve the desired result (both sides of the driver life cycle).

Preserving and restoring hardware states

The driver provides a means of cloning prior states to and from a buffer. Possible reasons for doing this might be...

  • Higher bus efficiency during init().
  • Major code savings, since you can skip configuring the hardware and the class with discrete function calls.
  • Storage of complete board configurations that can be fully re-established with a minimum of overhead.

Saving the current state can be done like this (from the example sketch)...

text
uint8_t buffer[VIAMSONUS_SERIALIZE_SIZE];
unsigned int written = vs.serialize(buffer, VIAMSONUS_SERIALIZE_SIZE);
if (VIAMSONUS_SERIALIZE_SIZE == written) {
  // Everything worked. Do what you will with the buffer.
}

Restoring the state from a buffer can be done either upon construction...

text
uint8_t buf[VIAMSONUS_SERIALIZE_SIZE] = {
  0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x70, 0x0A, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28,
  0x00, 0x3F, 0x3F, 0x06, 0x01, 0x28, 0x00, 0x3F, 0x3F, 0x06, 0x01, 0x29,
  0x00, 0x3F, 0x3F, 0x06, 0x01, 0x29, 0x00, 0x3F, 0x3F, 0x06, 0x01, 0x2A,
  0x00, 0x3F, 0x3F, 0x06, 0x01, 0x2A, 0x00, 0x3F, 0x3F, 0x06 ...
};
ViamSonus vs(buf, VIAMSONUS_SERIALIZE_SIZE);

...or after a successful init()...

text
// Literally anywhere in the sketch...
vs.unserialize(buf, VIAMSONUS_SERIALIZE_SIZE);

If done by construction, the configuration will be written to the class immediately, and to the hardware during init().

Invocation of unserialize() will immediately result in I/O as the new configuration is imparted, but the fields (if any) that are otherwise required for construction will be ignored.


Usage under Arduino

In order to use this driver, you also need the Arduino drivers for the elements on the board. Clone the following repos into your user libraries (wherever you keep them):

DS1881 Driver

ADG2128 Driver

StringBuilder and DataStructures

After you've done that, you ought to be able to include the ViamSonus driver.


Usage under Linux

Fortunately, the Viam Sonus router board doesn't have any interrupt pins, which makes running it in userland fairly easy with existing kernel drivers for i2c and GPIO. The reset pin isn't strictly required. It can be tied high.

Just like the Arduino driver, you will need additional libraries. If you've already done the setup for exposing the GPIO pin and i2c character device in your kernel config, you ought to be able to do these things...

text
git clone https://github.com/jspark311/ViamSonus-2.0.git
cd ViamSonus-2.0/linux
./downloadDeps.sh
make DEFAULT_I2C_DEV=/dev/i2c-1 DEFAULT_RESET_PIN=/sys/class/gpio/gpio18
sudo make install

FrontBack
FrontBack

Order from OSH Park

Parts

88
QtyValueFootprintReferences
3020kResistor_SMD:R_0603_1608MetricR1, R2, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23 +14
142kResistor_SMD:R_0603_1608MetricR25, R26, R27, R28, R29, R30, R31, R32, R33, R34, R35, R36, R37, R38
123.3uFCapacitor_SMD:CP_Elec_4x5.4C5, C6, C7, C8, C9, C10, C15, C16, C17, C18, C19, C20
10100uFCapacitor_SMD:CP_Elec_6.3x5.4_NichiconC1, C2, C3, C4, C11, C12, C13, C14, C23, C24
10AudioJack3_Ground_SwitchFootprints:SJ2-3593D-SMT-TRJ1, J2, J3, J4, J5, J6, J7, J8, J9, J10
4Conn_01x01MountingHole:MountingHole_3.2mm_M3_ISO14580_PadJ16, J17, J18, J19
210uFCapacitor_SMD:CP_Elec_4x5.4C21, C22
2Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_HorizontalJ13, J14
2Conn_01x14_MaleConnector_PinHeader_2.54mm:PinHeader_1x14_P2.54mm_VerticalJ11, J12
16.5 - 20vFootprints:PJ-063AHJ15
1LM1085Package_TO_SOT_SMD:TO-263-3_TabPin2U1

More from jspark311/ViamSonus-2.0

1
  • 4 layers39.1 × 36.6 mmRouter Board, the printed circuit board in 3D

    Router Board

    jspark311/ViamSonus-2.0

    An audio router board with integrated volume control and buffered output.

    41 parts3

Similar boards

  • 4 layers100 × 85 mmPCB controleur, the printed circuit board in 3D

    PCB controleur

    Mattkomi/Poly_Leaf

    PFE 2024-2025 Polytech SIR, projet Visio

    51 parts
  • 2 layers42.9 × 35.1 mm12to5, the printed circuit board in 3D

    12to5

    samkristoff/hardware

    Temp HW Repo

    9 parts
  • 4 layers68 × 34 mmPicoChainReference, the printed circuit board in 3D

    PicoChainReference

    jasonalexander-ja/PicoChain

    Power and I2C daisy chained over ethernet patch cables.

    22 parts1MIT
  • 4 layers95 × 95 mmOpenmicro, the printed circuit board in 3D

    Openmicro

    conol-ai/openmicrokbd

    Open-source recreation of OpenAI's Codex Micro macropad — PCB written in CoHDL, an AI-native hardware description language. Rust firmware (embassy) + companion app (makepad). MIT licensed. https://openmicrokbd.org

    88 parts154MIT
  • 4 layers49.3 × 45.4 mmKbxIrBlaster, the printed circuit board in 3D

    KbxIrBlaster

    kbx81/kbxIRBlaster

    ESP32-based IR MegaBlaster!

    88 parts58CC-BY-SA-4.0
  • 4 layers68 × 61.3 mmPipar chip, the printed circuit board in 3D

    Pipar chip

    RasmusKoit/pipar

    Pipar is a collection of keyboards

    88 parts56CERN-OHL-S-2.0
  • 4 layers70 × 48 mmNV Meter PS rev b, the printed circuit board in 3D

    NV Meter PS rev b

    curtisseizert/Nanovoltmeter

    A low noise nanovoltmeter design files and code

    88 parts44
  • 4 layers66.7 × 37.6 mmL0destar, the printed circuit board in 3D

    L0destar

    m4rkw/l0destar

    l0destar open-source tracker project

    88 parts43

Questions

How big is the Basic Connector Board PCB?

It measures 97.5 × 70.6 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Basic Connector Board use?

88 parts, built around the LM1085R-3.3. 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 Basic Connector Board KiCad files?

From the jspark311/ViamSonus-2.0 repository on GitHub, at the commit this page was made from: the board is KiCAD/Basic-Connector-Board/Basic-Connector-Board.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Basic Connector Board design in my own project?

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