Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: adding a USB Host connector to teensy 4.0

  1. #1

    adding a USB Host connector to teensy 4.0

    hi all, i m a beginner in electronic and I d like to add a USB Host capability to the midi interface of my controller, Paul told me on Facebook that I have to add a tpd3s014 to my schematic but don t know how to wire it, can someone help me with it please?
    here is what I done is it good? do the 1 and 3 pin of the tpd3s014 goes to 3.3V or to 5V? sorry for the beginner question I have everything to learn!Click image for larger version. 

Name:	Capture d’écran 2020-10-26 à 21.37.12.png 
Views:	14 
Size:	31.3 KB 
ID:	22211

    here is a picture of my controller that I m pretty glad to have built!Click image for larger version. 

Name:	122779519_1771621136345251_4264733390432303272_n.jpg 
Views:	18 
Size:	97.3 KB 
ID:	22212

  2. #2
    Senior Member blackketter's Avatar
    Join Date
    May 2015
    San Francisco
    Take a look at the Teensy 4.1 schematic here: for a reference.

    It may be easier for you to replace the Teensy 4.0 in your system with a Teensy 4.1, which already has the USB host circuitry. You'd just need to add a cable with host connector.

    Alternatively, there are a couple of Teensy 4.0 breakout boards that have USB host connectors on them that you could use.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    You have 2 options.

    1: Connect EN to 3.3V, so the USB port gets power whenever 3.3V power is on.

    2: Connect EN to a digital I/O pin, so you can turn the USB power on/off under software control. If you do this, don't forget to use pinMode and digitalWrite in your program to turn on the USB power before you call USBHost begin().

    Either is perfectly fine. Teensy 4.1 uses approach #2 and the library automatically drives that digital pin high.

  4. #4
    Thanks a lot for the answers!!!

  5. #5
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Ayer Massachussetts
    Here is a list of Teensy 4.0 break-out boards (Loglow/Talldog, Blackketter, and Trainer4EDU had boards with USB host IIRC):

    But frankly as Blackketter says, it is probably better to restart with a Teensy 4.1 instead, as it would likely take several weeks to get the PCBs made, and there is a bunch of soldering to do to connect the Teensy to the PCB.

    You could just solder 2 wires to the pads under the Teensy 4.0 and use ground and VIN pads, and make your own connector.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts