Skip to the content
4 layers100 × 110.5 mmSPIN Oscilloscope Shield, the printed circuit board in 3D

SPIN Oscilloscope Shield

EdamAbdelhedi/SPOC_Hardware

This document describes the hardware design and validation of the SPIN Oscilloscope Shield project. The shield is used in a validation bench to observe real electrical signals generated by a SPIN board under test…

Size
100 × 110.5 mm
Copper layers
4
Thickness
1.6 mm
Parts
77
Nets
142
Pads
624
Tracks, vias
3,143, 1,074
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
29 Jun 2026
Updated
29 Jun 2026

Overview

SPIN Oscilloscope Shield is an open-source printed circuit board by EdamAbdelhedi, from the EdamAbdelhedi/SPOC_Hardware repository on GitHub. It is a 4-layer board of 100 × 110.5 mm with 77 parts on 142 nets, routed with 3,143 tracks and 1,074 vias.

It is built around the CD74HC4067SM96. Its parts include 16 capacitors, 12 resistors, 12 ICs and 3 connectors. It belongs with the sensors and measurement boards of this library.

Main components

1

README

README.md

SPOC Hardware Documentation

This document describes the hardware design and validation of the SPIN Oscilloscope Shield project. The shield is used in a validation bench to observe real electrical signals generated by a SPIN board under test, called the CUT SPIN.

The computer controls the test sequence, the CUT SPIN generates the signals, the MUX SPIN selects which pins are observed, and the SPOC shield routes the selected signals to the oscilloscope BNC inputs.

SPIN_Oscilloscope_shield drawio

1. Hardware Objective

The SPOC hardware is an oscilloscope shield used to validate the pins and signals generated by the CUT SPIN. It allows up to four selected signals from the 45 available SPIN GPIO pins to be visualized at the same time on a standard 4-channel oscilloscope.

The main objective is to route selected GPIO signals from the CUT SPIN to four oscilloscope inputs through an analog multiplexer network. Each oscilloscope channel independently displays one selected I/O, which makes it possible to test the complete board and confirm that the pins behave correctly.

Main requirements:

  • cover the 45 available SPIN GPIO pins on each oscilloscope channel
  • observe four different GPIO signals at the same time
  • route the selected signals to four BNC oscilloscope outputs
  • measure real physical signals on the oscilloscope
  • verify the complete electrical path from the CUT SPIN GPIO to the BNC output

SPIN GPIO coverage:

Port groupPinsCount
PAPA0 to PA10, PA13 to PA1514
PBPB0 to PB1516
PCPC0 to PC1314
PDPD21
Total45

2. System Architecture

The validation bench connected to the SPOC shield is built around four external elements.

ElementRole
ComputerControls the test sequence, configures the boards, and collects oscilloscope measurements
CUT SPINBoard under test; generates the electrical signals to validate
MUX SPINSelects which CUT SPIN pins are routed to the shield
OscilloscopeMeasures the physical signals on the BNC outputs

During a test, the computer configures the CUT SPIN, selects the required route through the mux system, and reads the oscilloscope measurement. The SPOC shield is the hardware interface between these elements: it routes the selected GPIO signal to the correct oscilloscope channel.

3. KiCad Schematic

The shield schematic was designed in KiCad. The schematic shows the complete board organization: one SPIN board for pin visualization (CUT SPIN), one SPIN board for mux addressing (MUX SPIN), and four repeated mux-channel blocks connected to the oscilloscope outputs.

IM2

Each repeated mux-channel block has two groups of inputs:

  • on the left side, the mux control inputs come from the MUX SPIN
  • on the right side, the signals to visualize come from the CUT SPIN
IM3

Each mux-channel block contains three 16:1 analog multiplexers. The three muxes share the same BNC output path, but only one mux is enabled at a time. The schematic also includes local test points, the BNC connector path, decoupling capacitors, and the output network used for measurement.

IM11

