Devesh36/bench-eight

Eight-channel 0–10 V measurement and control console: dual ADS1115 ADCs, buffered inputs, Pico controller, microSD, RTC, RS-485, four protected low-voltage outputs and a separate OLED/encoder panel in a tscircuit assembly.

Version
0.1.3
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone Devesh36/bench-eight  # download the package files into ./bench-eight
tsci add Devesh36/bench-eight    # add it to your project as @tsci/Devesh36.bench-eight

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

import objPath from "./SS54.obj";
import stepPath from "./SS54.step";
import type { DiodeProps } from "@tscircuit/props";

const pinLabels = {
	pin1: ["anode", "pos"],
	pin2: ["cathode", "neg"],
} as const;

export const SS54 = (props: DiodeProps) => {
	const { name = "D1", ...restProps } = props;

	return (
		<diode
			name={name}
			pinLabels={pinLabels}
			supplierPartNumbers={{
				jlcpcb: ["C22452"],
			}}
			manufacturerPartNumber="SS54"
			footprint="diode_p5.0074mm_pw2.0625mm_ph1.539mm_rounded0_cyw7.5699mm_cyh3.3mm_pin1location(rightside,top)_anodepin1"
			cadModel={{
				objUrl: objPath,
				stepUrl: stepPath,
				pcbRotationOffset: 0,
				modelOriginPosition: { x: 0, y: 0, z: -0.1 },
			}}
			{...restProps}
		/>
	);
};