astra/pd-power-supply
USB-PD Power Supply with RP2040 controller
- Version
- 1.1.6
- License
- unset
- Stars
- 0
imports/CK7101MD9AQE/CK7101MD9AQE.tsx
import type { SwitchProps } from '@tscircuit/props'
import { jscadPlanner as j } from 'jscad-planner'
// C&K 7000: 7101 / M actuator / D9 bushing / A right-angle / Q silver / E seal.
// 5 A at 28 VDC resistive. Authored land pattern + mechanical envelope, not supplier CAD.
// Confirm PCB datum, support fit and lever sweep against the purchased part before fabrication.
const body = j.colors.colorize([0.15,0.18,0.21],j.transforms.translate([0,-3.43,7.32],j.primitives.cuboid({size:[12.7,6.86,12.7]})))
const barrel = (r:number,h:number,y:number) => j.transforms.translate([0,y,8.23],j.transforms.rotate([Math.PI/2,0,0],j.primitives.cylinder({radius:r,height:h,resolution:48})))
const model = j.booleans.union(body,j.colors.colorize([0.7,0.72,0.75],barrel(3.175,7.11,-10.415)),j.colors.colorize([0.8,0.82,0.85],barrel(1.46,5.08,-16.51)))
export const CK7101MD9AQE = (props:SwitchProps) => <switch spdt
manufacturerPartNumber="7101MD9AQE"
symbol={<symbol width={1.5} height={1}>
<schematictext text={props.name ?? "SW_POWER"} schX={0} schY={0.55} fontSize={0.15}/>
<port name="pin2" pinNumber={2} schX={-0.5} schY={0} direction="left"/>
<port name="pin1" pinNumber={1} schX={0.5} schY={0.3} direction="right"/>
<port name="pin3" pinNumber={3} schX={0.5} schY={-0.3} direction="right"/>
<schematicpath points={[{x:-0.5,y:0},{x:-0.2,y:0},{x:0.23,y:0.23}]} strokeWidth={0.03}/>
<schematicpath points={[{x:0.3,y:0.3},{x:0.5,y:0.3}]} strokeWidth={0.03}/>
<schematicpath points={[{x:0.3,y:-0.3},{x:0.5,y:-0.3}]} strokeWidth={0.03}/>
</symbol>}
pinLabels={{pin1:'OFF',pin2:'COM',pin3:'ON'}}
footprint={<footprint insertionDirection="from_above">
{[[-4.7,'pin1'],[0,'pin2'],[4.7,'pin3']].map(([x,p])=><platedhole portHints={[String(p)]} pcbX={Number(x)} pcbY={0} holeDiameter={1.85} outerDiameter={2.8} shape="circle"/>)}
{[-6.35,6.35].map(x=><hole pcbX={x} pcbY={-5.08} diameter={2.67}/>)}
<silkscreenrect pcbY={-3.43} width={13.2} height={7.36}/>
<courtyardrect pcbY={-3.43} width={17} height={9}/>
</footprint>}
cadModel={{jscad:model,positionOffset:{x:0,y:2.5075,z:0}}}
{...props}/>