Extension board · Signals

Fourteen-channel 3.3/5 V level shifter

Translates fourteen digital signals between 3.3 V and 5 V in both directions.

Top view of the Fourteen-channel 3.3/5 V level shifter board
Top view drawn from the original board file. This is a drawing, not a photograph.
14channels
BSS138PStransistors
4.7 kΩpull-up each side
2host ports
45 × 50 mmboard size
3mounting holes
For low-speed digital signals only. Each channel is a MOSFET with 4.7 kΩ pull-ups; check rise time and drive type before using it for fast or push-pull signals. Not for industrial voltages or loads. This is a design by Chris Cecil, not a current Smoothieware board.

Tech specs

FunctionBidirectional level translation
TransistorsSeven BSS138PS pairs
Pull-ups4.7 kΩ to 3.3 V and to 5 V
3.3 V sideJ1, J2 host ports; J8, J9 rows
5 V sideJ3, J4 rows
Power rowsJ5–J7: 5 V, 3.3 V, 3.3 V, ground, ground
Size45 × 50 mm

Board tour

  1. 1
    Port J1 — Seven 3.3 V signals.
  2. 2
    Port J2 — Seven more.
  3. 3
    5 V row J3 — High side.
  4. 4
    5 V row J4 — High side.
  5. 5
    Transistor pairs — Q1–Q7, two channels each.
  6. 6
    Power rows — 5 V, 3.3 V and ground.
  7. 7
    Transistor Q2 — Transistor Q2, marked BSS138PS in the board file. Connects to 1P5, +3V3, Shifter/3H, 1P6, Shifter/2H.
  8. 8
    Resistor J6 — Resistor J6. Connects to +5V, +3V3, GND.
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

Port J1

J1 contactConnected to
1+3V3
2+5V
31P3
41P4
51P5
61P6
71P7
81P8
91P9
10GND

Port J2

J2 contactConnected to
1+3V3
2+5V
32P3
42P4
52P5
62P6
72P7
82P8
92P9
10GND

5 V row J3 (channels from port 1)

J3 contactConnected to
1Shifter/0H
2Shifter/1H
3Shifter/2H
4Shifter/3H
5Shifter/4H
6Shifter/5H
7Shifter/6H

5 V row J4 (channels from port 2)

J4 contactConnected to
1Shifter/7H
2Shifter/8H
3Shifter/9H
4Shifter/10H
5Shifter/11H
6Shifter/12H
7Shifter/13H

Power rows J5–J7

J5 contactConnected to
1+5V
2+3V3
3+3V3
4GND
5GND

Check the order of J3 and J4 with a meter: the channel numbering does not run in the same order as the port contacts (J1.3 reaches J3.1).

What you need

Level shifter boardBuilt from the design files
3.3 V and 5 V supplyFrom the host
LeadsVerified contact by contact

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 1P3; J1 contact 10 to GND.J1J1 on this boardHost cable+3V3 1+3V31: +3V3+5V 2+5V2: +5V1P3 31P33: 1P3 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

    Supply both 3.3 V and 5 V from the host and verify each lead.

  3. Configure and power up

    Apply the settings under Configuration, then power up.

Configuration

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

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

This example reads a 5 V-side contact through channel 1 on PB1.

How it works

Each channel is the usual single-MOSFET translator: gate on 3.3 V, one pull-up per side. Either side can pull the line low; a high level comes from the resistor, so edges rise slowly on long or capacitive wires. See the BSS138PS datasheet.

3.3 V side, with pull-up then One MOSFET per channel, gate on 3.3 V then 5 V side, with pull-up.3.3 V sidewith pull-upOne MOSFET per channelgate on 3.3 V5 V sidewith pull-up
How the signals pass through this board.

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.
Output never goes highCheck that both 3.3 V and 5 V are present, and ground is shared.
Slow or corrupt signalsThe pull-ups limit speed; shorten the wires or lower the rate.

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

Downloads

FileWhat it is
original sourceDesign source
original circuitDesign source
schematicDesign source
Ccecil upstream projectDesign source
Original LevelShifter.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-3v3-5v-level-shifter, component side: outline 45 by 50 millimetres with 3 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 45 50 0, 0 X Y 1 20.00, 5.00 2 40.00, 25.00 3 20.00, 45.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 45 × 50 mm, square corners, 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
240.0025.002.5 mm, not platedMounting
320.0045.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
Pull-up resistanceEach side of each channel—4.7 kΩ—Design file value

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.