Heart Rate
-- BPM
Rhythm
Pacemaker
Sonification

Cardiovascular Pacemaker Simulation

This interactive simulation demonstrates the basic principles of cardiac electrophysiology and how a dual-chamber artificial pacemaker interventions in conditions of bradycardia and AV block.

Overview

The human heart relies on an internal electrical system to coordinate its contractions. The natural pacemaker, the Sinoatrial (SA) node, generates an electrical impulse that travels through the Atria, causing them to contract and pump blood into the Ventricles. The signal then pauses at the Atrioventricular (AV) node before rapidly traveling down the Purkinje fibers, causing the Ventricles to contract and pump blood to the body.

When this system fails—either by generating signals too slowly (Bradycardia) or failing to transmit signals from the top to the bottom of the heart (Heart Block)—an artificial pacemaker can be surgically implanted. It monitors the heart's natural rhythm and delivers precise electrical impulses to maintain a healthy heart rate.

How to Use the Simulation

Use the controls panel at the bottom of the canvas to adjust the simulation parameters:

Technical & Physiological Details

The Simulated Logic Engine

The JavaScript engine runs a continuous time loop evaluating the physiological state of the heart millisecond by millisecond. It uses a simplified state-machine to represent Native and Paced events.

Visual Representation

The canvas draws a stylized heart. The yellow glowing dots represent the action potential traveling along the conduction pathways. When a chamber contracts, it visually scales down. The pacemaker leads (cyan wires) flash brightly when delivering a pacing spike.

Future Directions

This single-page application serves as a foundational educational tool. Future iterations for medical education could include: