A pacemaker is a small unit that is implanted under the skin and uses batteries to help your heart beat more regularly through the use of small electric stimulation that helps control your heartbeat.