3.1 BNC Output And Compensation

Before the BNC connector, the selected signal is available on a local test point. The BNC output network is inspired by the principle of a passive 10x oscilloscope probe.

A standard oscilloscope input usually presents a high input impedance, typically equivalent to 1 Mohm to ground. This high impedance limits the current drawn from the circuit under test, but the coaxial cable and oscilloscope input also add capacitance. Without compensation, this capacitance can distort fast waveforms: for example, a square wave can appear rounded, overshot, or no longer square on the screen.

To reduce this effect, the SPOC output uses an attenuation and compensation network. After the local test point, the signal passes through three 3 Mohm resistors in series, giving a total series resistance of 9 Mohm. Together with the oscilloscope 1 Mohm input, this creates a 10:1 voltage divider:

text
Vscope = Vsignal x 1 Mohm / (9 Mohm + 1 Mohm)
Vscope = Vsignal / 10

This means the oscilloscope measures one tenth of the real signal amplitude. For example, a 1 V signal at the shield output is measured as about 100 mV at the oscilloscope input, unless the oscilloscope is configured to display the corrected 10x value.

The variable capacitor placed in parallel with the 9 Mohm resistor chain is used for compensation. Its role is to balance the effect of the cable and input capacitance so that fast signal edges are preserved more correctly. If the compensation is not adjusted correctly, the output network can behave like a low-pass or high-pass filter and distort the measured waveform. The compensation can be checked with a calibrated square-wave signal and adjusted until the displayed waveform remains square.

IM4

4. Multiplexer Architecture

The shield uses CD74HC4067SM96 analog multiplexers. Each oscilloscope channel is built from three 16:1 muxes, one shared output path, one local test point, and one BNC output.

The selected mux type is analog, so the shield can route both digital levels and practical analog waveforms. The CD74HC4067SM96 is a 16:1 analog multiplexer with 16 inputs and one output.

The complete board uses:

Hardware itemQuantity
16:1 analog muxes12 total, 3 per channel
Mux address lines16 GPIO controls, S0..S3 for each channel
Mux enable lines12 GPIO controls, one enable per mux
BNC outputs4, one per oscilloscope channel

4.1 Channel Principle

CH1 is used as the reference channel because CH2, CH3, and CH4 repeat the same structure.

SPIN_Oscilloscope_Shield-CablageCH1 MUX_CH1

For CH1, the MUX SPIN control pins are:

SignalMUX SPIN pin
S0PA0
S1PA1
S2PA2
S3PA3
EN_MUX1PC0
EN_MUX2PC1
EN_MUX3PC2

The selection logic is:

  • S0..S3 select the input address inside the active mux
  • EN_MUX1, EN_MUX2, or EN_MUX3 chooses which mux group is connected to the channel output
  • only one mux enable line should be driven low at a time
  • the selected signal appears on the local test point and on the channel BNC output

The CD74HC4067 enable input is active low. This means a mux is enabled when its EN_MUXx signal is driven low, and disabled when the enable signal is high. For each channel, the MUX SPIN must therefore keep only the selected mux enable line low and keep the other mux enable lines high.

IM12

Each channel uses the same input-family organization:

MuxCUT GPIO familyAddress range
MUX1PA0 to PA10, PA13 to PA150 to 13
MUX2PB0 to PB150 to 15
MUX3PC0 to PC13, PD20 to 14

Example: to display PB6 from the CUT SPIN on CH1, the signal belongs to the MUX2 group. MUX2 is enabled and the selected address is 6, or 0110 on S0..S3. Because the mux enable input is active low, the enable states are EN_MUX1 = 1, EN_MUX2 = 0, and EN_MUX3 = 1. The same logic is repeated independently for CH1, CH2, CH3, and CH4.

4.2 Channel Areas

The four channels use the same mux principle. Only the control pins and the physical channel area change. The mux input families remain the same: MUX1 for the PA family, MUX2 for the PB family, and MUX3 for the PC/PD2 family.

CH2
CablingMux area
CH3
CablingMux area
CH4
CablingMux area

4.3 Control Pin Mapping

The table below shows which MUX SPIN pins control each oscilloscope channel.

ChannelS0S1S2S3EN_MUX1EN_MUX2EN_MUX3
CH1PA0PA1PA2PA3PC0PC1PC2
CH2PA4PA5PA6PA7PC3PC4PC5
CH3PB0PB1PB2PB3PC6PC7PC8
CH4PB4PB5PB6PB7PC9PC10PC11

The table below shows the shared CUT GPIO -> mux input -> address mapping used during hardware verification.

AddressMUX1 input / CUT GPIOMUX2 input / CUT GPIOMUX3 input / CUT GPIO
0I0 / PA0I0 / PB0I0 / PC0
1I1 / PA1I1 / PB1I1 / PC1
2I2 / PA2I2 / PB2I2 / PC2
3I3 / PA3I3 / PB3I3 / PC3
4I4 / PA4I4 / PB4I4 / PC4
5I5 / PA5I5 / PB5I5 / PC5
6I6 / PA6I6 / PB6I6 / PC6
7I7 / PA7I7 / PB7I7 / PC7
8I8 / PA8I8 / PB8I8 / PC8
9I9 / PA9I9 / PB9I9 / PC9
10I10 / PA10I10 / PB10I10 / PC10
11I11 / PA13I11 / PB11I11 / PC11
12I12 / PA14I12 / PB12I12 / PC12
13I13 / PA15I13 / PB13I13 / PC13
14-I14 / PB14I14 / PD2
15-I15 / PB15-

5. PCB Layout And Stackup

The SPOC shield PCB was routed as a 4-layer board. The external layers are used for signal routing, while the internal layers are used as GND reference planes for current return paths.

LayerMain roleRouting direction / use
F.CuSignal routingMostly horizontal signal traces, shown in red
In1.CuGround planeInternal GND layer for return current
In2.CuGround planeInternal GND layer for return current
B.CuSignal routingMostly vertical signal traces, shown in blue

The internal GND planes give the signal traces a close reference plane. This improves the return-current path, reduces loop area, and helps keep the oscilloscope signals cleaner during switching.

The routing widths are:

Net typeTrack width
Signal traces0.2 mm
Power supply traces0.5 mm
PCB viewDescription
IM5F.Cu layer with red horizontal signal routing
im7In1.Cu internal ground plane for return current
IM8In2.Cu internal ground plane for return current
im6B.Cu layer with blue vertical signal routing

5.1 VIN Jumper

A VIN jumper was added to control the power link between the two SPIN boards. The jumper avoids unintentionally connecting the two VIN lines through the USB cable. When the jumper is soldered, both SPIN boards can be powered from a single USB cable.

VIN jumper schematicVIN jumper on PCB
IM9IM10

6. Hardware Bring-Up And Validation

This section groups the physical board checks performed after assembly: power verification, routing validation, and output calibration observations.

6.1 Power Checks

Before functional testing, the board was checked for shorts and correct supply rails. The important hardware checks passed: VIN, 3.3V, GND, BNC shield ground, and mux supply continuity.

RailMeasured valueResult
VIN4.743 VPASS
3.3V3.286 VPASS

No abnormal heating was observed during first power-up.

6.2 Hardware Validation

The selected signal was checked from the CUT SPIN GPIO through the mux network to the test point and BNC output. The hardware validation confirmed:

  • the selected signal appears on the expected channel
  • mux addressing works
  • mux enable behavior works
  • the local test point and BNC output match
  • no unexpected coupling was observed between channels

An early issue was found on some MUX1 / CH1 routes. After resoldering the interior CUT SPIN pins, the failing routes worked correctly.

After correction, all 180 tested routes passed successfully, with 0 failed routes.

