Extension board · Inputs

DIP-switch and debounced-input board

Four DIP switches and three filtered, protected external inputs give seven digital states on one header.

Top view of the DIP-switch and debounced-input board board
Top view drawn from the original board file. This is a drawing, not a photograph.
4DIP switches
3external inputs
6supply and pull-up jumpers
3.3/5 Vselectable
40 × 35 mmboard size
10header contacts
This is not an emergency-stop circuit. The E_STOP_ label is an ordinary input name. Check the fitted jumpers before connecting an external signal. This is a design by Chris Cecil, not a current Smoothieware board.

Tech specs

FunctionSwitch and input board
HeadersJ1, J2
External inputsJ3–J5: supply or pull-up, ground, input
Jumpers (underside)JP1, JP3, JP5 select 5 V or 3.3 V; JP2, JP4, JP6 connect or disconnect the pull-up path
Size40 × 35 mm

Board tour

  1. 1
    DIP switches — Four ground switches.
  2. 2
    Header J1 — Host connection.
  3. 3
    Header J2 — Same contacts.
  4. 4
    External input 1 — To contact 7.
  5. 5
    External input 2 — To contact 8.
  6. 6
    External input 3 — To contact 9.
  7. 7
    Protection array — Guards the external inputs.
  8. 8
    Resistor R1 — Resistor R1, marked 10k in the board file. Connects to E_STOP_.
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

Headers J1 and J2

J1 contactConnected to
1+3V3
2+5V
3P3
4P4
5P5
6P6
7E_STOP_
8SW1
9SW2
10GND

J3, J4, J5: contact 1 selected supply, contact 2 ground, contact 3 input (to header contacts 7, 8 and 9).

What you need

DIP boardBuilt from the design files
Ribbon cable or leadsVerified contact by contact
SensorsContacts or 3.3 V-safe outputs

Get started

The minimum wiring first, then the order to do it in. Facts about each contact are in the pinout.

Wiring: J1 contact 1 to +3V3; J1 contact 2 to +5V; J1 contact 3 to P3; J1 contact 4 to P4; J1 contact 5 to P5; J1 contact 6 to P6; J1 contact 10 to GND.J1J1 on this boardHost cable 1+3V31: +3V3 2+5V2: +5V 3P33: P3 4P44: P4 5P55: P5 6P66: P6 10GND10: GND
Wiring drawn from the original design files. Make connections with all power off. Equipment is drawn as a typical unit, not a specific model.
  1. Check the contacts

    With all power off, find contact 1 on each connector and check every wire against the pinout.

  2. Set up and check

    Connect only contacts or 3.3 V-safe sensor outputs to J3 to J5.

  3. Configure and power up

    Apply the settings under Configuration, then power up.

Configuration

Example for the switch on header contact 3, wired to PB1. Repeat with PJ4, PA4 and PG0 for contacts 4–6.

A mechanical contact read as an input that does not limit motion. See endstops. Syntax checked against firmware commit 2a21c0108b1d095ecd8b2b9358e94055f053c003.

[endstops]
dip_contact3_diagnostic.enable = true
dip_contact3_diagnostic.pin = PB1-
dip_contact3_diagnostic.axis = X
dip_contact3_diagnostic.homing_direction = none
dip_contact3_diagnostic.limit_enable = false

How it works

Closing a DIP switch grounds its contact; the resistor networks connect the other side towards header contacts 3–6. Each external input passes through filtering, series resistance and a protection array before reaching contacts 7–9.

DIP switch, grounds its contact then Resistor networks then Header contacts 3 to 6. External input then Filter, series resistance, protection then Header contacts 7 to 9.DIP switchgrounds its contactResistor networksHeader contacts 3 to 6External inputFilter, series resistance,protectionHeader contacts 7 to 9
How the signals pass through this board, one path per row.

Troubleshooting

SymptomCheck
Nothing respondsWith power off, check continuity along each lead and board path against the pinout tables. Confirm which end of the connector is contact 1.
A DIP switch reads the wrong bitCheck which lever drives which contact with a meter.
External sensor has no supplyCheck JP1/JP3/JP5 and JP2/JP4/JP6 on the underside.
Signal exceeds 3.3 VSelect 3.3 V before connecting to a 3.3 V input.

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

Downloads

FileWhat it is
original circuitDesign source
Ccecil upstream projectDesign source
Original sourceDesign source
Original GDGT_DIP.kicad_schDesign source
Original README.mdDesign source

Appendix: mounting dimensions

Outline and holes from the original board file. Millimetres, seen from the component side.

Mounting drawing of the historical-dip-switch-board, component side: outline 40 by 35 millimetres with 2 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 40 35 0, 0 X Y 1 20.00, 5.00 2 20.00, 30.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 40 × 35 mm, corners rounded to a 3 mm radius, board thickness 1.6 mm. Drawn from the design files, component side up, in the same orientation as the board tour.
HoleX (mm)Y (mm)DiameterUse
120.005.003.2 mm, not platedMounting, M3 screw
220.0030.003.2 mm, not platedMounting, M3 screw

Appendix: electrical specifications

Only what the design source states or the circuit fixes. Blank cells are not specified.

ParameterApplies toLowerNominalUpperBasis and conditions
Voltage, current and temperature limitsWhole board———Not specified in the source

Design source

Designed by Chris Cecil: original design files. It was drawn for the Smoothieboard V2 Gadgeteer era; check every connection against your own controller. 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.