hrithik18k/switch-pcb

A tscircuit package created by hrithik18k.

Version
1.2.0
License
unset
Stars
0

debug/esp-two-layer-repro.tsx

PCBPCB preview for debug/esp-two-layer-repro.tsx
SchematicSchematic preview for debug/esp-two-layer-repro.tsx
import { ESP_12F_ESP8266MOD_ } from "./imports/ESP_12F_ESP8266MOD_"
import { AP2112K_3_3TRG1 } from "./imports/AP2112K_3_3TRG1"
export default () => <board width={50} height={48} layers={2} autorouter="auto-local">
{["MCU","Power","Boot","Interfaces"].map(name=><schematicsection name={name} key={name}/>)}
<ESP_12F_ESP8266MOD_ name="U1" pcbX={-4} pcbY={5} pcbRotation={-90} schX={0} schY={0} schSectionName="MCU"/>
<keepout excludeRefs={[".U1"]} shape="rect" pcbX={-4} pcbY={19} width={28} height={10}/>
<AP2112K_3_3TRG1 name="U2" pcbX={-13} pcbY={-12} schX={-12} schY={0} schSectionName="Power"/>
<pinheader name="J1" pinCount={2} pinLabels={["V5","GND"]} pcbX={-14} pcbY={-20} schX={-18} schY={0} schSectionName="Power"/>
<capacitor name="C1" capacitance="10uF" footprint="0805" pcbX={-18} pcbY={-13} schX={-16} schY={-3} schRotation={-90} schSectionName="Power"/>
<capacitor name="C2" capacitance="10uF" footprint="0805" pcbX={-8} pcbY={-12} schX={-4} schY={-3} schRotation={-90} schSectionName="Power"/>
<capacitor name="C3" capacitance="100nF" footprint="0805" pcbX={-11} pcbY={-5} schX={-2.5} schY={-3} schRotation={-90} schSectionName="MCU"/>
<capacitor name="C4" capacitance="10uF" footprint="0805" pcbX={-6} pcbY={-5} schX={-1} schY={-3} schRotation={-90} schSectionName="MCU"/>
<resistor name="R1" resistance="10k" footprint="0805" pcbX={-17} pcbY={-1} schX={-4} schY={3} schRotation={90} schSectionName="Boot"/>
<resistor name="R2" resistance="10k" footprint="0805" pcbX={-17} pcbY={3} schX={-2.5} schY={3} schRotation={90} schSectionName="Boot"/>
<resistor name="R3" resistance="10k" footprint="0805" pcbX={11} pcbY={4} schX={-1} schY={3} schRotation={90} schSectionName="Boot"/>
<resistor name="R4" resistance="10k" footprint="0805" pcbX={11} pcbY={0} schX={0.5} schY={3} schRotation={90} schSectionName="Boot"/>
<resistor name="R5" resistance="10k" footprint="0805" pcbX={11} pcbY={-4} schX={-3} schY={0} schRotation={-90} schSectionName="Boot"/>
<resistor name="R6" resistance="100k" footprint="0805" pcbX={14} pcbY={-11} schX={4} schY={0} schRotation={-90} schSectionName="Boot"/>
<pinheader name="J2" schWidth={0.58} pinCount={5} pinLabels={["GND","TXD","RXD","BOOT","RST"]} pcbX={0} pcbY={-20} schX={0} schY={-6} schSectionName="Interfaces"/>
<pinheader name="J3" pinCount={3} pinLabels={["V5","GND","RELAY"]} pcbX={19} pcbY={7} pcbRotation={90} schX={7} schY={-10} schSectionName="Interfaces"/>
<pinheader name="J4" pinCount={3} pinLabels={["V3V3","GND","TOUCH"]} pcbX={19} pcbY={-5} pcbRotation={90} schX={12} schY={-10} schSectionName="Interfaces"/>
<trace name="V5_0" from="J1.V5" to="net.V5" width={0.4}/>
<trace name="V5_1" from="U2.VIN" to="net.V5" width={0.4}/>
<trace name="V5_2" from="U2.EN" to="net.V5" width={0.4}/>
<trace name="V5_3" from="C1.pin1" to="net.V5" width={0.4}/>
<trace name="V5_4" from="J3.V5" to="net.V5" width={0.4}/>
<trace name="GND_0" from="J1.GND" to="net.GND" width={0.4}/>
<trace name="GND_1" from="U2.GND" to="net.GND" width={0.4}/>
<trace name="GND_2" from="C1.pin2" to="net.GND" width={0.4}/>
<trace name="GND_3" from="C2.pin2" to="net.GND" width={0.4}/>
<trace name="GND_4" from="C3.pin2" to="net.GND" width={0.4}/>
<trace name="GND_5" from="C4.pin2" to="net.GND" width={0.4}/>
<trace name="GND_6" from="U1.GND" to="net.GND" width={0.4}/>
<trace name="GND_7" from="R5.pin2" to="net.GND" width={0.4}/>
<trace name="GND_8" from="R6.pin2" to="net.GND" width={0.4}/>
<trace name="GND_9" from="J2.GND" to="net.GND" width={0.4}/>
<trace name="GND_10" from="J3.GND" to="net.GND" width={0.4}/>
<trace name="GND_11" from="J4.GND" to="net.GND" width={0.4}/>
<trace name="V3V3_0" from="U2.VOUT" to="net.V3V3" width={0.4}/>
<trace name="V3V3_1" from="U1.VCC" to="net.V3V3" width={0.4}/>
<trace name="V3V3_2" from="C2.pin1" to="net.V3V3" width={0.4}/>
<trace name="V3V3_3" from="C3.pin1" to="net.V3V3" width={0.4}/>
<trace name="V3V3_4" from="C4.pin1" to="net.V3V3" width={0.4}/>
<trace name="V3V3_5" from="R1.pin2" to="net.V3V3" width={0.4}/>
<trace name="V3V3_6" from="R2.pin2" to="net.V3V3" width={0.4}/>
<trace name="V3V3_7" from="R3.pin2" to="net.V3V3" width={0.4}/>
<trace name="V3V3_8" from="R4.pin2" to="net.V3V3" width={0.4}/>

