Electronics Engineering covers semiconductors and pn junctions, diode circuits and rectifiers, BJT and MOSFET biasing and amplifiers, op-amp circuits, active filters, oscillators and 555 timers, ADCs and DACs, digital timing and power supplies: 92 calculations in 11 topics, each with its formula, its steps and its units, and a plain reason instead of a number when an input is missing or out of range. One compiled engine, four ways to use it: the desktop app, the command line, the browser and Python. Everything runs on your own computer, offline.
| Desktop app (Windows, Linux) | Windows · Linux |
Command line electronics-engineering (Windows, Linux) |
Windows · Linux |
| Browser (any device) | Try it on the model page |
| Python 3.10+ | pip install electronics-engineering-ai999x: on Windows and Linux (x86-64) pip installs the same compiled engine; on other systems (macOS, ARM) it installs a pure-Python build that gives the same answers |
From the Electronics Engineering desktop app: every scene and chart is drawn from the computed answer.
BJT voltage-divider bias: exact Q-point |
Sallen-Key low-pass filter: f0, Q and gain |
555 timer astable: frequency and duty cycle |
Operating point of a diode in series with a resistor (exact) |
CMOS gate propagation delay (switch-resistor model) |
ADC output code, LSB and quantisation error |
Common-source amplifier with source degeneration and ro |
Closed-loop bandwidth from the gain-bandwidth product |
Charts:
BJT voltage-divider bias: exact Q-point |
Sallen-Key low-pass filter: f0, Q and gain |
555 timer astable: frequency and duty cycle |
Operating point of a diode in series with a resistor (exact) |
Each question below was asked on this release; the comment under it is the line it printed.
import electronics_engineering_ai999x as electronics_engineering
a = electronics_engineering.ask(
"Transition frequency: gm = 40 mS, beta = 100, Cpi = 10 pF, Cmu = "
"2 pF"
)
print(a.outcome, a.values)
# SOLVED {'r_pi': 2500.0, 'f_beta': 5305164.76973, 'f_T': 530516476.973}
a = electronics_engineering.ask(
"Closed-loop bandwidth: GBW = 1000000 Hz, config = non-inverting, "
"Rf = 90000 ohm, R1 = 10000 ohm"
)
print(a.outcome, a.values)
# SOLVED {'G0': 10.0, 'noise_gain': 10.0, 'f_3dB': 100000.0}
a = electronics_engineering.ask(
"Adjustable regulator output: R1 = 240 ohm, R2 = 720 ohm, Vref = "
"1.25 V"
)
print(a.outcome, a.values)
# SOLVED {'Vout': 5.0, 'I_R1': 0.00520833333333}
a = electronics_engineering.ask(
"Built-in potential: NA = 1e+17 cm^-3, ND = 1e+16 cm^-3, ni = "
"1.5e+10 cm^-3, T = 300 K"
)
print(a.outcome, a.values)
# SOLVED {'Vbi': 0.752879413544}
a = electronics_engineering.ask(
"Filter order: ftype = Butterworth, fp = 1000 Hz, fs = 2500 Hz, Ap "
"= 1 dB, As = 40 dB"
)
print(a.outcome, a.values)
# SOLVED {'n': 6}
a = electronics_engineering.ask(
"CMOS switching threshold: VDD = 2.5 V, Vtn = 0.4 V, Vtp = 0.4 V, "
"kn = 0.1 mA/V^2, kp = 0.1 mA/V^2"
)
print(a.outcome, a.values)
# SOLVED {'r': 1.0, 'VM': 1.25}
a = electronics_engineering.ask(
"Shockley diode current: Is = 1e-14 A, n = 1, VD = 0.65 V, T = 300 "
"K"
)
print(a.outcome, a.values)
# SOLVED {'ID': 0.000830843834767, 'VT': 0.0258519997864}
a = electronics_engineering.ask(
"MOSFET drain current: kn = 2 mA/V^2, Vt = 1 V, VGS = 3 V, VDS = 5 "
"V"
)
print(a.outcome, a.values)
# SOLVED {'region': 'saturation', 'ID': 0.004, 'VOV': 2.0, 'VDS_sat': 2.0}
a = electronics_engineering.ask(
"555 monostable: R = 100000 ohm, C = 10 uF"
)
print(a.outcome, a.values)
# SOLVED {'T': 1.09861228867}
a = electronics_engineering.ask(
"Binary-weighted DAC: n = 4, code = 10, Vref = 5 V, R = 10000 ohm, "
"Rf = 5000 ohm"
)
print(a.outcome, a.values)
# SOLVED {'Vout': -3.125, 'I_total': 0.000625, 'R_LSB': 80000.0}
a = electronics_engineering.ask(
"Diode voltage for a current: ID = 0.001 A, Is = 1e-14 A, n = 1, T "
"= 300 K"
)
print(a.outcome, a.values)
# SOLVED {'VD': 0.654790722656, 'VT': 0.0258519997864}
a = electronics_engineering.ask(
"Inverting amplifier: Rf = 100000 ohm, Rin = 10000 ohm, Vin = 0.5 "
"V"
)
print(a.outcome, a.values)
# SOLVED {'G': -10.0, 'Vout': -5.0, 'Zin': 10000.0}
a = electronics_engineering.ask(
"DAC output voltage: n = 8, code = 200, Vref = 5 V"
)
print(a.outcome, a.values)
# SOLVED {'Vout': 3.90625, 'LSB': 0.01953125, 'V_full_scale': 4.98046875}
a = electronics_engineering.ask(
"LED series resistor: Vs = 5 V, Vf = 2 V, If = 20 mA"
)
print(a.outcome, a.values)
# SOLVED {'R': 150.0, 'P_R': 0.06, 'P_LED': 0.04}
a = electronics_engineering.ask(
"Body effect threshold voltage: Vt0 = 0.7 V, gamma = 0.4 V^0.5, "
"phi2F = 0.7 V, VSB = 3 V"
)
print(a.outcome, a.values)
# SOLVED {'Vt': 1.13475135185, 'dVt': 0.434751351853}
Each command below was run with electronics-engineering of this release; the lines under it are the answer it printed (the full answer goes on with the method, every input in SI units and the conditions it assumes).
$ electronics-engineering solve elx_butterworth_section_q n=4
Q_max = 1.306562965
Q = [0.541196100146,1.30656296488]
sections = 2
first_order = 0
$ electronics-engineering solve elx_transition_frequency "gm=40 mS" beta=100 "Cpi=10 pF" "Cmu=2 pF"
r_pi = 2500 ohm
f_beta = 5305164.77 Hz
f_T = 530516477 Hz
$ electronics-engineering solve elx_cmos_propagation_delay "Rn=10000 ohm" "Rp=20000 ohm" "CL=100 fF"
tpHL = 6.931471806e-10 s
tpLH = 1.386294361e-09 s
tp = 1.039720771e-09 s
$ electronics-engineering solve elx_adc_code "Vin=3.2 V" "Vref=5 V" n=8
code = 163
bits = 10100011
LSB = 0.01953125 V
V_code = 3.18359375 V
error = 0.01640625 V
$ electronics-engineering solve elx_capacitor_filter_ripple "Vp=16.3 V" "f=60 Hz" "RL=500 ohm" "C=1000 uF" circuit=full-wave
f_ripple = 120 Hz
Vr = 0.2716666667 V
Vdc = 16.16416667 V
Vr_rms = 0.07842341156 V
ripple_factor = 0.004851682934
$ electronics-engineering solve elx_common_source_amplifier "gm=2 mS" "ro=100000 ohm" "RD=10000 ohm" "RL=10000 ohm" "RS=0 ohm" "RG=1000000 ohm" "Rsig=10000 ohm"
Av = -9.523809524
Rin = 1000000 ohm
Rout = 9090.909091 ohm
Gv = -9.42951438
$ electronics-engineering solve elx_closed_loop_bandwidth "GBW=1000000 Hz" config=non-inverting "Rf=90000 ohm" "R1=10000 ohm"
G0 = 10
noise_gain = 10
f_3dB = 100000 Hz
$ electronics-engineering solve elx_555_astable "RA=1000 ohm" "RB=10000 ohm" "C=10 uF"
t_high = 0.07624618986 s
t_low = 0.06931471806 s
T = 0.1455609079 s
f = 6.869976385 Hz
duty = 0.5238095238
$ electronics-engineering solve elx_adjustable_regulator_output "R1=240 ohm" "R2=720 ohm" "Vref=1.25 V"
Vout = 5 V
I_R1 = 0.005208333333 A
$ electronics-engineering solve elx_builtin_potential "NA=1e+17 cm^-3" "ND=1e+16 cm^-3" "ni=1.5e+10 cm^-3" "T=300 K"
Vbi = 0.7528794135 V
$ electronics-engineering solve elx_cmos_dynamic_power alpha=0.1 "C=1000 pF" "VDD=1 V" "f=1000000000 Hz"
P = 0.1 W
E_supply = 1e-09 J
E_stored = 5e-10 J
I_avg = 0.1 A
$ electronics-engineering solve elx_filter_order ftype=Butterworth "fp=1000 Hz" "fs=2500 Hz" Ap=1 As=40
n = 6
$ electronics-engineering solve elx_bjt_cascode "IC=1 mA" beta=100 "VT=25 mV" "VA=100 V" "RL=1000000 ohm"
gm = 0.04 S
r_o = 100000 ohm
Rout = 9858536.585 ohm
Gm = 0.03959426027 S
Av = -35947.88859
$ electronics-engineering solve elx_cmos_switching_threshold "VDD=2.5 V" "Vtn=0.4 V" "Vtp=0.4 V" "kn=0.1 mA/V^2" "kp=0.1 mA/V^2"
r = 1
VM = 1.25 V
$ electronics-engineering solve elx_adc_quantization_snr n=12
SNR_dB = 74.00811155
noise_rms_lsb = 0.2886751346
SNR_full_scale_dB = 74.00811155
Every calculation, with its formula, a worked example and its figures: Electronics Engineering on ai999x.com. Install guides for the app and the command line: https://www.ai999x.com/desktop-cli/.
Version 1.6.7 · License: Apache-2.0 · Author: Ibnul Jaif Farabi · Organization: AI999X · Contact: support@ai999x.com · Support the project
The Future Is Self-Improving.