mohan-bee/modern-controller

A two-board 2.4 GHz wireless control system using CH32X035 MCUs, SX1280 radios, USB‑C transmitter with RFX2401C PA/filter, and a battery-powered receiver with U.FL antennas, RGB status LEDs, regulators, and PWM output headers.

Version
0.0.6
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone mohan-bee/modern-controller  # download the package files into ./modern-controller
tsci add mohan-bee/modern-controller    # add it to your project as @tsci/mohan-bee.modern-controller

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.

design/imports/XC21M4_52_000_F10NNHPL.tsx

import type { CrystalProps } from "@tscircuit/props"

type ImportedCrystalProps = Omit<CrystalProps, "frequency" | "pinVariant">

export const XC21M4_52_000_F10NNHPL = (props: ImportedCrystalProps) => {
  const { name = "X1", ...restProps } = props

  return (
    <crystal
      name={name}
      frequency="52MHz"
      pinVariant="four_pin"
      supplierPartNumbers={{
  "jlcpcb": [
    "C3034316"
  ]
}}
      manufacturerPartNumber="XC21M4-52.000-F10NNHPL"
      footprint={<footprint>
        <smtpad portHints={["pin2"]} pcbX="0.700024mm" pcbY="-0.549783mm" width="0.8999982mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="0.700024mm" pcbY="0.550037mm" width="0.8999982mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-0.700024mm" pcbY="0.550037mm" width="0.8999982mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-0.700024mm" pcbY="-0.549783mm" width="0.8999982mm" height="0.7999984mm" shape="rect" />
<silkscreenpath route={[{"x":-1.6499840000000177,"y":-0.1498853999999028},{"x":-1.6499840000000177,"y":-1.4498827999999548},{"x":-0.24998679999987417,"y":-1.4498827999999548}]} />
<silkscreenrect pcbX="0mm" pcbY="0mm" width="2.70002mm" height="2.29997mm" strokeWidth="0.151999696mm" />
<silkscreentext text="{NAME}" pcbX="-0.1524mm" pcbY="2.143127mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-1.9009999999999536,"y":1.3931270000000495},{"x":1.5962000000001808,"y":1.3931270000000495},{"x":1.5962000000001808,"y":-1.6976729999998952},{"x":-1.9009999999999536,"y":-1.6976729999998952},{"x":-1.9009999999999536,"y":1.3931270000000495}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C3034316.obj?uuid=51ae9b24ba7a408881f7752b57b66e45",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C3034316.step?uuid=51ae9b24ba7a408881f7752b57b66e45",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: -0.00011430000006384944, z: -0.01 },
      }}
      {...restProps}
    />
  )
}