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

Thread: USB **HID** Shield ?

  1. #1

    USB **HID** Shield ?

    I'm in need of a USB HID Shield for Teensy 4.1 - not a Host Shield

    Retail, or github.

    Yes, I do have two separate USB Hosts that I need to connect to at the same time, from the same Teensy 4.1

    I am assuming I cannot use the USB Host adapter (no OTG), plus the Host connector is already spoken for.

    It looks like this was more common when Arduino boards were on-board serial, no USB?
    Solutions based on AT90USB162?

    Stuff like this?
    http://code.rancidbacon.com/ProjectLogArduinoUSB

    Is there anything else? Or is that not a thing at all these days?

  2. #2
    Senior Member blackketter's Avatar
    Join Date
    May 2015
    Location
    San Francisco
    Posts
    257
    I've been thinking about this problem too and decided to use a second Arduino board (Teensy LC?) and connect the two of them via a serial or i2c connection. Then it's a small matter of software.

  3. #3
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,637
    You mean, you wanted to use 2nd USB on T4.1 (or 4.0, or even T3.6) as USB device?
    yes, you can do that with purely SW.

    I started with that in https://github.com/WMXZ-EU/USB2 (for T3.6) as I wanted on T3.6 480 MBit transfer speed
    As 2nd USB on T3.6 is similar to 2nd port of T4.x, further porting to T4.x should be possible with little pain
    obviously you must add all device SW

  4. #4
    Quote Originally Posted by WMXZ View Post
    You mean, you wanted to use 2nd USB on T4.1 (or 4.0, or even T3.6) as USB device?
    That's useful for part of my needs, thanks!

    But it does not cover all uses cases

    I always have to connect to two separate USB hosts using two physical connectors.
    Plus, in one important use case, I *have* to attach another separate USB device to the Teensy 4.1 2nd USB acting as Host.

    So I still need that 3rd USB plug, and my understanding is that will have to be a separate USB chip.

  5. #5
    Quote Originally Posted by blackketter View Post
    use a second Arduino board (Teensy LC?) and connect the two of them via a serial or i2c connection
    You know, that is not a bad idea at all!

    Can't find any explicit confirmation that LC has USB Raw HID and HID

    https://forum.pjrc.com/threads/59565-USB-Raw-HID

    but would assume so as bootloader uses it.

    Have to think about bandwidth on the teensy-to-teensy I2C/serial - Teensy 4.1 not in the tables here yet

    https://www.pjrc.com/teensy/td_uart.html
    https://forum.pjrc.com/threads/29232...and-Teensy-3-1

    31250 baud MIDI - given common Teensy uses - might be a safe bet.
    That'd give me about 30 bytes per HID refresh at 1kHz even if that's the best I get.

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,814
    Quote Originally Posted by b2020 View Post
    Can't find any explicit confirmation that LC has USB Raw HID and HID
    In Arduino, click Tools > Boards and select Teensy LC.

    Then click Tools > USB Type to see the USB device configurations which are supported on Teensy LC.

    If you select other Teensy models, you can see which USB Type options they have. For example, you'll see the more powerful boards support USB Audio, but Teensy LC does not.

  7. #7
    ... and the IDE let's me do that even w/o a Teensy LC attached

    Just ordered mine yesterday. Thanks!

Posting Permissions

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