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-eightIn 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/SK12D07VG4/SK12D07VG4.tsx
import objPath from "./SK12D07VG4.obj";
import stepPath from "./SK12D07VG4.step";
import type { SwitchProps } from "@tscircuit/props";
const pinLabels = {
pin1: ["ON"],
pin2: ["COM"],
pin3: ["OFF"],
pin4: ["CASE1"],
pin5: ["CASE2"],
} as const;
export const SK12D07VG4 = (props: SwitchProps) => {
return (
<switch
type="spdt"
symbol={
<symbol>
<schematictext text="{REF}" schX={0} schY={0.8} fontSize={0.2} />
{/* The physical common terminal is pin 2; preserve supplier pin numbers. */}
<port
name="pin2"
pinNumber={2}
aliases={["COM"]}
direction="left"
schX={-0.8}
schY={0}
/>
<port
name="pin1"
pinNumber={1}
aliases={["ON"]}
direction="right"
schX={0.8}
schY={0.35}
/>
<port
name="pin3"
pinNumber={3}
aliases={["OFF"]}
direction="right"
schX={0.8}
schY={-0.35}
/>
<port
name="pin4"
pinNumber={4}
aliases={["CASE1"]}
direction="down"
schX={-0.3}
schY={-0.9}
/>
<port
name="pin5"
pinNumber={5}
aliases={["CASE2"]}
direction="down"
schX={0.3}
schY={-0.9}
/>
<schematicline
x1={-0.8}
y1={0}
x2={-0.15}
y2={0}
strokeWidth={0.04}
/>
<schematicline
x1={-0.15}
y1={0}
x2={0.25}
y2={0.26}
strokeWidth={0.04}
/>
<schematicline
x1={0.35}
y1={0.35}
x2={0.8}
y2={0.35}
strokeWidth={0.04}
/>
<schematicline
x1={0.35}
y1={-0.35}
x2={0.8}
y2={-0.35}
strokeWidth={0.04}
/>
<schematiccircle
center={{ x: -0.15, y: 0 }}
radius={0.045}
isFilled={false}
strokeWidth={0.03}
/>
<schematiccircle
center={{ x: 0.35, y: 0.35 }}
radius={0.045}
isFilled={false}
strokeWidth={0.03}
/>
<schematiccircle
center={{ x: 0.35, y: -0.35 }}
radius={0.045}
isFilled={false}
strokeWidth={0.03}
/>
<schematicline
x1={-0.3}
y1={-0.65}
x2={-0.3}
y2={-0.9}
strokeWidth={0.04}
/>
<schematicline
x1={0.3}
y1={-0.65}
x2={0.3}
y2={-0.9}
strokeWidth={0.04}
/>
<schematicline
x1={-0.4}
y1={-0.65}
x2={0.4}
y2={-0.65}
strokeWidth={0.04}
/>
</symbol>
}
pinLabels={pinLabels}
supplierPartNumbers={{
jlcpcb: ["C393937"],
}}
manufacturerPartNumber="SK12D07VG4"
footprint={
<footprint
insertionDirection="from_above"
cutoutApertureDirection="from_bottom"
>
<platedhole
portHints={["pin1"]}
pcbX="-1.999996mm"
pcbY="0mm"
outerDiameter="1.524mm"
holeDiameter="0.9144mm"
shape="circle"
/>
<platedhole
portHints={["pin2"]}
pcbX="0mm"
pcbY="0mm"
outerDiameter="1.524mm"
holeDiameter="0.9144mm"
shape="circle"
/>
<platedhole
portHints={["pin3"]}
pcbX="1.999996mm"
pcbY="0mm"
outerDiameter="1.524mm"
holeDiameter="0.9144mm"
shape="circle"
/>
<platedhole
portHints={["pin4"]}
pcbX="4.150106mm"
pcbY="0mm"
holeWidth="0.7999984mm"
holeHeight="1.5999968mm"
outerWidth="1.3999972mm"
outerHeight="2.1999956mm"
shape="pill"
/>
<platedhole
portHints={["pin5"]}
pcbX="-4.150106mm"
pcbY="0mm"
holeWidth="0.7999984mm"
holeHeight="1.5999968mm"
outerWidth="1.3999972mm"
outerHeight="2.1999956mm"
shape="pill"
/>
<silkscreenpath
route={[
{ x: -2.0058126000001266, y: -2.1989796000000297 },
{ x: -2.0058126000001266, y: -4.850003000000015 },
{ x: 0, y: -4.850003000000015 },
{ x: 0, y: -2.1989796000000297 },
]}
/>
<silkscreenpath
route={[
{ x: 4.351019999999949, y: -2.1989796000000297 },
{ x: -4.348988000000077, y: -2.1989796000000297 },
]}
/>
<silkscreenpath
route={[
{ x: -4.350004000000126, y: 2.1999955999999656 },
{ x: 4.350004000000013, y: 2.1999955999999656 },
]}
/>
<silkscreenpath
route={[
{ x: 4.350004000000013, y: 2.1999955999999656 },
{ x: 4.350004000000013, y: 1.3093700000001718 },
]}
/>
<silkscreenpath
route={[
{ x: 4.350004000000013, y: -1.309370000000058 },
{ x: 4.350004000000013, y: -2.1989796000000297 },
]}
/>
<silkscreenpath
route={[
{ x: -4.348988000000077, y: -2.1989796000000297 },
{ x: -4.348988000000077, y: -1.309598600000072 },
]}
/>
<silkscreenpath
route={[
{ x: -4.348988000000077, y: 1.309598600000072 },
{ x: -4.348988000000077, y: 2.1999955999999656 },
]}
/>
<silkscreentext
text="{NAME}"
pcbX="-0.0127mm"
pcbY="3.2606mm"
anchorAlignment="center"
fontSize="1mm"
/>
<fabricationnotepath
route={[
{ x: 0.1269999999999527, y: -4.850003000000015 },
{ x: 0.08980256121060393, y: -4.939805561210733 },
{ x: 0, y: -4.977002999999968 },
{ x: -1.99999600000001, y: -4.977002999999968 },
{ x: -2.089798561210614, y: -4.939805561210733 },
{ x: -2.126995999999963, y: -4.850003000000015 },
{ x: -2.126995999999963, y: -2.250008199999911 },
{ x: -2.089798561210614, y: -2.160205638789307 },
{ x: -1.99999600000001, y: -2.1230081999999584 },
{ x: -1.9101934387892925, y: -2.160205638789307 },
{ x: -1.8729959999999437, y: -2.250008199999911 },
{ x: -1.8729959999999437, y: -4.723002999999949 },
{ x: -0.1270000000000664, y: -4.723002999999949 },
{ x: -0.1270000000000664, y: -2.1999955999999656 },
{ x: -0.08980256121071761, y: -2.110193038789248 },
{ x: 0, y: -2.072995600000013 },
{ x: 0.08980256121060393, y: -2.110193038789248 },
{ x: 0.1269999999999527, y: -2.1999955999999656 },
{ x: 0.1269999999999527, y: -4.850003000000015 },
]}
strokeWidth="0mm"
isFilled
hasStroke={false}
/>
<courtyardoutline
outline={[
{ x: -5.100104600000009, y: 2.499982799999998 },
{ x: 5.100104599999895, y: 2.499982799999998 },
{ x: 5.100104599999895, y: -5.100003000000015 },
{ x: -5.100104600000009, y: -5.100003000000015 },
{ x: -5.100104600000009, y: 2.499982799999998 },
]}
/>
</footprint>
}
cadModel={{
objUrl: objPath,
stepUrl: stepPath,
pcbRotationOffset: 0,
modelOriginPosition: {
x: 0,
y: 0.000010100000008783638,
z: 0.7563325999999995,
},
}}
{...props}
/>
);
};