Cardiac rhythms are related to heart electrical activity, being the essential aspect of the cardiovascular physiology. Usually, these rhythms are represented by electrocardiograms (ECGs) that are useful to detect cardiac pathologies. Essentially, the heart activity starts in the sinoatrial node (SA) node, the natural pacemaker, propagating to the atrioventricular node (AV), and finally reaching the His-Purkinje complex (HP). This paper investigates the control of cardiac rhythms in order to induce normal rhythms from pathological responses. A mathematical model that presents close agreement with experimental measurements is employed to represent the heart functioning. The adopted model comprises a network of three nonlinear oscillators that represent each one of the cardiac nodes, connected by delayed couplings. The pathological behavior is induced by an external stimulus in the SA node. An adaptive controller is proposed acting in the SA node considering an strategy based on the signal obtained by the natural pacemaker and its regularization. The incorporation of adaptive compensation in a Lyapunov-based control scheme allows the compensation for the unknown dynamics. The controller ability to deal with interpatient variability is evaluated by assuming that the heart model is not available to the controller design, being used only in the simulator to assess the control performance. Results show that the adaptive term can reduce the control effort by around 3% while reducing the tracking error by 20%, when compared to the conventional feedback approach. Additionally, the controller can avoid abnormal rhythms, turning the ECG closer to the expected normal behavior and preventing critical cardiac responses. Therefore, this work demonstrates that an adaptive controller can be used to regulate the ECG signal without prior information about the system and disregarding inter- and intrapatient variability.