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

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

const pinLabels = {
	pin1: ["VOUTA"],
	pin2: ["VINA_NEG"],
	pin3: ["VINA_POS"],
	pin4: ["VDD"],
	pin5: ["VINB_POS"],
	pin6: ["VINB_NEG"],
	pin7: ["VOUTB"],
	pin8: ["VOUTC"],
	pin9: ["VINC_NEG"],
	pin10: ["VINC_POS"],
	pin11: ["VSS"],
	pin12: ["VIND_POS"],
	pin13: ["VIND_NEG"],
	pin14: ["VOUTD"],
} as const;

const pinAttributes = {
	pin4: { requiresPower: true },
	pin11: { requiresGround: true },
} as const;

export const MCP6004T_I_SL = (props: ChipProps<typeof pinLabels>) => {
	return (
		<chip
			pinLabels={pinLabels}
			pinAttributes={pinAttributes}
			supplierPartNumbers={{
				jlcpcb: ["C7378"],
			}}
			manufacturerPartNumber="MCP6004T-I/SL"
			footprint="soic14_pillpads_w7.28mm_pw0.57mm_pl2.04mm_pin1location(leftside,bottom)"
			cadModel={{
				objUrl: objPath,
				stepUrl: stepPath,
				pcbRotationOffset: 0,
				modelOriginPosition: {
					x: 0,
					y: -0.000025399999913133797,
					z: -0.099425,
				},
			}}
			{...props}
		/>
	);
};