hrithik18k/switch-pcb

A tscircuit package created by hrithik18k.

Version
1.2.0
License
unset
Stars
0

relay.circuit.tsx

PCBPCB preview for relay.circuit.tsx
SchematicSchematic preview for relay.circuit.tsx
import {A_0805W8F1001T5E} from "./imports/A_0805W8F1001T5E"
import {A_0805W8F1003T5E} from "./imports/A_0805W8F1003T5E"
import {A_1N4148W} from "./imports/A_1N4148W"
import {A_2_54_1_3P_} from "./imports/A_2_54_1_3P_"
import {G5Q_1A4_EL3_HA_DC5} from "./imports/G5Q_1A4_EL3_HA_DC5"
import {KF301_5_0_2P} from "./imports/KF301_5_0_2P"
import {AO3400A} from "./imports/AO3400A"
export default () => <board width={50} height={48} layers={2} autorouter="auto-local">
{["Driver","Relay","Contacts"].map(name=><schematicsection key={name} name={name}/>)}
<G5Q_1A4_EL3_HA_DC5 name="K1" pcbX={0} pcbY={4} schX={0} schY={0} schSectionName="Relay"/>
<keepout layers={["top","bottom"]} excludeRefs={[".K1"]} shape="rect" pcbX={-3.81} pcbY={0} width={6} height={48}/>
<A_2_54_1_3P_ name="J1" pcbX={-16} pcbY={14} schX={-10} schY={0} schSectionName="Driver"/>
<AO3400A name="Q1" pcbX={-16} pcbY={-5} schX={-5} schY={-2} schSectionName="Driver"/>
<A_1N4148W name="D1" pcbX={-16} pcbY={6} schX={-4} schY={2} schRotation={90} schSectionName="Driver"/>
<A_0805W8F1001T5E name="R1" pcbX={-17} pcbY={-11} schX={-8} schY={-2} schSectionName="Driver"/>
<A_0805W8F1003T5E name="R2" pcbX={-12} pcbY={-11} schX={-5} schY={-5} schRotation={-90} schSectionName="Driver"/>
<KF301_5_0_2P name="J2" pcbX={18} pcbY={0} pcbRotation={90} schX={6} schY={0} schSectionName="Contacts"/>
<trace name="V5_0" from="J1.pin1" to="net.V5" width={0.35}/>
<trace name="V5_1" from="K1.pin5" to="net.V5" width={0.35}/>
<trace name="V5_2" from="D1.pin1" to="net.V5" width={0.35}/>
<trace name="GND_0" from="J1.pin2" to="net.GND" width={0.35}/>
<trace name="GND_1" from="Q1.S" to="net.GND" width={0.35}/>
<trace name="GND_2" from="R2.pin2" to="net.GND" width={0.35}/>
<trace name="GATE_0" from="Q1.G" to="net.GATE" width={0.35}/>
<trace name="GATE_1" from="R1.pin2" to="net.GATE" width={0.35}/>
<trace name="GATE_2" from="R2.pin1" to="net.GATE" width={0.35}/>
<trace name="COIL_0" from="Q1.D" to="net.COIL" width={0.35}/>
<trace name="COIL_1" from="D1.pin2" to="net.COIL" width={0.35}/>
<trace name="COIL_2" from="K1.pin1" to="net.COIL" width={0.35}/>
<trace name="IN_0" from="J1.pin3" to="net.IN" width={0.35}/>
<trace name="IN_1" from="R1.pin1" to="net.IN" width={0.35}/>
<trace name="LINE_0" from="J2.pin1" to="net.LINE" width={1.2}/>
<trace name="LINE_1" from="K1.pin2" to="net.LINE" width={1.2}/>
<trace name="LOAD_0" from="J2.pin2" to="net.LOAD" width={1.2}/>
<trace name="LOAD_1" from="K1.pin3" to="net.LOAD" width={1.2}/>
{[-21,21].flatMap(x=>[-20,20].map(y=><hole key={x+","+y} pcbX={x} pcbY={y} diameter={3.2}/>))}
<silkscreentext text="5V LOGIC" pcbX={-16} pcbY={21} fontSize={1}/>
<silkscreentext text="CONTACTS / DANGER" pcbX={12} pcbY={21} fontSize={0.9}/>
<silkscreentext text="LINE / LOAD" pcbX={17} pcbY={9} fontSize={1}/>
<silkscreentext text="AC CONTACTS" pcbX={17} pcbY={-9} fontSize={0.8}/>
<silkscreentext text="REV B / NOT INSTALL APPROVED" pcbX={0} pcbY={-23} fontSize={0.8}/>
</board>