hrithik18k/switch-pcb

A tscircuit package created by hrithik18k.

Version
1.2.0
License
unset
Stars
0

power.circuit.tsx

PCBPCB preview for power.circuit.tsx
SchematicSchematic preview for power.circuit.tsx
import {IRM_03_5} from "./imports/IRM_03_5"
import {A_0215001_MXEP} from "./imports/A_0215001_MXEP"
import {KF301_5_0_2P} from "./imports/KF301_5_0_2P"
import {A_2_54_1_3P_} from "./imports/A_2_54_1_3P_"
export default () => <board width={50} height={48} layers={2} autorouter="auto-local">
<schematicsection name="Mains"/><schematicsection name="Isolated"/>
<IRM_03_5 name="PS1" pcbX={0} pcbY={6} schX={0} schY={0} schSectionName="Isolated"/>
<A_0215001_MXEP name="F1" pcbX={0} pcbY={-20} schX={-6} schY={0.6} schSectionName="Mains"/>
<KF301_5_0_2P name="J1" pcbX={20} pcbY={-12.8} pcbRotation={90} schX={-10} schY={0} schSectionName="Mains"/>
<A_2_54_1_3P_ name="J2" pcbX={22} pcbY={15} pcbRotation={90} schX={5} schY={0} schSectionName="Isolated"/>
<keepout layers={["top","bottom"]} excludeRefs={[".PS1"]} shape="rect" pcbX={0} pcbY={6} width={50} height={8}/>
<trace name="LINE_IN" from="J1.pin1" to="F1.pin2" width={0.5}/>
<trace name="LINE_FUSED" from="F1.pin1" to="PS1.L" width={0.5}/>
<trace name="NEUTRAL" from="J1.pin2" to="PS1.N" width={0.5}/>
<trace name="V5" from="PS1.VO_POS" to="J2.pin1" width={0.6}/>
<trace name="GND" from="PS1.VO_NEG" to="J2.pin2" width={0.6}/>
{[-21,21].flatMap(x=>[-21,21].map(y=><hole key={x+","+y} pcbX={x} pcbY={y} diameter={3.2}/>))}
<silkscreentext text="DANGER 230VAC / FUSE T1A" pcbX={1} pcbY={-13} fontSize={0.8}/>
<silkscreentext text="5V 0.6A MAX" pcbX={0} pcbY={22} fontSize={0.9}/>
<silkscreentext text="POWER REV C" pcbX={0} pcbY={-23} fontSize={0.8}/>
</board>