My first circuit with my brother
YY
yyalster
·
Created Nov 11, 2026
·
Updated Nov 11, 2026

Details
Components
5
Schematic
Yes
Simulation
Transient analysis
Copies
Not copied yet
Tags
No tags yet.
About this circuit
The author hasn't added a description yet.
Components used
Components used
5 components
NameManufacturerMPNCountType
SPICE netlist
* **************************************************
* Generated from CircuitSim Schematic
**************************************************
X_D1 N4 N5 LED_VIRTUAL_b2f33485 IS=1e-14 N=1 RS=0 CJO=0 M=0.5 VJ=1 BV=1e30 IBV=100p OnCurrent=5m
R_R1 N6 0 470 Resistor_1d9c8cf9a__R_R1
R_SW1 N4 N3 100u
X_U1 N2 N3 FUSEVIRTUAL_1d9c8cf9 IMAX=1
V_V1 N2 0 dc 12 ac 0 0 distof1 0 0 distof2 0 0
V_IP1 N5 N6 0
**************************************************
* Models and supporting definitions follow
**************************************************
* LED source-variant replacement with current-sense brightness node
.subckt LED_VIRTUAL_b2f33485 T0 T1 IS=1e-14 N=1 RS=0 CJO=0 M=0.5 VJ=1 BV=1e30 IBV=100p OnCurrent=5m
DLED T0 SENSE LED_VIRTUAL_b2f33485_DIODE
.model LED_VIRTUAL_b2f33485_DIODE D(IS={IS} N={N} RS={RS} CJO={CJO} M={M} VJ={VJ} BV={BV} IBV={IBV})
VSENSE SENSE T1 DC 0
BLIT lit 0 V = { (i(VSENSE) > {OnCurrent}) ? 1 : ((i(VSENSE) < 0) ? 0 : (i(VSENSE) / {OnCurrent})) }
.ends LED_VIRTUAL_b2f33485
.model Resistor_1d9c8cf9a__R_R1 r(tc1=0 tc2=0 tnom=27)
* Stateful over-current fuse equivalent
.subckt FUSEVIRTUAL_1d9c8cf9 port1 port2 params: IMAX=1
VSENSE port1 SENSE 0
BFUSE SENSE port2 I=V(SENSE,port2)/(V(TRIP)>0.5 ? 10Meg : 1e-4)
CTRIP TRIP 0 1u IC=0
BTRIP 0 TRIP I=(time>0 && abs(I(VSENSE))>IMAX ? 1 : 0)
RSTATE TRIP 0 1T
.ends FUSEVIRTUAL_1d9c8cf9
**************************************************
* Simulation settings
**************************************************
.tran 20u 100m 0 20u uic
.save I(V_IP1) V(X_D1.lit) v(x_U1.trip)
.endTry this circuit yourself
Free to get started. No download — runs in your browser with a full SPICE engine.