6.3 Offset And Calibration Observation

After observing an output offset on the BNC outputs during measurement, and after identifying the same behavior in simulation, a calibration stage was added after the functional hardware verification. The purpose of this step is to better characterize the offset behavior and apply the required correction for improved measurement accuracy.

Offset without output:

offset0

The DC calibration setup compares three points at the same time:

  • VCUT: signal directly from the CUT SPIN, measured on oscilloscope CH2
  • VTEST: signal at the local test point, measured on oscilloscope CH3
  • VBNC: signal at the BNC output, measured on oscilloscope CH1

This setup makes it possible to compare the generated source signal, the local routed signal on the shield, and the final BNC output.

ab316f4e-eec0-4d3a-8e9a-5ac785216647 DCCai0 SPIN_Oscilloscope_Shield-DC OFFSET drawio
NodeMeasured value
VCUT3.409 V
VTEST3.364 V
VBNC3.479 V

From these values:

  • VCUT to VTEST shows a drop of about 45 mV
  • this drop is consistent with voltage loss through the mux path, most likely related to the internal on-resistance of the multiplexer
  • VTEST to VBNC shows an increase of about 115 mV
  • this second effect matches the offset observed on the BNC output and is the main point requiring calibration

To investigate this effect, the equivalent resistance formed by the three 3 Mohm resistors was checked.

  • the expected total resistance is about 9 Mohm
  • the resistance measured with the multimeter was about 8.8 Mohm
  • this corresponds to an error of about 2.22%
  • this result is acceptable because each resistor is specified as 3 Mohm +/-5%
Resistance

With the measured resistor network, the divider is not exactly 10x:

text
Rosc / (Rosc + 3R) = 1 / (1 + 8.8) = 0.102

Therefore, the practical correction factor is closer to 9.8 than exactly 10. For more accurate measurements, the oscilloscope scaling should use this corrected factor instead of assuming an ideal 10x divider. This correction is used only for precision voltage measurements; it does not affect the routing validation result.

7. Conclusion

The SPOC hardware is functionally validated for the tested routing use case.

The shield correctly routes selected CUT SPIN GPIOs through the mux network to the expected oscilloscope channel outputs. All four channels, all three mux groups, and all mapped routes tested by the automatic sweep passed successfully.

The only remaining hardware point is the BNC output offset of about 80 mV to 120 mV. This does not block the functional routing validation, but it should be corrected or taken into account before using the board for precision voltage measurements. For the next PCB fabrication, the 3 Mohm divider resistors should be replaced with lower-tolerance resistors. In this version, 5% tolerance resistors were used, which explains why the measured divider resistance was about 8.8 Mohm instead of the expected 9 Mohm. Using lower-tolerance resistors would make the total resistance closer to 9 Mohm, so the 10x attenuation would be more accurate.

Parts

