Skip to the content
2 layers65 × 70 mmSwitch main v4-test rig, the printed circuit board in 3D

Switch main v4-test rig

ben5049/switch-v4-hardware33

KiCad design files for the 4th iteration of my single pair Ethernet (SPE) switch. The firmware can be found in unified-switch-firmware.

Size
65 × 70 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
35
Pads
75
Tracks, vias
181, 14
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
24 Aug 2025
Updated
25 Apr 2026

Overview

Switch main v4-test rig is an open-source printed circuit board by ben5049, from the ben5049/switch-v4-hardware repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 65 × 70 mm with 31 parts on 35 nets, routed with 181 tracks and 14 vias.

README

README.md

Switch v4 Hardware

KiCad design files for the 4th iteration of my single pair Ethernet (SPE) switch. The firmware can be found in unified-switch-firmware.

Also see my post on r/embedded!

top-render

Design

See the schematic for a block diagram and in-depth details.

The main switch chip is an SJA1105QEL from NXP. It is configured via SPI by an STM32H573IIK3Q. The STM32 is also connected by reduced media independent interface (RMII) to the switch so it is able to send and receive management traffic such as Spanning Tree Protocol (STP) BPDUs as well as Precision Time Protocol (PTP) packets and diagnostic information.

The connections for each SJA1105 port are shown below:

PortSpeed (Mbps)Description
0100/1000Marvell 88Q2112 100/1000BASE-T1 Ethernet PHY
1100/1000Marvell 88Q2112 100/1000BASE-T1 Ethernet PHY with PoDL
2100/1000Marvell 88Q2112 100/1000BASE-T1 Ethernet PHY with PoDL
310Microchip LAN8671 10BASE-T1S Ethernet PHY with PoDL
4100Internal STM32 management processor

PoDL PSE

Power over Datalines (PoDL) is similar to Power over Ethernet (PoE) but for SPE. In regular PoE power is sent over the center taps of the transformers, however in SPE there is only one (or no) transformer so this wouldn't work. Instead, DC power is injected into the datalines in the Coupling Decoupling Network (CDN) using differential mode inductors (DMI). The switch is only capable of being a Power Sourcing Equipment (PSE) which powers other devices. It must get its own power through the other connectors on the board.

PoDL has been implemented on ports 1, 2 and 3 of the switch.

  • Ports 1 and 2 are able to output 1.1A each and use a simple detection method before supplying power to a load. Firstly ~14mA is sent down the cable, then if the bus voltage is between 4.05 and 4.55V then the full supply is enabled (typically 24V). This is usually done by a zener diode on the other end of the cable.

  • Port 3 is also able to output 1.1A and uses a custom multidrop PoDL implementation. Detection is done by powering the bus at 6.5V, then each device on the bus draws 1mA for every 1W of power they want. Then the full supply is enabled.

An STM32H503KBU6 is used as a secondary processor to control the PoDL operations. It talks to the primary processor via UART through an optocoupler. This means the data and power circuits are galvanically isolated.

Test Rig

The test rig PCB is designed so that its pogo pins align directly with the test pads on the bottom of the main switch board. This means a debugger can be connected without needing to include a header on the main board.

Versions

VersionDescription
v4.1.1Updated to Kicad v10
v4.1.0Fixed bugs from first revision
v4.0.0First release

See the errata for details on bugs.

References

Datasheets:

PoDL:

Parts

31
QtyValueFootprintReferences
242mmTestPoint:TestPoint_Pad_D2.0mmTP101, TP102, TP103, TP104, TP105, TP106, TP107, TP108, TP109, TP110, TP111, TP112, TP113, TP114, TP115, TP116 +8
3MountingHole_PadMountingHole:MountingHole_2.7mm_M2.5_DIN965_PadH101, H102, H103
2Conn_ST_STDC14Connector_PinHeader_1.27mm:PinHeader_2x07_P1.27mm_Vertical_SMDJ101, J104
1Conn_02x03_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ103
1Conn_02x07_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x07_P2.54mm_VerticalJ102

More from ben5049/switch-v4-hardware

1
  • 6 layers65 × 50 mmSwitch main v4, the printed circuit board in 3D

    Switch main v4

    ben5049/switch-v4-hardware

    KiCad design files for the 4th iteration of my single pair Ethernet (SPE) switch. The firmware can be found in unified-switch-firmware.

    471 parts33GPL-3.0

Similar boards

  • 2 layers44.5 × 46.9 mmOSO SWAT B1-jig, the printed circuit board in 3D

    OSO SWAT B1-jig

    joeycastillo/Sensor-Watch

    A board replacement for the classic Casio F-91W wristwatch

    31 parts2.1k
  • 2 layers65 × 30 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    31 parts1kGPL-3.0
  • 2 layers191 × 98.5 mmMacroKeypad, the printed circuit board in 3D

    MacroKeypad

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    31 parts915
  • 2 layers39 × 45.2 mmCH32V003F4P6-R0-1v1, the printed circuit board in 3D

    CH32V003F4P6-R0-1v1

    openwch/ch32v003

    CH32V003 is an ultra-cheap RISC-V MCU with 2KB SRAM, 16KB flash, and up to 18 GPIOs that sells for under $0.10

    31 parts599
  • 2 layers26.7 × 27.9 mmBreakout board, the printed circuit board in 3D

    Breakout board

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    31 parts546MIT
  • 2 layers100 × 50 mmPixelix, the printed circuit board in 3D

    Pixelix

    BlueAndi/Pixelix

    Full RGB LED matrix, based on an ESP32 and WS2812B LEDs or emulated LEDs on TFT.

    31 parts447MIT
  • 2 layers77.2 × 69.8 mmCubesatsim solar, the printed circuit board in 3D

    Cubesatsim solar

    alanbjohnston/CubeSatSim

    CubeSatSim, the AMSAT CubeSat Simulator

    31 parts419GPL-3.0
  • 2 layers103 × 55 mmTd neck-294, the printed circuit board in 3D

    Td neck-294

    tdaede/td-crt

    tubes

    31 parts373

Questions

How big is the Switch main v4-test rig PCB?

It measures 65 × 70 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Switch main v4-test rig use?

31 parts. 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 Switch main v4-test rig KiCad files?

From the ben5049/switch-v4-hardware repository on GitHub, at the commit this page was made from: the board is pcbs/switch-main-v4-test-rig/switch-main-v4-test-rig.kicad_pcb and its schematic pcbs/switch-main-v4-test-rig/switch-main-v4-test-rig.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Switch main v4-test rig design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).