Are there examples for using Teensy 3.1 as a USB Host?

Status
Not open for further replies.

bcg

New member
Hi guys, this is my first post on the forum so I hope I don't violate anty rules of etiquette, and I apologize in advance if I do.

I am interested in using the USB features of the Teensy 3.1 in USB Host mode, and from the info card that was included as well as the processor's datasheet it appears this should be possible. In my case, I'm hoping to be able to attach a HID device like a keyboard to use as input.

I'd like to avoid using separate hardware such as the USB Host Shield, though that is my backup if I can't make the onboard hardware of the Teensy get the job done.

Are there any code examples for using Teensy like this? If not, how feasible would it be for me to write a library to accomplish this? More specifically, from a hardware standpoint is Teensy the right tool for the job, or am I barking up the wrong tree with this line of thinking?

I tried the Google and I RTFM as best I could but if there is something obvious I missed, please feel free to make fun of me (just don't forget to post a link to what I've missed!)

Thanks in advance for any help you can provide.
 
Welcome! Wish I had better news for you, but as far as I know, the software to make USB host mode work isn't available. Writing it would be a very advanced programming challenge. There is a USB host shield that matches the form factor of the Teensy 3.1.

If all you want to do is attach a keyboard and mouse, you might be able to get a quick result using the old PS/2 interface.

Regarding whether or not the Teensy is the right tool for the job, more detail might be helpful.
 
I believe that USB host support is planned for some time in the future, which is why there is space to solder a large capacitor on the back which USB host needs. However, the support has not been added yet and as far as I know it is not being worked on currently. Adding support yourself is probably a fairly large task (but don't let that dissuade you if you are confident and determined!)

The Circuits@Home USB Host library does support Teensy 3.x, with the Arduino Pro Mini sheild. Teensy 2.0 is also supported.
 
Status
Not open for further replies.
Back
Top