# Trinket Fake USB Serial

## Overview

Warning: 

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**. 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.**

Danger: 

Danger: 

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: ![](https://cdn-learn.adafruit.com/assets/assets/000/011/618/medium800/trinket_flowchart.png?1381725137)

Below is a demonstration video (the code sketch is in the Usage Demo section of this tutorial, the video should be viewed in 720p and full screen if you want to read the text on screen)

http://www.youtube.com/watch?v=Tt38wUjvH1k

- [Next Page](https://learn.adafruit.com/trinket-fake-usb-serial/how-it-works.md)

## Featured Products

### Adafruit Trinket - Mini Microcontroller - 5V Logic

[Adafruit Trinket - Mini Microcontroller - 5V Logic](https://www.adafruit.com/product/1501)
 **Deprecation Warning: The Trinket bit-bang USB technique it uses doesn't work as well as it did in 2014, many modern computers won't work well. So while we still carry the Trinket so that people can maintain some older projects, we no longer recommend it.** <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/1501)
[Related Guides to the Product](https://learn.adafruit.com/products/1501/guides)
### Trinket 6-Pack - 3 x 3.3V and 3 x 5V Trinkets

[Trinket 6-Pack - 3 x 3.3V and 3 x 5V Trinkets](https://www.adafruit.com/product/1509)
**[We're no longer selling this pack of Trinket 3V+5V, we recommend our Trinket M0 which has better USB support, way faster processor, a ton more memory and CircuitPython support!](https://www.adafruit.com/product/3500)**

&nbsp;

Be the life of your...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1509)
[Related Guides to the Product](https://learn.adafruit.com/products/1509/guides)

## Related Guides

- [Trinket (& Gemma) Servo Control](https://learn.adafruit.com/trinket-gemma-servo-control.md)
- [IRIS LED and Prop Guards](https://learn.adafruit.com/iris-leds-prop-guards.md)
- [NeoPixel Bracelet](https://learn.adafruit.com/neopixel-bracelet.md)
- [Let’s Put LEDs in Things!](https://learn.adafruit.com/lets-put-leds-in-things.md)
- [2014 Halloween 3D Printed Projects Roundup](https://learn.adafruit.com/2014-halloween-3d-printed-projects-roundup.md)
- [Galaxy Pendant](https://learn.adafruit.com/life-proof-led-necklace.md)
- [Trinket USB Keyboard](https://learn.adafruit.com/trinket-usb-keyboard.md)
- [Halo Energy Sword by Mattel NeoPixel Upgrade](https://learn.adafruit.com/halo-energy-sword-by-mattel-neopixel-upgrade.md)
- [Tap Tempo Trinket](https://learn.adafruit.com/tap-tempo-trinket.md)
- [Free-Wired 3x3x3 NeoPixel Cube](https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube.md)
- [3D Printed Adabot Figurine](https://learn.adafruit.com/3d-printed-adabot-figurine.md)
- [Kaleidoscope Eyes (Trinket-Powered NeoPixel LED Ring Goggles)](https://learn.adafruit.com/kaleidoscope-eyes-neopixel-led-goggles-trinket-gemma.md)
- [Zelda: Breath of the Wild – 3D Printed Guardian Sword with NeoPixel LEDs](https://learn.adafruit.com/breath-of-the-wild-guardian-sword-led-3d-printed.md)
- [Introducing Trinket](https://learn.adafruit.com/introducing-trinket.md)
- [Trinket React Counter](https://learn.adafruit.com/trinket-react-counter.md)
