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-controllerIn 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/CH32X035F8U6.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["VDD"],
pin2: ["pin2"],
pin3: ["pin3"],
pin4: ["pin4"],
pin5: ["pin5"],
pin6: ["pin6"],
pin7: ["pin7"],
pin8: ["pin8"],
pin9: ["pin9"],
pin10: ["pin10"],
pin11: ["pin11"],
pin12: ["pin12"],
pin13: ["pin13"],
pin14: ["pin14"],
pin15: ["pin15"],
pin16: ["pin16"],
pin17: ["pin17"],
pin18: ["pin18"],
pin19: ["pin19"],
pin20: ["pin20"],
pin21: ["GND"]
} as const
const pinAttributes = {
pin1: {requiresPower: true},
pin21: {requiresGround: true}
} as const
export const CH32X035F8U6 = ({ groundPadDrill, ...props }: ChipProps<typeof pinLabels> & { groundPadDrill?: boolean }) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
supplierPartNumbers={{
"jlcpcb": [
"C42442062"
]
}}
manufacturerPartNumber="CH32X035F8U6"
footprint={<footprint>
{groundPadDrill && <platedhole portHints={["pin21"]} pcbX="-0.000127mm" pcbY="0.000127mm" shape="circle" holeDiameter={0.2} outerDiameter={0.45} />}
<smtpad portHints={["pin21"]} pcbX="-0.000127mm" pcbY="0.000127mm" width="1.6999966mm" height="1.6999966mm" shape="rect" />
<smtpad portHints={["pin20"]} pcbX="-0.799973mm" pcbY="1.499997mm" width="0.1999996mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin19"]} pcbX="-0.399923mm" pcbY="1.499997mm" width="0.1999996mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin18"]} pcbX="0.000127mm" pcbY="1.499997mm" width="0.1999996mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin17"]} pcbX="0.399923mm" pcbY="1.499997mm" width="0.1999996mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin16"]} pcbX="0.799973mm" pcbY="1.499997mm" width="0.1999996mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin15"]} pcbX="1.499997mm" pcbY="0.800227mm" width="0.7999984mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin14"]} pcbX="1.499997mm" pcbY="0.400177mm" width="0.7999984mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin13"]} pcbX="1.499997mm" pcbY="0.000127mm" width="0.7999984mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin12"]} pcbX="1.499997mm" pcbY="-0.399923mm" width="0.7999984mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin11"]} pcbX="1.499997mm" pcbY="-0.799973mm" width="0.7999984mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin10"]} pcbX="0.799719mm" pcbY="-1.499997mm" width="0.1999996mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="0.399669mm" pcbY="-1.499997mm" width="0.1999996mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="-0.000127mm" pcbY="-1.499997mm" width="0.1999996mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="-0.400177mm" pcbY="-1.499997mm" width="0.1999996mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="-0.800227mm" pcbY="-1.499997mm" width="0.1999996mm" height="0.7999984mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-1.499997mm" pcbY="-0.799973mm" width="0.7999984mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-1.499997mm" pcbY="-0.399923mm" width="0.7999984mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-1.499997mm" pcbY="0.000127mm" width="0.7999984mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-1.499997mm" pcbY="0.400177mm" width="0.7999984mm" height="0.1999996mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-1.499997mm" pcbY="0.800227mm" width="0.7999984mm" height="0.1999996mm" shape="rect" />
<silkscreenpath route={[{"x":-1.0001249999999118,"y":-1.5498063999999658},{"x":-1.550060399999893,"y":-1.5498063999999658},{"x":-1.550060399999893,"y":-0.9998710000000983}]} />
<silkscreenpath route={[{"x":1.5498064000000795,"y":-0.9498330000000124},{"x":1.5498064000000795,"y":-1.5498063999999658},{"x":0.9998710000000983,"y":-1.5498063999999658}]} />
<silkscreenpath route={[{"x":0.9998710000000983,"y":1.550060399999893},{"x":1.5498064000000795,"y":1.550060399999893},{"x":1.5498064000000795,"y":1.0001249999999118}]} />
<silkscreenpath route={[{"x":-1.1002263999999968,"y":1.550060399999893},{"x":-1.550060399999893,"y":1.550060399999893},{"x":-1.550060399999893,"y":1.050162999999884}]} />
<silkscreencircle pcbX="-1.904873mm" pcbY="1.396873mm" radius="0.100076mm" />
<silkscreentext text="{NAME}" pcbX="-0.050927mm" pcbY="2.905127mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-2.2567269999999553,"y":2.1551269999998794},{"x":2.154873000000066,"y":2.1551269999998794},{"x":2.154873000000066,"y":-2.154873000000066},{"x":-2.2567269999999553,"y":-2.154873000000066},{"x":-2.2567269999999553,"y":2.1551269999998794}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C42442062.obj?uuid=71760926877f42c6b0f5954e672bfe89",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C42442062.step?uuid=71760926877f42c6b0f5954e672bfe89",
pcbRotationOffset: 270,
modelOriginPosition: { x: 0, y: 0, z: 0 },
}}
{...props}
/>
)
}