hrithik18k/switch-pcb

A tscircuit package created by hrithik18k.

Version
1.2.0
License
unset
Stars
0

touch.circuit.tsx

PCBPCB preview for touch.circuit.tsx
SchematicSchematic preview for touch.circuit.tsx
import {A_2_54_1_3P_} from "./imports/A_2_54_1_3P_"
import {CC0805KRX7R9BB104} from "./imports/CC0805KRX7R9BB104"
import {CL21A475KAQNNNE} from "./imports/CL21A475KAQNNNE"
import {TTP223_BA6} from "./imports/TTP223_BA6"
export default () => <board width={50} height={48} layers={2} autorouter="auto-local">
<schematicsection name="Touch"/><schematicsection name="Interface"/>
<TTP223_BA6 name="U1" pcbX={0} pcbY={-7} schX={0} schY={0} schSectionName="Touch"/>
<chip name="E1" doNotPlace={true} manufacturerPartNumber="PCB copper touch electrode" pinLabels={{pin1:"SENSE"}} pcbX={0} pcbY={7} schX={4} schY={0} schSectionName="Touch" footprint={<footprint><smtpad portHints={["pin1"]} shape="rect" width={16} height={16} coveredWithSolderMask={true}/><courtyardrect width={17} height={17}/></footprint>}/>
<keepout shape="rect" layers={["bottom"]} pcbX={0} pcbY={7} width={18} height={18}/>
<CC0805KRX7R9BB104 name="C1" pcbX={-5} pcbY={-7} schX={-4} schY={0} schRotation={-90} schSectionName="Touch"/>
<CL21A475KAQNNNE name="C2" pcbX={-5} pcbY={-12} schX={-5.5} schY={0} schRotation={-90} schSectionName="Touch"/>
<A_2_54_1_3P_ name="J1" pcbX={0} pcbY={-19} schX={0} schY={-7} schSectionName="Interface"/>
<trace name="V3V3_0" from="J1.pin1" to="net.V3V3" width={0.25}/>
<trace name="V3V3_1" from="U1.VDD" to="net.V3V3" width={0.25}/>
<trace name="V3V3_2" from="U1.AHLB" to="net.V3V3" width={0.25}/>
<trace name="V3V3_3" from="C1.pin1" to="net.V3V3" width={0.25}/>
<trace name="V3V3_4" from="C2.pin1" to="net.V3V3" width={0.25}/>
<trace name="GND_0" from="J1.pin2" to="net.GND" width={0.25}/>
<trace name="GND_1" from="U1.VSS" to="net.GND" width={0.25}/>
<trace name="GND_2" from="U1.TOG" to="net.GND" width={0.25}/>
<trace name="GND_3" from="C1.pin2" to="net.GND" width={0.25}/>
<trace name="GND_4" from="C2.pin2" to="net.GND" width={0.25}/>
<trace name="OUT_0" from="U1.Q" to="net.OUT" width={0.25}/>
<trace name="OUT_1" from="J1.pin3" to="net.OUT" width={0.25}/>
<trace name="SENSE_0" from="U1.I" to="net.SENSE" width={0.25}/>
<trace name="SENSE_1" from="E1.SENSE" to="net.SENSE" width={0.25}/>
{[-21,21].flatMap(x=>[-20,20].map(y=><hole key={x+","+y} pcbX={x} pcbY={y} diameter={3.2}/>))}
<silkscreentext text="TOUCH / INSULATED COVER" pcbX={0} pcbY={20} fontSize={1}/>
<silkscreentext text="3V3 GND OUT" pcbX={0} pcbY={-22} fontSize={0.9}/>
</board>