Skip to the content
2 layers12.8 × 6.4 mmD2F to JST, the printed circuit board in 3D

This is a PCB that adapts the Omron D2F family of micro switches to a standard JST 2 pin connector, making it easy to integrate mechanical switches into projects such as 3D printers or other electronics.

Size
12.8 × 6.4 mm
Copper layers
2
Thickness
1.63 mm
Parts
2
Nets
2
Pads
4
Tracks, vias
4, 0
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
9 Oct 2025
Updated
9 Oct 2025

Overview

D2F to JST is an open-source printed circuit board by TheRogueZeta, from the TheRogueZeta/D2F_to_JST_PCB repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 12.8 × 6.4 mm with 2 parts on 2 nets, routed with 4 tracks and 0 vias.

Its parts include 1 connector and 1 switch.

README

README.md

D2F to JST Adapter PCB

image

This is a PCB that adapts the Omron D2F family of micro switches to a standard JST 2 pin connector, making it easy to integrate mechanical switches into projects such as 3D printers or other electronics.

Features

  • Converts D2F switches to pin terminals exposing the normally closed (NC) contact.
  • Custom footprint designed to accommodate both JST PH or XH 2 pin headers.
  • Compact, easy-to-mount design that is not any bigger than the footprint of the switch.

Where to get it?

Boards are able to be ordered at OSHPark

Bill of materials:

  • (1) PCB
  • (1) JST XH 2.5mm or JST PH 2.0mm connector
  • D2F-L or similar Omron switch with straight PCB Terminals

Assembly instructions:

  1. Trim the center pin on the switch as close as possible to the switch body. image
  2. Solder a JST connector to the PCB pads.
  3. Trim the protruding leads of the JST connector as short as possible with flush cutters. image
  4. Insulate the contacts on the PCB with kapton tape (optional but recommended.)
  5. Place PCB over the D2F switch pins and solder D2F switch pins to the PCB. image
  6. Test with a multimeter for correct function. You should see continuity when the switch is released and a open circuit when the switch is depressed.

Applications

  • 3D printer endstops
  • Filament runout switches for filament changers
  • Anywhere else where you want to easily disconnect your wire harness from the mounted switch!

License

See LICENSE for details.

Parts

2
QtyValueFootprintReferences
1Conn_01x02_PinConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ1
1SW_SPDTD2F:D2FSW1

Similar boards

  • 2 layers37 × 19 mmPassive rpi hub75-adapter, the printed circuit board in 3D

    Passive rpi hub75-adapter

    hzeller/rpi-rgb-led-matrix

    Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO

    2 parts4.4kGPL-2.0
  • 2 layersDiode template, the printed circuit board in 3D

    Diode template

    adamws/kicad-kbplacer

    KiCad plugin for automatic keyboard's key placement and routing

    2 parts547GPL-3.0
  • 2 layers20.3 × 15.2 mmL0 button, the printed circuit board in 3D

    L0 button

    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.

    2 parts546MIT
  • 2 layers35.1 × 46.8 mmSDEX2M2 Breakout Board, the printed circuit board in 3D

    SDEX2M2 Breakout Board

    NVNTLabs/switch2-SDEX2M2

    Micro SD Express to M.2 NVME Adapter for Nintendo Switch 2

    2 parts542GPL-3.0
  • 2 layers59.3 × 36.6 mmExpansionBoardTemplate, the printed circuit board in 3D

    ExpansionBoardTemplate

    BlueSCSI/BlueSCSI-v2

    BlueSCSI v2/Ultra - an open source, open hardware, SCSI emulator using the Pi Pico PR2040 and Pico 2 RP2350

    2 parts459GPL-3.0
  • 2 layersAlpha.9mm.wire, the printed circuit board in 3D

    Alpha.9mm.wire

    ohmtech-rdi/eurorack-blocks

    Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust

    2 parts410
  • 2 layers26.7 × 64 mmGpu power, the printed circuit board in 3D

    Gpu power

    dennisss/dacha

    Monorepo for awesome tools/projects/libraries

    2 parts397Apache-2.0

Questions

How big is the D2F to JST PCB?

It measures 12.8 × 6.4 mm and has 2 copper layers, 1.63 mm thick.

What parts does the D2F to JST use?

2 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 D2F to JST KiCad files?

From the TheRogueZeta/D2F_to_JST_PCB repository on GitHub, at the commit this page was made from: the board is KiCAD/D2F to JST.kicad_pcb and its schematic KiCAD/D2F to JST.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the D2F to JST 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).