You need to log in to create posts and topics.
BJT astable multivibrator latches after some cycles (gmin stays stamped in eBJT)
ptsubin@ptsubin
1 Post
#1 · November 20, 2026, 7:54 am
Quote from ptsubin on November 20, 2026, 7:54 amVersion: SimulIDE 2.0.0 R260501, Linux 64
Circuit Standard 2-transistor astable multivibrator. 9 V battery, 2 x BJT (NPN, gain 100), collector loads 470 Ohm + LED, base resistors 47 k, cross-coupling capacitors 10 uF. Expected Continuous oscillation, period approximately 0.5 s. Observed The LEDs alternate some times (approximately 7 to 16 cycles), then one LED stays on and the other stays off. No error or warning shows. The simulation clock continues to run.
Stopped state measured in SimulIDE (no ground in the circuit, thus only voltage differences are given): on base - off base: 0.12 V, constant on base - on collector: 0.52 V off collector - on base: 6.54 V The standalone program gives 0.10 to 0.14 V, 0.51 V and 5.9 to 6.4 V. The off base is 0.54 V above the emitters and does not increase, although the 47 k resistor supplies 180 uA to it.Analysis method I rebuilt eBJT::voltChanged, eLed::voltChanged, eReactive::runEvent, CircMatrix and Simulator::solveCircuit in a small standalone program and ran this circuit in it. It shows the same failure. I did not instrument SimulIDE itself. Cause found in the standalone program 1. The base of the off transistor gets to approximately 0.52 V and the circuit starts to switch. The loop has positive feedback, so the non-linear iteration does not converge. 2. In eBJT::voltChanged, m_step increases by 0.1 at each call, and gmin = m_satCur*1e-2*exp(m_step). In the failing time step there are approximately 300 evaluations for each transistor, and gmin gets to approximately 0.0097 S (m_step = 29.9). 3. With this gmin the iteration is damped. The next call sees a change below 10 mV, sets m_step = 0 and returns. The admittances that include the large gmin stay stamped. 4. Stamped base-emitter admittance of the off transistor: 0.0097 S. Value without gmin at the same Vbe (0.528 V): 2.8e-5 S. 5. This artificial conductance takes the full 180 uA with a voltage change of less than 10 mV. Thus voltChanged always returns at the 10 mV check, the transistor is not calculated again, and the circuit stays in a false equilibrium. Things that do not prevent it (standalone program) - Reactive step from 0.1 us to 1 ms - Capacitor series resistance from 1 Ohm to 1 kOhm - Base resistors of 10 k, 22 k, 68 k, 100 k (more cycles, then stop) - Different node order in the matrix Possible correction (not tested) When the 10 mV check passes while m_step > 0, calculate and stamp the model one more time with gmin at its minimum value before m_step is set to 0. eDiode::voltChanged uses the same gmin pattern and can have the same problem.Disclaimer: The debug and analysis was done with Claude Fable 5.2. Following the suggestion, reducing the gain to 20 or 50 keeps the circuit running
Version: SimulIDE 2.0.0 R260501, Linux 64
Circuit
Standard 2-transistor astable multivibrator. 9 V battery, 2 x BJT
(NPN, gain 100), collector loads 470 Ohm + LED, base resistors 47 k,
cross-coupling capacitors 10 uF.
Expected
Continuous oscillation, period approximately 0.5 s.
Observed
The LEDs alternate some times (approximately 7 to 16 cycles), then
one LED stays on and the other stays off. No error or warning shows.
The simulation clock continues to run.
Stopped state measured in SimulIDE (no ground in the circuit, thus
only voltage differences are given):
on base - off base: 0.12 V, constant
on base - on collector: 0.52 V
off collector - on base: 6.54 V
The standalone program gives 0.10 to 0.14 V, 0.51 V and 5.9 to 6.4 V.
The off base is 0.54 V above the emitters and does not increase,
although the 47 k resistor supplies 180 uA to it.
Analysis method I rebuilt eBJT::voltChanged, eLed::voltChanged, eReactive::runEvent, CircMatrix and Simulator::solveCircuit in a small standalone program and ran this circuit in it. It shows the same failure. I did not instrument SimulIDE itself. Cause found in the standalone program 1. The base of the off transistor gets to approximately 0.52 V and the circuit starts to switch. The loop has positive feedback, so the non-linear iteration does not converge. 2. In eBJT::voltChanged, m_step increases by 0.1 at each call, and gmin = m_satCur*1e-2*exp(m_step). In the failing time step there are approximately 300 evaluations for each transistor, and gmin gets to approximately 0.0097 S (m_step = 29.9). 3. With this gmin the iteration is damped. The next call sees a change below 10 mV, sets m_step = 0 and returns. The admittances that include the large gmin stay stamped. 4. Stamped base-emitter admittance of the off transistor: 0.0097 S. Value without gmin at the same Vbe (0.528 V): 2.8e-5 S. 5. This artificial conductance takes the full 180 uA with a voltage change of less than 10 mV. Thus voltChanged always returns at the 10 mV check, the transistor is not calculated again, and the circuit stays in a false equilibrium. Things that do not prevent it (standalone program) - Reactive step from 0.1 us to 1 ms - Capacitor series resistance from 1 Ohm to 1 kOhm - Base resistors of 10 k, 22 k, 68 k, 100 k (more cycles, then stop) - Different node order in the matrix Possible correction (not tested) When the 10 mV check passes while m_step > 0, calculate and stamp the model one more time with gmin at its minimum value before m_step is set to 0. eDiode::voltChanged uses the same gmin pattern and can have the same problem.
Disclaimer: The debug and analysis was done with Claude Fable 5.2. Following the suggestion, reducing the gain to 20 or 50 keeps the circuit running
Click for thumbs down.0Click for thumbs up.0
Last edited on November 20, 2026, 7:55 am by ptsubin
