aj0070/scope-frontend

A 4-layer dual-channel oscilloscope analog front end with BNC inputs, relay-selectable AC/DC coupling and attenuation, FET buffers, programmable VGAs, differential ADC drivers, dual 8-bit ADCs with 25 MHz clock, power conversion/LDOs, and control/data headers.

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

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/KH_BNC50_3511.tsx

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

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

export const KH_BNC50_3511 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <port name="pin2" pinNumber={2} aliases={["2"]} direction="down" schX={0} schY={-0.4} schStemLength={0.2} />
          <port name="pin1" pinNumber={1} aliases={["OUT"]} direction="right" schX={0.4} schY={0} schStemLength={0.4} />
          <schematiccircle center={{ x: 0, y: 0 }} radius={0.04} strokeWidth={0.02} color="#8D2323" />
          <schematiccircle center={{ x: 0, y: 0 }} radius={0.2} strokeWidth={0.02} color="#8D2323" />
          <port name="pin3" pinNumber={3} aliases={["3"]} direction="down" schX={-0.2} schY={-0.4} schStemLength={0.2} />
          <port name="pin4" pinNumber={4} aliases={["4"]} direction="down" schX={0.2} schY={-0.4} schStemLength={0.2} />
          <schematictext schX={0.1} schY={0.4} text="{NAME}" fontSize={0.2} anchor="bottom_center" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C2837587"
  ]
}}
      manufacturerPartNumber="KH-BNC50-3511"
      footprint={<footprint>
        <platedhole  portHints={["pin2"]} pcbX="2.500122mm" pcbY="2.7752548mm" outerDiameter="1.5999968mm" holeDiameter="0.999998mm" shape="circle" />
<platedhole  portHints={["pin1"]} pcbX="0mm" pcbY="2.7752548mm" outerDiameter="1.5999968mm" holeDiameter="0.999998mm" shape="circle" />
<platedhole  portHints={["pin3"]} pcbX="5.050028mm" pcbY="-2.2747732mm" outerDiameter="2.60096mm" holeDiameter="2.19964mm" shape="circle" />
<platedhole  portHints={["pin4"]} pcbX="-5.050028mm" pcbY="-2.2747732mm" outerDiameter="2.60096mm" holeDiameter="2.19964mm" shape="circle" />
<silkscreenpath route={[{"x":7.493000000000009,"y":4.710226800000001},{"x":-7.492999999999995,"y":4.710226800000001},{"x":-7.492999999999995,"y":-8.091881199999989},{"x":7.493000000000009,"y":-8.091881199999989},{"x":7.493000000000009,"y":4.710226800000001}]} />
<silkscreenpath route={[{"x":7.112000000000009,"y":-8.095945199999996},{"x":7.112000000000009,"y":-17.1129452},{"x":6.603999999999999,"y":-17.1129452},{"x":-6.603999999999999,"y":-17.1129452},{"x":-7.08659999999999,"y":-17.1129452},{"x":-7.111999999999995,"y":-17.1129452},{"x":-7.111999999999995,"y":-8.095945199999996}]} />
<silkscreenpath route={[{"x":-6.603999999999999,"y":-17.1129452},{"x":-6.603999999999999,"y":-30.955945199999988},{"x":6.603999999999999,"y":-30.955945199999988},{"x":6.603999999999999,"y":-17.1129452}]} />
<silkscreenpath route={[{"x":7.08659999999999,"y":-14.979345199999997},{"x":-7.08659999999999,"y":-15.842945199999988}]} />
<silkscreenpath route={[{"x":7.08659999999999,"y":-13.709345200000001},{"x":-7.08659999999999,"y":-14.572945199999992}]} />
<silkscreenpath route={[{"x":7.08659999999999,"y":-12.439345199999998},{"x":-7.08659999999999,"y":-13.30294519999999}]} />
<silkscreenpath route={[{"x":7.08659999999999,"y":-11.169345200000002},{"x":-7.08659999999999,"y":-12.032945199999993}]} />
<silkscreenpath route={[{"x":7.08659999999999,"y":-9.899345199999999},{"x":-7.08659999999999,"y":-10.762945199999997}]} />
<silkscreenpath route={[{"x":7.08659999999999,"y":-8.629345199999996},{"x":-7.08659999999999,"y":-9.492945199999987}]} />
<silkscreenpath route={[{"x":7.08659999999999,"y":-16.249345199999993},{"x":-7.08659999999999,"y":-17.1129452}]} />
<silkscreencircle pcbX="0mm" pcbY="-27.7047452mm" radius="0.8128mm" />
<silkscreentext text="{NAME}" pcbX="0mm" pcbY="5.7564548mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":4.6999905999999925,"y":-19.649770199999992},{"x":4.6999905999999925,"y":-30.749773399999995},{"x":-4.6999905999999925,"y":-30.749773399999995},{"x":-4.6999905999999925,"y":-19.649770199999992},{"x":-4.499990999999994,"y":-19.649770199999992},{"x":-4.499990999999994,"y":-30.549773799999997},{"x":4.499990999999994,"y":-30.549773799999997},{"x":4.499990999999994,"y":-19.649770199999992},{"x":4.6999905999999925,"y":-19.649770199999992}]} strokeWidth="0mm" isFilled hasStroke={false} />
<courtyardoutline outline={[{"x":-7.599997999999999,"y":5.00020640000001},{"x":7.599972599999987,"y":5.00020640000001},{"x":7.599972599999987,"y":-30.9997226},{"x":-7.599997999999999,"y":-30.9997226},{"x":-7.599997999999999,"y":5.00020640000001}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2837587.obj?uuid=0dcde789bcd54cae9917a7278df9ba96",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2837587.step?uuid=0dcde789bcd54cae9917a7278df9ba96",
        pcbRotationOffset: 180,
        modelOriginPosition: { x: -0.000012700000013410317, y: -12.999758099999994, z: -0.6000079999999999 },
      }}
      {...props}
    />
  )
}