Press Pulse or raise the injected current to trigger action potentials; the channel icons show which Na+ and K+ channels are open.
Hodgkin-Huxley membrane. C dV/dt = Istim − gNa m³h (V−ENa) − gK n⁴ (V−EK) − gL (V−EL), with C = 1 µF/cm², gNa = 120, gK = 36, gL = 0.3 mS/cm², ENa = +50 mV, EL = −54.4 mV (the classic squid-axon parameters, modern sign convention, rest near −65 mV).
Gates. Each gate x in {m,h,n} obeys dx/dt = φ (αx(V)(1−x) − βx(V) x) with the original voltage-dependent rate functions. Temperature enters as φ = 3(T−6.3)/10 (Q10 = 3): warmer axons spike faster and narrower.
Potassium reversal. EK = (RT/F) ln([K]out/[K]in) with [K]in = 140 mM. Raising [K]out (hyperkalaemia) pulls EK up, depolarises the resting cell and inactivates sodium channels, so excitability can paradoxically fall.
Disorder-like presets. Blocking a fraction of Na channels mimics a local anaesthetic; blocking K channels mimics 4-aminopyridine-type drugs (wider, repetitive spikes, seizure-like hyperexcitability). These are cartoons of single-neuron mechanisms, not models of a whole brain disorder.
Honest simplifications. One isopotential patch (no cable propagation or dendrites), deterministic gates (the channel icons are a fixed random sample drawn against the open probabilities), fixed ion concentrations except [K]out, squid-axon constants rescaled by Q10 rather than mammalian channel kinetics. Integration: RK4, 0.01 ms step.