Answer
The function of the pacemaker is to set the rhythm of contractions in the atria and ventricles of the heart.
Work Step by Step
The pacemaker or sinoatrial (SA) node generates an impulse that is spread throughout the atria, causing those two chambers to contract, sending blood into the ventricles. The atrioventricular node then receives the signal, and after a short delay, initiates the contraction of the muscles in the ventricle, thus sending blood into the aorta and pulmonary artery.