77
QtyValueFootprintReferences
12100nFCapacitor_SMD:C_0805_2012MetricC1, C2, C3, C5, C6, C7, C9, C10, C11, C13, C14, C15
123MResistor_SMD:R_0402_1005MetricR1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12
12CD74HC4067SMPackage_SO:SSOP-24_5.3x8.2mm_P0.65mmU1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12
8TestPointFootprints:TestPoint_THTPad_D1.5mm_Drill0.7mmTP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8
4C_VariableFootprints:CAP-SMD_L4.5-W3.2_STC3MD20-T1C4, C8, C12, C16
4Conn_CoaxialFootprints:BNC-TH_L12.0-W12.0BNC1, BNC2, BNC3, BNC4
4G***kibuzzard-69C2B1B5kibuzzard-69C2B1B5, kibuzzard-69C2B1B5, kibuzzard-69C2B1B5, kibuzzard-69C2B1B5
4MountingHole_PadMountingHole:MountingHole_2.5mm_Pad_ViaH5, H6, H7, H8
2OwnTech_SPINFootprints:OwnTech_SPINTHTJ1, J2
1Conn_01x02_PinTerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_HorizontalJ3
1G***kibuzzard-69C2FCCBkibuzzard-69C2FCCB
1G***kibuzzard-69C2FDF9kibuzzard-69C2FDF9
1G***kibuzzard-69C66E4Ekibuzzard-69C66E4E
1G***kibuzzard-69C660C3kibuzzard-69C660C3
1G***kibuzzard-69C2FC5Bkibuzzard-69C2FC5B
1G***kibuzzard-69C66127kibuzzard-69C66127
1G***kibuzzard-69C2FDE2kibuzzard-69C2FDE2
1G***kibuzzard-69C2B294kibuzzard-69C2B294
1G***kibuzzard-69C2FDEEkibuzzard-69C2FDEE
1G***kibuzzard-69C2B2ACkibuzzard-69C2B2AC
1G***kibuzzard-69C2B27Dkibuzzard-69C2B27D
1G***kibuzzard-69C2B196kibuzzard-69C2B196
1G***kibuzzard-69C2A2EAkibuzzard-69C2A2EA
1SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP1

Similar boards

  • 2 layers309.6 × 95.3 mmMacrolev, the printed circuit board in 3D

    Macrolev

    heiso/macrolev

    Macrolev is an open source analog keyboard powered by Hall Effect switches

    184 parts136
  • 2 layers204 × 174.9 mmWonkle, the printed circuit board in 3D

    Wonkle

    wonkleio/wonkle

    We build together.

    519 parts125CERN-OHL-S-2.0
  • 4 layers65 × 100 mmUBMS-2, the printed circuit board in 3D

    UBMS-2

    grokicad/grokicad

    Grok powered schematic intelligence for your kicad repositories

    246 parts28
  • 4 layers344 × 117.5 mmZellia80, the printed circuit board in 3D

    Zellia80

    mhdimo/Zellia80-HE

    Zellia80-HE PCB files source

    497 parts24LGPL-2.1
  • 2 layers229 × 96 mmOscillator Board, the printed circuit board in 3D

    Oscillator Board

    Bad-Dog-Designs/ESP32-S3-Synthesizer

    Source code and KiCad Files for the build of an ESP32 S3 Based synthesizer. CAN bus is used extensively to collect all the pots and switch data and send to the ESP32 engine

    138 parts19
  • 4 layers29.3 × 187.1 mmLeft Frame, the printed circuit board in 3D

    Left Frame

    FlightDeckDIY/G1000-NXi-Mega

    Welcome to the G1000 NXi Mega project! This repository contains the schematic and PCB design files for a custom-built G1000 avionics panel, designed specifically for use with flight simulators like Microsoft Flight…

    127 parts14
  • 2 layers391.2 × 166.5 mmTakt11800, the printed circuit board in 3D

    Takt11800

    vuckale/takt11800

    Replacement PCB for Cherry G80 11800/Compaq MX 11800 keyboard using QMK firmware and VIA

    284 parts12CERN-OHL-S-2.0
  • 2 layers100 × 55 mmPCBTriatlonWAY, the printed circuit board in 3D

    PCBTriatlonWAY

    Alejojoa/Triatlon-Alita

    Repositorio dedicado al desarollo de un robot triatlon.

    43 parts6

Questions

How big is the SPIN Oscilloscope Shield PCB?

It measures 100 × 110.5 mm and has 4 copper layers, 1.6 mm thick.

What parts does the SPIN Oscilloscope Shield use?

77 parts, built around the CD74HC4067SM96. 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 SPIN Oscilloscope Shield KiCad files?

From the EdamAbdelhedi/SPOC_Hardware repository on GitHub, at the commit this page was made from: the board is KiCad/SPIN Oscilloscope Shield.kicad_pcb and its schematic KiCad/SPIN Oscilloscope Shield.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the SPIN Oscilloscope Shield design in my own project?

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