OSHPARK
  • About Us
  • Services
  • Support
  • Sharing
  • Log in
  • Sign up
  • OSHPARK
  • About Us
  • Services
  • Support
  • Sharing
  • Log in

USB Interruptor

author: PaulStoffregen
Top
Bottom

2 layer board of 1.70 x 0.70 inches (43.2 x 17.8 mm)
Uploaded: February 17, 2017
Shared: February 25, 2017
Total Price: $5.95

USB Interruptor

This simple board plugs inline with a USB cable. It always passes the 5V power and normally passes the USB data signals. But when you press the button, the signals are momentarily disconnected.

Why would anyone want or need such a things? Well, for the last few months I’ve been developing a USB Host Library for powerful but complex EHCI USB port in Teensy 3.6. After several false starts and re-reading the USB 2.0 and EHCI 1.0 specs and datasheet over and over (did I mention this 480 Mbit/sec USB host port is powerful but really complex), it’s finally starting to come together.

Now I’m at the stage where it’s time to begin work on code to handle USB disconnect events. When you unplug the cable, the ECHI work queues need to be removed, periodic schedule bandwidth allocation/planning needs to be undone, memory needs to be freed (hopefully it’s all findable from linked lists), hub/port status needs to be updated, and probably a ton of other stuff needs to happen that I haven’t even considered yet…

Reaching over to physically unplug the USB cable gets old quickly! Really, really old, both hands off my keyboard… right when trying to focus. With 12 Mbit/sec USB ordinary switches can usually work, but this is 480 Mbit/sec and I’m already running it through a USB protocol analyzer and a few cables plugged in tandem, leaving not much signal quality margin left. So I made this handy little board with a proper USB 2.0 high speed mux chip. The control signal is just 3.3V logic, so I might even wire it up to something to automate the process.

Admittedly, not many people develop USB host drivers and software stacks (it’s turning out to be probably the toughest coding I’ve ever done), so this little board might not have really wide applications. But here’s all the details anyway. ;-)

Update: check out this similar board, using slightly different parts.

Parts Placement

Bill Of Materials

1   Resistor, 10K, 805              RHM10.0KCHCT-ND
1   Capacitor, 0.1uF, 805           478-1395-1-ND
3   Capacitor, 1uF, 805             587-1281-1-ND
1   Diode, Schottky, B120           B120-E3/5ATGICT-ND
1   MCP1700 3.3V regulator          MCP1700T3302ETTCT-ND
1   FSUSB30 USB Mux Switch          FSUSB30MUXCT-ND
1   USB Connector, Mini-B           609-4701-1-ND
1   USB Connector, Std A            ED90065-ND
1   Pushbutton                      P8016S-ND

How to use Digikey’s website to find alternate parts when any of these aren’t in stock.

USB Interruptor

This simple board plugs inline with a USB cable. It always passes the 5V power and normally passes the USB data signals. But when you press the button, the signals are momentarily disconnected.

Why would anyone want or need such a things? Well, for the last few months I’ve been developing a USB Host Library for powerful but complex EHCI USB port in Teensy 3.6. After several false starts and re-reading the USB 2.0 and EHCI 1.0 specs and datasheet over and over (did I mention this 480 Mbit/sec USB host port is powerful but really complex), it’s finally starting to come together.

Now I’m at the stage where it’s time to begin work on code to handle USB disconnect events. When you unplug the cable, the ECHI work queues need to be removed, periodic schedule bandwidth allocation/planning needs to be undone, memory needs to be freed (hopefully it’s all findable from linked lists), hub/port status needs to be updated, and probably a ton of other stuff needs to happen that I haven’t even considered yet…

Reaching over to physically unplug the USB cable gets old quickly! Really, really old, both hands off my keyboard… right when trying to focus. With 12 Mbit/sec USB ordinary switches can usually work, but this is 480 Mbit/sec and I’m already running it through a USB protocol analyzer and a few cables plugged in tandem, leaving not much signal quality margin left. So I made this handy little board with a proper USB 2.0 high speed mux chip. The control signal is just 3.3V logic, so I might even wire it up to something to automate the process.

Admittedly, not many people develop USB host drivers and software stacks (it’s turning out to be probably the toughest coding I’ve ever done), so this little board might not have really wide applications. But here’s all the details anyway. ;-)

Update: check out this similar board, using slightly different parts.

Parts Placement

Bill Of Materials

1   Resistor, 10K, 805              RHM10.0KCHCT-ND
1   Capacitor, 0.1uF, 805           478-1395-1-ND
3   Capacitor, 1uF, 805             587-1281-1-ND
1   Diode, Schottky, B120           B120-E3/5ATGICT-ND
1   MCP1700 3.3V regulator          MCP1700T3302ETTCT-ND
1   FSUSB30 USB Mux Switch          FSUSB30MUXCT-ND
1   USB Connector, Mini-B           609-4701-1-ND
1   USB Connector, Std A            ED90065-ND
1   Pushbutton                      P8016S-ND

How to use Digikey’s website to find alternate parts when any of these aren’t in stock.

Top
Bottom
  • Actions

      Ordering shared project

      Hey there! Before ordering, make sure you have all the info you need to complete and use this design. This usually means a component list, and sometimes additional information such as assembly notes, source code, or usage guides.
      Since this is a project designed by a community member, it may contain design errors that prevent it from working as intended. OSH Park cannot place any guarantees about the functionality or correctness of the design.
      Order Board
    • Order Board
    • Download
    • Permalink
    • Embed link
Embeddable link to order this shared Project
  • COMPANY
  • About Us
  • Blog
  • Shop
  • SERVICES
  • Upload Your File
  • Prototypes
  • HELP
  • Support
  • If you can't find what you're looking for, please contact us at [email protected]
  • CONNECT
  • Shared Projects
  • Log in / Sign up
Whaleshark white
Follow us
© Copyright 2025 OSH Park, LLC | Privacy