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

Thread: USBHOST_T36 library is not working on Teensy 4.1 Board

  1. #1
    Junior Member
    Join Date
    Oct 2020
    Posts
    4

    USBHOST_T36 library is not working on Teensy 4.1 Board

    Hi all,
    I have a Teensy 4.1 board. I would like to use 5V and GND pins using USB Host.
    I have downloaded USBHOST_T36 library and uploaded my 4.1 board but throwed an error below:

    #error "USBHost_t36 only works with Teensy 3.6. Please select it in Tools > Boards"
    I need 5V for my project. How can i receive 5V from USB host pin or another pins?

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,916
    USBHost is included in TeensyDuino. The versions included in TD 1.53 is designed to work with T_3.6 and T_4.x - sounds like an update is needed.

    And remove the local copy. Though TD 1.54b2 has an update - ... though is may get an update for beta 3

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,088
    Looks like this was duplicated on github

    https://github.com/PaulStoffregen/USBHost_t36/issues/41

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,088
    This is very likely an old or corrupted software install.

    Please download a fresh copy of Arduino 1.8.13 and Teensduino 1.53. Follow the install steps on this page:

    https://www.pjrc.com/teensy/td_download.html

  5. #5
    So just to clarify, does USBHost_t36 work on Teensy 4.1? I don't see a definitive answer here.

  6. #6
    Senior Member
    Join Date
    Apr 2019
    Posts
    142
    Yes it does.

  7. #7
    Senior Member
    Join Date
    Apr 2020
    Location
    DFW area in Texas
    Posts
    244
    Quote Originally Posted by lukexyz View Post
    So just to clarify, does USBHost_t36 work on Teensy 4.1? I don't see a definitive answer here.
    Yes, USBHost_t36 works very well on a Teensy 4.1. I have used it in the original version of my TeensyMIDIPolySynth (hardware pots, switches, pushbuttons, & LEDs), as well as in the enhanced version that I am currently working on (full digital control using an RA8875 touchpanel display w/ displayed sliders, buttons, & LEDs).

    Good luck & have fun !!

    Mark J Culross
    KD5RXT

  8. #8
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,088
    Yup, USBHost_t36 definitely does work on Teensy 4.1. Well, unless you use an old copy from before Feb 8, 2020, when Teensy 4.1 support was added. That's almost certainly what went wrong for the OP here.


    Quote Originally Posted by lukexyz View Post
    I don't see a definitive answer here.
    Aside from these forum answers, you can also find the definitive answer on the Teensy 4.1 product page under Communication > USB Host.

    Click image for larger version. 

Name:	screenshot.png 
Views:	17 
Size:	246.8 KB 
ID:	24111

Posting Permissions

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