Parts and models in the circuit simulator
OurCircuits has 145 parts in 15 categories, listed below by category. Under the 10 parts that offer them are 26 named models: part numbers whose published datasheets the models were fitted to, each with a line on what it models and what it does not. The battery's 12 presets are typical curves set by the site's author, not fits to any manufacturer's sheet. The load's 6 presets are common supply ranges set by the site's author.
Each named model is our fit to the part's published datasheet, not a manufacturer's model.
Connectors
Ground
Chassis gnd
Signal gnd
In port
Out port
Net label
Junction
Sources
DC V
DC · SINE · SQUARE · TRIANGLE
live solver
V{n} a b SIN(off amp freq)
Square/triangle export as PULSE for ngspice. PWL/noise sources arrive with the ngspice backend.
AC V
Mains V
Square V
Tri V
Pulse V
Step V
AM V
FM V
Chirp V
f(t) V
PWM gen
amplitude · f_sw · duty
live solver
* behavioral switching source
Behavioral pulse-width source with a live duty slider — ideal edges, no rise/fall time. Drives gate drivers, converters and RC averagers.
SPWM gen
3φ Wye
3φ Delta
DC I
DC
live solver
I{n} a b {value}
Ideal DC current injection.
AC I
Square I
Tri I
Pulse I
f(t) I
Battery
charge 0–100 % · 1–24 cells in series and in parallel
live solver
V{n} a x DC {OCV} · R{n} x b {R_int}, at the set charge
A cell's open-circuit voltage at its charge, less its internal resistance times the current. The charge is a bar you drag; it stays where you set it unless the battery clock is on, when it falls with the current drawn and rises with a current into it; the panel shows the terminal voltage and how long the battery lasts at the present draw. Its presets — alkaline, NiMH, Li-MnO2 coin, Li-ion, LiPo and LFP — are typical curves set by the site's author, not datasheet fits.
- AAA alkaline — Typical alkaline curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
- AA alkaline — Typical alkaline curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
- C alkaline — Typical alkaline curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
- D alkaline — Typical alkaline curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
- 9 V alkaline — Typical alkaline curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
- AA NiMH — Typical NiMH curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
- CR2032 — Typical Li-MnO2 curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
- 18650 Li-ion — Typical Li-ion 4.2 V curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
- LiPo 1S — Typical Li-ion 4.2 V curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
- LiPo 2S — Typical Li-ion 4.2 V curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
- LiPo 3S — Typical Li-ion 4.2 V curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
- LFP cell — Typical LFP curve and capacity, set by the site's author; not a fit to any manufacturer's sheet.
Load
current (A) ≥ 0 · V min · V max (either may be left empty) · keeps drawing outside its window (off unless set)
live solver
B{n} a b I={I}·tanh(max(V(a) − V(b), 0) / 25 mV)
Draws the current you set while its voltage stays inside the window you set, and stops — drawing nothing — outside it. Once stopped it tries again whenever the supply is back at least 1 % inside the window, and starts if the supply can hold it; a try that fails draws nothing. A stand-in for anything you power, not a model of any device; the preset windows are common supply ranges set by the site's author.
- 3 V device — Draws 10 mA while its voltage stays inside 2.7–3.6 V, and stops — drawing nothing — outside it. Once stopped it tries again whenever the supply is back at least 1 % inside the window, and starts if the supply can hold it; a try that fails draws nothing. A stand-in for anything you power, not a model of any device; the preset windows are common supply ranges set by the site's author.
- 3.3 V logic — Draws 50 mA while its voltage stays inside 3.0–3.6 V, and stops — drawing nothing — outside it. Once stopped it tries again whenever the supply is back at least 1 % inside the window, and starts if the supply can hold it; a try that fails draws nothing. A stand-in for anything you power, not a model of any device; the preset windows are common supply ranges set by the site's author.
- 5 V device — Draws 200 mA while its voltage stays inside 4.5–5.5 V, and stops — drawing nothing — outside it. Once stopped it tries again whenever the supply is back at least 1 % inside the window, and starts if the supply can hold it; a try that fails draws nothing. A stand-in for anything you power, not a model of any device; the preset windows are common supply ranges set by the site's author.
- 12 V device — Draws 500 mA while its voltage stays inside 10.5–15 V, and stops — drawing nothing — outside it. Once stopped it tries again whenever the supply is back at least 1 % inside the window, and starts if the supply can hold it; a try that fails draws nothing. A stand-in for anything you power, not a model of any device; the preset windows are common supply ranges set by the site's author.
- 24 V device — Draws 1 A while its voltage stays inside 21–30 V, and stops — drawing nothing — outside it. Once stopped it tries again whenever the supply is back at least 1 % inside the window, and starts if the supply can hold it; a try that fails draws nothing. A stand-in for anything you power, not a model of any device; the preset windows are common supply ranges set by the site's author.
- 48 V device — Draws 2 A while its voltage stays inside 40–60 V, and stops — drawing nothing — outside it. Once stopped it tries again whenever the supply is back at least 1 % inside the window, and starts if the supply can hold it; a try that fails draws nothing. A stand-in for anything you power, not a model of any device; the preset windows are common supply ranges set by the site's author.
Passives
Resistor
1Ω – 10MΩ
live solver
R{n} a b {value}
Ideal linear element. Fully simulated client-side.
Capacitor
1pF – 10mF
live solver
C{n} a b {value}
Trapezoidal companion model (BE at breakpoints). Set initial conditions via .ic.
Inductor
1nH – 10H
live solver
L{n} a b {value}
Companion model with stored current state.
Transformer
L₁ · turns ratio · k
live solver
L1 + L2 + K{n} k
Real mutual-inductance stamp — leakage and magnetising current are genuine consequences of L₁ and k, not assumed ideal ratios. Center-tap and multi-winding variants ship alongside.
Center-tap TX
TX 1P2S
TX 2P1S
TX 2P2S
Pot
wiper 1–99%
live solver
R{n}A a w · R{n}B w b
Three-terminal adjustable divider. Select it and drag the wiper slider while the simulation runs — the solver tracks it live.
Thermistor
R₂₅ · B=3950
live solver
R(T) = R₂₅·e^(B(1/T−1/298))
Temperature-dependent resistor with a live temperature slider (−20…100°C). The standard sensor in battery packs, hotends and HVAC.
LDR
Fuse
rated current (A)
live solver
R{n} a b Ron * blow latch
Blows when |I| exceeds the rating and stays blown for the rest of the run (the symbol breaks). Replacing it = resetting the sim — pausing doesn't replace a fuse.
Coupled L
L₁ · L₂ · k ∈ [0,1)
live solver
L{n}A + L{n}B + K{n} k
The transformer's real mutual-inductance stamp with L₁/L₂ set directly: M = k·√(L₁L₂). k=0 = independent inductors; k→1 = transformer-like. Exports the standard SPICE K statement.
R array
Diodes
Diode
Is=1nA · n=1.6
live solver
.model Dmod D(Is=1e-9 N=1.6)
Shockley model with N–R + pnjlim limiting. Swap in vendor .model for exact parts.
- 1N4148 — Vf follows the sheet's 4 graph points from 100 µA to 100 mA within 0.03 V, with N 2.18 absorbing the ohmic drop (no series-R field), reverse current −Is = 20.3 nA at any reverse voltage (sheet ≤ 25 nA at VR = 20 V), no reverse recovery or breakdown, and Cj fixed at 4pF.
- 1N4007 — Vf follows the sheet's 3 graph points from 10 mA to 1 A within the read precision, with N 2.35 absorbing the ohmic drop (no series-R field), reverse current −Is = 373 nA at any reverse voltage (sheet ≤ 5 µA at rated DC blocking voltage), no reverse recovery or breakdown, and Cj fixed at 15pF.
Schottky
Vf ≈ 0.3V
live solver
.model DSCH D(Is=1e-7 N=1.05)
Low forward drop and fast — the diode of choice for power rails, OR-ing and flyback clamps.
- 1N5819 — Vf passes through the sheet's two graph points (100 mA, 1 A) by construction and is unanchored outside them (it reads 0.058 V at 1 mA), with N 2.10 absorbing the ohmic drop (no series-R field), reverse current −Is = 528 µA at any reverse voltage (sheet ≤ 1 mA at rated dc voltage), no reverse recovery, and Cj fixed at 110pF.
- BAT43 — Vf passes through the sheet's two graph points (1 mA, 10 mA) by construction and is unanchored outside them, with N 1.01 absorbing the ohmic drop (no series-R field), reverse current −Is = 46.4 nA at any reverse voltage (sheet ≤ 500 nA at VR = 25 V), no reverse recovery, and Cj fixed at 7pF.
Zener
Vz settable (5.1V default)
live solver
.model DZ D(BV={Vz} IBV=5m)
Forward diode plus sharp reverse breakdown — clamps, references, regulators. Set Vz per part in properties.
- 1N4728A 3.3 V — 3.3 V at 76 mA → knee 2.540 V, rz 10 Ω (R5: vz is the knee; one slope through the breakdown, the sheet's ZZK ≤ 400 Ω at 1 mA not represented).
- 1N4733A 5.1 V — 5.1 V at 49 mA → knee 4.757 V, rz 7 Ω (R5: vz is the knee; one slope through the breakdown, the sheet's ZZK ≤ 550 Ω at 1 mA not represented).
- 1N4742A 12 V — 12 V at 21 mA → knee 11.811 V, rz 9 Ω (R5: vz is the knee; one slope through the breakdown, the sheet's ZZK ≤ 700 Ω at 0.25 mA not represented).
LED
Vf ≈ 3.2V @ 20mA
live solver
.model DLED D(Is=1e-12 N=3.87)
Per-color forward voltage (editable Vf) sets the drop. Brightness tracks the real solved forward current through a perceptual curve — dark below 2% of the rated current, full at rated (~20 mA), and plainly lit at the few-milliamp currents a beginner circuit actually produces.
Bridge
4× Dmod
live solver
D1 ac1→+, D2 ac2→+, D3 −→ac1, D4 −→ac2
Full-wave bridge — four internal Shockley diodes rectify BOTH AC half-cycles to the +/− DC rails. DC out ≈ V_pk − 2·V_f.
Half-wave
Is=1nA · n=1.6
live solver
.model Dmod D(Is=1e-9 N=1.6)
Single-diode half-wave block — the same Shockley model as the plain diode, packaged as a rectifier. Passes one half-cycle; DC out ≈ V_pk − V_f.
TVS
Vclamp settable (6.8V default)
live solver
.model DTVS D(BV={Vc} IBV=5m) ×2 back-to-back
Bidirectional transient-voltage suppressor — symmetric clamp conducting hard once |V| exceeds the clamp voltage, in either polarity. Set Vclamp in properties.
PIN diode
Photodiode
Transistors
NPN
β≈200 · Is=1e-14
live solver
.model QNPN NPN(Is=1e-14 Bf=200)
Live Ebers-Moll model solved by Newton–Raphson — amplifiers, followers and saturated switches all bias correctly.
- 2N3904 — Vce(sat) reads 50 mV against 0.35 V typ (graph read) at 100 mA/10 mA (below the sheet: no RC/RB/RE, no high-injection term) and 50 mV against 0.1 V typ (graph read) at 10 mA, β stays flat at 173 where the sheet's hFE falls with Ic, and Cπ/Cµ are fixed.
- P2N2222A — Vce(sat) reads 50 mV against 0.085 V typ (graph read) at 150 mA/15 mA (below the sheet: no RC/RB/RE, no high-injection term) and 50 mV against 0.07 V typ (graph read) at 100 mA, β stays flat at 173 where the sheet's hFE falls with Ic, and Cπ/Cµ are fixed.
- BC547B — Vce(sat) reads 65 mV against 0.25 V typ at 100 mA/5 mA (below the sheet: no RC/RB/RE, no high-injection term) and 65 mV against 0.09 V typ at 10 mA, β stays flat at 300 where the sheet's hFE falls with Ic, and Cπ/Cµ are fixed.
- BD139 — Vce(sat) reads 51 mV against 0.09 V typ (graph read) at 500 mA/50 mA (below the sheet: no RC/RB/RE, no high-injection term) and 51 mV against 0.02 V typ (graph read) at 100 mA, β stays flat at 100 where the sheet's hFE falls with Ic, and Cπ/Cµ are fixed at the generic 8/2 pF (the sheet states none).
PNP
β≈200 · Is=1e-14
live solver
.model QPNP PNP(Is=1e-14 Bf=200)
The NPN's mirror — high-side switches, current sources, push-pull output stages.
- 2N3906 — Vce(sat) reads 50 mV against 0.22 V typ (graph read) at 100 mA/10 mA (below the sheet: no RC/RB/RE, no high-injection term), β stays flat at 173 where the sheet's hFE falls with Ic, and Cπ/Cµ are fixed.
- BC557B — Vce(sat) reads 65 mV against 0.25 V typ at 100 mA/5 mA (below the sheet: no RC/RB/RE, no high-injection term) and 65 mV against 0.075 V typ at 10 mA, β stays flat at 290 where the sheet's hFE falls with Ic, and Cπ/Cµ are fixed.
NPN 4T
PNP 4T
NMOS
Vth=2V · K=0.1
live solver
.model MN NMOS(Vto=2 Kp=0.1)
Level-1 square-law model with editable threshold. Logic-level low-side switching, followers, amplifiers.
- IRLZ44N — RDS(on) is exact at 5 V and ×0.43 at 10 V, ×1.08 at 4 V (no RD/RS), Id reads ×0.70–×1.01 of the sheet's typical curves at 3–6 V, a 3.3 V gate switches a 12 V/10 Ω load fully (Vds 0.05 V), there is no subthreshold conduction and no body diode on the 3-pin part, and the caps are fixed.
- AO3400A — RDS(on) is exact at 2.5 V and ×0.21 at 10 V, ×0.52 at 4.5 V (no RD/RS), a 3.3 V gate switches a 12 V/10 Ω load fully (Vds 0.02 V), there is no subthreshold conduction and no body diode on the 3-pin part, and the caps are fixed.
- IRFZ44N — A standard-threshold MOSFET on a 3.3 V gate lands anywhere from fully on to fully off within one part number's datasheet spread: the IRFZ44N into a 12 V / 10 Ω load passes 1.19 A with its threshold at the sheet's 2 V minimum, 427 mA of 1.2 A at the 3 V midpoint, and nothing at the 4 V maximum. Vds is 0.11 V at the minimum; RDS(on) is exact at 10 V (no RD/RS), Id reads ×0.84–×1.32 of the sheet's typical curves at 4.5–5 V, there is no subthreshold conduction and no body diode on the 3-pin part, and the caps are fixed.
- IRF540N — RDS(on) is exact at 10 V (no RD/RS), a 3.3 V gate passes 182 mA of the 1.2 A a 12 V/10 Ω load asks (none with vt at the sheet's VGS(th) max), there is no subthreshold conduction and no body diode on the 3-pin part, and the caps are fixed.
- 2N7000 — RDS(on) is exact at 4.5 V and ×0.46 at 10 V (no RD/RS), Id reads ×1.19–×1.75 of the sheet's typical curves at 3–5 V, a 3.3 V gate passes 210 mA of the 1.2 A a 12 V/10 Ω load asks, there is no subthreshold conduction and no body diode on the 3-pin part, and the caps are fixed.
- BS170 — RDS(on) is exact at 10 V (no RD/RS), a 3.3 V gate passes 104 mA of the 1.2 A a 12 V/10 Ω load asks, there is no subthreshold conduction and no body diode on the 3-pin part, and the caps are fixed.
PMOS
|Vth|=2V · K=0.1
live solver
.model MP PMOS(Vto=-2 Kp=0.1)
High-side power switching — load switches, reverse-polarity protection, battery gating.
NMOS 4T
PMOS 4T
N-JFET
P-JFET
MESFET
MESFET-P
IGBT
IGBT-P
UJT
Analog
Op-amp
A=10⁵ · ±13V rails
live solver
E{n} out 0 in+ in− 1e5
Live VCVS model with tanh rail saturation. Followers, inverting amps, comparators, Schmitt triggers and integrators all work.
- TL072 (TL07xC) — DC only, with no GBW (5.25 MHz) or slew (20 V/µs), and its swing is fixed at ±13.5 V, which is right only for ±15 V supplies (OP has no supply pins); Vos 3 mV typ on the sheet — set in this preset as +3 mV, the sheet's typical as printed (a real part's offset takes either sign); the DC analyses honour it since FIX-2a.
- LM741C — DC only, with no GBW or slew (0.5 V/µs), and its swing is fixed at ±14 V, right only for ±15 V into 10 kΩ; Vos 2 mV typ on the sheet — set in this preset as +2 mV, the sheet's typical as printed (a real part's offset takes either sign); the DC analyses honour it since FIX-2a.
Comparator
- TL072 (TL07xC) — DC only, with no GBW (5.25 MHz) or slew (20 V/µs), and its swing is fixed at ±13.5 V, which is right only for ±15 V supplies (OP has no supply pins); Vos 3 mV typ on the sheet — set in this preset as +3 mV, the sheet's typical as printed (a real part's offset takes either sign); the DC analyses honour it since FIX-2a.
- LM741C — DC only, with no GBW or slew (0.5 V/µs), and its swing is fixed at ±14 V, right only for ±15 V into 10 kΩ; Vos 2 mV typ on the sheet — set in this preset as +2 mV, the sheet's typical as printed (a real part's offset takes either sign); the DC analyses honour it since FIX-2a.
Op-amp (rails)
A=10⁵ · rails = V+/V− pins (live)
live solver
E{n} out 0 in+ in− A * + live rail clamp
5-pin op-amp: the output clamps to the SOLVED rail-pin voltages and draws its output current from them — single-supply and asymmetric-rail circuits behave for real. Unpowered = dead output. GBW/slew not simulated (omitted, not faked).
- LM358 — DC only, with no GBW (700 kHz) or slew (0.3 V/µs), and the output reaches the rail (5.00 V open loop at 5 V) where the sheet only guarantees ≥ 3.5 V with no typical headroom tabled; Vos 3 mV typ on the sheet — set in this preset as +3 mV, the sheet's typical as printed (a real part's offset takes either sign); the DC analyses honour it since FIX-2a.
- MCP6002 — DC only, with no GBW (1 MHz) or slew (0.6 V/µs), and it swings rail to rail like the part, without the sheet's 25 mV headroom; Vos ±4.5 mV max (no typical) on the sheet — not set in this preset; the DC analyses accept a datasheet Vos since FIX-2a.
Instr amp
Current sense
Power amp
V reference
Opto-coupler
Switches
SPST
Ron 10mΩ · Roff 1GΩ (editable)
live solver
R{n} a b Ron | Roff
Click it on the canvas to throw it while the simulation runs — state is preserved, so caps hold their charge. Contact Ron/Roff are real, editable resistances (W4).
SPDT
Push
DPST
V SPST
Von 2.5V · Voff 1.5V · Ron/Roff
live solver
S{n} a b c+ c− .model SW(Vt Vh Ron Roff)
Behavioral state machine driving a real contact resistance: closes at ≥ Von, releases at ≤ Voff — genuine hysteresis, evaluated from each solved step (the relay pattern). SPDT/DPDT variants ship alongside.
V SPDT
V DPDT
I switch
T-delay
Ton · Toff
live solver
S{n} + PULSE-driven control
Timed from sim start: open until Ton, closes at Ton, re-opens at Toff if Toff > Ton. The solver takes first-order steps across the Ton/Toff edges (clean switching).
Analog SW
Electromechanical
Relay
coil R · pull-in V
live solver
R coil + latched contact
Coil is a real resistor; the contact is a switch latched from the solved coil voltage with hysteresis. Normally-closed and changeover variants ship alongside.
Relay NC
Relay C/O
DC motor
Ra · Ke · Kt · J · b · load
live solver
* behavioral, real mechanical state
Behavioral PM DC machine: back-EMF Ke·ω is a real branch and rotor speed integrates J·dω/dt = Kt·I − b·ω − T_load semi-implicitly. Armature inductance and cogging are not modelled.
Logic
AND
OR
NAND
NOR
XOR
XNOR
NOT
Buffer
555
Vcc · Trig · Thresh · Disch
live solver
* behavioral SR-latch macromodel
Behavioral 555: comparators at ⅓/⅔ Vcc drive an SR latch, a push-pull output and a discharge switch — astables and monostables oscillate for real. Not a transistor-level die model.
Const 0/1
SR latch
D latch
D flip-flop
D · CLK → Q, Q̄
live solver
* behavioral edge latch
Rising-edge D flip-flop — the memory element behind counters, dividers and shift registers. Setup/hold times are not simulated.
JK flip-flop
T flip-flop
Counter
modulus 2–16
live solver
* behavioral state latch
Edge-triggered counter with four outputs and a clear input. Behavioral: state advances one solver step after each clock edge.
Mux 2:1
Demux 1:2
Half adder
Full adder
BCD→7-seg
A B C D in · a–g out
live solver
* behavioral decoder
Decodes a 4-bit value to seven active-high segment drives for the display. Codes above 9 blank the display (documented behaviour).
Embedded
Pro Mini
firmware: an uploaded .hex · power LED: fitted or removed · D0–D13 · A0–A7 · VCC · RAW · GND · RST
live solver
* microcontroller board — its firmware runs in OurCircuits only; not exported
The Pro Mini 5 V / 16 MHz board with its ATmega328P running your firmware cycle by cycle on circuit time: digital I/O with INPUT_PULLUP, PWM from the real timers, the ADC, millis and delay, reset, sleep in idle and power-down, the D13 LED and the power LED (fitted or removed), Serial out to a monitor, the I2C bus as its one master (SDA on A4, SCL on A5), its supply draw awake and asleep, RAW through its 5 V regulator, brown-out. Not modelled: Serial in, SPI, EEPROM, the watchdog and the other four sleep modes — the board says when a firmware uses one.
DS3231
starts at: the power-on value or a set date and time · I2C at 68h · 32K · SQW · SCL · SDA · VCC · GND
live solver
* real-time clock module — its clock and its I2C registers run in OurCircuits only; not exported
The common six-pin DS3231 module with its 4.7 kΩ pull-ups, on a board's I2C bus at 68h. Its time is circuit time: the time and date registers (BCD, 12- and 24-hour, the day register, the century bit, the month ends, 29 February), INTCN, RS1, RS2 and OSF, SQW at 1 Hz, its two alarms with their flags and the interrupt on SQW's pin, the power-fail level and its supply draw. Not modelled: the 32K pin, SQW at 1.024, 4.096 and 8.192 kHz, the temperature, the ageing offset, the module's EEPROM and VBAT — its panel says when a sketch uses one.
LCD 16x2
two lines of 16 characters · 8-bit or 4-bit · VSS · VDD · V0 · RS · RW · E · D0–D7 · A · K
live solver
* LCD 16x2 module — its controller runs in OurCircuits only; not exported
The common 16x2 character module with one HD44780-compatible controller, written to from its pins: 8-bit and 4-bit operation, the instruction set, both lines of display memory, eight custom characters, the cursor, its blink and the shifts; the A00 table's ASCII characters, its degree sign and its arrows, any other code a full block. The text's darkness follows V0 against VDD, and the backlight is an LED between A and K. Not modelled: reads (RW high), the busy flag and execution times, the 5 × 10 font, the liquid crystal's response time.
LCD 16x2 I2C
two lines of 16 characters · I2C at 27h or 3Fh · contrast 0–100 % · GND · VCC · SDA · SCL
live solver
* LCD 16x2 I2C module — its backpack and controller run in OurCircuits only; not exported
The same 16x2 display behind the common PCF8574 backpack, on a board's I2C bus at 27h (or 3Fh, a PCF8574A): each byte written sets the eight ports — P0 RS, P1 RW, P2 E, P3 the backlight, P4–P7 D4–D7 — and the controller takes 4-bit transfers on P2's fall, everything the LCD 16x2 shows. P3 switches the backlight, the contrast is a setting, and it shares the two wires with a DS3231. Not modelled: the bus's bit timing, the backpack's pull-ups, the PCF8574's interrupt and input side, and the LCD 16x2's own list.
HC-SR04
distance 2–400 cm, or nothing in range · VCC · Trig · Echo · GND
live solver
* HC-SR04 module — its measurement runs in OurCircuits only; not exported
The common ultrasonic ranging module: a Trig pulse of 10 µs or more starts one measurement, and Echo goes high for the sound's time out and back at 340 m/s — 58.8 µs a centimetre — or 38 ms when nothing is in range; the distance is a setting that can change while the circuit runs. Trig is read at TTL levels and Echo is driven; it draws 2 mA waiting and 15 mA measuring. Not modelled: the beam, the surface, the temperature, noise.
PIR HC-SR501
hold 5–300 s · motion pressed in its panel or on its dome · VCC · OUT · GND
live solver
* HC-SR501 module — its timing runs in OurCircuits only; not exported
The common PIR motion module in its repeat-trigger mode: a motion press while the circuit runs takes OUT to 3.3 V for the hold time, a press while it is high starts the hold again, and after OUT falls it takes no motion for 2.5 s. It draws 50 µA. Not modelled: the warm-up minute, the range and the angle, the single-trigger jumper.
Power
Diode SW
Transistor SW
Trans+Diode
PWM comp
PWM 3φ
SPWM 3φ
Phase angle
firing angle α · pulse width
live solver
* behavioral, zero-cross synced
Detects mains zero crossings and fires a gate pulse α degrees later — the front half of every lamp dimmer and soft-starter.
Linear reg
- LM7805 — Vout, a dropout of 2 V and a 2.10 A short-circuit current are the sheet's typicals by construction, while the GND pin draws 0 A (the sheet: IQ 8 mA max) and the dropout is one constant, with no line/load regulation or PSRR.
- LM1117-3.3 — Vout, a dropout of 1.15 V and a 1.20 A short-circuit current are the sheet's typicals by construction, while the GND pin draws 0 A (the sheet: IQ 5 mA typ) and the dropout is one constant (the sheet: 1.1 V at 100 mA, 1.15 V at 500 mA, 1.2 V at 800 mA), with no line/load regulation or PSRR.
- MCP1700-3.3 — Vout, a dropout of 0.178 V and a 0.41 A short-circuit current are the sheet's typicals by construction, while the GND pin draws 0 A (the sheet: IQ 1.6 uA typ) and the dropout is one constant, with no line/load regulation or PSRR.
Switching reg
V_ref · f_sw · gain
live solver
* behavioral controller
Behavioral switch-mode controller: integrates the feedback error and pushes duty cycle until the sensed node reaches V_ref. The closed-loop half of a buck/boost.
Gate driver
V_th · drive level
live solver
* behavioral, floating OUT–RTN
Floating gate driver — OUT is referenced to RTN, not to ground, which is what lets a high-side MOSFET switch cleanly. A ground-referenced gate on a floating source chatters.
Indicators
Lamp
Buzzer
7-seg
a–g · common
live solver
R 1k per segment
Each segment is a real 1 kΩ load to the common pin; a segment lights when its solved drive clears the logic threshold. Nothing lights without current.
7-seg + dp
Hex display
LED bar
Thyristors
SCR
TRIAC
gate · MT1 · MT2
live solver
* behavioral latch
Behavioral bidirectional thyristor: latches on when gated and stays on until its current falls through zero. Gate sensitivity and dV/dt triggering are not modelled.
GTO
Modeling
VCVS
VCCS
CCCS
CCVS
Multiplier
gain
live solver
* behavioral nonlinear VCVS
Analog four-quadrant multiplier (and its divider sibling), linearised inside the Newton loop so fast edges stay accurate. Mixers, squarers, RMS front-ends.
Divider
Integrator
gain · initial condition
live solver
* behavioral VCVS + history
Ideal analog calculus blocks — exact maths with no offset drift, unlike the op-amp versions they replace in a block diagram.
Differentiator
Text
Text