<trace name="V3V3_10" from="J4.V3V3" to="net.V3V3" width={0.4}/>
<trace name="EN_0" from="U1.EN" to="net.EN" width={0.2}/>
<trace name="EN_1" from="R1.pin1" to="net.EN" width={0.2}/>
<trace name="RST_0" from="U1.RST" to="net.RST" width={0.2}/>
<trace name="RST_1" from="R2.pin1" to="net.RST" width={0.2}/>
<trace name="RST_2" from="J2.RST" to="net.RST" width={0.2}/>
<trace name="BOOT_0" from="U1.GPIO0" to="net.BOOT" width={0.2}/>
<trace name="BOOT_1" from="R3.pin1" to="net.BOOT" width={0.2}/>
<trace name="BOOT_2" from="J2.BOOT" to="net.BOOT" width={0.2}/>
<trace name="STRAP2_0" from="U1.GPIO2" to="net.STRAP2" width={0.2}/>
<trace name="STRAP2_1" from="R4.pin1" to="net.STRAP2" width={0.2}/>
<trace name="STRAP15_0" from="U1.GPIO15" to="net.STRAP15" width={0.2}/>
<trace name="STRAP15_1" from="R5.pin1" to="net.STRAP15" width={0.2}/>
<trace name="RELAY_0" from="U1.GPIO12" to="net.RELAY" width={0.2}/>
<trace name="RELAY_1" from="J3.RELAY" to="net.RELAY" width={0.2}/>
<trace name="RELAY_2" from="R6.pin1" to="net.RELAY" width={0.2}/>
<trace name="TOUCH_0" from="U1.GPIO13" to="net.TOUCH" width={0.2}/>
<trace name="TOUCH_1" from="J4.TOUCH" to="net.TOUCH" width={0.2}/>
<trace name="TXD_0" from="U1.TXD0" to="net.TXD" width={0.2}/>
<trace name="TXD_1" from="J2.TXD" to="net.TXD" width={0.2}/>
<trace name="RXD_0" from="U1.RXD0" to="net.RXD" width={0.2}/>
<trace name="RXD_1" from="J2.RXD" to="net.RXD" width={0.2}/>
{[-21,21].flatMap(x=>[-20,20].map(y=><hole key={x+","+y} pcbX={x} pcbY={y} diameter={3.2}/>))}
<silkscreentext text="SWITCH ESP12F REV B" pcbX={0} pcbY={-23} fontSize={0.9}/>
</board>