aj0070/split-keyboard-half

A USB‑C–powered RP2040 keyboard controller board with 17-key diode-isolated matrix, QSPI flash, 12 MHz crystal, reset/boot controls, 3.3 V regulation, USB interface, and TRRS serial split connector.

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/split-keyboard-half  # download the package files into ./split-keyboard-half
tsci add aj0070/split-keyboard-half    # add it to your project as @tsci/aj0070.split-keyboard-half

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.

imports/CPG151101S11.tsx

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

const pinLabels = {
  pin1: ["pin1"],
  pin2: ["pin2"]
} as const

export const CPG151101S11 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <port name="pin1" pinNumber={1} aliases={["1"]} direction="left" schX={-0.5} schY={0} schStemLength={0.2} />
          <port name="pin2" pinNumber={2} aliases={["2"]} direction="right" schX={0.5} schY={0} schStemLength={0.2} />
          <schematicpath svgPath="M -0.1 0 A 0.06 0.06 0 1 1 -0.1 -0.0002" strokeColor="#880000" />
          <schematicpath svgPath="M 0.2 0 A 0.06 0.06 0 1 1 0.2 -0.0002" strokeColor="#880000" />
          <schematicpath points={[{"x":-0.3,"y":0},{"x":-0.22,"y":0}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.2,"y":0.2},{"x":0.2,"y":0.2}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":0.2},{"x":0,"y":0.3}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.2,"y":0},{"x":0.3,"y":0}]} strokeColor="#880000" />
          <schematictext schX={0} schY={0.5} text="{NAME}" fontSize={0.2} anchor="bottom_center" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C2803348"
  ]
}}
      manufacturerPartNumber="CPG151101S11"
      footprint={<footprint>
        <hole pcbX="3.175mm" pcbY="-1.27mm" diameter="2.999994mm" />
<hole pcbX="-3.175mm" pcbY="1.27mm" diameter="2.999994mm" />
<smtpad portHints={["pin2"]} pcbX="6.724904mm" pcbY="-1.27mm" width="2.8999942mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-6.724904mm" pcbY="1.27mm" width="2.8999942mm" height="2.499995mm" shape="rect" />
<silkscreenpath route={[{"x":-5.461000000000013,"y":-0.4611370000000079},{"x":-5.461000000000013,"y":-2.9209999999999354},{"x":-5.461000000000013,"y":-2.9209999999999354}]} />
<silkscreenpath route={[{"x":5.4500017999999955,"y":-2.950006799999869},{"x":-5.461000000000013,"y":-2.950006799999869}]} />
<silkscreenpath route={[{"x":0.18298159999994823,"y":1.0549889999999778},{"x":5.450027199999909,"y":1.0549889999999778}]} />
<silkscreenpath route={[{"x":5.450027199999909,"y":1.0549889999999778},{"x":5.450027199999909,"y":0.4611370000000079}]} />
<silkscreenpath route={[{"x":-2.944114000000127,"y":2.9450030000000424},{"x":-5.461000000000013,"y":2.9450030000000424}]} />
<silkscreenpath route={[{"x":-1.707006999999976,"y":2.9450030000000424},{"x":-2.944114000000127,"y":2.9450030000000424}]} />
<silkscreenpath route={[{"x":-1.7070069999998623,"y":2.9450030000000424},{"x":-1.6908409246365181,"y":2.6983076688486562},{"x":-1.6426126785172528,"y":2.455833000726443},{"x":-1.5631474744046727,"y":2.221727875323495},{"x":-1.453805007206256,"y":1.9999979646854626},{"x":-1.3164561888188473,"y":1.7944371938847326},{"x":-1.153451135761543,"y":1.6085628248006287},{"x":-0.9675789573427664,"y":1.445555273765649},{"x":-0.7620200324109874,"y":1.3082036928298066},{"x":-0.5402915912621893,"y":1.1988582457809116},{"x":-0.3061875338247546,"y":1.1193898955031045},{"x":-0.06371351387110735,"y":1.0711583907361728},{"x":0.18298159999994823,"y":1.054988999999864}]} />
<silkscreentext text="{NAME}" pcbX="0mm" pcbY="4.0226mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":-5.400014600000077,"y":-0.09999979999997777},{"x":-5.400014600000077,"y":-1.0999977999999828},{"x":-5.384615381271374,"y":-1.3349444761017821},{"x":-5.338681209987271,"y":-1.5658711494360205},{"x":-5.262998032554037,"y":-1.788826600596849},{"x":-5.158860809120597,"y":-1.9999959999998964},{"x":-5.028051356452238,"y":-2.195766180674468},{"x":-4.872807860551461,"y":-2.3727874605514216},{"x":-4.695786580674508,"y":-2.5280309564521986},{"x":-4.500016399999936,"y":-2.658840409120444},{"x":-4.288847000596775,"y":-2.762977632553998},{"x":-4.06589154943606,"y":-2.838660809987232},{"x":-3.8349648761018216,"y":-2.8845949812713343},{"x":-3.6000182000000223,"y":-2.8999942000000374},{"x":-3.4999930000000177,"y":-2.8999942000000374},{"x":-3.1999935999999707,"y":-2.8999942000000374},{"x":5.400014599999963,"y":-2.8999942000000374},{"x":5.400014599999963,"y":-2.699994599999968},{"x":-3.4999930000000177,"y":-2.699994599999968},{"x":-3.6000182000000223,"y":-2.699994599999968},{"x":-3.850312843474171,"y":-2.6802959843495273},{"x":-4.094444402145655,"y":-2.621685182691408},{"x":-4.326401546813713,"y":-2.525605387480482},{"x":-4.540472722755112,"y":-2.3944224021454374},{"x":-4.731386787156907,"y":-2.231366387156754},{"x":-4.894442802145591,"y":-2.0404523227550726},{"x":-5.0256257874805215,"y":-1.82638114681356},{"x":-5.121705582691561,"y":-1.5944240021456153},{"x":-5.180316384349567,"y":-1.3502924434741317},{"x":-5.200015000000008,"y":-1.0999977999999828},{"x":-5.200015000000008,"y":-0.09999979999997777},{"x":-5.400014600000077,"y":-0.09999979999997777}]} strokeWidth="0mm" isFilled hasStroke={false} />
<fabricationnotepath route={[{"x":5.400014599999963,"y":0.39999920000002476},{"x":5.400014599999963,"y":0.4999736000000894},{"x":5.361952508916033,"y":0.6913246536583983},{"x":5.253560843998571,"y":0.8535442439988401},{"x":5.091341253658356,"y":0.9619359089163027},{"x":4.899990199999934,"y":0.999998000000005},{"x":0.19999960000006922,"y":0.999998000000005},{"x":0,"y":0.999998000000005},{"x":-0.2349466761017993,"y":1.0153972187287081},{"x":-0.46587334943603764,"y":1.0613313900125831},{"x":-0.6888288005969798,"y":1.1370145674459309},{"x":-0.899998200000141,"y":1.241151790879485},{"x":-1.0957683806747127,"y":1.3719612435478439},{"x":-1.2727896605514388,"y":1.5272047394486208},{"x":-1.4280331564522157,"y":1.7042260193254606},{"x":-1.5588426091206884,"y":1.8999961999999186},{"x":-1.6629798325542424,"y":2.1111655994031935},{"x":-1.7386630099874765,"y":2.334121050564022},{"x":-1.7845971812714652,"y":2.5650477238982603},{"x":-1.799996400000282,"y":2.7999944000000596},{"x":-1.7999964000000546,"y":2.999994000000015},{"x":-5.400014600000077,"y":2.999994000000015},{"x":-5.400014600000077,"y":2.7999944000000596},{"x":-1.99999600000001,"y":2.7999944000000596},{"x":-1.99999600000001,"y":2.5999947999999904},{"x":-1.984596781271307,"y":2.365048123898191},{"x":-1.9386626099873183,"y":2.1341214505640664},{"x":-1.8629794325539706,"y":1.9111659994033516},{"x":-1.7588422091205302,"y":1.6999966000000768},{"x":-1.6280327564521713,"y":1.5042264193256187},{"x":-1.4727892605513944,"y":1.3272051394486652},{"x":-1.2957679806744409,"y":1.1719616435477747},{"x":-1.0999978000000965,"y":1.0411521908795294},{"x":-0.8888284005968217,"y":0.937014967446089},{"x":-0.6658729494358795,"y":0.861331790012855},{"x":-0.43494627610186853,"y":0.8153976187287526},{"x":-0.1999996000001829,"y":0.7999984000000495},{"x":4.800015799999983,"y":0.7999984000000495},{"x":5.000015400000052,"y":0.7464086686935616},{"x":5.146425268693292,"y":0.5999987999999803},{"x":5.20001499999978,"y":0.39999920000002476},{"x":5.400014599999963,"y":0.39999920000002476}]} strokeWidth="0mm" isFilled hasStroke={false} />
<courtyardoutline outline={[{"x":-8.424901100000056,"y":3.1950030000000424},{"x":8.424901099999943,"y":3.1950030000000424},{"x":8.424901099999943,"y":-3.1950030000000424},{"x":-8.424901100000056,"y":-3.1950030000000424},{"x":-8.424901100000056,"y":3.1950030000000424}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2803348.obj?uuid=b226c46d9f4847bc837da2470e6ffcc9",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2803348.step?uuid=b226c46d9f4847bc837da2470e6ffcc9",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: -0.000012699999956566899, y: 0, z: -0.05000240000000011 },
      }}
      {...props}
    />
  )
}