luk6xff / usbmux

USB 2.0 two input channel multiplexer based on TS3USB221
MIT License
4 stars 5 forks source link
arduino esp8266 ts3usb221 usbmux

usbmux

USB 2.0 two input channel multiplexer based on TS3USB221

Details

A simple USB2.0 2-channel multiplexer controlled using: UART(Serial) CLI and HTTP server available running at: usbmux.local.

Instalation

Building and flashing

# Build an application
platformio run

# Build filesystem
platformio run --target buildfs --environment d1_mini

# Upload filesystem image
platformio run --target uploadfs --environment d1_mini

# Upload the application binary
platformio run --target upload

# All in one-liner
platformio run  &&  platformio run --target buildfs --environment d1_mini  &&  platformio run --target uploadfs --environment d1_mini  &&  platformio run --target upload

Pinout

Schematics

usbmux_board_schematics

More random pics

BOM

PART NAME SHOP LINK DATASHEET QUANTITY PRICE [PLN]
ESP8266 WEMOS D1-MINI AliExpress ESP8266-D1MINI 1 7.99
TS3USB221 - USB 2.0 Mux AliExpress TS3USB221 1 6.00
Relay module AliExpress - 1 2.09
CASE type: Z23 Allegro Z23 1 3.39
Micro USB 2.0 male connector Allegro - 1 1.20
Mini USB 2.0 male connector Allegro - 1 1.40
Micro USB 2.0 female to DIP Adapter Allegro - 1 2.29
Mini USB 2.0 female to DIP Adapter Allegro - 1 2.29
= 26.65