
Router Board
jspark311/ViamSonus-2.0
An audio router board with integrated volume control and buffered output.

An audio router board with integrated volume control and buffered output.
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.
An audio router board with integrated volume control and buffered output.
./doc: Location for documentation
./KiCAD: Hardware design files
./Arduino: Arduino driver
./linux: Linux wrappers and utility program
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.
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...
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.
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.
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...
// 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).
The driver provides a means of cloning prior states to and from a buffer. Possible reasons for doing this might be...
init().Saving the current state can be done like this (from the example sketch)...
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...
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()...
// 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.
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):
StringBuilder and DataStructures
After you've done that, you ought to be able to include the ViamSonus driver.
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...
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| Front | Back |
|---|---|
![]() | ![]() |
| Qty | Value | Footprint | References |
|---|---|---|---|
| 30 | 20k | Resistor_SMD:R_0603_1608Metric | R1, R2, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23 +14 |
| 14 | 2k | Resistor_SMD:R_0603_1608Metric | R25, R26, R27, R28, R29, R30, R31, R32, R33, R34, R35, R36, R37, R38 |
| 12 | 3.3uF | Capacitor_SMD:CP_Elec_4x5.4 | C5, C6, C7, C8, C9, C10, C15, C16, C17, C18, C19, C20 |
| 10 | 100uF | Capacitor_SMD:CP_Elec_6.3x5.4_Nichicon | C1, C2, C3, C4, C11, C12, C13, C14, C23, C24 |
| 10 | AudioJack3_Ground_Switch | Footprints:SJ2-3593D-SMT-TR | J1, J2, J3, J4, J5, J6, J7, J8, J9, J10 |
| 4 | Conn_01x01 | MountingHole:MountingHole_3.2mm_M3_ISO14580_Pad | J16, J17, J18, J19 |
| 2 | 10uF | Capacitor_SMD:CP_Elec_4x5.4 | C21, C22 |
| 2 | Conn_01x04 | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Horizontal | J13, J14 |
| 2 | Conn_01x14_Male | Connector_PinHeader_2.54mm:PinHeader_1x14_P2.54mm_Vertical | J11, J12 |
| 1 | 6.5 - 20v | Footprints:PJ-063AH | J15 |
| 1 | LM1085 | Package_TO_SOT_SMD:TO-263-3_TabPin2 | U1 |

jspark311/ViamSonus-2.0
An audio router board with integrated volume control and buffered output.



jasonalexander-ja/PicoChain
Power and I2C daisy chained over ethernet patch cables.

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



curtisseizert/Nanovoltmeter
A low noise nanovoltmeter design files and code

It measures 97.5 × 70.6 mm and has 4 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask jspark311 before reusing the design.