Skip to the content
PCBKitNew board
4 layers30 × 20 mmSwd switch, the printed circuit board in 3D

Debugotron is a collection of debugging/automation tools I've wanted in the past but didn't have access to. Currently, the tools include:

Size
30 × 20 mm
Copper layers
4
Thickness
0.8 mm
Parts
28
Nets
27
Pads
120
Tracks, vias
276, 49
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
16 Jan 2022
Updated
11 Oct 2026

Overview

Swd switch is an open-source printed circuit board by alvarop, from the alvarop/debugotron repository on GitHub, published under the BSD-3-Clause licence. It is a 4-layer board of 30 × 20 mm with 28 parts on 27 nets, routed with 276 tracks and 49 vias.

It is built around the SN74LVC2G66DCU, SN74AHC1G14DBVR and SN74AHC1G32DBVR, with the SN74LVC1G80DCKRE4, 20021121-00010C4LF and PTS636 SL43 SMTR LFS among its other parts. Its parts include 6 resistors, 6 ICs, 4 capacitors, 3 connectors and 1 diode. It belongs with the interfaces and adapters boards of this library.

Main components

7

README

README.md

Debugotron!

Debugotron is a collection of debugging/automation tools I've wanted in the past but didn't have access to. Currently, the tools include:

SWD to USB-C!

SWD to USB-C Side 1 SWD to USB-C Side 2

Have you ever wanted to debug your device over USB-C? Sometimes there's not enough room for a JTAG/SWD connector, or even TAGConnect pads! The USB-C specification has a Debug Accessory Mode feature that allows for this. I have a Twitter thread with additional details. Here's an unrolled version for easier reading.

SWD to USB-C Programmer

Since the current adapter uses an ATTiny24a, I made a different programmer adapter for it

SWD to USB-C Programmer

Example Target

This is a simple STM32L4 board that implements USB-C DAM (the "proper way") as an example.

SWD to USB-C Example Target

SWD to USB-C Example Target in Use

SWD Switch

Tool that allows connecting/disconnecting the SWD/JTAG lines (Via ARM 10-pin connector) with a pushbutton (or external signal). This can be useful when trying to measure ultra low power consumption on a device while the debugger is connected (but not necessarily running/attached).

SWD Switch Side 1 SWD Switch Side 2

USB-C Switch

This one is more of an automation tool. I've always wanted to automate firmware testing. Sometimes, having USB connected is necessary to program/communicate with a device, but at the same time, having USB connected changes the power characteristics of the test (or just operating mode).

For example, you might want to automatically test the power consumption of a battery powered device every night with the latest firmware. In order to run the test, you might have to connect to the device, flash it, then disconnect USB. The USB-C switch will allow software-controlled power and data connect/disconnects to a USB-C device. Depending on the configuration, it will also allow full 20V@5A pass-through by allowing USB-PD communication over the CC lines.

In the cases where you want to communicate with a device over USB while still powering it via 20V (or anything higher than 5V), a USB switch allows for a different USB cable to be used for data only, while power is taken from a separate USB-C port.

USB-C Switch (Bare PCB)

Parts

28
QtyValueFootprintReferences
65.1kResistor_SMD:R_0402_1005MetricR1, R2, R3, R4, R5, R6
5TestPointTestPoint:TestPoint_Pad_D3.0mmTP1, TP2, TP3, TP4, TP5
40.1uFCapacitor_SMD:C_0402_1005MetricC1, C2, C3, C4
3SN74LVC2G66alvarop:SN74LVC2G66-VSSOPU3, U4, U5
1LEDLED_SMD:LED_0603_1608MetricD1
1SN74AHC1G14Package_TO_SOT_SMD:SOT-23-5U6
1SN74LVC1G32DBVRsnapeda:SOT95P280X145-5NU2
1SN74LVC1G80DCKRsnapeda:SOT65P210X110-5NU1
1SWD_INsnapeda:SAMTEC_FTSH-105-01-F-DV-P-TR_altJ3
1SWD_OUTsnapeda:SAMTEC_FTSH-105-01-F-DV-P-TR_altJ5
1SW_Pushalvarop:PTS636_GSW1
1USB_C_Receptacle_USB2.0alvarop:USB4515-GF-AJ2

The 26 most common of 28 parts.

Questions

How big is the Swd switch PCB?

It measures 30 × 20 mm and has 4 copper layers, 0.8 mm thick.

What parts does the Swd switch use?

28 parts, built around the SN74LVC2G66DCU, SN74AHC1G14DBVR, SN74AHC1G32DBVR and SN74LVC1G80DCKRE4. 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 Swd switch KiCad files?

From the alvarop/debugotron repository on GitHub, at the commit this page was made from: the board is hw/swd_switch/swd_switch.kicad_pcb and its schematic hw/sample_target/sample_target.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Swd switch design in my own project?

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

More from alvarop/debugotron

3
  • 4 layers60 × 60 mmUsb switch, the printed circuit board in 3D

    Usb switch

    alvarop/debugotron

    Debugotron is a collection of debugging/automation tools I've wanted in the past but didn't have access to. Currently, the tools include:

    77 parts52BSD-3-Clause
  • 2 layers39.7 × 14 mmSample target, the printed circuit board in 3D

    Sample target

    alvarop/debugotron

    Debugotron is a collection of debugging/automation tools I've wanted in the past but didn't have access to. Currently, the tools include:

    31 parts52BSD-3-Clause
  • 2 layers20.5 × 11 mmSwd over c pogo, the printed circuit board in 3D

    Swd over c pogo

    alvarop/debugotron

    Debugotron is a collection of debugging/automation tools I've wanted in the past but didn't have access to. Currently, the tools include:

    6 parts52BSD-3-Clause

Similar boards

  • 2 layers69.9 × 72.4 mmFdrive h, the printed circuit board in 3D

    Fdrive h

    feoranis26/fdrive-h

    ESP32-based 120V 480A High-current DC brushed motor driver

    73 parts
  • 2 layers33 × 50 mmHema console, the printed circuit board in 3D

    Hema console

    rapha-tech/ESP32-hema-console

    New PCB for the small console from hema to use an ESP32

    59 parts4
  • 2 layers52 × 83 mmRetro Card V0, the printed circuit board in 3D

    Retro Card V0

    rapha-tech/Retro-Card

    Small credit card sized console based around the ESP32-P4

    78 parts
  • 2 layers24 × 28.6 mmTv b gone c, the printed circuit board in 3D

    Tv b gone c

    Salamandar/tv-b-gone-c

    This is a compact USB-C powered TV-B-Gone.

    29 parts1
  • 4 layers150.3 × 47.5 mmBoluder clock replacement, the printed circuit board in 3D

    Boluder clock replacement

    mickdassive/boulder_clock_replacent_bord

    This project provides the source code and design files for the Boulder Clock Replacement Board, designed as a direct drop-in replacement for the original Boulder Clock hardware.

    225 parts
  • 4 layers32 × 49 mmDaFO, the printed circuit board in 3D

    DaFO

    ywhs05/DigitalToFiberOpticConverter-PCB

    Circuito que recibe señales digitales y las convierte a fibra óptica.

    32 partsMIT
  • 4 layers141.9 × 37.1 mmDisplay ctrler, the printed circuit board in 3D

    Display ctrler

    redhotchili0909/LEDSphere

    ENGR3430 (Eclectronics) Final Project PCB

    51 parts1