techmannih/tests

Creates a 10mm x 10mm circuit board featuring an axial battery component labeled U1 at the origin.

Usage: To use this component in a project: 1. Import the component: ```tsx import { SomeComponent } from "@tsci/AUTHOR.PACKAGE_NAME" ``` 2. Place the component on a board: ```tsx <board width="20mm" height="20mm"> <SomeComponent name="U1" /> </board> ``` 3. Optionally, connect pins using `sel` from `@tscircuit/core` for tracing and connections. Key points: - Specify a unique `name` when placing the component - Use the predefined pins (VCC, DISCH, THRES, CTRL, GND, TRIG) - Customize placement with schematic/PCB coordinates if needed

Version
0.0.1
License
unset
Stars
0

dist/schematic.svg

PCBPCB preview for dist/schematic.svg
SchematicSchematic preview for dist/schematic.svg
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600" style="background-color: rgb(245, 241, 237)" data-real-to-screen-transform="matrix(150.3759398496,0,0,-150.3759398496,169.9248120301,300)" data-software-used-string="@tscircuit/core@0.0.1017"><style>
              .boundary { fill: rgb(245, 241, 237); }
              .schematic-boundary { fill: none; stroke: #fff; }
              .component { fill: none; stroke: rgb(132, 0, 0); }
              .chip { fill: rgb(255, 255, 194); stroke: rgb(132, 0, 0); }
              .component-pin { fill: none; stroke: rgb(132, 0, 0); }
              /* Basic per-trace hover fallback */
              .trace:hover {
                filter: invert(1);
              }
              .trace:hover .trace-crossing-outline {
                opacity: 0;
              }
              .trace:hover .trace-junction {
                filter: invert(1);
              }
              /* Net-hover highlighting: when a trace or its overlays are hovered,
                 invert color for all traces (base + overlays) sharing the same
                 subcircuit connectivity key. Also hide crossing outline during hover. */
              
              .text { font-family: sans-serif; fill: rgb(0, 150, 0); }
              .pin-number { fill: rgb(169, 0, 0); }
              .port-label { fill: rgb(0, 100, 100); }
              .component-name { fill: rgb(0, 100, 100); }
            </style><rect class="boundary" x="0" y="0" width="1200" height="600"/><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_0"><rect class="component-overlay" x="90.22556390981198" y="256.390977443616" width="159.39849624057604" height="87.21804511276798" fill="transparent"/><path d="M 90.22556390981198 300 L 129.32330827070797 300" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 209.022556390996 300 L 249.624060150388 300" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 169.9248120301 280.45112781955197 L 209.022556390996 280.45112781955197 L 209.022556390996 319.54887218044803 L 129.32330827070797 319.54887218044803 L 129.32330827070797 280.45112781955197 L 169.9248120301 280.45112781955197" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 213.53383458648398 343.609022556384 L 209.022556390996 324.060150375936 L 193.98496240603598 339.097744360896 L 213.53383458648398 343.609022556384" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 124.81203007521998 256.390977443616 L 200.00000000001998 330.07518796992" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><text x="169.9248120301" y="352.57357894736003" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="hanging" font-size="27.067669172928px">10kΩ</text><text x="169.9248120301" y="247.42642105264" stroke="rgb(245, 241, 237)" stroke-width="3.007518796992px" paint-order="stroke" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="auto" font-size="27.067669172928px">P1</text><circle cx="90.22556390981198" cy="300" r="3.007518796992px" stroke-width="3.007518796992px" fill="none" stroke="rgb(132, 0, 0)"/><circle cx="249.624060150388" cy="300" r="3.007518796992px" stroke-width="3.007518796992px" fill="none" stroke="rgb(132, 0, 0)"/></g><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_1"><rect class="component-overlay" x="427.067669172916" y="220.30075187971198" width="87.21804511276798" height="159.39849624057604" fill="transparent"/><path d="M 470.6766917293 379.699248120288 L 470.6766917293 340.601503759392" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 470.6766917293 260.902255639104 L 470.6766917293 220.30075187971198" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 451.127819548852 300 L 451.127819548852 260.902255639104 L 490.225563909748 260.902255639104 L 490.22556390974796 340.601503759392 L 451.12781954885196 340.601503759392 L 451.127819548852 300" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 514.285714285684 256.390977443616 L 494.736842105236 260.902255639104 L 509.774436090196 275.939849624064 L 514.285714285684 256.390977443616" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 427.067669172916 345.11278195488 L 500.75187969922 269.92481203008" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><text x="521.804511278164" y="331.578947368416" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="start" dominant-baseline="middle" font-size="27.067669172928px">10kΩ</text><text x="521.804511278164" y="268.421052631584" stroke="rgb(245, 241, 237)" stroke-width="3.007518796992px" paint-order="stroke" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="start" dominant-baseline="middle" font-size="27.067669172928px">P2</text><circle cx="470.6766917293" cy="379.699248120288" r="3.007518796992px" stroke-width="3.007518796992px" fill="none" stroke="rgb(132, 0, 0)"/><circle cx="470.6766917293" cy="220.30075187971198" r="3.007518796992px" stroke-width="3.007518796992px" fill="none" stroke="rgb(132, 0, 0)"/></g><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_2"><rect class="component-overlay" x="691.7293233082119" y="256.390977443616" width="159.39849624057615" height="87.21804511276798" fill="transparent"/><path d="M 851.127819548788 300 L 812.030075187892 300" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 732.3308270676039 300 L 691.7293233082119 300" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 771.4285714284999 319.54887218044803 L 732.3308270676039 319.54887218044803 L 732.3308270676039 280.45112781955197 L 812.030075187892 280.45112781955197 L 812.030075187892 319.54887218044803 L 771.4285714284999 319.54887218044803" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 727.8195488721159 256.390977443616 L 732.3308270676039 275.939849624064 L 747.3684210525639 260.902255639104 L 727.8195488721159 256.390977443616" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 816.5413533833799 343.609022556384 L 741.35338345858 269.92481203008" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><text x="771.4285714284999" y="352.57357894736003" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="hanging" font-size="27.067669172928px">10kΩ</text><text x="771.4285714284999" y="242.91514285715198" stroke="rgb(245, 241, 237)" stroke-width="3.007518796992px" paint-order="stroke" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="auto" font-size="27.067669172928px">P3</text><circle cx="851.127819548788" cy="300" r="3.007518796992px" stroke-width="3.007518796992px" fill="none" stroke="rgb(132, 0, 0)"/><circle cx="691.7293233082119" cy="300" r="3.007518796992px" stroke-width="3.007518796992px" fill="none" stroke="rgb(132, 0, 0)"/></g><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_3"><rect class="component-overlay" x="1028.5714285713161" y="220.30075187971198" width="87.21804511276787" height="159.39849624057604" fill="transparent"/><path d="M 1072.1804511277 220.30075187971198 L 1072.1804511277 259.398496240608" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 1072.1804511277 339.097744360896 L 1072.1804511277 379.699248120288" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 1091.729323308148 300 L 1091.729323308148 339.097744360896 L 1052.6315789472521 339.097744360896 L 1052.6315789472521 259.398496240608 L 1091.729323308148 259.398496240608 L 1091.729323308148 300" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 1028.5714285713161 343.609022556384 L 1048.120300751764 339.097744360896 L 1033.082706766804 324.060150375936 L 1028.5714285713161 343.609022556384" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><path d="M 1115.789473684084 254.88721804512 L 1042.10526315778 330.07518796992" stroke="rgb(132, 0, 0)" fill="none" stroke-width="3.007518796992px" stroke-linecap="round"/><text x="1123.308270676564" y="346.616541353376" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="start" dominant-baseline="middle" font-size="27.067669172928px">10kΩ</text><text x="1123.308270676564" y="253.383458646624" stroke="rgb(245, 241, 237)" stroke-width="3.007518796992px" paint-order="stroke" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="start" dominant-baseline="middle" font-size="27.067669172928px">P4</text><circle cx="1072.1804511277" cy="220.30075187971198" r="3.007518796992px" stroke-width="3.007518796992px" fill="none" stroke="rgb(132, 0, 0)"/><circle cx="1072.1804511277" cy="379.699248120288" r="3.007518796992px" stroke-width="3.007518796992px" fill="none" stroke="rgb(132, 0, 0)"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_0"><circle cx="90.22556390981198" cy="300" r="6.015037593984" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_1"><circle cx="249.624060150388" cy="300" r="6.015037593984" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_2"><circle cx="470.6766917293" cy="379.699248120288" r="6.015037593984" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_3"><circle cx="470.6766917293" cy="220.30075187971198" r="6.015037593984" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_4"><circle cx="851.127819548788" cy="300" r="6.015037593984" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_5"><circle cx="691.7293233082119" cy="300" r="6.015037593984" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_6"><circle cx="1072.1804511277" cy="220.30075187971198" r="6.015037593984" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_7"><circle cx="1072.1804511277" cy="379.699248120288" r="6.015037593984" fill="red" opacity="0"/></g></svg>