Adafruit Trinket Software Serial Number

Posted on

The Trinket has a USB port that is used for bootloading. But the Trinket can only become a low-speed USB device because of its limited hardware. USB standards prevents low speed USB devices to truly act as virtual serial ports, which is why we cannot use a serial terminal to communicate with the Trinket directly. However, there's a work-around for this problem. In Windows, you can emulate a fake serial port bridge using a utility named com0com.

  1. Adafruit Trinket Set Up

Adafruit Trinket Set Up

In this tutorial, you'll see how we can write a middle-man program that communicates with the Trinket and com0com, so that a serial terminal (such as the one built into Arduino IDE) can talk with the other end of com0com. There are two pieces of code involved here:. Arduino library named TrinketFakeUsbSerial. A PC app named TrinketFakeUsbSerialHostSW The other pieces of software involved.

LibUsbDotNet, which makes it easy for me to use libusb-win32 to write TrinketFakeUsbSerialHostSW for Windows. com0com, which emulates the two fake serial ports (only required on Windows). Some sort of serial terminal (Arduino IDE, Hyperterminal, Teraterm, RealTerm, Putty, etc) Below is a diagram showing how data flows between the different components. You have been successfully subscribed to the Notification List for this product and will therefore receive an e-mail from us when it is back in stock! For security reasons, an e-mail has been sent to you acknowledging your subscription. Please remember that this subscription will not result in you receiving any e-mail from us about anything other than the restocking of this item. If, for any reason, you would like to unsubscribe from the Notification List for this product you will find details of how to do so in the e-mail that has just been sent to you!

Trinket

Overview 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. Add a USB serial port to your Trinket using software.