ShiboSoftwareDev/simulation

This circuit models an NPN transistor switch with a 5V supply, a base resistor, a collector resistor, a switch controlling the base, and a voltage probe, simulated over 4ms using ngspice.

Usage: To import and use the "@tsci/ShiboSoftwareDev.simulation" package: 1. Import the component in your project: ```tsx import SimulationCircuit from "@tsci/ShiboSoftwareDev.simulation" ``` 2. Use the component within a tscircuit project: ```tsx export default () => ( <board> <SimulationCircuit /> </board> ) ``` The component creates a predefined circuit simulation with a voltage source, resistors, switch, transistor, and voltage probe, configured for a 4ms analog simulation using ngspice.

Version
0.0.1
License
unset
Stars
0

dist/pcb.svg

PCBPCB preview for dist/pcb.svg
SchematicSchematic preview for dist/pcb.svg
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="600" data-software-used-string="@tscircuit/core@0.0.973"><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="130.88235294117646" y="70.58823529411762" width="538.2352941176471" height="458.8235294117648" data-type="pcb_boundary" data-pcb-layer="global"/><path class="pcb-board" d="M 130.88235294117646 529.4117647058824 L 669.1176470588235 529.4117647058824 L 669.1176470588235 70.58823529411762 L 130.88235294117646 70.58823529411762 Z" fill="none" stroke="rgba(255, 255, 255, 0.5)" stroke-width="7.058823529411765" data-type="pcb_board" data-pcb-layer="board"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="272.0588235294117" y="211.76470588235293" width="93.1764705882353" height="42.35294117647059" data-type="pcb_smtpad" data-pcb-layer="top"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="272.0588235294117" y="345.88235294117646" width="93.1764705882353" height="42.35294117647059" data-type="pcb_smtpad" data-pcb-layer="top"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="434.7647058823529" y="278.8235294117647" width="93.1764705882353" height="42.35294117647059" data-type="pcb_smtpad" data-pcb-layer="top"/><text x="0" y="0" dx="0" dy="0" fill="#f2eda1" font-family="Arial, sans-serif" font-size="35.294117647058826" text-anchor="middle" dominant-baseline="central" transform="matrix(1,0,0,1,400.1764705882353,158.8235294117647)" class="pcb-silkscreen-text pcb-silkscreen-top" data-pcb-silkscreen-text-id="pcb_component_2" stroke="none" data-type="pcb_silkscreen_text" data-pcb-layer="top">Q1</text></svg>