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.

dist/pair/connector-guide.svg

PCBPCB preview for dist/pair/connector-guide.svg
SchematicSchematic preview for dist/pair/connector-guide.svg
<?xml version='1.0' encoding='utf-8'?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1060 650" width="1060" height="650" role="img"><title>Modern controller panel connector guide</title><rect width="1060" height="650" fill="#fafaf6" /><text x="35" y="45" fill="#18342e" font-family="Arial, sans-serif" font-size="30" font-weight="bold">Panel connector guide</text><text x="35" y="74" fill="#18342e" font-family="Arial, sans-serif" font-size="16" font-weight="normal">Component side   /   70 × 70 mm   /   Receiver above transmitter</text><rect x="312" y="100" width="420" height="420" fill="#21594d" rx="2" /><polygon points="426,409 426,466 618,466 618,409 630,409 630,478 414,478 414,409" fill="#fafaf6" /><polygon points="426,379 426,322 618,322 618,379 630,379 630,310 414,310 414,379" fill="#fafaf6" /><polygon points="450,244 450,286 594,286 594,244 606,244 606,298 438,298 438,244" fill="#fafaf6" /><polygon points="450,214 450,172 594,172 594,214 606,214 606,160 438,160 438,214" fill="#fafaf6" /><circle cx="360" cy="496" r="6" fill="#fafaf6" /><circle cx="684" cy="496" r="6" fill="#fafaf6" /><circle cx="360" cy="124" r="6" fill="#fafaf6" /><circle cx="684" cy="124" r="6" fill="#fafaf6" /><circle cx="335.1" cy="496.9" r="3" fill="#d9b871" /><circle cx="708.9000000000001" cy="496.9" r="3" fill="#d9b871" /><circle cx="335.1" cy="123.09999999999997" r="3" fill="#d9b871" /><rect x="492.4493352" y="424.4552152" width="59.1013296" height="38.9895588" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="475.32" y="430.47999999999996" width="9.359999999999992" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="559.32" y="430.47999999999996" width="9.359999999999992" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="450.885468" y="403.834864" width="22.229064000000008" height="15.130272000000005" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="512.8500228" y="396.40002279999993" width="22.799954399999997" height="22.799954400000004" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="570.1799202" y="446.50008640000004" width="11.640159599999997" height="10.199827200000001" fill="#ece3ba" stroke="#aec4a9" stroke-width="0.65" /><rect x="556.32" y="456.87999999999994" width="9.359999999999992" height="3.8399999999999928" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="556.32" y="450.28" width="9.359999999999992" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="556.32" y="443.68" width="9.359999999999992" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="553.5597678" y="337.95976779999995" width="26.880464400000008" height="26.880464400000005" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="566.3997828" y="371.19986140000003" width="11.398910399999995" height="13.800277199999998" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="433.95070469999996" y="343.9001002" width="18.8985906" height="23.999799600000003" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="477.1044918" y="346.70449179999997" width="21.391016399999998" height="21.391016399999998" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="454.456803" y="351.549742" width="8.486393999999997" height="8.700516" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="493.02" y="373.47999999999996" width="9.359999999999996" height="3.8399999999999994" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="493.02" y="383.37999999999994" width="9.359999999999996" height="3.839999999999998" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="506.21999999999997" y="373.47999999999996" width="9.36" height="3.8399999999999994" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="506.21999999999997" y="383.37999999999994" width="9.36" height="3.839999999999998" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="433.32" y="409.47999999999996" width="9.359999999999992" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="481.32" y="403.47999999999996" width="9.359999999999992" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="541.9200000000001" y="401.08" width="9.359999999999996" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="541.62" y="371.08" width="9.36" height="3.8400000000000007" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="554.88" y="370.71999999999997" width="3.8400000000000034" height="9.36" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="585.72" y="337.47999999999996" width="9.359999999999992" height="3.8400000000000007" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="585.48" y="347.92" width="3.8400000000000034" height="9.36" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="570.12" y="328.47999999999996" width="9.359999999999992" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="546.1800000000001" y="357.52" width="3.8400000000000034" height="9.36" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="530.58" y="357.52" width="3.8399999999999994" height="9.36" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="515.58" y="357.52" width="3.8400000000000007" height="9.36" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="520.32" y="341.97999999999996" width="9.36" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="508.92" y="350.97999999999996" width="9.360000000000001" height="3.840000000000002" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="468.47999999999996" y="359.02" width="3.8400000000000034" height="9.36" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="480.71999999999997" y="372.28" width="9.359999999999992" height="3.8400000000000007" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="466.62" y="377.68" width="9.359999999999998" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="447.15" y="375.54999999999995" width="14.699999999999996" height="5.700000000000001" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="535.32" y="350.97999999999996" width="9.359999999999998" height="3.840000000000002" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="520.32" y="350.97999999999996" width="9.36" height="3.840000000000002" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="594.9" y="386.44" width="10.199999999999996" height="55.92" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><circle cx="504.60049200000003" cy="435.9665968" r="1.7999964000000002" fill="#fafaf6" /><circle cx="539.399508" cy="435.9665968" r="1.7999964000000002" fill="#fafaf6" /><rect x="471.4518888" y="241.00024419999994" width="21.896222399999992" height="15.5995116" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="512.8500228" y="255.40002279999996" width="22.799954399999997" height="22.799954399999994" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="574.0799202" y="180.70008639999995" width="11.640159599999997" height="10.199827200000007" fill="#ece3ba" stroke="#aec4a9" stroke-width="0.65" /><rect x="556.32" y="254.68" width="9.359999999999992" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="556.32" y="248.08" width="9.359999999999992" height="3.839999999999998" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="556.32" y="241.48" width="9.359999999999992" height="3.839999999999998" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="524.1597678" y="196.35976779999996" width="26.880464400000005" height="26.880464400000005" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="536.9997827999999" y="229.5998614" width="11.398910400000002" height="13.800277199999998" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="456.57070469999996" y="199.30010019999995" width="18.8985906" height="23.999799600000003" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="458.52" y="245.37999999999997" width="9.359999999999992" height="3.839999999999998" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="496.32" y="247.78000000000006" width="9.359999999999996" height="3.839999999999998" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="543.72" y="266.68" width="9.359999999999996" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="512.22" y="229.48" width="9.36" height="3.8399999999999994" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="525.48" y="229.11999999999995" width="3.8400000000000007" height="9.36" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="556.32" y="195.87999999999994" width="9.359999999999992" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="556.08" y="206.32" width="3.8400000000000034" height="9.359999999999998" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="533.82" y="186.87999999999994" width="9.359999999999998" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="516.7800000000001" y="215.92000000000002" width="3.8400000000000007" height="9.36" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="501.18" y="215.92000000000002" width="3.839999999999998" height="9.36" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="486.18" y="215.92000000000002" width="3.8400000000000034" height="9.36" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="490.92" y="200.37999999999994" width="9.36" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="476.52" y="209.37999999999994" width="9.360000000000003" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="505.92" y="209.37999999999994" width="9.360000000000001" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="490.92" y="209.37999999999994" width="9.36" height="3.8400000000000034" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="461.64000000000004" y="178.29999999999998" width="55.92" height="10.199999999999996" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="465.47999999999996" y="267.1" width="25.44" height="10.200000000000001" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><rect x="575.1" y="207.99999999999997" width="10.199999999999996" height="55.92" fill="#142e28" stroke="#aec4a9" stroke-width="0.65" /><polyline points="489.6,183.39999999999998 464.6,145 298,145" fill="none" stroke="#607f74" stroke-width="1.7" /><circle cx="489.6" cy="183.39999999999998" r="3.5" fill="#ffcf67" stroke="#402d10" /><text x="35" y="150" fill="#18342e" font-family="Arial, sans-serif" font-size="17" font-weight="bold">J203   RX programming</text><text x="35" y="172" fill="#18342e" font-family="Arial, sans-serif" font-size="14" font-weight="normal">WCH-LinkE debug header</text><polyline points="466.02,211.29999999999995 441.02,206 298,206" fill="none" stroke="#607f74" stroke-width="1.7" /><circle cx="466.02" cy="211.29999999999995" r="3.5" fill="#ffcf67" stroke="#402d10" /><text x="35" y="211" fill="#18342e" font-family="Arial, sans-serif" font-size="17" font-weight="bold">J202   RX antenna</text><text x="35" y="233" fill="#18342e" font-family="Arial, sans-serif" font-size="14" font-weight="normal">2.4 GHz U.FL connector</text><polyline points="478.2,272.20000000000005 453.2,273 298,273" fill="none" stroke="#607f74" stroke-width="1.7" /><circle cx="478.2" cy="272.20000000000005" r="3.5" fill="#ffcf67" stroke="#402d10" /><text x="35" y="278" fill="#18342e" font-family="Arial, sans-serif" font-size="17" font-weight="bold">J204   RX battery</text><text x="35" y="300" fill="#18342e" font-family="Arial, sans-serif" font-size="14" font-weight="normal">1 B+   ·   2 B− (ground)</text><polyline points="579.9,185.79999999999995 604.9,155 751,155" fill="none" stroke="#607f74" stroke-width="1.7" /><circle cx="579.9" cy="185.79999999999995" r="3.5" fill="#ffcf67" stroke="#402d10" /><text x="766" y="160" fill="#18342e" font-family="Arial, sans-serif" font-size="17" font-weight="bold">D201   RX status</text><text x="766" y="182" fill="#18342e" font-family="Arial, sans-serif" font-size="14" font-weight="normal">Green when valid packets arrive</text><polyline points="580.2,235.95999999999998 605.2,235 751,235" fill="none" stroke="#607f74" stroke-width="1.7" /><circle cx="580.2" cy="235.95999999999998" r="3.5" fill="#ffcf67" stroke="#402d10" /><text x="766" y="240" fill="#18342e" font-family="Arial, sans-serif" font-size="17" font-weight="bold">J205   Channel outputs</text><text x="766" y="262" fill="#18342e" font-family="Arial, sans-serif" font-size="14" font-weight="normal">1 O1   ·   2 O2   ·   3 G   ·   4 VIN</text><polyline points="443.4,355.9 418.4,363 298,363" fill="none" stroke="#607f74" stroke-width="1.7" /><circle cx="443.4" cy="355.9" r="3.5" fill="#ffcf67" stroke="#402d10" /><text x="35" y="368" fill="#18342e" font-family="Arial, sans-serif" font-size="17" font-weight="bold">J102   TX antenna</text><text x="35" y="390" fill="#18342e" font-family="Arial, sans-serif" font-size="14" font-weight="normal">2.4 GHz U.FL connector</text><polyline points="522,443.94999459999997 497,460 298,460" fill="none" stroke="#607f74" stroke-width="1.7" /><circle cx="522" cy="443.94999459999997" r="3.5" fill="#ffcf67" stroke="#402d10" /><text x="35" y="465" fill="#18342e" font-family="Arial, sans-serif" font-size="17" font-weight="bold">J101   USB-C</text><text x="35" y="487" fill="#18342e" font-family="Arial, sans-serif" font-size="14" font-weight="normal">Data and 5 V from the host</text><polyline points="600,414.4 625,380 751,380" fill="none" stroke="#607f74" stroke-width="1.7" /><circle cx="600" cy="414.4" r="3.5" fill="#ffcf67" stroke="#402d10" /><text x="766" y="385" fill="#18342e" font-family="Arial, sans-serif" font-size="17" font-weight="bold">J103   TX programming</text><text x="766" y="407" fill="#18342e" font-family="Arial, sans-serif" font-size="14" font-weight="normal">WCH-LinkE debug header</text><polyline points="576,451.6 601,455 751,455" fill="none" stroke="#607f74" stroke-width="1.7" /><circle cx="576" cy="451.6" r="3.5" fill="#ffcf67" stroke="#402d10" /><text x="766" y="460" fill="#18342e" font-family="Arial, sans-serif" font-size="17" font-weight="bold">D101   TX status</text><text x="766" y="482" fill="#18342e" font-family="Arial, sans-serif" font-size="14" font-weight="normal">Green after local transmission</text><text x="35" y="563" fill="#18342e" font-family="Arial, sans-serif" font-size="20" font-weight="bold">Connecting the receiver</text><text x="35" y="593" fill="#18342e" font-family="Arial, sans-serif" font-size="16" font-weight="normal">Power J204 from a protected single cell (4.2 V maximum). Alternatively supply regulated 5 V on J205 pins 4 and 3. Use one source only.</text><text x="35" y="619" fill="#18342e" font-family="Arial, sans-serif" font-size="16" font-weight="normal">Connect external controller ground to J205 pin 3.</text></svg>