Skip to the content
4 layers100 × 80 mmR2022-12, the printed circuit board in 3D

Cascading, per port power switching usb2.0-HS 7 port hub

Size
100 × 80 mm
Copper layers
4
Thickness
1.6 mm
Parts
138
Nets
111
Pads
533
Tracks, vias
1,262, 281
Pours
12
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
20 Mar 2020
Updated
21 Dec 2023

Overview

R2022-12 is an open-source printed circuit board by karlp, from the karlp/hubbish repository on GitHub. It is a 4-layer board of 100 × 80 mm with 138 parts on 111 nets, routed with 1,262 tracks and 281 vias.

It is built around the SIC437AED, USB2517I-JZX-TR and SRV05-4-P-T7, with the M24C02-WMN6TP, AMS1117-3.3V and CC0603KRX7R9BB104 among its other parts. Its parts include 48 capacitors, 35 resistors, 19 ICs, 12 diodes and 8 connectors.

Main components

12

README

README.md

Hubbish is not rubbish.

Hubbish is a USB 2.0 HS hub. And? It has per port power switching and overrcurrent shutoff. And? It is designed for cascading, with 6 ports for user devices on the front, and ports on each side for directly plugging together. And? That's it.

but why.gif?

Per port power switching was a goal. Also, "this should be really simple!" Also, to make the physical layout sensible for the desired use case. Initially, this project was conceived to be part of regression testing the USB stack for libopencm3. The minimal test setup there required 17 USB devices. This is also why the ports are paired. It's setup to have one port for the DUT and one for the test driver. They are otherwise completely independent.

That's all folks!

Design goals

Cheap as shit, but fully functional. So, cheapest china compatible parts for everything, but to avoid running into hub depth limits, and make config simpler, still using a 7 port hub, not attempting to cascade 4 port hubs. Given that the original design goal requires 3 stacked hubs for 18 test ports, caascading hubs internally was not appealing.

Still, doing usb-hs on 2 layers requires fat traces and isolation to do properly, so this setup is currently targetting jlcpcb's cheap as shit 4 layer 2313 stackup.

Oh, and design it to actually go in a case.

Origins

This project was split out from the libopencm3-tests repository when it became apparent that it was it's own monster.

Versions

"r4" r2022-12

Status

Only on paper, mostly, uses a proper matched pair to "correctly" implement the auto vbus/5v switchiver. (I misunderstood the use of the matched pair, and just used two discrete transistors in overzealous BOM optimization. TBD: fixes the pwoer good indicator on the main supply as well? Still need to work on the "local power" portion a bit more fully? (or double check it?)

"r3" r2022-10

Improvements

After a long hiatus, I decided to get back to it, and not even bother assembling the r2 boards I had gotten back. I had already found some errors, which I can't remember entirely right now, so we just moved forward to r3: This has a very overhauled BOM, to match JLC's assembly service, rather than just something to assemble myself by hand. Some footprints change to suit this as well.

Status

This was built and assembled by JLC. It works ok. It doesn't switch between bus powered and self powered very well, iirc. The hub's "local power" flag isn't handled properly, and that's just my error. The board still uses optional A-male or B-micro for the upstream USB connection, and "obviously" that should all be PD and type-C these days :) maybe one day... Finally, the dual colour leds chosen aren't really very good at showing two colours for low speed / full speed / high speed, particular the difference between FS and HS, which is the more interesting one. Should revisit that, but I had enough on with this revision to not do more. The "Power Good" LED for the onboard DCDC supply doesn't work properly either, again, my error, but not really critical. Finally, the polarity protection FET is only rated to Vgs of 30V. It's suggested (rightly) that this is really pushing it for a 24V design, and I should look for a better option there.

But, the 40W supply works! This is the biggest DCDC supply I'd ever made myself. (FIXME - add the picture of all the usb load testers plugged in) And not just works, it works and keeps cool, and you can deliver all that power to all 7 downstream ports, up to the limit of each of the load switches.

This design also just decided that programming the EEPROM was the right thing to do, as it also lets you arrange the LEDs nicely to match the ports, and provide proper serial numbers, which are also an important part of a big cascaded port power switching design. [generatei2c.py] is a python script that generates commands for use with i2cutils to program the eeprom via the header. I used the i2c_tools example on an ESP32 devboard to do this. It's... very simplistic, but it's enough.

  • r2022-10 board view
  • Schematic-r3
  • Load testing all ports at once. (I have thermal images, but have lost them... will have to retest) r2022-10-load-testing-view

"r2" r2021-03 (lol, finished and ordered 2022-06)

Improvements:

Adds a 30-40ish Watt power supply. Inductor is rated to 9A, regulator to 12A. Per port power switches are still 1A nominal, so nominally 7x5x1 = 35W for the ports plus around .5x3.3 for the hub itself, or an extra say 2W.

Resizes to 100x80mm so cheaper manufacturing again. We're no longer trying to find an off the shelf case. Places like 3d craft cloud have gotten so cheap I'm going to just make a custom case and have it printed on demand.

What's it look like? r2022-06 board view

Bugs

This doesn't have ground connected for two caps on the 3v3 rail, and would have needed some bodge wires, but I seem to recall there being something else, to the point that I decided to not even bother assembling it, and just move on to a rev3, designed for JLC assembly.

r2020-03

What's it look like? r1 board view

Bugs
  1. Missing a serial resistor for the crystal. Doesn't enumerate the hub without it.
  2. Needs a jumper wire if yout want to actually run it as a bus powered hub for testing.
  3. Port numbers are super wonky.
  4. .... doesn't actually work? I suspect I just have assembly issues, but...
  5. Bigger than 100x100, which fits the Bud case nicely, and didn't matter when 4L was always just size based but now that jlc is doing 4L super cheap for under 100x100, this can be considered a bug
  6. vertical (z axis) positioning of the usptream usb-a-male and downstream usb-a-female for chaining doesn't align properly.

Parts

138
QtyValueFootprintReferences
14100nFCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C8, C10, C11, C12, C14, C15, C16, C18, C19, C41, C43
141uFCapacitor_SMD:C_0603_1608MetricC6, C7, C9, C13, C17, C20, C21, C22, C23, C24, C25, C26, C39, C40
1310kResistor_SMD:R_0603_1608MetricR2, R3, R4, R5, R6, R7, R8, R14, R15, R16, R25, R33, R34
9330Resistor_SMD:R_0603_1608MetricR1, R10, R18, R19, R20, R21, R22, R23, R24
8NUP4202Package_TO_SOT_SMD:SOT-23-6U2, U11, U12, U13, U14, U15, U16, U17
7100uFCapacitor_SMD:C_1206_3216MetricC27, C28, C29, C30, C31, C32, C33
7APL3511CPackage_TO_SOT_SMD:SOT-23-5U4, U5, U6, U7, U8, U9, U10
7LTST-C195KGJRKTLED_Dual:T1615_LiteOn_LTST_C195xD4, D5, D6, D7, D8, D9, D10
610uFCapacitor_SMD:C_0805_2012MetricC42, C44, C45, C46, C47, C48
410uF/30+Capacitor_SMD:C_1206_3216MetricC34, C35, C36, C37
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
4TestPointet-parts:TestPoint_Plated_Hole_0.6_D0.8mmTP1, TP2, TP3, TP4
3100kResistor_SMD:R_0603_1608MetricR9, R12, R13
3USB_A_StackedConnector_USB:USB_A_Wuerth_61400826021_Horizontal_StackedJ5, J6, J7
220kResistor_SMD:R_0603_1608MetricR30, R35
233pFCapacitor_SMD:C_0603_1608MetricC4, C5
2DNPResistor_SMD:R_0603_1608MetricR26, R28
2HSM6115Package_SO:SOIC-8_3.9x4.9mm_P1.27mmQ4, Q5
2Jumper_2_OpenTestPoint:TestPoint_2Pads_Pitch2.54mm_Drill0.8mmJP1, JP2
10Resistor_SMD:R_0603_1608MetricR31
11.5uHInductor_SMD:L_Chilisin_BMRx00060630L1
1100nF/30+Capacitor_SMD:C_0603_1608MetricC38
112kResistor_SMD:R_0603_1608MetricR17
11MResistor_SMD:R_0603_1608MetricR11
1200kResistor_SMD:R_0603_1608MetricR27
124MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
12k i2c eepromPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1510kResistor_SMD:R_0603_1608MetricR29
175kResistor_SMD:R_0603_1608MetricR32
1AMS1117-33Package_TO_SOT_SMD:SOT-223-3_TabPin2U19
1AO3401APackage_TO_SOT_SMD:SOT-23Q6
1BCM857BSPackage_TO_SOT_SMD:SOT-363_SC-70-6Q2
1Conn_01x03_MaleConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1Conn_01x06Connector_Phoenix_MSTB:PhoenixContact_MSTBA_2,5_6-G-5,08_1x06_P5.08mm_HorizontalJ8
1DF2S6.2FS,L3MDiode_SMD:D_SOD-923D12
1HS1ALED_SMD:LED_0805_2012MetricD2
1HS1BLED_SMD:LED_0805_2012MetricD1
1SM400xDiode_SMD:D_SOD-123FD3
1SMF24ADiode_SMD:D_SOD-123FD11
1SiC437AEDPackage_DFN_QFN:Vishay_MLP-44L_4x4U18
1USB2517Package_DFN_QFN:QFN-64-1EP_9x9mm_P0.5mm_EP4.7x4.7mm_ThermalViasU3
1USB_A (female down)Connector_USB:USB_A_Stewart_SS-52100-001_HorizontalJ4
1USB_A male UPConnector_USB:USB_A_Plug_SOFNG_USB-05J2
1USB_B_Micro (up)Connector_USB:USB_Micro-B_Amphenol_10118194-0001LF_HorizontalJ3

