Extension board · Host adapters

Teensy 4.1 expansion host

Make a Teensy 4.1 the controller for small modules: six ten-contact sockets (Y, A, S, U, I and P) and an I²C connector. The program on the Teensy does the work.

Top view of the Teensy 4.1 expansion host.
Top view, drawn from the board’s design files. This is a drawing, not a photograph.
6 socketsY A S U I P
31signals
100 Ωseries each
100 mA3.3 V total
500 mA5 V total
76 × 56millimetres
3.3 V signals only, not 5 V tolerant. Never feed 3.3 V in from outside, never join the board to a powered controller, and keep within the supply totals.

Tech specs

PurposeGadgeteer host ports for a Teensy 4.1
SeatingTwo 1×24 sockets, 15.24 mm apart
Protection100 Ω and TPD4E1U06 ESD arrays
Supplies5 V from Teensy VIN through a diode; 3.3 V through a ferrite
I²C connector2.54 mm header, or a Qwiic socket, same bus as J5
LinksJP1, JP2 lights; JP3, JP4 I²C pull-ups
Size76 × 56 mm, four M3 holes
LicenceCERN-OHL-S-2.0

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
    Teensy row, VIN side (J9) — USB end marked.
  2. 2
    Teensy row, pin 0 side (J10) — the other row.
  3. 3
    GPIO socket (J1) — type Y.
  4. 4
    Analog socket (J2) — type A.
  5. 5
    SPI socket (J3) — type S.
  6. 6
    Serial socket (J4) — type U.
  7. 7
    I²C socket (J5) — type I.
  8. 8
    PWM socket (J6) — type P.
  9. 9
    I²C header (J8) — 3.3 V.
  10. 10
    5 V light (D2) — green.
  11. 11
    3.3 V light (D3) — green.
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.

Lights

LightLit meansDisable it
D2, green5 V presentCut JP1
D3, green3.3 V presentCut JP2

Pinout

Contact 1 is 3.3 V, contact 2 is 5 V and contact 10 ground on J1 to J6; contacts not listed are not connected. Numbers are Teensy digital pins.

Socket contactTeensy pin
J1: 3 to 924 to 30
J2: 3 to 620 (A6), 21 (A7), 22 (A8), 23
J3: 3 to 54, 5, 6
J3: 6 to 9CS 10, MOSI 11, MISO 12, SCK 13
J4: 3 to 62, TX1 1, RX1 0, 3
J5: 3, 6, 8, 917, 14, SDA 18, SCL 19
J6: 3, 6 to 915, 16, 7, 8, 9
J8: 1 to 4Ground, 3.3 V, SDA 18, SCL 19

What you need

Teensy 4.1With header pins.
This boardAnd a USB lead.
A moduleFor example the Buzzer breakout.

Get started

This example sounds the Buzzer breakout.

Wiring: J1 contact 1 to 3.3 V; J1 contact 2 to 5 V; J1 contact 3 to signal 3; J1 contact 4 to signal 4; J1 contact 5 to signal 5; J1 contact 6 to signal 6; J1 contact 7 to signal 7; J1 contact 8 to signal 8; J1 contact 9 to signal 9; J1 contact 10 to GND.J1J1 on this boardBuzzer breakout 13.3 V1: 3.3 V 25 V2: 5 V 3signal 33: signal 3 4signal 44: signal 4 5signal 55: signal 5 6signal 66: signal 6 7signal 77: signal 7 8signal 88: signal 8 9signal 99: signal 9 10GND10: GND
Cable contact for contact with the power off; bridge the module JP1 pads 1–2 only. Equipment is drawn as a typical unit, not a specific model.
  1. Seat the Teensy

    Power off, USB end at the marked end.

  2. Prepare the module

    Bridge its JP1 pads 1–2 only.

  3. Cable

    Join host J1 to the module’s J1.

  4. Upload

    Select Teensy 4.1 and upload the program below.

    100 ms of sound every second.

Configuration

You wantModuleExample
Use a module from the TeensyYour Teensy program; not a Smoothieboard moduleSetup

Setup

Smoothieware is not involved: the Teensy is the host.

constexpr unsigned int BUZZER_PIN = 24;  // socket J1 contact 3
void setup() {
  digitalWrite(BUZZER_PIN, LOW);
  pinMode(BUZZER_PIN, OUTPUT);
}
void loop() {
  digitalWrite(BUZZER_PIN, HIGH); delay(100);
  digitalWrite(BUZZER_PIN, LOW);  delay(900);
}

How it works

Each Teensy signal reaches its socket through 100 Ω, with ESD protection. There is no level conversion or second processor.

Teensy signal then 100 Ω with ESD protection then Socket, no level conversion.Teensy signal100 Ω with ESD protectionSocketno level conversion
How the signals pass through this board.

Troubleshooting

SymptomCheck
Socket J1 deadIt needs a Teensy 4.1; a 4.0 does not reach those pins.
Serial2 or PWM conflictsJ6 contacts 7 and 8 are also Serial2.

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

For drilling a mounting plate or designing an enclosure. Positions are hole centres, in millimetres, measured from the top-left corner with the board seen from the component side.

Mounting drawing of the te, component side: outline 76 by 56 millimetres with 4 mounting holes and 3 cable-tie holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 76 56 0, 0 X Y 1 3.00, 3.00 2 73.00, 3.00 3 3.00, 53.00 4 73.00, 53.00 cable tie Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 76 × 56 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
13.003.003.2 mm, not platedMounting, M3 screw
273.003.003.2 mm, not platedMounting, M3 screw
33.0053.003.2 mm, not platedMounting, M3 screw
473.0053.003.2 mm, not platedMounting, M3 screw
–3.008.502.5 mm, not platedCable tie
–69.5042.502.5 mm, not platedCable tie
–73.5044.002.5 mm, not platedCable tie

Appendix: electrical specifications

Limits for the whole board.

ParameterApplies toLowerNominalUpperBasis and conditions
3.3 V loadAll sockets——100 mATotal
5 V loadAll sockets——500 mATotal
SignalsAll—3.3 V—Not 5 V tolerant

Appendix: datasheets

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

First page of the TPD4E1U06 datasheet
TPD4E1U06 four-channel ESD protection array — Texas Instruments, 27 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.