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.

index.circuit.tsx

PCBPCB preview for index.circuit.tsx
SchematicSchematic preview for index.circuit.tsx
import React from "react"
import { channelParts } from "./src/channel"
import { adcParts } from "./src/adc"
import { powerParts } from "./src/power"

/**
 * Two channel oscilloscope analog front end, 80 x 50 mm, 4 layers.
 *
 * Left: two 50 ohm BNC inputs, cable entry from outside the left edge.
 * Per channel: 1M termination, AC/DC coupling relay, 10:1 attenuator relay,
 * FET input buffer, differential VGA. Centre: single ended to differential
 * conversion, ADC driver and a dual 8 bit ADC with its own 25 MHz oscillator.
 * Right: 2x10 ADC data bus header. Top right: +5 V input, inverting converter
 * for -5 V and the analog LDOs. Bottom: relay control and VGA SPI headers.
 */
export default () => (
  <board
    width="80mm"
    height="50mm"
    layers={4}
    title="Dual Channel Scope Front End"
    defaultTraceWidth={0.2}
    minTraceWidth={0.12}
    preflightRoutingCheckPolicy="none"
  >
    <net name="GND" isGroundNet nominalTraceWidth={0.4} />
    <net name="P5V_IN" isPowerNet nominalTraceWidth={0.5} />
    <net name="P5V" isPowerNet nominalTraceWidth={0.5} />
    <net name="P5VA" isPowerNet nominalTraceWidth={0.4} />
    <net name="N5VA" isPowerNet nominalTraceWidth={0.4} />
    <net name="NEG_PRE" isPowerNet nominalTraceWidth={0.4} />
    <net name="NEG_SW" isPowerNet nominalTraceWidth={0.4} />
    <net name="P3V3" isPowerNet nominalTraceWidth={0.4} />
    <net name="CLK25" nominalTraceWidth={0.15} />
    <net name="VREF125" nominalTraceWidth={0.15} />
    <net name="VMID25" nominalTraceWidth={0.15} />

    <schematicsheet name="CH A" displayName="Channel A" sheetIndex={0} />
    <schematicsheet name="CH B" displayName="Channel B" sheetIndex={1} />
    <schematicsheet name="ADC" displayName="ADC and clock" sheetIndex={2} sheetSize="ANSI_B" />
    <schematicsheet name="POWER" displayName="Power and control" sheetIndex={3} />

    {channelParts({
      ch: "A",
      y: 12,
      sheet: "CH A",
      j: "J1",
      kc: "K1",
      ka: "K2",
      u: "U1",
      vga: "U3",
      r: 101,
      c: 101,
      ulnPin: "1C",
    })}

    {channelParts({
      ch: "B",
      y: -12,
      sheet: "CH B",
      j: "J2",
      kc: "K3",
      ka: "K4",
      u: "U2",
      vga: "U4",
      r: 201,
      c: 201,
      ulnPin: "3C",
    })}

    {adcParts()}
    {powerParts()}
  </board>
)