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-encoder

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.

index.circuit.tsx

PCBPCB preview for index.circuit.tsx
SchematicSchematic preview for index.circuit.tsx
import React from "react"
import { PowerInputs } from "./parts/power"
import { Mcu } from "./parts/mcu"
import { Usb } from "./parts/usb"
import { Drivers } from "./parts/drivers"
import { Encoders } from "./parts/encoders"
import { Io } from "./parts/io"

export default () => (
  <board
    width="60mm"
    height="45mm"
    layers={2}
    title="Dual motor encoder controller"
    defaultTraceWidth="0.2mm"
    minTraceWidth="0.15mm"
    routeRemaining
  >
    <net name="GND" isGroundNet />
    <net name="VM" isPowerNet />
    <net name="V5" isPowerNet />
    <net name="V3_3" isPowerNet />
    <net name="V1_1" isPowerNet />
    <net name="VBUS" isPowerNet />
    <net name="VIN_RAW" isPowerNet />
    <net name="VIN_F" isPowerNet />

    <PowerInputs />
    <Mcu />
    <Usb />
    <Drivers />
    <Encoders />
    <Io />
  </board>
)