More from karlp/hubbish

2
  • 4 layers100 × 80 mmHubbish rev2, the printed circuit board in 3D

    Hubbish rev2

    karlp/hubbish

    Cascading, per port power switching usb2.0-HS 7 port hub

    130 parts3
  • 4 layers103.6 × 71.8 mmUsb test harness, the printed circuit board in 3D

    Usb test harness

    karlp/hubbish

    Cascading, per port power switching usb2.0-HS 7 port hub

    98 parts3

Similar boards

  • 4 layers80 × 50 mmGlowbuck, the printed circuit board in 3D

    Glowbuck

    Diamantenmine/glowbuck

    Together with Firefly Luciferin, you can create your own ambilight that connects via USB-C to your computer and draws power from a USB-C PD power supply. Glowbuck is in no way associated with the linked project.

    132 parts1GPL-3.0
  • 4 layers94 × 52 mmR2024-02-single, the printed circuit board in 3D

    R2024-02-single

    karlp/das-kb4-bara2

    das keyboard 4 replacement controller

    60 parts
  • 4 layers50 × 30 mmPicothermal hardware, the printed circuit board in 3D

    Picothermal hardware

    icamaster/picothermal

    Thermal camera based on Flir Lepton with RP2040 and USB-C

    121 parts72MIT
  • 4 layers100 × 100 mmPintry X2, the printed circuit board in 3D

    Pintry X2

    icamaster/Pintry

    Two bay NAS based on the Raspberry Pi Compute Module 4

    193 parts26MIT
  • 4 layers100 × 100 mmAQUA PCB V2, the printed circuit board in 3D

    AQUA PCB V2

    samnadol/whirlpool_rov

    PCB and software for Whirlpool ROV's 2024 robot

    105 parts
  • 2 layers110 × 100 mmHydroponics, the printed circuit board in 3D

    Hydroponics

    imagestream/kicad

    Kicad designs and libraries

    88 parts1MIT
  • 2 layers88.9 × 50.8 mmCore16 LB, the printed circuit board in 3D

    Core16 LB

    ageppert/Core16-Interactive-Core-Memory

    Weave 16 bits of core memory and LEDs to interact with using a magnetic wand

    130 parts5
  • 2 layers220 × 150 mmBoard src, the printed circuit board in 3D

    Board src

    olagd/praca_dyplomowa

    169 parts

Questions

How big is the R2022-12 PCB?

It measures 100 × 80 mm and has 4 copper layers, 1.6 mm thick.

What parts does the R2022-12 use?

138 parts, built around the SIC437AED, USB2517I-JZX-TR, SRV05-4-P-T7 and M24C02-WMN6TP. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the R2022-12 KiCad files?

From the karlp/hubbish repository on GitHub, at the commit this page was made from: the board is r2022-12/r2022-12.kicad_pcb and its schematic r2020-03/downstream-port-power.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the R2022-12 design in my own project?

Its repository states no licence, so its author keeps all rights: ask karlp before reusing the design.