
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.

KiCad design files for the 4th iteration of my single pair Ethernet (SPE) switch. The firmware can be found in unified-switch-firmware.
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.
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!

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:
| Port | Speed (Mbps) | Description |
|---|---|---|
| 0 | 100/1000 | Marvell 88Q2112 100/1000BASE-T1 Ethernet PHY |
| 1 | 100/1000 | Marvell 88Q2112 100/1000BASE-T1 Ethernet PHY with PoDL |
| 2 | 100/1000 | Marvell 88Q2112 100/1000BASE-T1 Ethernet PHY with PoDL |
| 3 | 10 | Microchip LAN8671 10BASE-T1S Ethernet PHY with PoDL |
| 4 | 100 | Internal STM32 management processor |
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.
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.
| Version | Description |
|---|---|
| v4.1.1 | Updated to Kicad v10 |
| v4.1.0 | Fixed bugs from first revision |
| v4.0.0 | First release |
See the errata for details on bugs.
Datasheets:
PoDL:
| Qty | Value | Footprint | References |
|---|---|---|---|
| 24 | 2mm | TestPoint:TestPoint_Pad_D2.0mm | TP101, TP102, TP103, TP104, TP105, TP106, TP107, TP108, TP109, TP110, TP111, TP112, TP113, TP114, TP115, TP116 +8 |
| 3 | MountingHole_Pad | MountingHole:MountingHole_2.7mm_M2.5_DIN965_Pad | H101, H102, H103 |
| 2 | Conn_ST_STDC14 | Connector_PinHeader_1.27mm:PinHeader_2x07_P1.27mm_Vertical_SMD | J101, J104 |
| 1 | Conn_02x03_Odd_Even | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical | J103 |
| 1 | Conn_02x07_Odd_Even | Connector_PinHeader_2.54mm:PinHeader_2x07_P2.54mm_Vertical | J102 |

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.

joeycastillo/Sensor-Watch
A board replacement for the classic Casio F-91W wristwatch

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

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

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

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.
BlueAndi/Pixelix
Full RGB LED matrix, based on an ESP32 and WS2812B LEDs or emulated LEDs on TFT.


It measures 65 × 70 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
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).