Skip to content
/ usbmux Public

USB 2.0 two input channel multiplexer based on TS3USB221

License

Notifications You must be signed in to change notification settings

luk6xff/usbmux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • Install vscode with platformio plugin (Versions: vscode[1.49.2], platformio[Core:5.0.1, Home:3.3.0])

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

  • HW pinout defined at: usbmux/app/src/hw_config.h
  • Board connector pinout: usbmux_board_pinout

Schematics

usbmux_board_schematics

More random pics

  • Completed device: usbmux_completed
  • UART(Serial) CLI: usbmux_web1
  • Web server: usbmux_web1 usbmux_web2

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

About

USB 2.0 two input channel multiplexer based on TS3USB221

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published