A pacemaker is a device that helps to regulate your heart .
A pacemaker ( or artificial pacemaker , so as not to be confused with the heart 's natural pacemaker ) is a medical device which uses electrical impulses , delivered by electrodes contacting the heart muscles , to regulate the beating of the heart .