This guide no longer works with the original Trinket - we recommend upgrading to the Adafruit Trinket M0 (Product #3500) which has built in USB and does not need any special hacks to work!
Another way of communicating with the Trinket uses HID to pass raw USB messages back and forth. This technique was created by Ray's Hobby.
The key difference between Ray's method and the method discussed above is:
- Ray's method uses a HID profile, thus no driver installations are required at all
- Compared to the Fake USB method uses a custom profile with a libusb driver
- Ray's method uses a customized serial terminal that he wrote himself
- The Fake USB method works with most generic serial terminal programs, but requires running a background application to act as a "bridge"
Ray's code is not specifically designed for Trinket, so to make it work with Trinket, I have forked Ray's github for this project and made modifications to his code so that it also works with the Trinket.
You can download all the files from the github repo above.
The only changes are:
When you have downloaded all the files, install the Arduino library as usual. You can then try compiling your own sketches using the library, or try running one of the provided example sketches.
Then to use the serial terminal, either run the host software that you've already downloaded. You may use Processing.org to open the host software, or use one of the provided precompiled executables specific to your operating system.
The only changes are:
- changed usbconfig.h to include different pin assignments
- added the oscillator calibration function required for ATtiny
- adjusted clock speed for Trinket
When you have downloaded all the files, install the Arduino library as usual. You can then try compiling your own sketches using the library, or try running one of the provided example sketches.
Then to use the serial terminal, either run the host software that you've already downloaded. You may use Processing.org to open the host software, or use one of the provided precompiled executables specific to your operating system.
Ray's method must use his own serial terminal, it will not work with Arduino IDE's own serial terminal, it will not work with Hyperterminal or TeraTerm or anything else. It will only work with Ray's own serial terminal application.
Page last edited November 05, 2013
Text editor powered by tinymce.