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

Thread: Teensy 3.6: USB host female cable in EU?

  1. #1
    Member
    Join Date
    Oct 2015
    Location
    Roma (IT, UE)
    Posts
    72

    Teensy 3.6: USB host female cable in EU?

    Hello,
    I can't seem to find a proper USB host female cable for my new Teensy 3.6 (with separate pins, to be connected to Teensy headers), here in EU.
    I only find (useless) complete cables with USB connectors at both ends.
    Purchasing from overseas is not a viable option unfortunately.

    Any suggestion/link?

    Thanks a lot!

    Fernando

  2. #2
    Member
    Join Date
    Nov 2017
    Location
    Belgium
    Posts
    33
    shipped from Germany:
    DELOCK 83291 :: USB 2.0 type A socket to pin header cable
    https://www.reichelt.com/it/en/?ARTI...SABEgJa6_D_BwE

  3. #3
    Member
    Join Date
    Oct 2015
    Location
    Roma (IT, UE)
    Posts
    72
    Thank you!!

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,369
    The 5 pins on for USB host on Teensy 3.6 are the same as the USB2 connectors on virtually all PC motherboards. Usually those connectors have 10 pins for two USB ports.

    Click image for larger version. 

Name:	usb2.jpg 
Views:	20 
Size:	43.7 KB 
ID:	12498

    Almost any USB2 motherboard-to-panel cable can work. If it has 10 pins, just plug one side into the 5 pins on Teensy 3.6.

  5. #5
    Member
    Join Date
    Oct 2015
    Location
    Roma (IT, UE)
    Posts
    72
    Thanks Paul!!

  6. #6
    Member
    Join Date
    Oct 2015
    Location
    Roma (IT, UE)
    Posts
    72
    Quote Originally Posted by neurofun View Post
    shipped from Germany:
    DELOCK 83291 :: USB 2.0 type A socket to pin header cable
    https://www.reichelt.com/it/en/?ARTI...SABEgJa6_D_BwE
    It arrived, but unfortunately it's not right for the Teensy.
    It only has 4 pins instead of 5.

  7. #7
    Senior Member Ben's Avatar
    Join Date
    Jul 2013
    Location
    Germany
    Posts
    401
    The two pins furthest from the micro-usb connector on the Teensy are both grounded, you only need one of those. Be careful with orientation when plugging in. 5V is closest to the onboard micro-usb port.
    Last edited by Ben; 01-19-2018 at 04:49 PM. Reason: typos

  8. #8
    Member
    Join Date
    Nov 2017
    Location
    Belgium
    Posts
    33
    same color code
    Click image for larger version. 

Name:	20180119_185619.jpg 
Views:	31 
Size:	190.1 KB 
ID:	12673

  9. #9
    Member
    Join Date
    Oct 2015
    Location
    Roma (IT, UE)
    Posts
    72
    Quote Originally Posted by Ben View Post
    The two pins furthest from the micro-usb connector on the Teensy are both grounded, you only need one of those. Be careful with orientation when plugging in. 5V is closest to the onboard micro-usb port.
    So I just need 4 pins to get USB Host functionality?

  10. #10
    Senior Member Ben's Avatar
    Join Date
    Jul 2013
    Location
    Germany
    Posts
    401
    Quote Originally Posted by XFer View Post
    So I just need 4 pins to get USB Host functionality?
    Yes. In the picture neurofun posted, carefully look at the connector. There are only four wires, the connectors lowest position is empty.

    You can also see this on the teensy pinout diagram when looking at the teeensy 3.6 back side. The five pins are labeled GND, GND, DP, DM, 5V. As you can see, GND is there twice, you only need to connect to one of those (usually one chooses the one closer to the other pins).

    Ben

  11. #11
    Member
    Join Date
    Oct 2015
    Location
    Roma (IT, UE)
    Posts
    72
    Excellent news, thanks!
    I thought the fifth pin was needed to switch between USB Host and USB Device mode (OTG port).

  12. #12
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,369
    Nope, the 5th pin is merely for the cable's shield, which connects to the same GND and the black wire in the cable.

    I didn't make this up. It's the de-facto standard for USB2 host that's been used on PC motherboards for many years.

    While designing Teensy 3.6, many many times I thought about just putting the 4 necessary pads on the board, or using a smaller connector and we would get custom cables made. Those 5 pins take up an enormous amount of the very limited space on Teensy 3.6, but in the end it seemed worthwhile to put the full size all-5 layout on the board so these very common cables would be usable.

    When/if we ever make a Teensy model in the 28 pin form factor which has USB host, I'm sure some other much smaller connection will be needed to make it fit....

  13. #13
    Member
    Join Date
    Oct 2015
    Location
    Roma (IT, UE)
    Posts
    72
    Just for the record, in my case I found it harder to source 5-pins USB cables than 4-pins ones. Just my 2 cents.

Posting Permissions

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