aj0070/usb-isolator

A 50×30 mm two-layer USB 2.0 full-speed isolator board using USB-C and USB-A connectors, an ADuM4160 digital isolator, isolated B0505S DC-DC power module, decoupling capacitors, series resistors, and dual power LEDs.

Version
1.0.2
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone aj0070/usb-isolator  # download the package files into ./usb-isolator
tsci add aj0070/usb-isolator    # add it to your project as @tsci/aj0070.usb-isolator

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

sections/HostPort.tsx

import { USB_C_SH_U262 } from "../imports/USB_C_SH_U262_CONN"

// Host side (upstream) USB-C receptacle, CC pulldowns, bulk input cap and the
// 24 ohm series termination on UD+/UD- that the ADuM4160 datasheet requires
// for full speed operation.
//
// J1 is a locally imported part (SH-U262-161N-4B, JLC C22383469) rather than
// the builtin standard="usb_c" connector, because the builtin fetches its part
// from the parts engine at build time and returned a portless part on one run.
// pcbRotation 270 turns the footprint's -Y mating face to -X, so the cable
// plugs in from outside the left board edge.
export const HostPort = () => (
  <>
    <USB_C_SH_U262
      name="J1"
      allowOffBoard
      pcbX={-19.8}
      pcbY={0}
      pcbRotation={270}
      schSheetName="USB"
      schSectionName="USB_HOST"
      schX={-6}
      schY={2}
      schWidth={1.575}
      connections={{
        VBUS1: "net.VBUS_HOST",
        VBUS2: "net.VBUS_HOST",
        GND1: "net.GND_HOST",
        GND2: "net.GND_HOST",
        EH1: "net.GND_HOST",
        EH2: "net.GND_HOST",
        EH3: "net.GND_HOST",
        EH4: "net.GND_HOST",
        CC1: "net.USB_CC1",
        CC2: "net.USB_CC2",
        DP1: "net.USB_DP",
        DP2: "net.USB_DP",
        DN1: "net.USB_DM",
        DN2: "net.USB_DM",
      }}
    />

    <resistor
      name="R3"
      resistance="5.1k"
      footprint="0402"
      pcbX={-14.0}
      pcbY={5.6}
      pcbRotation={90}
      schSheetName="USB"
      schSectionName="USB_CC"
      schX={-9}
      schY={6.5}
      schRotation={270}
      connections={{ pin1: "net.USB_CC1", pin2: "net.GND_HOST" }}
    />
    <resistor
      name="R4"
      resistance="5.1k"
      footprint="0402"
      pcbX={-11.8}
      pcbY={5.6}
      pcbRotation={90}
      schSheetName="USB"
      schSectionName="USB_CC"
      schX={-7}
      schY={6.5}
      schRotation={270}
      connections={{ pin1: "net.USB_CC2", pin2: "net.GND_HOST" }}
    />

    <capacitor
      name="C7"
      capacitance="4.7uF"
      footprint="0805"
      pcbX={-14.0}
      pcbY={9.4}
      pcbRotation={90}
      schSheetName="USB"
      schSectionName="USB_BULK"
      schX={-5}
      schY={6.5}
      schRotation={270}
      connections={{ pin1: "net.VBUS_HOST", pin2: "net.GND_HOST" }}
    />

    <resistor
      name="R1"
      resistance="24"
      footprint="0402"
      pcbX={-9.8}
      pcbY={-6.4}
      pcbRotation={180}
      schSheetName="USB"
      schSectionName="USB_SERIES"
      schX={-6}
      schY={-2}
      connections={{ pin1: "net.UD_P", pin2: "net.USB_DP" }}
    />
    <resistor
      name="R2"
      resistance="24"
      footprint="0402"
      pcbX={-9.8}
      pcbY={-9.0}
      pcbRotation={180}
      schSheetName="USB"
      schSectionName="USB_SERIES"
      schX={-6}
      schY={-4}
      connections={{ pin1: "net.UD_N", pin2: "net.USB_DM" }}
    />
  </>
)