aj0070/dual-motor-encoder
A 60×45 mm dual-motor controller board built around an RP2040 MCU with QSPI flash, USB‑C, encoder inputs, dual DRV8871 H‑bridge drivers, protected power input, 5 V buck and 3.3 V LDO rails, connectors, filtering, and status LEDs.
- Version
- 1.0.0
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone aj0070/dual-motor-encoder # download the package files into ./dual-motor-encoder
tsci add aj0070/dual-motor-encoder # add it to your project as @tsci/aj0070.dual-motor-encoderIn 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.
parts/usb.tsx
import React from "react"
export const Usb = () => (
<>
<schematicsheet name="USB" displayName="USB-C device port" sheetIndex={2} />
<schematicsection name="USB_PORT" displayName="USB-C" />
<connector
name="J2"
standard="usb_c"
schSheetName="USB"
schSectionName="USB_PORT"
schX={-4}
schY={0}
pcbX={0.0}
pcbY={-16.9}
pcbRotation={0}
connections={{
VBUS1: "net.VBUS",
VBUS2: "net.VBUS",
DP1: "net.USB_DP_C",
DP2: "net.USB_DP_C",
DM1: "net.USB_DM_C",
DM2: "net.USB_DM_C",
CC1: "net.USB_CC1",
CC2: "net.USB_CC2",
GND1: "net.GND",
GND2: "net.GND",
SHELL1: "net.GND",
SHELL2: "net.GND",
}}
schWidth={1.575}/>
<resistor
name="R9"
resistance="5.1k"
footprint="0603"
schSheetName="USB"
schSectionName="USB_PORT"
schX={-1}
schY={3}
schRotation={270}
pcbX={7.23}
pcbY={-16.4}
connections={{ pin1: "net.USB_CC1", pin2: "net.GND" }}
/>
<resistor
name="R10"
resistance="5.1k"
footprint="0603"
schSheetName="USB"
schSectionName="USB_PORT"
schX={-1}
schY={0.5}
schRotation={270}
pcbX={10.35}
pcbY={-17.23}
connections={{ pin1: "net.USB_CC2", pin2: "net.GND" }}
/>
<resistor
name="R11"
resistance="27"
footprint="0603"
schSheetName="USB"
schSectionName="USB_PORT"
schX={1.5}
schY={3}
pcbX={13.46}
pcbY={-17.23}
connections={{ pin1: "net.USB_DP_C", pin2: "net.USB_DP" }}
/>
<resistor
name="R12"
resistance="27"
footprint="0603"
schSheetName="USB"
schSectionName="USB_PORT"
schX={1.5}
schY={0.5}
pcbX={16.58}
pcbY={-16.4}
connections={{ pin1: "net.USB_DM_C", pin2: "net.USB_DM" }}
/>
<capacitor
name="C27"
capacitance="1uF"
footprint="0603"
schSheetName="USB"
schSectionName="USB_PORT"
schX={-6}
schY={-3}
schRotation={270}
pcbX={19.69}
pcbY={-16.4}
connections={{ pin1: "net.VBUS", pin2: "net.GND" }}
/>
</>
)