Extension board · Cabling adapters

D-sub output adapter

The far end of a DE-9 cable extension: it receives seven signals and 5 V, makes its own 3.3 V and presents a ten-contact socket to a module.

Top view of the D-sub output adapter.
Top view, drawn from the board’s design files. This is a drawing, not a photograph.
7 signalsdirect
DE-9socket
5 Vcarried
ESDevery line
QwiicI²C branch
33 × 26millimetres
This is not a serial port. Never connect a computer, an RS-232 or null-modem cable, or network equipment. A wrong or shorted cable can put 5 V on a signal pin. No isolation or level conversion.

Tech specs

PurposeExtend one socket over a nine-wire cable
DE-91–4: signals 3–6; 5: ground; 6–8: signals 7–9; 9: 5 V
ProtectionTPD1E05U06 on each signal; surge diode on 5 V
3.3 VMade on this board by a TPS70933 from the cable 5 V
Qwiic (J3)Underside; contacts 8 and 9 as SDA and SCL, for sockets of type I
Size33 × 26 mm

Every figure with its basis is in the electrical specifications appendix; hole positions are in the mounting dimensions appendix.

Board tour

The numbers on the drawing match the list below it.

  1. 1
    DE-9 socket (J1) — from the IN adapter.
  2. 2
    Module socket (J2) — ten contacts.
  3. 3
    Protection diode D2 — signal 3.
  4. 4
    Protection diode D3 — signal 4.
  5. 5
    Protection diode D4 — signal 5.
  6. 6
    Protection diode D5 — signal 6.
  7. 7
    Protection diode D6 — signal 7.
  8. 8
    Protection diode D8 — signal 9.
Point at a number, or tap it, to read what the part is; the same text is in the list. On a small screen, scroll the drawing sideways.

Pinout

J1: DE-9

ContactSignal
1, 2, 3, 4Signals 3 to 6
5GND
6, 7, 8Signals 7 to 9
95 V

J2: module socket

ContactSignal
1Local 3.3 V
25 V
3 to 9Signals 3 to 9
10GND

J3: Qwiic (underside)

ContactSignal
1GND
23.3 V
3Signal 8 (SDA)
4Signal 9 (SCL)

What you need

This adapterAnd leads or the matching cable.
A DE-9 cableWired straight, contact for contact, for use with the pair.
A push buttonFor the example.

Get started

This example reads a button through the OUT adapter alone, on Smoothieboard V2 Prime GF/J37.

Wiring: controller contact 3 to J1 contact 1; controller contact 10 to J1 contact 5; J2 contact 3 to button leg 1; J2 contact 10 to button leg 2.J1J2Prime header GF/J37J1 on this boardSmoothieboardV2 Prime31 3 to 1105 GND10 to 5: GNDJ2 on this boardNormally-open button 3button leg 13: button leg 1GND 10button leg 210: button leg 2
Wiring for this procedure. Yellow rings mark the connectors used. Make and change connections with the power off. Equipment is drawn as a typical unit, not a specific model.
  1. Wire the controller side

    With power off: Prime GF/J37.3 (PB1) to DE-9 contact 1, and GF/J37.10 to DE-9 contact 5.

  2. Wire the button

    Wire a normally-open button between socket J2 contacts 3 and 10.

  3. Configure

    Add the settings below; PB1 must be free.

  4. Test

    With machine loads disabled, power up and press.

    The controller halts.

Configuration

You wantModuleExample
A button at the end of a cableButton boxSetup

Setup

[button box]
extension_button.enable = true
extension_button.pin = PB1!^
extension_button.press = KILL

^ turns on the pull-up, ! makes the grounded button active. KILL is a software halt, not a safety emergency stop. See button box.

How it works

Signals pass straight through, each with an ESD diode to ground. The regulator turns the cable’s 5 V into the module’s 3.3 V. In the button example it stays unpowered. The direction of each signal is set by the attached devices.

DE-9 cable, signals and 5 V then Straight through, ESD diode to ground on each then Socket J2, to the module. Cable 5 V then Regulator, makes the module 3.3 V.DE-9 cablesignals and 5 VStraight throughESD diode to ground on eachSocket J2to the moduleCable 5 VRegulatormakes the module 3.3 V
How the signals pass through this board, one path per row.

Troubleshooting

SymptomCheck
Button does nothingBoth wires, PB1 free, ^ and ! present.
Unreliable I²CLong cables need slower speeds and suitable pull-ups.

Still stuck? Read how to ask for help or see the general troubleshooting guide.

Downloads

FileWhat it is
Schematic (PDF)The complete circuit diagram
Parts list (CSV)Every component with its value and footprint
Board drawing (WebP)The top view used on this page

Appendix: mounting dimensions

The board is 33 × 26 mm with square corners, 1.6 mm thick. It has no mounting holes.

Appendix: electrical specifications

Signal levels.

ParameterApplies toLowerNominalUpperBasis and conditions
SignalsAll seven—3.3 V—No level conversion
SupplyDE-9 contact 9—5 V—From the controller socket

Appendix: datasheets

The first page of each important chip’s datasheet. Click a page to open the PDF.

First page of the TPD1E05U06 datasheet
TPD1E05U06 single-channel ESD protection diode — Texas Instruments, 39 pages.
First page of the TPS70933 datasheet
TPS709 150 mA low-dropout regulator — Texas Instruments, 43 pages.

See all boards on the extension boards page.

This is a wiki! If you'd like to improve this page, you can edit it on GitHub.