Normal sinus rhythm at 75 per minute. The heart on top squeezes in time with the trace below: the atria after the P wave, the ventricles after the QRS.
Pick Atrial fibrillation: the QRS spacing is irregular and the P waves vanish. Set 50 mm/s paper: everything stretches out and the squares rule changes to 600 ÷ big squares. Choose Complete block and watch the P waves ignore the QRS. Pause to measure the PR interval from the start of P to the start of QRS. Each beat is a sum of Gaussian bumps for P, Q, R, S and T waves placed by a rhythm schedule (textbook shapes, 1 mV = 10 mm, 25 mm/s: a small square is 0.04 s and a big square 0.2 s). Intervals: PR 0.16 s (0.32 s in first-degree block), QRS 0.09 s (0.18 s in complete block), QT = 0.40 × √RR (Bazett's formula). Rate rules: 60 ÷ RR, 300 ÷ big squares, 1500 ÷ small squares, or QRS in 6 s × 10. Atrial fibrillation uses seeded irregular R-R gaps (Mulberry32) and a wobbly baseline; Wenckebach follows a 4:3 pattern with PR 0.16, 0.24, 0.32 s then a dropped beat; complete block pairs P waves at the set rate with a slow wide escape rhythm at 38 bpm. Simplified: a single lead with fixed shapes; real ECGs vary by lead, person and condition. Educational only, not for diagnosis. The sweep varies the heart rate for 20 simulated seconds and records mean rate, mean R-R and QT over three seeds. Runs on your device.