A pacemaker, also known as an artificial cardiac pacemaker, is an implanted medical device that generates electrical pulses delivered by electrodes to one or more of the chambers of the heart.