tscircuit/autorouting-dataset-01

This code manages the hardware and electronic components for circuit design and PCB layout, defining components like resistors, capacitors, transistors, connectors, and footprints, and providing tools for component placement, PCB topology, and electrical connections.

Version
1.0.102
License
unset
Stars
4

dist/lib/circuit/circuit001/pcb.svg

PCBPCB preview for dist/lib/circuit/circuit001/pcb.svg
SchematicSchematic preview for dist/lib/circuit/circuit001/pcb.svg
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="600"><style></style><rect class="boundary" x="0" y="0" fill="#000" width="800" height="600" data-type="pcb_background" data-pcb-layer="global"/><rect class="pcb-boundary" fill="none" stroke="#fff" stroke-width="0.3" x="289.6352034049799" y="18.394132765836673" width="220.7295931900402" height="563.2117344683265" data-type="pcb_boundary" data-pcb-layer="global"/><path class="pcb-board" d="M 289.6352034049799 570.2181157409373 L 510.3647965950201 570.2181157409373 L 510.3647965950201 18.394132765836673 L 289.6352034049799 18.394132765836673 Z" fill="none" stroke="rgba(255, 255, 255, 0.5)" stroke-width="1.8394132765836684" data-type="pcb_board" data-pcb-layer="board"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="365.0500496151828" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.SBU2"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="374.2494336588322" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.CC1"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="383.4441455927561" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.DM2"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="392.6435296364034" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.DP1"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="401.8382415703253" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.DM1"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="411.0376256139726" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.DP2"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="420.2276654381733" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.SBU1"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="429.4317215915459" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.CC2"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="335.6204304730147" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.GND1" data-pad-net-name="GND"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="341.13819205531416" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.GND2" data-pad-net-name="GND"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="350.33757609896145" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.VBUS1" data-pad-net-name="VBUS"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="355.85533768125885" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.VBUS2" data-pad-net-name="VBUS"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="438.62643352546985" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.VBUS2"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="444.14886721749053" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.VBUS1"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="453.3435791514166" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.GND2"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="458.861340733714" y="430.4395235564616" width="5.518228793271345" height="23.912324770842496" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="J1.GND1"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="432.6495856593601" y="64.83931799957432" width="14.715306212669347" height="17.47442612754485" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="LED.pin1"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="462.9999047229906" y="64.83931799957432" width="14.715306212669347" height="17.47442612754485" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="LED.pin2" data-pad-net-name="GND"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="322.28478906434003" y="156.8099818287577" width="14.715306212669347" height="17.47442612754485" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="R1.pin1"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="352.6351081279705" y="156.8099818287577" width="14.715306212669347" height="17.47442612754485" data-type="pcb_smtpad" data-pcb-layer="top" data-pad-name="R1.pin2"/><path class="pcb-silkscreen pcb-silkscreen-top" d="M 317.7970326980495 513.2094513732383 L 317.7970326980495 478.94279703534374" fill="none" stroke="#f2eda1" stroke-width="1.8394132765836684" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_0" data-pcb-silkscreen-path-id="pcb_silkscreen_path_0" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><path class="pcb-silkscreen pcb-silkscreen-top" d="M 482.24034417973246 581.6058672341633 L 317.7970326980495 581.6058672341633 L 317.7970326980495 554.3585905433833" fill="none" stroke="#f2eda1" stroke-width="1.8394132765836684" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_0" data-pcb-silkscreen-path-id="pcb_silkscreen_path_1" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><path class="pcb-silkscreen pcb-silkscreen-top" d="M 482.24034417973246 513.2159923268504 L 482.24034417973246 478.9362560817295" fill="none" stroke="#f2eda1" stroke-width="1.8394132765836684" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_0" data-pcb-silkscreen-path-id="pcb_silkscreen_path_2" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><path class="pcb-silkscreen pcb-silkscreen-top" d="M 482.24034417973246 581.6058672341633 L 482.24034417973246 554.3520495897753" fill="none" stroke="#f2eda1" stroke-width="1.8394132765836684" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_0" data-pcb-silkscreen-path-id="pcb_silkscreen_path_3" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><path class="pcb-silkscreen pcb-silkscreen-top" d="M 470.3575578293253 57.48166489323964 L 428.97075910619276 57.48166489323964 L 428.97075910619276 89.67139723345383 L 470.3575578293253 89.67139723345383" fill="none" stroke="#f2eda1" stroke-width="1.8394132765836684" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_1" data-pcb-silkscreen-path-id="pcb_silkscreen_path_4" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><text x="0" y="0" dx="0" dy="0" fill="#f2eda1" font-family="Arial, sans-serif" font-size="7.3576531063346735" text-anchor="middle" dominant-baseline="central" transform="matrix(1,0,0,1,455.1823982975101,48.2845985103213)" class="pcb-silkscreen-text pcb-silkscreen-top" data-pcb-silkscreen-text-id="pcb_silkscreen_text_0" stroke="none" data-type="pcb_silkscreen_text" data-pcb-layer="top">LED</text><path class="pcb-silkscreen pcb-silkscreen-top" d="M 459.7809314889692 335.69292297651947 L 340.2190685110308 335.69292297651947" fill="none" stroke="#f2eda1" stroke-width="1.8394132765836684" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_2" data-pcb-silkscreen-path-id="pcb_silkscreen_path_5" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><path class="pcb-silkscreen pcb-silkscreen-top" d="M 459.7809314889692 252.9193255302544 L 340.2190685110308 252.9193255302544" fill="none" stroke="#f2eda1" stroke-width="1.8394132765836684" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_2" data-pcb-silkscreen-path-id="pcb_silkscreen_path_6" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><path class="pcb-silkscreen pcb-silkscreen-top" d="M 400 335.69292297651947 L 400 310.86084374264 L 385.0547671277577 282.600169841895" fill="none" stroke="#f2eda1" stroke-width="1.8394132765836684" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_2" data-pcb-silkscreen-path-id="pcb_silkscreen_path_7" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><path class="pcb-silkscreen pcb-silkscreen-top" d="M 400 252.9193255302544 L 400 277.7514047641339" fill="none" stroke="#f2eda1" stroke-width="1.8394132765836684" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_2" data-pcb-silkscreen-path-id="pcb_silkscreen_path_8" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><text x="0" y="0" dx="0" dy="0" fill="#f2eda1" font-family="Arial, sans-serif" font-size="12.875892936085679" text-anchor="middle" dominant-baseline="central" transform="matrix(6.123233995736766e-17,-1,1,6.123233995736766e-17,332.8614154046961,294.30612425338694)" class="pcb-silkscreen-text pcb-silkscreen-top" data-pcb-silkscreen-text-id="pcb_silkscreen_text_1" stroke="none" data-type="pcb_silkscreen_text" data-pcb-layer="top">SW1</text><path class="pcb-silkscreen pcb-silkscreen-top" d="M 340.4534465507331 155.93626052238048 L 349.1817568542468 155.93626052238048" fill="none" stroke="#f2eda1" stroke-width="2.207295931900402" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_3" data-pcb-silkscreen-path-id="pcb_silkscreen_path_9" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><path class="pcb-silkscreen pcb-silkscreen-top" d="M 340.4534465507331 175.15812926267984 L 349.1817568542468 175.15812926267984" fill="none" stroke="#f2eda1" stroke-width="2.207295931900402" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_3" data-pcb-silkscreen-path-id="pcb_silkscreen_path_10" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><text x="0" y="0" dx="0" dy="0" fill="#f2eda1" font-family="Arial, sans-serif" font-size="7.3576531063346735" text-anchor="middle" dominant-baseline="central" transform="matrix(1,0,0,1,344.8176017024899,140.25526233950472)" class="pcb-silkscreen-text pcb-silkscreen-top" data-pcb-silkscreen-text-id="pcb_silkscreen_text_2" stroke="none" data-type="pcb_silkscreen_text" data-pcb-layer="top">R1</text><g data-type="pcb_plated_hole" data-pcb-layer="through"><path class="pcb-hole-outer" fill="rgb(200, 52, 52)" d="M11.03645758654269,-5.518228793271346 v11.036457586542692 a11.03645758654269,11.03645758654269 0 0 1 -22.07291517308538,0 v-11.036457586542692 a11.03645758654269,11.03645758654269 0 0 1 22.07291517308538,0 z" transform="translate(479.55668435511325 538.4714309204664)" data-type="pcb_plated_hole" data-pcb-layer="top"/><path class="pcb-hole-inner" fill="#FF26E2" d="M7.35763839102846,-5.518228793271347 v11.036457586542694 a7.35763839102846,7.35763839102846 0 0 1 -14.71527678205692,0 v-11.036457586542694 a7.35763839102846,7.35763839102846 0 0 1 14.71527678205692,0 z" transform="translate(479.55668435511325 538.4714309204664)" data-type="pcb_plated_hole_drill" data-pcb-layer="drill"/></g><g data-type="pcb_plated_hole" data-pcb-layer="through"><path class="pcb-hole-outer" fill="rgb(200, 52, 52)" d="M11.03645758654269,-7.357638391028461 v14.715276782056922 a11.03645758654269,11.03645758654269 0 0 1 -22.07291517308538,0 v-14.715276782056922 a11.03645758654269,11.03645758654269 0 0 1 22.07291517308538,0 z" transform="translate(479.55668435511325 461.58719332663907)" data-type="pcb_plated_hole" data-pcb-layer="top"/><path class="pcb-hole-inner" fill="#FF26E2" d="M7.35763839102846,-7.357638391028462 v14.715276782056923 a7.35763839102846,7.35763839102846 0 0 1 -14.71527678205692,0 v-14.715276782056923 a7.35763839102846,7.35763839102846 0 0 1 14.71527678205692,0 z" transform="translate(479.55668435511325 461.58719332663907)" data-type="pcb_plated_hole_drill" data-pcb-layer="drill"/></g><g data-type="pcb_plated_hole" data-pcb-layer="through"><path class="pcb-hole-outer" fill="rgb(200, 52, 52)" d="M11.03645758654269,-7.357638391028461 v14.715276782056922 a11.03645758654269,11.03645758654269 0 0 1 -22.07291517308538,0 v-14.715276782056922 a11.03645758654269,11.03645758654269 0 0 1 22.07291517308538,0 z" transform="translate(320.44331564488675 461.58719332663907)" data-type="pcb_plated_hole" data-pcb-layer="top"/><path class="pcb-hole-inner" fill="#FF26E2" d="M7.35763839102846,-7.357638391028462 v14.715276782056923 a7.35763839102846,7.35763839102846 0 0 1 -14.71527678205692,0 v-14.715276782056923 a7.35763839102846,7.35763839102846 0 0 1 14.71527678205692,0 z" transform="translate(320.44331564488675 461.58719332663907)" data-type="pcb_plated_hole_drill" data-pcb-layer="drill"/></g><g data-type="pcb_plated_hole" data-pcb-layer="through"><path class="pcb-hole-outer" fill="rgb(200, 52, 52)" d="M11.03645758654269,-5.518228793271346 v11.036457586542692 a11.03645758654269,11.03645758654269 0 0 1 -22.07291517308538,0 v-11.036457586542692 a11.03645758654269,11.03645758654269 0 0 1 22.07291517308538,0 z" transform="translate(320.44331564488675 538.4714309204664)" data-type="pcb_plated_hole" data-pcb-layer="top"/><path class="pcb-hole-inner" fill="#FF26E2" d="M7.35763839102846,-5.518228793271347 v11.036457586542694 a7.35763839102846,7.35763839102846 0 0 1 -14.71527678205692,0 v-11.036457586542694 a7.35763839102846,7.35763839102846 0 0 1 14.71527678205692,0 z" transform="translate(320.44331564488675 538.4714309204664)" data-type="pcb_plated_hole_drill" data-pcb-layer="drill"/></g><g data-type="pcb_plated_hole" data-pcb-layer="through" data-pad-name="SW1.pin1"><circle class="pcb-hole-outer" fill="rgb(200, 52, 52)" cx="340.2190685110308" cy="335.69292297651947" r="17.93427944669077" data-type="pcb_plated_hole" data-pcb-layer="top"/><circle class="pcb-hole-inner" fill="#FF26E2" cx="340.2190685110308" cy="335.69292297651947" r="11.956186297793845" data-type="pcb_plated_hole_drill" data-pcb-layer="drill"/></g><g data-type="pcb_plated_hole" data-pcb-layer="through" data-pad-name="SW1.pin2" data-pad-net-name="VBUS"><circle class="pcb-hole-outer" fill="rgb(200, 52, 52)" cx="459.7809314889692" cy="335.69292297651947" r="17.93427944669077" data-type="pcb_plated_hole" data-pcb-layer="top"/><circle class="pcb-hole-inner" fill="#FF26E2" cx="459.7809314889692" cy="335.69292297651947" r="11.956186297793845" data-type="pcb_plated_hole_drill" data-pcb-layer="drill"/></g><g data-type="pcb_plated_hole" data-pcb-layer="through" data-pad-name="SW1.pin3"><circle class="pcb-hole-outer" fill="rgb(200, 52, 52)" cx="459.7809314889692" cy="252.9193255302544" r="17.93427944669077" data-type="pcb_plated_hole" data-pcb-layer="top"/><circle class="pcb-hole-inner" fill="#FF26E2" cx="459.7809314889692" cy="252.9193255302544" r="11.956186297793845" data-type="pcb_plated_hole_drill" data-pcb-layer="drill"/></g><g data-type="pcb_plated_hole" data-pcb-layer="through" data-pad-name="SW1.pin4"><circle class="pcb-hole-outer" fill="rgb(200, 52, 52)" cx="340.2190685110308" cy="252.9193255302544" r="17.93427944669077" data-type="pcb_plated_hole" data-pcb-layer="top"/><circle class="pcb-hole-inner" fill="#FF26E2" cx="340.2190685110308" cy="252.9193255302544" r="11.956186297793845" data-type="pcb_plated_hole_drill" data-pcb-layer="drill"/></g><circle class="pcb-hole" cx="346.6585232979591" cy="465.72820189615965" r="6.897902794332244" fill="#FF26E2" data-type="pcb_hole" data-pcb-layer="drill"/><circle class="pcb-hole" cx="453.3414767020409" cy="465.72820189615965" r="6.897902794332244" fill="#FF26E2" data-type="pcb_hole" data-pcb-layer="drill"/></svg>